Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 657224 - sys-devel/binutils-2.30-r2 fails ld-aarch64/pr22983 and dt_textrel tests
Summary: sys-devel/binutils-2.30-r2 fails ld-aarch64/pr22983 and dt_textrel tests
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo Toolchain Maintainers
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2018-06-03 07:36 UTC by Mart Raudsepp
Modified: 2021-01-10 19:27 UTC (History)
2 users (show)

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


Attachments
ld test-suite log (ld.log.xz,81.84 KB, application/x-xz)
2018-06-03 07:37 UTC, Mart Raudsepp
Details
build.log (build.log,534.63 KB, text/plain)
2018-06-03 07:38 UTC, Mart Raudsepp
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mart Raudsepp gentoo-dev 2018-06-03 07:36:09 UTC
binutils 2.30-r2 and 2.29-r1 fails ld-aarch64/pr22764 test in addition to the failures common with amd64 and others (bug 654362, bug 634348, etc). There seem to be test failures I can't find a bug report for, but they don't feel as arch specific.

Note that there's a patch/0022-PR22764-LD-AARCH64-Allow-R_AARCH64_ABS16-and-R_AARCH.patch that's precisely about the same PR already.

Based on very quick look at the log, it seems that it's about creating a TEXTREL while it shouldn't be.
Comment 1 Mart Raudsepp gentoo-dev 2018-06-03 07:37:23 UTC
Created attachment 534606 [details]
ld test-suite log

ld.log (xz compressed) that seems to have details of the failure (output vs expectation of no output)
Comment 2 Mart Raudsepp gentoo-dev 2018-06-03 07:38:32 UTC
Created attachment 534608 [details]
build.log

build.log. You can see the other test failures here, to see if anything else is not known yet from other arches
Comment 3 Mart Raudsepp gentoo-dev 2018-06-03 07:38:53 UTC
Portage 2.3.40 (python 2.7.14-final-0, default/linux/arm64/17.0/systemd, gcc-6.4.0, glibc-2.25-r11, 4.9.0-4-arm64 aarch64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-4.9.0-4-arm64-aarch64-with-gentoo-2.4.1
KiB Mem:   131544964 total,  72382800 free
KiB Swap:    3321056 total,   3320684 free
Timestamp of repository gentoo: Sun, 03 Jun 2018 06:30:01 +0000
Head commit of repository gentoo: 3e8a3b48c726b99015a0411cd1a59d6367c7f9d8
sh bash 4.4_p12
ld GNU ld (Gentoo 2.29.1 p3) 2.29.1
ccache version 3.3.4 [disabled]
app-shells/bash:          4.4_p12::gentoo
dev-lang/perl:            5.24.3-r1::gentoo
dev-lang/python:          2.7.14-r1::gentoo, 3.5.5::gentoo
dev-util/ccache:          3.3.4-r1::gentoo
dev-util/cmake:           3.9.6::gentoo
dev-util/pkgconfig:       0.29.2::gentoo
sys-apps/baselayout:      2.4.1-r2::gentoo
sys-apps/openrc:          0.34.11::gentoo
sys-apps/sandbox:         2.13::gentoo
sys-devel/autoconf:       2.69-r4::gentoo
sys-devel/automake:       1.9.6-r5::gentoo, 1.11.6-r3::gentoo, 1.12.6-r2::gentoo, 1.15.1-r2::gentoo
sys-devel/binutils:       2.29.1-r1::gentoo
sys-devel/gcc:            6.4.0-r1::gentoo
sys-devel/gcc-config:     1.8-r1::gentoo
sys-devel/libtool:        2.4.6-r3::gentoo
sys-devel/make:           4.2.1::gentoo
sys-kernel/linux-headers: 4.13::gentoo (virtual/os-headers)
sys-libs/glibc:           2.25-r11::gentoo
Repositories:

gentoo
    location: /usr/portage
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-extra-opts: 
    sync-rsync-verify-max-age: 24

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-O2"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY PERL5LIB PERL5OPT PERLPREFIX PERL_CORE PERL_MB_OPT PERL_MM_OPT XAUTHORITY XDG_CACHE_HOME XDG_CONFIG_HOME XDG_DATA_HOME XDG_RUNTIME_DIR"
FCFLAGS="-O2"
FEATURES="assume-digests binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles merge-sync multilib-strict news parallel-fetch preserve-libs protect-owned sandbox sfperms strict test unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2"
GENTOO_MIRRORS="http://gentoo.osuosl.org/"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j99"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --omit-dir-times --compress --force --whole-file --delete --stats --human-readable --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --exclude=/.git"
PORTAGE_TMPDIR="/var/tmp"
USE="acl arm64 berkdb bzip2 cli crypt cxx dri fortran gdbm iconv icu idn ipv6 modules multilib ncurses nls nptl openmp pam pcre readline seccomp ssl systemd tcpd udev unicode xattr zlib" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="karbon plan sheets stage words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="edsp neon thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput keyboard mouse" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php5-6 php7-0" POSTGRES_TARGETS="postgres9_5" PYTHON_SINGLE_TARGET="python3_5" PYTHON_TARGETS="python2_7 python3_5" RUBY_TARGETS="ruby21 ruby23" USERLAND="GNU" VIDEO_CARDS="fbdev dummy v4l" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

=================================================================
                        Package Settings
=================================================================

sys-devel/binutils-2.29.1-r1::gentoo was built with the following:
USE="cxx nls -multitarget -static-libs -test -vanilla"
Comment 4 Mart Raudsepp gentoo-dev 2018-06-03 07:46:39 UTC
FAIL: ld-aarch64/pr22764
is actually a new failure compared to 2.29.
I was mixing things up with the ld-aarch64/dt_textrel failure that happens in 2.29 as well. Both failures seem to be about unexpected TEXTREL warning though.
Comment 5 Andreas K. Hüttel archtester gentoo-dev 2018-06-03 14:14:25 UTC
                === ld Summary ===

# of expected passes            1361
# of unexpected failures        5
# of unexpected successes       1
# of expected failures          10
# 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


The failures: 
FAIL: ld-aarch64/pr22764
FAIL: ld-aarch64/dt_textrel
FAIL: ld-elf/ehdr_start-shared
FAIL: ld-elf/pr19539
FAIL: Build pr22983
Comment 6 Andreas K. Hüttel archtester gentoo-dev 2018-06-03 14:20:52 UTC
> FAIL: ld-aarch64/pr22764

With high probability caused by Gentoo changes in default settings. (We force on more textrel warnings as default, which makes tests fail that do not expect that output. In most cases I already regex out the additional warnings in the test library. What causes the textrels to be created, and whether they are incorrect in the context, is a different question, but upstream doesnt test for that.)

> FAIL: ld-aarch64/dt_textrel

Dito.

> FAIL: ld-elf/ehdr_start-shared

Dito.

> FAIL: ld-elf/pr19539

Dito

> FAIL: Build pr22983

This is something else (and occurs also on amd64 afaicr).
Comment 7 Andreas K. Hüttel archtester gentoo-dev 2018-06-03 14:31:04 UTC
> 
> > FAIL: Build pr22983
> 
> This is something else (and occurs also on amd64 afaicr).

aarch64-unknown-linux-gnu-gcc  -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/ -I/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -g -O2 -pipe   -c -g -O2 -pipe -flto -c /var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin/pr22983a.c -o tmpdir/pr22983a.o
Executing on host: sh -c {aarch64-unknown-linux-gnu-gcc  -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/ -I/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -g -O2 -pipe   -c -g -O2 -pipe -flto -c /var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin/pr22983a.c -o tmpdir/pr22983a.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
aarch64-unknown-linux-gnu-gcc  -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/ -I/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -g -O2 -pipe   -c -g -O2 -pipe -flto -c /var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin/pr22983b.c -o tmpdir/pr22983b.o
Executing on host: sh -c {aarch64-unknown-linux-gnu-gcc  -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/ -I/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -g -O2 -pipe   -c -g -O2 -pipe -flto -c /var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin/pr22983b.c -o tmpdir/pr22983b.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
aarch64-unknown-linux-gnu-gcc -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/   -L/usr/aarch64-unknown-linux-gnu/lib64 -L/usr/lib64/binutils/aarch64-unknown-linux-gnu/2.3064 -L/usr/local/lib64 -L/lib64 -L/usr/lib64 -L/usr/aarch64-unknown-linux-gnu/lib -L/usr/lib64/binutils/aarch64-unknown-linux-gnu/2.30 -L/usr/local/lib -L/lib -L/usr/lib -Wl,--hash-style=sysv  -o tmpdir/pr22983  -L/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -Wl,--dynamic-list,pr22983.t tmpdir/pr22983a.o tmpdir/pr22983b.o
Executing on host: sh -c {aarch64-unknown-linux-gnu-gcc -B/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/tmpdir/ld/   -L/usr/aarch64-unknown-linux-gnu/lib64 -L/usr/lib64/binutils/aarch64-unknown-linux-gnu/2.3064 -L/usr/local/lib64 -L/lib64 -L/usr/lib64 -L/usr/aarch64-unknown-linux-gnu/lib -L/usr/lib64/binutils/aarch64-unknown-linux-gnu/2.30 -L/usr/local/lib -L/lib -L/usr/lib -Wl,--hash-style=sysv  -o tmpdir/pr22983  -L/var/tmp/portage/sys-devel/binutils-2.30-r2/work/binutils-2.30/ld/testsuite/ld-plugin -Wl,--dynamic-list,pr22983.t tmpdir/pr22983a.o tmpdir/pr22983b.o 2>&1}  /dev/null ld.tmp (timeout = 300)
spawn [open ...]
/var/tmp/portage/sys-devel/binutils-2.30-r2/work/build/ld/../binutils/readelf --dyn-syms --wide tmpdir/pr22983 > dump.out
regexp_diff match failure
regexp "^ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +OBJECT +GLOBAL +DEFAULT +[0-9]+ +var_attr_used_disabled$"
line   "    11: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _Jv_RegisterClasses"
regexp_diff match failure
regexp "^ +[0-9]+: +[0-9a-f]+ +[0-9a-f]+ +FUNC +GLOBAL +DEFAULT +[0-9]+ +func_attr_used_disabled$"
line   "    13: 0000000000000000     0 NOTYPE  WEAK   DEFAULT  UND _ITM_registerTMCloneTable"
FAIL: Build pr22983
Comment 8 Andreas K. Hüttel archtester gentoo-dev 2021-01-10 19:27:41 UTC
Please feel free to open a new bug with recent versions.