Re: FTBFS: how to test fixes
* Christian Seiler <christian@iwakd.de>, 2016-09-05, 20:33:
Also note that there are plans to make init non-Essential in the
future,
The future is now! init is non-essential already. You can remove it from
your unstable chroot if you want to.
MIPS (at least 32bit) doesn't support 64bit atomic operations
intrinsically (_8 == 8 bytes) - and your software uses
std::atomic<uint64_t> (found that by grepping).
However, gcc provides an emulation library called libatomic. You should
link against that emulation library if present in order to use those
intrinsics.
You shouldn't need to care about this. This should be the compiler's
job.
This might result in a spurious dependency on libatomic on other
platforms, but unfortunately I don't know of any way to properly pass
--as-needed for just this library without libtool reordering the entire
list of linker flags. :-(
Not tested against libtool, but this should do the trick:
-Wl,--push-state,--as-needed,-latomic,--pop-state
(Since this is just one g++ argument, libtool doesn't have room to
reorder much.)
--
Jakub Wilk
Reply to: