Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 303797 - sys-devel/prelink testsuite goes apeshit with >=binutils-2.20.51.0.2
Summary: sys-devel/prelink testsuite goes apeshit with >=binutils-2.20.51.0.2
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-02-06 20:42 UTC by Ryan Hill (RETIRED)
Modified: 2010-07-11 07:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
build.log (prelink-20100106:20100206-204733.log,56.97 KB, text/plain)
2010-02-06 20:47 UTC, Ryan Hill (RETIRED)
Details
the emerge info for my x86 machine (emerge.inf,4.47 KB, text/plain)
2010-02-26 06:47 UTC, Geoff Madden
Details
the resulting build log (build_log.tar.bz2,21.31 KB, application/octet-stream)
2010-02-26 06:49 UTC, Geoff Madden
Details
my environment file (env.tar.bz2,27.45 KB, application/octet-stream)
2010-02-26 06:50 UTC, Geoff Madden
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ryan Hill (RETIRED) gentoo-dev 2010-02-06 20:42:55 UTC
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)                                                                                                                      
======================
Comment 1 Ryan Hill (RETIRED) gentoo-dev 2010-02-06 20:47:51 UTC
Created attachment 218733 [details]
build.log
Comment 2 Geoff Madden 2010-02-26 06:47:44 UTC
Created attachment 221255 [details]
the emerge info for my x86 machine

will also add my build log,the build completed ok but testing failed
Comment 3 Geoff Madden 2010-02-26 06:49:08 UTC
Created attachment 221257 [details]
the resulting build log
Comment 4 Geoff Madden 2010-02-26 06:50:26 UTC
Created attachment 221259 [details]
my environment file

hope these files are of some help
Comment 5 Ryan Hill (RETIRED) gentoo-dev 2010-07-01 04:07:14 UTC
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
Comment 6 Ryan Hill (RETIRED) gentoo-dev 2010-07-11 07:54:07 UTC
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.