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 1424704 - Test suite reports failed build of libpr18808.so and related tests
Summary: Test suite reports failed build of libpr18808.so and related tests
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: binutils
Version: 7.4
Hardware: aarch64
OS: Unspecified
unspecified
unspecified
Target Milestone: rc
: ---
Assignee: Nick Clifton
QA Contact: Miloš Prchlík
URL:
Whiteboard:
Depends On:
Blocks: 1425528
TreeView+ depends on / blocked
 
Reported: 2017-02-18 13:57 UTC by Miloš Prchlík
Modified: 2017-08-01 20:24 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: No Doc Update
Doc Text:
undefined
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-02-18 13:57:09 UTC
Description of problem:

Reported in summary log as:

ERROR: /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c: compilation failed
FAIL: Build libpr18808.so
FAIL: Build libpr18808.so
ERROR: /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr19784c.c: compilation failed
ERROR: /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr19784c.c: compilation failed
FAIL: Run pr18808


With more details in ld/ld.log:


aarch64-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches     -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -fPIC -O2 -g -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c -o tmpdir/pr18808b.o
Executing on host: sh -c {aarch64-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches     -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches   -fPIC -O2 -g -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c -o tmpdir/pr18808b.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c: In function 'bar':
/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c:18:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^
/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c: In function 'bar':
/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c:18:1: warning: control reaches end of non-void function [-Wreturn-type]
 }
 ^

ERROR: /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/pr18808b.c: compilation failed
aarch64-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/   -L=/usr/aarch64-redhat-linux/lib64 -L=/usr/lib64 -L=/usr/local/lib64 -L=/lib64 -L=/usr/aarch64-redhat-linux/lib -L=/usr/local/lib -L=/lib -L=/usr/lib  -o tmpdir/libpr18808.so  -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -shared tmpdir/pr18808b.o
Executing on host: sh -c {aarch64-redhat-linux-gcc -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/   -L=/usr/aarch64-redhat-linux/lib64 -L=/usr/lib64 -L=/usr/local/lib64 -L=/lib64 -L=/usr/aarch64-redhat-linux/lib -L=/usr/local/lib -L=/lib -L=/usr/lib  -o tmpdir/libpr18808.so  -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -shared tmpdir/pr18808b.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/root/rpmbuild/BUILD/binutils-2.27/ld/.libs/lt-ld-new: BFD version 2.27-2.base.el7 internal error, aborting at ./elfnn-aarch64.c:4958 in elf64_aarch64_final_link_relocate

/root/rpmbuild/BUILD/binutils-2.27/ld/.libs/lt-ld-new: Please report this bug.

collect2: error: ld returned 1 exit status
/root/rpmbuild/BUILD/binutils-2.27/ld/.libs/lt-ld-new: BFD version 2.27-2.base.el7 internal error, aborting at ./elfnn-aarch64.c:4958 in elf64_aarch64_final_link_relocate

/root/rpmbuild/BUILD/binutils-2.27/ld/.libs/lt-ld-new: Please report this bug.

collect2: error: ld returned 1 exit status
FAIL: Build libpr18808.so
FAIL: Build libpr18808.so

...

aarch64-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches     -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches    -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/dummy.c -o tmpdir/dummy.o
Executing on host: sh -c {aarch64-redhat-linux-gcc  -B/root/rpmbuild/BUILD/binutils-2.27/ld/tmpdir/ld/ -I/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches     -c -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches    -c /root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc/dummy.c -o tmpdir/dummy.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/root/rpmbuild/BUILD/binutils-2.27/ld/ld-new  -m aarch64linux  -o tmpdir/pr18808 -dynamic-linker /lib/ld-linux-aarch64.so.1 /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/crtbegin.o -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc tmpdir/pr18808a.o tmpdir/libpr18808.so tmpdir/dummy.o -ldl -ldl  -L/usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64 --start-group /usr/lib/gcc/aarch64-redhat-linux/4.8.5/libgcc.a /usr/lib/gcc/aarch64-redhat-linux/4.8.5/libgcc_eh.a -lc --end-group /usr/lib/gcc/aarch64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crtn.o
Executing on host: sh -c {/root/rpmbuild/BUILD/binutils-2.27/ld/ld-new  -m aarch64linux  -o tmpdir/pr18808 -dynamic-linker /lib/ld-linux-aarch64.so.1 /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crt1.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crti.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/crtbegin.o -L/root/rpmbuild/BUILD/binutils-2.27/ld/testsuite/ld-ifunc tmpdir/pr18808a.o tmpdir/libpr18808.so tmpdir/dummy.o -ldl -ldl  -L/usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64 --start-group /usr/lib/gcc/aarch64-redhat-linux/4.8.5/libgcc.a /usr/lib/gcc/aarch64-redhat-linux/4.8.5/libgcc_eh.a -lc --end-group /usr/lib/gcc/aarch64-redhat-linux/4.8.5/crtend.o /usr/lib/gcc/aarch64-redhat-linux/4.8.5/../../../../lib64/crtn.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
tmpdir/libpr18808.so: file not recognized: File format not recognized
tmpdir/libpr18808.so: file not recognized: File format not recognized
FAIL: Run pr18808


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

binutils-2.27-2.base.el7.aarch64 (scratbuild provided by Nick)
gcc-4.8.5-11.el7.aarch64


How reproducible:


Steps to Reproduce:
1.
2.
3.

Actual results:


Expected results:


Additional info:

Comment 1 Nick Clifton 2017-02-21 15:29:16 UTC
The ifunc support for the AArch64 architecture is still currently experimental.
Hence this test, and others, are not yet working.  I have added a patch to fix
the linker so that it will no longer trigger an abort, but this should not be
construed as indicating that ifunc support is fully functional.

Comment 3 Miloš Prchlík 2017-03-07 14:05:44 UTC
Verified with binutils-2.27-6.base.el7.

Comment 4 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.