bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/21803] New: Suggest possibility of incompatible assemblers when


From: daniel.santos at pobox dot com
Subject: [Bug ld/21803] New: Suggest possibility of incompatible assemblers when "unrecognized relocation" encountered
Date: Thu, 20 Jul 2017 20:50:19 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=21803

            Bug ID: 21803
           Summary: Suggest possibility of incompatible assemblers when
                    "unrecognized relocation" encountered
           Product: binutils
           Version: 2.25
            Status: UNCONFIRMED
          Severity: enhancement
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: daniel.santos at pobox dot com
  Target Milestone: ---

Created attachment 10279
  --> https://sourceware.org/bugzilla/attachment.cgi?id=10279&action=edit
proposed (and untested) fix

I have two Gentoo machines and one of them needed updating, so I set up distcc
to complete the update more quickly.  Although I checked the versions of gcc
and binutils on the two machines and thought they were the same, I was mistaken
-- one had binutils 2.25.1 and the other 2.26.1.  The result was errors like
this:


libtool: link: x86_64-pc-linux-gnu-gcc -m32 -shared  -fPIC -DPIC 
lib/.libs/xmlparse.o lib/.libs/xmltok.o lib/.libs/xmlrole.o    -m32 -O2 -ggdb
-march=amdfam10 -mmmx -m3dnow -msse -msse2 -msse3 -msse4a -mcx16 -msahf
-mpopcnt -mabm -mlzcnt -mprfchw -mfxsr -mtune=amdfam10 -Wl,-O1 -Wl,--as-needed 
 -Wl,-soname -Wl,libexpat.so.1 -o .libs/libexpat.so.1.6.4
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
lib/.libs/xmlparse.o: unrecognized relocation (0x2b) in section `.text'
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld:
final link failed: Bad value
collect2: error: ld returned 1 exit status
distcc[17072] ERROR: compile (null) on localhost failed


I did a lot of internet searches and re-checking before I discovered the
problem.  It would be most helpful if ld could suggest that this is probably
caused using two different versions of binutils.

-- 
You are receiving this mail because:
You are on the CC list for the bug.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]