Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 637066 - sys-devel/binutils-2.29.1-r1: tests fail: ERROR: /.../pr19784c.c: compilation failed (if -Wall or -Wreturn-type is in CFLAGS)
Summary: sys-devel/binutils-2.29.1-r1: tests fail: ERROR: /.../pr19784c.c: compilation...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-11-10 16:55 UTC by Toralf Förster
Modified: 2018-11-30 23:00 UTC (History)
0 users

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


Attachments
emerge-info.txt (emerge-info.txt,14.96 KB, text/plain)
2017-11-10 16:55 UTC, Toralf Förster
Details
emerge-history.txt (emerge-history.txt,25.44 KB, text/plain)
2017-11-10 16:55 UTC, Toralf Förster
Details
environment (environment,117.61 KB, text/plain)
2017-11-10 16:55 UTC, Toralf Förster
Details
etc.portage.tbz2 (etc.portage.tbz2,11.66 KB, application/x-bzip)
2017-11-10 16:55 UTC, Toralf Förster
Details
logs.tbz2 (logs.tbz2,297.96 KB, application/x-bzip)
2017-11-10 16:55 UTC, Toralf Förster
Details
sys-devel:binutils-2.29.1-r1:20171110-054904.log (sys-devel:binutils-2.29.1-r1:20171110-054904.log,553.41 KB, text/plain)
2017-11-10 16:55 UTC, Toralf Förster
Details
temp.tbz2 (temp.tbz2,55.76 KB, application/x-bzip)
2017-11-10 16:55 UTC, Toralf Förster
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2017-11-10 16:55:13 UTC
Running /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/tls.exp ...
Running /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/x86-64.exp ...
ERROR: /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c: compilation failed
ERROR: /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c: compilation failed
FAIL: Run pr19784a
FAIL: Run pr19784b

  -------------------------------------------------------------------

  This is an unstable amd64 chroot image at a tinderbox (==build bot)
  name: 13.0-desktop-plasma-systemd_test_20171109-193507

  -------------------------------------------------------------------

gcc-config -l:
 [1] x86_64-pc-linux-gnu-6.4.0 *

Available Python interpreters, in order of preference:
  [1]   python3.4
  [2]   python2.7 (fallback)




emerge -qpv sys-devel/binutils
[ebuild  NS   ] sys-devel/binutils-2.29.1-r1 [2.28.1] USE="cxx nls -multitarget -static-libs {-test} -vanilla"
Comment 1 Toralf Förster gentoo-dev 2017-11-10 16:55:16 UTC
Created attachment 503452 [details]
emerge-info.txt
Comment 2 Toralf Förster gentoo-dev 2017-11-10 16:55:20 UTC
Created attachment 503454 [details]
emerge-history.txt
Comment 3 Toralf Förster gentoo-dev 2017-11-10 16:55:23 UTC
Created attachment 503456 [details]
environment
Comment 4 Toralf Förster gentoo-dev 2017-11-10 16:55:27 UTC
Created attachment 503458 [details]
etc.portage.tbz2
Comment 5 Toralf Förster gentoo-dev 2017-11-10 16:55:30 UTC
Created attachment 503460 [details]
logs.tbz2
Comment 6 Toralf Förster gentoo-dev 2017-11-10 16:55:33 UTC
Created attachment 503462 [details]
sys-devel:binutils-2.29.1-r1:20171110-054904.log
Comment 7 Toralf Förster gentoo-dev 2017-11-10 16:55:37 UTC
Created attachment 503464 [details]
temp.tbz2
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2017-11-17 22:20:05 UTC
I can't reproduce this; tests run fine here.
Comment 9 Andreas K. Hüttel archtester gentoo-dev 2017-11-17 22:24:55 UTC
This probably fails because you have  -Wall in CFLAGS...


Executing on host: sh -c {x86_64-pc-linux-gnu-gcc  -B/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/build/ld/tmpdir/ld/ -I/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/t
estsuite/ld-x86-64 -g -O2 -pipe -march=native -Wall   -c -g -O2 -pipe -march=native -Wall -fPIC -O2 -g -c /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/p
r19784c.c -o tmpdir/pr19784c.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c: In function 'bar':
/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c: In function 'bar':
/var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c:11:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

ERROR: /var/tmp/portage/sys-devel/binutils-2.29.1-r1/work/binutils-2.29.1/ld/testsuite/ld-x86-64/pr19784c.c: compilation failed
UNRESOLVED: Build libpr19784a.so
Comment 10 Andreas K. Hüttel archtester gentoo-dev 2017-11-17 22:35:00 UTC
(In reply to Andreas K. Hüttel from comment #9)
> This probably fails because you have  -Wall in CFLAGS...

Confirmed. Fails if -Wall or -Wreturn-type is in CFLAGS. 

Not sure if we should strip that. If so then only for the tests.
In any case this is not a failure we should be particularly worried about.
Comment 11 Larry the Git Cow gentoo-dev 2018-11-30 23:00:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ba4d9e822666d49d04e7302d553ad4e6dce5158d

commit ba4d9e822666d49d04e7302d553ad4e6dce5158d
Author:     Andreas K. Hüttel <dilfridge@gentoo.org>
AuthorDate: 2018-11-30 23:00:20 +0000
Commit:     Andreas K. Hüttel <dilfridge@gentoo.org>
CommitDate: 2018-11-30 23:00:30 +0000

    sys-devel/binutils: Strip -Wall -Wreturn-type in tests, bug 637066
    
    Closes: https://bugs.gentoo.org/637066
    Package-Manager: Portage-2.3.52, Repoman-2.3.12
    Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>

 sys-devel/binutils/binutils-2.31.1-r1.ebuild | 4 ++++
 sys-devel/binutils/binutils-9999.ebuild      | 4 ++++
 2 files changed, 8 insertions(+)