Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 655834

Summary: sys-devel/binutils-2.30-r4 6 unexpected ld test failures on ppc
Product: Gentoo Linux Reporter: ernsteiswuerfel <erhard_f>
Component: Current packagesAssignee: Gentoo Toolchain Maintainers <toolchain>
Status: RESOLVED OBSOLETE    
Severity: normal CC: ppc
Priority: Normal Keywords: TESTFAILURE
Version: unspecified   
Hardware: PPC   
OS: Linux   
URL: https://sourceware.org/bugzilla/show_bug.cgi?id=23333
See Also: https://sourceware.org/bugzilla/show_bug.cgi?id=23333
https://bugs.gentoo.org/show_bug.cgi?id=662362
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
build.log
build.log (2.30-r3)
ld.log.xz
pr11138a.out
pr11138b.out
nm.out
build.log (2.31.1)
build.log (2.30-r4)

Description ernsteiswuerfel archtester 2018-05-16 00:00:25 UTC
Created attachment 531676 [details]
emerge --info

# emerge -pqv '=sys-devel/binutils-2.30-r2::gentoo'
[ebuild  NS   ] sys-devel/binutils-2.30-r2 [2.29.1-r1] USE="cxx nls -doc -multitarget -static-libs {-test}" 

Short summary of the failing tests:

FAIL: build-id-debuglink (copy debug info into debug directory)

		=== binutils Summary ===

# of expected passes		173
# of unexpected failures	1
# of unsupported tests		4
make[5]: *** [Makefile:1322: check-DEJAGNU] Error 1
make[5]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/binutils'
make[4]: *** [Makefile:1164: check-am] Error 2
make[4]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/binutils'
make[3]: *** [Makefile:1004: check-recursive] Error 1
make[3]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/binutils'
make[2]: *** [Makefile:1166: check] Error 2
make[2]: Leaving directory '/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/binutils'
make[1]: *** [Makefile:3628: check-binutils] Error 2
make[1]: Nothing to be done for 'check-target'.

		=== gas Summary ===

# of expected passes		252
# of expected failures		2
# of unsupported tests		2
../as-new 2.30.0


FAIL: ld-elf/ehdr_start-shared
FAIL: ld-elf/pr19539
FAIL: Run with pr11138-2.c libpr11138-1.so
FAIL: Run with libpr11138-1.so pr11138-2.c
FAIL: Check --gc-section
FAIL: Check --gc-section/-q
FAIL: Check --gc-section/-r/-e
FAIL: Check --gc-section/-r/-u
FAIL: Build pr22983
FAIL: ld-powerpc/dotsym3
FAIL: ld-powerpc/dotsym4
FAIL: ld-powerpc/ppc476-shared
FAIL: ld-powerpc/ppc476-shared2
XPASS: shared (non PIC, load offset)

		=== ld Summary ===

# of expected passes		1321
# of unexpected failures	13
# of unexpected successes	1
# of expected failures		4
# of untested testcases		1
# of unsupported tests		20
/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/ld-new 2.30.0
Comment 1 ernsteiswuerfel archtester 2018-05-16 00:00:52 UTC
Created attachment 531678 [details]
build.log
Comment 2 ernsteiswuerfel archtester 2018-06-22 11:15:03 UTC
-r3 improved the situation on ppc: only 8 test failures now

		=== ld Summary ===

# of expected passes		1330
# of unexpected failures	6
# of unexpected successes	1
# of expected failures		4
# of untested testcases		1
# of unsupported tests		20

FAIL: Run with pr11138-2.c libpr11138-1.so
FAIL: Run with libpr11138-1.so pr11138-2.c
FAIL: Check --gc-section
FAIL: Check --gc-section/-q
FAIL: Check --gc-section/-r/-e
FAIL: Check --gc-section/-r/-u


		=== gas Summary ===

# of expected passes		252
# of expected failures		2
# of unsupported tests		2

FAIL: Run with pr11138-2.c libpr11138-1.so
FAIL: Run with libpr11138-1.so pr11138-2.c
Comment 3 ernsteiswuerfel archtester 2018-06-22 11:20:17 UTC
[...]
Reading symbols from /var/tmp/portage/sys-devel/binutils-2.30-r3/work/build/ld/tmpdir/pr11138a...done.
[New LWP 1008]

warning: Could not load shared library symbols for tmpdir/libpr11138-1.so.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `tmpdir/pr11138a'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x006d5cfc in __GI__IO_wsetb (f=f@entry=0x7fbcb8 <_IO_stdout_>, b=b@entry=0x0, eb=eb@entry=0x0, a=a@entry=0) at wgenops.c:105
105	  if (f->_wide_data->_IO_buf_base && !(f->_flags2 & _IO_FLAGS2_USER_WBUF))

[...]
Reading symbols from /var/tmp/portage/sys-devel/binutils-2.30-r3/work/build/ld/tmpdir/pr11138b...done.
[New LWP 1080]

warning: Could not load shared library symbols for tmpdir/libpr11138-1.so.
Do you need "set solib-search-path" or "set sysroot"?
Core was generated by `tmpdir/pr11138b'.
Program terminated with signal SIGSEGV, Segmentation fault.
#0  0x0063acfc in __GI__IO_wsetb (f=f@entry=0x760cb8 <_IO_stdout_>, b=b@entry=0x0, eb=eb@entry=0x0, a=a@entry=0) at wgenops.c:105
105	  if (f->_wide_data->_IO_buf_base && !(f->_flags2 & _IO_FLAGS2_USER_WBUF))
Comment 4 ernsteiswuerfel archtester 2018-06-22 11:30:46 UTC
Created attachment 536772 [details]
build.log (2.30-r3)
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2018-06-22 17:09:44 UTC
-r2 contained still Gentoo-specific problems in the testsuite.
These should be gone in -r3, i.e. what's left is (hopefully?) real.
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2018-06-22 17:14:37 UTC
In the build tree there should be *.out files with the same name as the failing tests... These would be very helpful here.
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2018-06-22 17:17:54 UTC
(Side note, the gas summary looks OK, I think you mixed up something there.)
Comment 8 ernsteiswuerfel archtester 2018-06-24 13:54:23 UTC
Yep, thanks for your correction. Only 6 unexpected ld failures, the rest is fine.
Comment 9 ernsteiswuerfel archtester 2018-06-24 13:55:07 UTC
Created attachment 537028 [details]
ld.log.xz
Comment 10 ernsteiswuerfel archtester 2018-06-24 13:56:11 UTC
Created attachment 537030 [details]
pr11138a.out
Comment 11 ernsteiswuerfel archtester 2018-06-24 13:56:26 UTC
Created attachment 537032 [details]
pr11138b.out
Comment 12 ernsteiswuerfel archtester 2018-06-24 13:56:43 UTC
Created attachment 537034 [details]
nm.out
Comment 13 ernsteiswuerfel archtester 2018-07-28 20:24:06 UTC
Created attachment 541550 [details]
build.log (2.31.1)

The 6 ld tests still fail on 2.31.1.
Comment 14 ernsteiswuerfel archtester 2018-11-09 12:14:49 UTC
Created attachment 554603 [details]
build.log (2.30-r4)

No change with binutils-2.30-r4.

		=== ld Summary ===

# of expected passes		1330
# of unexpected failures	6
# of unexpected successes	1
# of expected failures		4
# of untested testcases		1
# of unsupported tests		20

FAIL: Run with pr11138-2.c libpr11138-1.so
FAIL: Run with libpr11138-1.so pr11138-2.c
FAIL: Check --gc-section
FAIL: Check --gc-section/-q
FAIL: Check --gc-section/-r/-e
FAIL: Check --gc-section/-r/-u
Comment 15 Andreas K. Hüttel archtester gentoo-dev 2019-04-05 22:33:41 UTC
Closing, continuing with 2.31