RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 1447209 - Test suite reports failed "weak undefined" test case
Summary: Test suite reports failed "weak undefined" test case
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.4
Hardware: s390x
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2017-05-02 06:32 UTC by Miloš Prchlík
Modified: 2017-08-01 20:24 UTC (History)
8 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2017-08-01 20:24:09 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2017:1864 0 normal SHIPPED_LIVE binutils bug fix update 2017-08-01 18:24:14 UTC

Description Miloš Prchlík 2017-05-02 06:32:23 UTC
Description of problem:

s390x-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro -I/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURC
E=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12   -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack
-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12 -fPIC -c /root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie/weakundef.c -o tmpdir/weak
undef.o
Executing on host: sh -c {s390x-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro -I/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -O2 -g -pipe 
-Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12   -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOU
RCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12 -fPIC -c /root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie/
weakundef.c -o tmpdir/weakundef.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro   -L/usr/s390x-redhat-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/s390x-redhat-linu
x/lib -L/usr/local/lib -L/lib -L/usr/lib  -o tmpdir/weakundef -L/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -pie tmpdir/weakundef.o
Executing on host: sh -c {s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro   -L/usr/s390x-redhat-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib6
4 -L/usr/s390x-redhat-linux/lib -L/usr/local/lib -L/lib -L/usr/lib  -o tmpdir/weakundef -L/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -pie tmpdir/weakundef.o 2>&1}  /dev/null ld
.tmp (timeout = 300)
spawn [open ...]
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: tmpdir/weakundef.o: `undef_func' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -
fPIC ?)
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: final link failed: Bad value
collect2: error: ld returned 1 exit status
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: tmpdir/weakundef.o: `undef_func' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -
fPIC ?)
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: final link failed: Bad value
collect2: error: ld returned 1 exit status
FAIL: weak undefined
s390x-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro -I/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12   -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12 -fPIC -c /root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie/weakundef-data.c -o tmpdir/weakundef-data.o
Executing on host: sh -c {s390x-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro -I/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12   -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -m64 -march=z196 -mtune=zEC12 -fPIC -c /root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie/weakundef-data.c -o tmpdir/weakundef-data.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro   -L/usr/s390x-redhat-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/s390x-redhat-linux/lib -L/usr/local/lib -L/lib -L/usr/lib  -o tmpdir/weakundef-data -L/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -pie tmpdir/weakundef-data.o
Executing on host: sh -c {s390x-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.25.1/ld/tmpdir/ld/ -Wl,-z,norelro   -L/usr/s390x-redhat-linux/lib64 -L/usr/lib64 -L/usr/local/lib64 -L/lib64 -L/usr/s390x-redhat-linux/lib -L/usr/local/lib -L/lib -L/usr/lib  -o tmpdir/weakundef-data -L/root/rpmbuild/BUILD/binutils-2.25.1/ld/testsuite/ld-pie -pie tmpdir/weakundef-data.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: tmpdir/weakundef-data.o: `undef_data' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?)
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: final link failed: Bad value
collect2: error: ld returned 1 exit status
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: tmpdir/weakundef-data.o: `undef_data' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?)
/root/rpmbuild/BUILD/binutils-2.25.1/ld/.libs/lt-ld-new: final link failed: Bad value
collect2: error: ld returned 1 exit status
FAIL: weak undefined data




Version-Release number of selected component (if applicable):

binutils-2.25.1-27.base.el7.s390x
gcc-4.8.5-11.el7.s390x


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Vitezslav Humpa 2017-05-03 15:30:14 UTC
I am hitting same issue, when trying to rebuild xorg-x11-server in order to obtain the xorg-x11-server-Xorg for s390x desktop test automation.

Traced the issue to the binutils and this bug.

This is with binutils-2.25.1-27.base.el7.s390x which has replaced the newer version of binutils-2.27-7.base.el7.s390x present in previous 7.4 nightlies... Not sure what justified the downgrade. Anyhoo, if we update the binutils back to binutils-2.27-7.base.el7.s390x, the xorg compiles again.

error log:
libtool: link: gcc -std=gnu99 -DHAVE_DIX_CONFIG_H -Wall -Wpointer-arith -Wmissing-declarations -Wformat=2 -Wstrict-prototypes -Wmissing-prototypes -Wnested-externs -Wbad-function-cast -Wold-style-definition -Wdeclaration-after-statement -Wunused -Wuninitialized -Wshadow -Wmissing-noreturn -Wmissing-format-attribute -Wredundant-decls -Wlogical-op -Werror=implicit -Werror=nonnull -Werror=init-self -Werror=main -Werror=missing-braces -Werror=sequence-point -Werror=return-type -Werror=trigraphs -Werror=array-bounds -Werror=write-strings -Werror=address -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast -fno-strict-aliasing -fno-strict-aliasing -D_DEFAULT_SOURCE -D_BSD_SOURCE -DHAS_FCHOWN -DHAS_STICKY_DIR_BIT -I/usr/include/pixman-1 -I/usr/include/libdrm -I/usr/include/freetype2 -I/usr/include/X11/dri -I../../include -I../../include -I../../Xext -I../../composite -I../../damageext -I../../xfixes -I../../Xi -I../../mi -I../../miext/sync -I../../miext/shadow -I../../miext/damage -I../../render -I../../randr -I../../fb -I../../dbe -I../../present -fvisibility=hidden -DHAVE_XORG_CONFIG_H -fvisibility=hidden -I/usr/include/libdrm -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -m64 -march=z196 -mtune=zEC12 -pthread -Wl,-z -Wl,now -pie -Wl,-z -Wl,relro -o Xorg sdksyms.o -Wl,--export-dynamic  ../../dix/.libs/libmain.a ../../dix/.libs/libdix.a loader/.libs/libloader.a common/.libs/libcommon.a -ludev os-support/.libs/libxorgos.a parser/.libs/libxf86config.a dixmods/.libs/libdixmods.a modes/.libs/libxf86modes.a ramdac/.libs/libramdac.a ddc/.libs/libddc.a i2c/.libs/libi2c.a ../../composite/.libs/libcomposite.a ../../xfixes/.libs/libxfixes.a ../../Xext/.libs/libXext.a -lselinux ../../dbe/.libs/libdbe.a ../../record/.libs/librecord.a ../../randr/.libs/librandr.a ../../render/.libs/librender.a ../../damageext/.libs/libdamageext.a ../../present/.libs/libpresent.a ../../miext/damage/.libs/libdamage.a ../../Xi/.libs/libXi.a ../../xkb/.libs/libxkb.a dixmods/.libs/libxorgxkb.a dri/.libs/libdri.a dri2/.libs/libdri2.a ../../dri3/.libs/libdri3.a ../../miext/sync/.libs/libsync.a ../../mi/.libs/libmi.a ../../os/.libs/libos.a -lcrypto -ldl ../../Xext/.libs/libXvidmode.a -lpciaccess -ldrm -lpixman-1 -lXfont2 -lXau -lsystemd -lxshmfence -lXdmcp -lpam_misc -lpam -laudit -lm -pthread
/bin/ld: ../../os/.libs/libos.a(utils.o): `misc_conv@@LIBPAM_MISC_1.0' non-PLT reloc for symbol defined in shared library and accessed from executable (rebuild file with -fPIC ?)
/bin/ld: final link failed: Bad value
collect2: error: ld returned 1 exit status
make[4]: *** [Xorg] Error 1
make[4]: Leaving directory `/home/test/rpmbuild/BUILD/xorg-server-1.19.3/hw/xfree86'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/home/test/rpmbuild/BUILD/xorg-server-1.19.3/hw/xfree86'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/home/test/rpmbuild/BUILD/xorg-server-1.19.3/hw/xfree86'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/test/rpmbuild/BUILD/xorg-server-1.19.3/hw'
make: *** [all-recursive] Error 1
error: Bad exit status from /var/tmp/rpm-tmp.SGb6yh (%build)

Comment 2 Radovan Sroka 2017-05-04 12:08:50 UTC
This is also affecting sudo. I'm not able to make a new build.

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13133749

Comment 3 Jakub Jelen 2017-05-04 13:22:35 UTC
Affects also OpenSSH rebuild:

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13134390

Is there estimated timeframe when it will get fixed?

Comment 4 Martin Cermak 2017-05-04 13:56:18 UTC
The binutils-2.25.1-27.base.el7 is now in the brew buildroot.

Comment 5 Jakub Jelen 2017-05-04 14:16:05 UTC
(In reply to Martin Cermak from comment #4)
> The binutils-2.25.1-27.base.el7 is now in the brew buildroot.

Yes. It is. But it is the same version that was failing (and still is).

Comment 6 Nick Clifton 2017-05-04 14:41:15 UTC
This problem was caused by the fix for BZ 1406430.  Since that BZ is an enhancement request, whereas this BZ represents a build failure, I have updated the binutils rpm and disabled the 1406430 fix.

Please try binutils-2.25.1-30.base.el7

Comment 8 Martin Cermak 2017-05-05 07:03:00 UTC
Just tried out the sudo and openssh rebuild on s390x.  Reproduced the build failures with binutils-2.25.1-27.base.el7, verified the build success with binutils-2.25.1-30.base.el7.

Comment 9 Martin Cermak 2017-05-05 08:03:21 UTC
Pushed binutils-2.25.1-27.base.el7 to the buildroot and tested the rebuilds:

https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13138008
https://brewweb.engineering.redhat.com/brew/taskinfo?taskID=13138009

Looks OK.

Comment 10 Miloš Prchlík 2017-05-09 11:03:34 UTC
Verified with build binutils-2.25.1-30.base.el7.s390x.

Comment 11 errata-xmlrpc 2017-08-01 20:24:09 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://access.redhat.com/errata/RHBA-2017:1864


Note You need to log in before you can comment on or make changes to this bug.