Hi, I am trying to build the demo https://github.com/skalk/genode/blob/i.MX53_tablet_demo/os/src/server/vmm/im... for the SABRE tablet.
In the final step of building the demo: ! make run/vmm
I encounter the following errors. I have run "make prepare" in the genode/libports directory, as suggested by https://sourceforge.net/p/genode/mailman/message/32241606/.
I am using Ubuntu 14.04. Any idea on how to fix this?
Thanks! Riju
============================================================================ Library stdcxx COMPILE allocator-inst.o COMPILE bad_alloc.o COMPILE bad_cast.o COMPILE bad_typeid.o COMPILE basic_file_stdio.o COMPILE bitmap_allocator.o COMPILE c_locale.o COMPILE chrono.o In file included from /home/rijurekha/genode/libports/contrib/stdcxx-4.7.2/src/c++11/chrono.cc:25:0: /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âconstexpr std::chrono::duration<_Rep, _Period>::duration(const _Rep2&) [with _Rep2 = long long int; <template-parameter-2-2> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:129:54: required from âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, true, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1ll>; _CR = long long int&&]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:37: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:472:29: required from âconstexpr bool std::chrono::operator<(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll, 1000000ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:683:38: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:241:33: error: invalid static_cast from type âconst long long intâ to type âstd::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >::rep {aka long long int&&}â : __r(static_cast<rep>(__rep)) { } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, true, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1ll>; _CR = long long int&&]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:37: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:472:29: required from âconstexpr bool std::chrono::operator<(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll, 1000000ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:683:38: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:129:54: error: use of deleted function âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â return _ToDur(static_cast<__to_rep>(__d.count())); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:234:12: note: âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â is implicitly deleted because the default definition would be ill-formed: constexpr duration(const duration&) = default; ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:234:12: error: copying non-static data member âlong long int&& std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >::__râ of rvalue reference type /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:37: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:472:29: required from âconstexpr bool std::chrono::operator<(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll, 1000000ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:683:38: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: error: use of deleted function âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â return __dc::__cast(__d); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âconstexpr std::chrono::duration<_Rep, _Period>::rep std::chrono::duration<_Rep, _Period>::count() const [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>; std::chrono::duration<_Rep, _Period>::rep = long long int&&]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:46: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:472:29: required from âconstexpr bool std::chrono::operator<(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll, 1000000ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:683:38: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:256:11: error: cannot bind âlong long intâ lvalue to âstd::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >::rep {aka long long int&&}â { return __r; } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:256:16: error: body of constexpr function âconstexpr std::chrono::duration<_Rep, _Period>::rep std::chrono::duration<_Rep, _Period>::count() const [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>; std::chrono::duration<_Rep, _Period>::rep = long long int&&]â not a return-statement { return __r; } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:682:7: error: non-constant condition for static assertion static_assert(system_clock::duration::min() ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:683:7: in constexpr expansion of âstd::chrono::operator< <long long int, std::ratio<1ll, 1000000ll>, long long int, std::ratio<1ll, 1000000ll>
((*(const std::chrono::duration<long long int, std::ratio<1ll, 1000000ll>
*)(& std::chrono::duration<_Rep, _Period>::min<long long int, std::ratio<1ll, 1000000ll> >())), (*(const std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >*)(& std::chrono::duration<_Rep, _Period>::zero<long long int, std::ratio<1ll, 1000000ll> >())))â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:472:29: error: âconstexpr std::chrono::duration<_Rep, _Period>::rep std::chrono::duration<_Rep, _Period>::count() const [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>; std::chrono::duration<_Rep, _Period>::rep = long long int&&]â called in a constant expression return __ct(__lhs).count() < __ct(__rhs).count(); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:255:2: note: âconstexpr std::chrono::duration<_Rep, _Period>::rep std::chrono::duration<_Rep, _Period>::count() const [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>; std::chrono::duration<_Rep, _Period>::rep = long long int&&]â is not usable as a constexpr function because: count() const ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, true, false>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; _ToDur = std::chrono::duration<long long int>; _CF = std::ratio<1ll, 1000000ll>; _CR = long long int&&]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int>; _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:696:30: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:142:38: error: invalid static_cast from type âconst intmax_t {aka const long long int}â to type âlong long int&&â static_cast<_CR>(__d.count()) / static_cast<_CR>(_CF::den))); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:143:4: error: body of constexpr function âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, true, false>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll, 1000000ll>; _ToDur = std::chrono::duration<long long int>; _CF = std::ratio<1ll, 1000000ll>; _CR = long long int&&]â not a return-statement } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, false, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll>; _ToDur = std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1000000ll, 1ll>; _CR = long long int&&]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:583:66: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, std::chrono::time_point<_Clock, _ToDur> >::type std::chrono::time_point_cast(const std::chrono::time_point<_Clock, _Dur>&) [with _ToDur = std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >; _Clock = std::chrono::system_clock; _Dur = std::chrono::duration<long long int>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, std::chrono::time_point<_Clock, _ToDur> >::type = std::chrono::time_point<std::chrono::system_clock, std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> > >]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:704:38: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:155:38: error: invalid static_cast from type âconst intmax_t {aka const long long int}â to type âlong long int&&â static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:156:4: error: body of constexpr function âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, false, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll>; _ToDur = std::chrono::duration<long long int, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1000000ll, 1ll>; _CR = long long int&&]â not a return-statement } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, false, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll>; _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1000000ll, 1ll>; _CR = long long int&&]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: required from âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:37: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:363:34: required from âconstexpr typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type std::chrono::operator+(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/contrib/stdcxx-4.7.2/src/c++11/chrono.cc:58:39: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:155:38: error: invalid static_cast from type âconst intmax_t {aka const long long int}â to type âlong long int&&â static_cast<_CR>(__d.count()) * static_cast<_CR>(_CF::num))); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono:156:4: error: body of constexpr function âstatic constexpr _ToDur std::chrono::__duration_cast_impl<_ToDur, _CF, _CR, false, true>::__cast(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int; _Period = std::ratio<1ll>; _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _CF = std::ratio<1000000ll, 1ll>; _CR = long long int&&]â not a return-statement } ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âconstexpr typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type std::chrono::duration_cast(const std::chrono::duration<_Rep, _Period>&) [with _ToDur = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >; _Rep = long long int; _Period = std::ratio<1ll>; typename std::enable_if<std::chrono::__is_duration<_Tp>::value, _ToDur>::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â: /home/rijurekha/genode/libports/include/stdcxx/std/chrono:248:37: required from âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep2 = long long int; _Period2 = std::ratio<1ll>; <template-parameter-2-3> = void; _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â /home/rijurekha/genode/libports/include/stdcxx/std/chrono:363:34: required from âconstexpr typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type std::chrono::operator+(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â /home/rijurekha/genode/libports/contrib/stdcxx-4.7.2/src/c++11/chrono.cc:58:39: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:183:25: error: use of deleted function âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â return __dc::__cast(__d); ^ /home/rijurekha/genode/libports/include/stdcxx/std/chrono: In instantiation of âconstexpr typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type std::chrono::operator+(const std::chrono::duration<_Rep1, _Period1>&, const std::chrono::duration<_Rep2, _Period2>&) [with _Rep1 = long long int; _Period1 = std::ratio<1ll>; _Rep2 = long long int; _Period2 = std::ratio<1ll, 1000000ll>; typename std::common_type<std::chrono::duration<_Rep1, _Period1>, std::chrono::duration<_Rep2, _Period2> >::type = std::chrono::duration<long long int&&, std::ratio<1ll, 1000000ll> >]â: /home/rijurekha/genode/libports/contrib/stdcxx-4.7.2/src/c++11/chrono.cc:58:39: required from here /home/rijurekha/genode/libports/include/stdcxx/std/chrono:363:55: error: use of deleted function âconstexpr std::chrono::duration<_Rep, _Period>::duration(const std::chrono::duration<_Rep, _Period>&) [with _Rep = long long int&&; _Period = std::ratio<1ll, 1000000ll>]â return __cd(__cd(__lhs).count() + __cd(__rhs).count()); ^ make[3]: *** [chrono.o] Error 1 make[2]: *** [stdcxx.lib] Error 2 make[1]: *** [gen_deps_and_build_targets] Error 2 make[1]: Leaving directory `/home/rijurekha/genode/hw_imx53' Error: Genode build failed make: *** [run/vmm] Error 255 ============================================================================