[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#861734: gcc-7 fails to build gnattools on armel



Package: src:gcc-7
Followup-For: Bug #861734
Control: retitle -1 libgnat fails to link without -latomic on armel

A rebuild with --as-needed confirms that libgnat requires libatomic,
not the tools.

As far as I understand, the problem may exist upstream, but be hidden
at build time without -z defs, and at run time because libatomic is
loaded to satisfy another dependency.

The only suspiscious local patch I can imagine is ada-arm.diff, but
removing it does not fix the problem on a porterbox.

An ugly work-around would be to disable -z defs on armel or globally.
The proper fix is probably to tell Makefile.def that libgnat depends
on libatomic, then add MISCLIB=-latomic to the "arm% linux-gnueabi"
stanza in gcc/ada/gcc-interface/Makefile.in. Other arm% architectures
will not be affected thanks to --as-needed.

Until these can be tested, gnat should be disabled again on armel.
Apologizes for the previous suggestion.


Reply to: