[Bug 1266492] [NEW] ld:i386 crashes with -static -fPIE -pie

Launchpad Bug Tracker 1266492 at bugs.launchpad.net
Wed Jan 29 12:17:39 UTC 2014


You have been subscribed to a public bug by Ubuntu Foundations Team Bug Bot (crichton):

Making a simple file conftest.c with the following contents:

int main() { return 0; }

And then compiling it on i386 with gcc -fPIE -pie -static conftest.c
returns:

*** Error in `/usr/bin/ld': corrupted double-linked list: 0x08dddb38 ***

This breaks compilation xorg-server on i386. I believe that -static
-fPIE -pie is probably invalid, and it fails on amd64 too.

$ gcc -fPIE -pie -static conftest.c 
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: relocation R_X86_64_32 against `__TMC_END__' can not be used when making a shared object; recompile with -fPIC
/usr/lib/gcc/x86_64-linux-gnu/4.8/crtbeginT.o: error adding symbols: Bad value
collect2: error: ld returned 1 exit status

But autoconf hangs on the corrupted double-linked list, which times out
the xorg-server build.

** Affects: eglibc
     Importance: Medium
         Status: Incomplete

** Affects: binutils (Ubuntu)
     Importance: High
         Status: Confirmed

** Affects: eglibc (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: evolution-data-server (Ubuntu)
     Importance: Critical
         Status: Triaged

** Affects: xorg-server (Ubuntu)
     Importance: Critical
         Status: Triaged

** Affects: binutils (Ubuntu Trusty)
     Importance: High
         Status: Confirmed

** Affects: eglibc (Ubuntu Trusty)
     Importance: Undecided
         Status: New

** Affects: evolution-data-server (Ubuntu Trusty)
     Importance: Critical
         Status: Triaged

** Affects: xorg-server (Ubuntu Trusty)
     Importance: Critical
         Status: Triaged


** Tags: ftbfs patch
-- 
ld:i386 crashes with -static -fPIE -pie
https://bugs.launchpad.net/bugs/1266492
You received this bug notification because you are a member of Ubuntu Sponsors Team, which is subscribed to the bug report.



More information about the Ubuntu-sponsors mailing list