works: 2.20 2.20.51.0.1 broken: >=2.20.51.0.2 not a big deal, just wanted to get it on record since at least arm de-keyworded it because of these failures. make[2]: Entering directory `/var/tmp/portage/sys-devel/prelink-20100106/work/prelink/testsuite' SKIP: movelibs.sh /var/tmp/portage/sys-devel/prelink-20100106/temp/ccUG7LbB.o: In function `main': reloc1.c:(.text+0x7): undefined reference to `foo' reloc1.c:(.text+0x12): undefined reference to `foo' reloc1.c:(.text+0x18): undefined reference to `foo' reloc1.c:(.text+0x21): undefined reference to `foo' reloc1.c:(.text+0x27): undefined reference to `bar' reloc1.c:(.text+0x2f): undefined reference to `bar' reloc1.c:(.text+0x48): undefined reference to `f2' reloc1.c:(.text+0x8b): undefined reference to `bar' /var/tmp/portage/sys-devel/prelink-20100106/temp/ccUG7LbB.o:(.data+0x10): undefined reference to `bar' collect2: ld returned 1 exit status cp: cannot stat `reloc1': No such file or directory FAIL: reloc1.sh PASS: reloc2.sh /var/tmp/portage/sys-devel/prelink-20100106/temp/ccNyMDb1.o: In function `main': reloc3.c:(.text+0x3d): undefined reference to `foo' reloc3.c:(.text+0x48): undefined reference to `foo' reloc3.c:(.text+0x4f): undefined reference to `foo' reloc3.c:(.text+0x5a): undefined reference to `foo' reloc3.c:(.text+0x60): undefined reference to `foo' /var/tmp/portage/sys-devel/prelink-20100106/temp/ccNyMDb1.o:reloc3.c:(.text+0x69): more undefined references to `foo' follow /var/tmp/portage/sys-devel/prelink-20100106/temp/ccNyMDb1.o: In function `main': reloc3.c:(.text+0xa8): undefined reference to `f2' reloc3.c:(.text+0xb7): undefined reference to `f3' reloc3.c:(.text+0xe3): undefined reference to `foo' collect2: ld returned 1 exit status strip: 'reloc3': No such file [...] ====================== 37 of 41 tests failed (3 tests were not run) ======================
Created attachment 218733 [details] build.log
Created attachment 221255 [details] the emerge info for my x86 machine will also add my build log,the build completed ok but testing failed
Created attachment 221257 [details] the resulting build log
Created attachment 221259 [details] my environment file hope these files are of some help
Interestingly this only happens through emerge, manually running the test suite works. The only info I can find about this is a bug report caused by Fedora 13 using --no-add-needed (aka --no-copy-dt-entries) by default now. The "fix" was to append CC="gcc -Wl,--add-needed" to make check. That doesn't work in our case. But the error reported is exactly the same. I'm still not sure what's going on here exactly. https://bugzilla.redhat.com/show_bug.cgi?id=564925 http://cvs.fedoraproject.org/viewvc/devel/prelink/prelink.spec?r1=1.61&r2=1.62
Arg, this turns out to be a simple --as-needed problem. We're setting LD_AS_NEEDED=1 in the dev profiles now which is only supported in HJL binutils and apparently trumps any command line options which is why -Wl,--no-as-needed doesn't work. Anyways, fixed.