Bug 55599

Summary: LTO build breakage
Product: Mesa Reporter: Rafael Castillo <jrch2k10>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED DUPLICATE QA Contact:
Severity: critical    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:

Description Rafael Castillo 2012-10-04 00:37:13 UTC
error detail:
CCLD     libglapi.la
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/mesa-9999/temp/cc5rdqpY.ltrans0.ltrans.o: warning: relocation against `x86_64_entry_start.2365.2566' in readonly section `.text'.
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.1/../../../../x86_64-pc-linux-gnu/bin/ld: /var/tmp/portage/media-libs/mesa-9999/temp/cc5rdqpY.ltrans0.ltrans.o: relocation R_X86_64_PC32 against undefined symbol `x86_64_entry_start.2365.2566' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-pc-linux-gnu/4.7.1/../../../../x86_64-pc-linux-gnu/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status

reproducible always LTO is enabled 

gcc-4.7.1
Comment 1 Fabio Pedretti 2012-10-04 06:21:10 UTC
This should be the same as bug #55080, but the error message is slighty different since this is a 64 bit system rather than 32. This also suggest to use -fPIC.
Comment 2 Fabio Pedretti 2012-11-09 17:10:42 UTC

*** This bug has been marked as a duplicate of bug 55080 ***

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.