gold linker issues with PostGIS cunit tests
I've had a few hours of frustration trying to debug a segfault triggered by PostGIS cunit tests to find it was gold's fault instead. This is : binutils-gold 2.20.1-3ubuntu5 To reproduce: git clone git://github.com/strk/postgis.git cd postgis && git checkout 728e94ab0325a89fa3ac4548d8617d144a0ab717 ./autogen.sh && ./configure && make all cd liblwgeom/cunit && make check Expected result: no segfault Obtained result: segfault I've spent hours moving code around in cu_tester.c or some tests and could handle to avoid the segfault, but it made no sense. Valgrind reported somethign like: ==31508== Bad permissions for mapped region at address 0x4885E0 And gdb found it comin from strcmp or strlen... Linking cu_tester with "the other" linker works fine. --strk; () Free GIS & Flash consultant/developer /\ http://strk.keybit.net/services.html ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12677] New: [Meta] LTO linker bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12677 Summary: [Meta] LTO linker bugs Product: binutils Version: 2.22 (HEAD) Status: NEW Severity: normal Priority: P2 Component: ld AssignedTo: unassig...@sources.redhat.com ReportedBy: hjl.to...@gmail.com There are some LTO linker tests on hjl/lto-test branch at http://git.kernel.org/?p=devel/binutils/hjl/x86.git;a=summary On Linux/x86-64, when binutils is compiled with GCC 4.6, which enables LTO linker tests, I got FAIL: PR ld/12365 FAIL: ld-plugin/lto-4r-a FAIL: ld-plugin/lto-4r-b FAIL: ld-plugin/lto-4r-c FAIL: ld-plugin/lto-4r-d FAIL: LTO 3 symbol FAIL: LTO 5 symbol FAIL: LTO 4a FAIL: LTO 4c FAIL: LTO 4d FAIL: LTO 10 FAIL: LTO 8 -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
Re: gold linker issues with PostGIS cunit tests
Sandro Santilli writes: > This is : > binutils-gold 2.20.1-3ubuntu5 The Ubuntu distributors have decided to ship a version of gold which does not work with the version of libc that they ship. You need to use the gold from the binutils 2.21 release instead. See https://bugs.launchpad.net/ubuntu/+source/binutils/+bug/673893 . Ian ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12677] [Meta] LTO linker bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12677 Alan Modra changed: What|Removed |Added CC||amodra at gmail dot com --- Comment #1 from Alan Modra 2011-04-15 16:36:33 UTC --- FAIL: PR ld/12365 http://sourceware.org/ml/binutils/2011-02/msg00054.html will fix this one FAIL: ld-plugin/lto-4r-a FAIL: ld-plugin/lto-4r-b FAIL: ld-plugin/lto-4r-c FAIL: ld-plugin/lto-4r-d FAIL: LTO 4a FAIL: LTO 4c FAIL: LTO 4d FAIL: LTO 10 These are all about mixing up lto objects with normal ones using ld -r. Horrible. FAIL: LTO 3 symbol FAIL: LTO 5 symbol I don't see these two on powerpc with mainline gcc. Perhaps because I pulled the tests from davek/lto? FAIL: LTO 8 This one needs fixing. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug ld/12677] [Meta] LTO linker bugs
http://sourceware.org/bugzilla/show_bug.cgi?id=12677 --- Comment #2 from H.J. Lu 2011-04-15 18:53:52 UTC --- (In reply to comment #1) > > FAIL: ld-plugin/lto-4r-a > FAIL: ld-plugin/lto-4r-b > FAIL: ld-plugin/lto-4r-c > FAIL: ld-plugin/lto-4r-d > FAIL: LTO 4a > FAIL: LTO 4c > FAIL: LTO 4d > FAIL: LTO 10 > These are all about mixing up lto objects with normal ones using ld -r. > Horrible. I have a scheme to fix them. > FAIL: LTO 3 symbol > FAIL: LTO 5 symbol > I don't see these two on powerpc with mainline gcc. Perhaps because I pulled > the tests from davek/lto? > I saw them on Linux/x86-64. -- Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email --- You are receiving this mail because: --- You are on the CC list for the bug. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils