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

Bug#682197: gnat-4.6 FTBFS on Alpha: Link fails; --no-relax is a workaround.



Source: gnat-4.6
Version: 4.6.3-5
Severity: normal
Tags: patch
User: debian-alpha@lists.debian.org
Usertags: alpha
X-Debbugs-CC: debian-alpha@lists.debian.org

gnat-4.6 FTBFS on Alpha with GPREL16 relocation truncation errors in the
link of gnat1 during stage 1 compilation.  Full build log is at:

http://buildd.debian-ports.org/status/fetch.php?pkg=gnat-4.6&arch=alpha&ver=4.6.3-5&stamp=1342739232

Adding:

ifneq (,$(filter $(DEB_TARGET_ARCH), alpha))
  LDFLAGS = -Wl,--no-relax
endif

to debian/rules2 enables the link to complete successfully. (The bug is
actually a long standing bug in binutils that typically only affects the
linking of very large C++ projects but seems to be triggered more often
now that gcc-4.6 is the default.)

I presume adding the above to debian/rules2 will mean that it is also
automatically added to the gcc-4.6 and gcj-4.6 packages but that should
result in no loss in performance to gcc/g++/gcj/etc since only the link
of the stage-1 compiler does not get relaxation optimisation.

Cheers
Michael.


Reply to: