Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 714114 - net-libs/libaccounts-glib-1.24-r1 error adding symbols: file in wrong format
Summary: net-libs/libaccounts-glib-1.24-r1 error adding symbols: file in wrong format
Status: RESOLVED DUPLICATE of bug 714058
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-03-24 00:17 UTC by Alex Barker
Modified: 2020-03-24 11:29 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,32.56 KB, text/x-log)
2020-03-24 00:17 UTC, Alex Barker
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alex Barker 2020-03-24 00:17:01 UTC
Created attachment 624806 [details]
build.log

Hi,

I seriously doubt this bug is valid, but I am out of ideas for why this isnt working. I recently switched to llvm as my default compiler and added lto and gold.  The vast majority of packages build without issue and those that have issues work with package.env entries to force gcc/bfd and disable lto.  Everything appears to be fine, however, I am seeing strange issues with net-libs/libaccounts-glib-1.24-r1:

FAILED: tests/accounts-glib-testsuite 
gcc  -o tests/accounts-glib-testsuite 'tests/59830eb@@accounts-glib-testsuite@exe/meson-generated_.._test-manager.c.o' 'tests/59830eb@@accounts-glib-testsuite@exe/check_ag.c.o' -Wl,--as-needed -Wl,--no-undefined -march=native -mtune=native -O2 -ftree-vectorize -flto -fomit-frame-pointer -pipe -fno-lto -Wl,-O2 -Wl,--as-needed -flto -fno-lto -Wl,-fuse-ld=bfd -Wl,--start-group libaccounts-glib/libaccounts-glib.so.1 /usr/lib64/libglib-2.0.so /usr/lib64/libgio-2.0.so /usr/lib64/libgobject-2.0.so /usr/lib64/libxml2.so /usr/lib64/libsqlite3.so /usr/lib/libcheck.so -Wl,--end-group '-Wl,-rpath,$ORIGIN/../libaccounts-glib' -Wl,-rpath-link,/var/tmp/portage/net-libs/libaccounts-glib-1.24-r1/work/libaccounts-glib-1.24-python3_6/libaccounts-glib
/usr/lib/gcc/x86_64-pc-linux-gnu/9.3.0/../../../../x86_64-pc-linux-gnu/bin/ld.bfd: /usr/lib/libcheck.so: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
ninja: build stopped: subcommand failed.

I am not sure why this package is building tests for normal install or why it wont build with gcc and -fno-lto + -Wl,-fuse-ld=bfd.  I tried rebuilding the so's being linked against with the same options, but they all build fine and do not resolve the issue with libaccounts-glib.
Comment 1 Alex Barker 2020-03-24 00:25:44 UTC
plutonium244 /etc/portage/env # cat compiler-gcc.conf 
CC="gcc"
CXX="g++"
AR="gcc-ar"
NM="gcc-nm"
RANLIB="gcc-ranlib"

plutonium244 /etc/portage/env # cat no-lto.conf 
CFLAGS="${CFLAGS} -fno-lto"
CXXFLAGS="${CXXFLAGS} -fno-lto"
LDFLAGS="${LDFLAGS} -fno-lto"

plutonium244 /etc/portage/env # cat no-gold.conf 
#EXTRA_ECONF="--enable-gold=no"
#LD="ld.bfd"
LDFLAGS="${LDFLAGS} -Wl,-fuse-ld=bfd"

plutonium244 /etc/portage/env # emerge --info
Portage 2.3.94 (python 3.6.10-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.3.0, glibc-2.30-r6, 5.5.9-gentoo x86_64)
=================================================================
System uname: Linux-5.5.9-gentoo-x86_64-AMD_Ryzen_7_3700X_8-Core_Processor-with-gentoo-2.7
KiB Mem:    32843644 total,  13391612 free
KiB Swap:   21073912 total,  19727864 free
Timestamp of repository gentoo: Mon, 23 Mar 2020 00:45:01 +0000
Head commit of repository gentoo: 5cd6c37430359b936182b26f47605e396043239c
Head commit of repository crossdev-apple-overlay: f5cfd4dab017525f42db9965703e9ae85ad9e528

sh bash 5.0_p16
ld GNU gold (Gentoo 2.34 p1 2.34.0) 1.16
app-shells/bash:          5.0_p16::gentoo
dev-java/java-config:     2.2.0-r4::gentoo
dev-lang/perl:            5.30.1::gentoo
dev-lang/python:          2.7.17-r1::gentoo, 3.6.10::gentoo, 3.7.7::gentoo, 3.8.2::gentoo
dev-util/cmake:           3.17.0::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1::gentoo
sys-apps/sandbox:         2.18::gentoo
sys-devel/autoconf:       2.13-r1::gentoo, 2.69-r5::gentoo
sys-devel/automake:       1.16.2::gentoo
sys-devel/binutils:       2.34::gentoo
sys-devel/gcc:            9.3.0::gentoo
sys-devel/gcc-config:     2.2.1::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.5::gentoo (virtual/os-headers)
sys-libs/glibc:           2.30-r6::gentoo
Repositories:

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

local_overlay
    location: /usr/local/portage
    masters: gentoo
    priority: 0

what4-java
    location: /home/kwhat/projects/gentoo-what4-java-overlay
    masters: gentoo
    priority: 1

dotnet
    location: /var/lib/layman/dotnet
    masters: gentoo
    priority: 50

miramir
    location: /var/lib/layman/miramir
    masters: gentoo
    priority: 50

torbrowser
    location: /var/lib/layman/torbrowser
    masters: gentoo
    priority: 50

crossdev-apple-overlay
    location: /var/db/repos/crossdev-apple-overlay
    sync-type: git
    sync-uri: git://github.com/kwhat/crossdev-apple-overlay
    masters: gentoo
    priority: 90

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CC="clang"
CFLAGS="-march=native -mtune=native -O2 -ftree-vectorize -flto -fomit-frame-pointer -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/lib64/libreoffice/program/sofficerc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.6/conf"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.2/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/cgi-php7.2/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cli-php7.2/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXX="clang++"
CXXFLAGS="-march=native -mtune=native -O2 -ftree-vectorize -flto -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news nostrip parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="en_US.UTF-8"
LDFLAGS="-Wl,-O2 -Wl,--as-needed -flto"
MAKEOPTS="-j16"
PKGDIR="/usr/portage/packages"
PORTAGE_BINHOST="http://tinderbox.dev.gentoo.org/default-linux/amd64/"
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="X a52 aac acl acpi alsa amd64 berkdb branding bzip2 cairo cdda cdr clang cli consolekit crypt cups curl custom-cflags dbus declarative default-gold dri dts dvd dvdr emboss encode exif fat ffmpeg flac fortran ftp gdbm gif gold gpm gstreamer gtk gtk3 haptic hfs iconv icu javafx jpeg kde kipi kwallet lcms libnotify libtirpc lm_sensors lto lz4 lzma mad mng mp3 mp4 mpeg multilib mysql ncurses nls nptl ntfs offensive ogg opengl openmp pam pango pcre pdf pdo phonon pic plasma png policykit ppds qml qt5 readline sdl seccomp spell split-usr sqlite ssl startup-notification suid svg system-sqlite taglib tcpd theora threads tiff truetype udev udisks unicode upower usb v4l vaapi vdpau vorbis wavpack widgets wxwidgets x264 xattr xcb xcomposite xinerama xml xv xvid xvmc zip zlib" ABI_X86="32 64" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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 sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="avx avx2 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU BPF X86 ARM PowerPC Sparc" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6" RUBY_TARGETS="ruby26 ruby27" SANE_BACKENDS="artec_eplus48u" USERLAND="GNU" VIDEO_CARDS="amdgpu radeon radeonsi" 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:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Andreas Sturmlechner gentoo-dev 2020-03-24 11:25:00 UTC
Version of dev-libs/check?
Comment 3 Andreas Sturmlechner gentoo-dev 2020-03-24 11:25:58 UTC
(In reply to Alex Barker from comment #0)
> I recently switched to llvm as my default compiler and added lto and gold.
Please be prepared to manually fix patches with such a setup (and send them upstream).
Comment 4 Andreas Sturmlechner gentoo-dev 2020-03-24 11:29:05 UTC

*** This bug has been marked as a duplicate of bug 714058 ***