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

Bug#681762: gcc-4.5 FTBFS on alpha: Failed link; work around is to link with --no-relax

Source: gcc-4.5
Version: 4.5.4-1
Severity: important
Tags: patch
User: debian-alpha@lists.debian.org
Usertags: alpha
X-Debbugs-CC: debian-alpha@lists.debian.org
Justification: Fails to build from source but built in the past.

gcc-4.5 FTBFS on alpha with GPREL16 relocation truncation errors in the
link of cc1-dummy during stage 1 compilation.  Full build log is at:


The bug is a long standing bug in binutils that occassionally affects
linking of very large packages.  Unfortunately the use of gcc-4.6 tends
to trigger it more often and it is now affecting the build of gcc-4.5.

The known work around is to disable relaxation in the linker and the
link will then complete successfully.

I can manually inject -Wl,--no-relax into the link of cc1-dummy during
the stage 1 compilation, rerun "debian/rules build", manually inject
-Wl,--no-relax into the link of cc1, rerun "debian/rules build" again,
and then the build completes successfully.  (My attempts at producing a
patch to debian/rules2 to automatically inject the -Wl,--no-relax option
into the stage 1 compilation links failed so no patch attached here, sorry.)

The old version of gcc-4.5 at debian-ports currently breaks installation
of the Alpha port with debootstrap, so an upload of a fix would be very
much appreciated, but we will understand if this is not possible because
of the freeze.


Reply to: