Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 833344 - net-misc/smbc-1.2.2-r3 smbc-smbc.o: error adding symbols: file in wrong format
Summary: net-misc/smbc-1.2.2-r3 smbc-smbc.o: error adding symbols: file in wrong format
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: ARM64 Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-02-14 16:23 UTC by korte
Modified: 2022-07-29 21:16 UTC (History)
2 users (show)

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


Attachments
build.log filtered with ansifilter (build.log,12.79 KB, text/x-log)
2022-02-14 16:24 UTC, korte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2022-02-14 16:23:35 UTC
net-misc/smbc-1.2.2-r3 fails to emerge on a Pi400. Maybe this is related to https://bugs.gentoo.org/731698 . Even w/o ccache it happens.

aarch64-unknown-linux-gnu-gcc -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -Wall  -O2 -pipe -march=native  -Wl,-O1 -Wl,--as-needed -o smbc smbc-smbc.o smbc-smb-pack.o smbc-fnet.o smbc-ierror.o smbc-find-index-manage.o smbc-debug.o smbc-dulist.o smbc-winpopup.o smbc-convert.o smbc-convertm.o smbc-bookmarks.o smbc-ttlist.
o smbc-static_str.o smbc-windows.o smbc-downloadlist.o smbc-smb-ext.o  -lsmbclient -lncurses -lpopt -lm
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: relocations in generic ELF (EM: 3)
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: relocations in generic ELF (EM: 3)
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.2.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: error adding symbols: file in wrong format
collect2: error: ld returned 1 exit status
make[2]: *** [Makefile:427: smbc] Error 1
make[2]: Leaving directory '/var/tmp/portage/net-misc/smbc-1.2.2-r3/work/smbc-1.2.2/src'
make[1]: *** [Makefile:470: all-recursive] Error 1
make[1]: Leaving directory '/var/tmp/portage/net-misc/smbc-1.2.2-r3/work/smbc-1.2.2'
make: *** [Makefile:388: all] Error 2
 * ERROR: net-misc/smbc-1.2.2-r3::gentoo failed (compile phase):
 *   emake failed


Reproducible: Always




Portage 3.0.30 (python 3.9.9-final-0, default/linux/arm64/17.0, gcc-11.2.0, glibc-2.33-r7, 5.10.63-v8 aarch64)
=================================================================
System uname: Linux-5.10.63-v8-aarch64-with-glibc2.33
KiB Mem:     3831552 total,    582584 free
KiB Swap:    4194300 total,   3565244 free
Timestamp of repository gentoo: Mon, 14 Feb 2022 10:00:01 +0000
Head commit of repository gentoo: bdbbbe5479959d2a4273e30edf1e7f088757d3c0
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p0) 2.37
distcc 3.4 aarch64-unknown-linux-gnu [disabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils:        1.3.3::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:	   2.3.1::gentoo
dev-lang/perl:             5.34.0-r6::gentoo
dev-lang/python:           3.8.12_p1::gentoo, 3.9.9-r1::gentoo, 3.10.0_p1-r1::gentoo
dev-lang/rust:             1.58.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.2::gentoo
dev-util/meson:            0.60.3::gentoo
sys-apps/baselayout:	   2.7-r3::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.25::gentoo
sys-devel/autoconf:        2.13-r1::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.4::gentoo
sys-devel/binutils:        2.37_p1::gentoo
sys-devel/binutils-config: 5.4::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.0::gentoo
sys-devel/gcc:             11.2.0::gentoo
sys-devel/gcc-config:	   2.5-r1::gentoo
sys-devel/libtool:         2.4.6-r6::gentoo
sys-devel/lld:             13.0.0::gentoo
sys-devel/llvm:            11.1.0::gentoo, 12.0.1::gentoo, 13.0.0::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.33-r7::gentoo
Repositories:

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

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

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

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

ACCEPT_KEYWORDS="arm64"
ACCEPT_LICENSE="* @EULA"
CBUILD="aarch64-unknown-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="aarch64-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /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"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN GOPATH 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 -march=native"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache clean-logs compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned qa-unresolved-soname-
deps sandbox sfperms split-log strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
MAKEOPTS="-j2"
PKGDIR="/var/cache/binpkgs"
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"
SHELL="/bin/bash"
USE="24-bit-color 256-color X \ a52 aac aalib acl aften alsa ap apng arm64 avif bittorrent blake2 bluetooth bogofilter brotli bzip2 cacert cairo cdda cddb cli codec2 console crypt cups curl dav1d dbus dcaenc dri dts egl elogind encode evdev exif faac faad fasteap fdk ffmpeg flac fortran gd gdbm gentoo-vm ghcbootstrap
gif gles1 gles2 gme gpg gstreamer gtk gtk2 gtk3 harfbuzz hddtemp http http2 hwaccel iconv icu id3tag inotify ipv6 ithreads jingle jpeg kms lame libdrm libglvnd libmpeg2 libnotify libsamplerate libtirpc lz4 lzma lzo mad matroska metalink midi mikmod minizip mod modplug mp3 mpeg musicbrainz ncurses network nls nptl ogg
omemo openal opengl openh264 openmp opus pcre pdf pdfimport perl plugins png postproc postscript ppds pulseaudio qt5 rar rav1e readline rtmp rubberband samba sdl seccomp sftp smime snappy sox speech speex spell split-usr ssh ssl su svg taglib text theora threads tiff timidity tk toolame tremor truetype twolame unicode
 upnp usb v4l vc verify-sig vlc vorbis vpx wavpack webp x264 x265 xattr xen xface xft xml xmlrpc xorg xpm xv xvid xxhash zeroconf zip zlib zstd" ADA_TARGET="gnat_2020" 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_ali
as" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_ARM="crc32 edsp thumb thumb2 v4 v5 v6 v7 v8 vfp vfp-d32 vfpv3 vfpv4" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntr
ip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de en" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" L
UA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-4 php8-0" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="aarch64 i386 x86_64" QEMU_USER_TARGETS="i386 x86_64" RUBY_TARGETS="ruby26 ruby27" USE
RLAND="GNU" VIDEO_CARDS="fbdev v3d vc4" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EMERGE_DEFAULT_OPTS, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, INSTALL_MASK, LC_ALL, LD, LEX, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORT
AGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 korte 2022-02-14 16:24:26 UTC
Created attachment 765100 [details]
build.log filtered with ansifilter
Comment 2 Larry the Git Cow gentoo-dev 2022-07-28 18:34:54 UTC
The bug has been closed via the following commit(s):

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

commit 9ac3b599ab69b5b1d7d10a38b649fb3100fbe238
Author:     Ben Kohler <bkohler@gentoo.org>
AuthorDate: 2022-07-28 18:32:59 +0000
Commit:     Ben Kohler <bkohler@gentoo.org>
CommitDate: 2022-07-28 18:34:45 +0000

    net-misc/smbc: update EAPI 7 -> 8, lots of build fixes, ~amd64 keyword
    
    Closes: https://bugs.gentoo.org/833344
    Closes: https://bugs.gentoo.org/731698
    Closes: https://bugs.gentoo.org/725206
    
    Signed-off-by: Ben Kohler <bkohler@gentoo.org>

 .../smbc-1.2.2-multiple-definitions-gcc10.patch    | 46 ++++++++++
 .../smbc/files/smbc-1.2.2-samba4-includes.patch    | 99 ++++++++++++++++++++++
 net-misc/smbc/files/smbc-1.2.2-tinfo.patch         | 18 ++++
 net-misc/smbc/smbc-1.2.2-r3.ebuild                 | 18 ++--
 4 files changed, 176 insertions(+), 5 deletions(-)
Comment 3 Ben Kohler gentoo-dev 2022-07-28 18:36:22 UTC
FYI what I believe was going on here, is that several prebuilt x86 binary objects existed at src/*.o and it was attempting to link those with your just-built arm64 objects.

So this ebuild was doomed to fail on any arch that isn't 32bit x86.  I believe I have fixed this particular bug by removing those objects in src_prepare.
Comment 4 korte 2022-07-29 15:40:13 UTC
(In reply to Ben Kohler from comment #3)
> FYI what I believe was going on here, is that several prebuilt x86 binary
> objects existed at src/*.o and it was attempting to link those with your
> just-built arm64 objects.
> 
> So this ebuild was doomed to fail on any arch that isn't 32bit x86.  I
> believe I have fixed this particular bug by removing those objects in
> src_prepare.

I just recognized at https://packages.gentoo.org/packages/net-misc/smbc 1.2.2-r3 is testing on ppc. That looks weird to me.
Comment 5 Ben Kohler gentoo-dev 2022-07-29 17:27:21 UTC
I have no idea how it could have ever built on ppc in the past, maybe keywords got carried over from a previous version that wasn't as broken.

It might actually build on ppc now.

If you want to test on arm64 and see if it works, I could add ~arm64 keyword.
Comment 6 korte 2022-07-29 19:04:54 UTC
(In reply to Ben Kohler from comment #5)
> If you want to test on arm64 and see if it works, I could add ~arm64 keyword.


Did you release it under the same Version? I am waiting for 1.2.2-r4... I don't need the ~arm64 keyword, I fill my package.accept_keywords. ;)
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-29 19:28:39 UTC
(In reply to korte from comment #6)
> (In reply to Ben Kohler from comment #5)
> > If you want to test on arm64 and see if it works, I could add ~arm64 keyword.
> 
> 
> Did you release it under the same Version? I am waiting for 1.2.2-r4... I
> don't need the ~arm64 keyword, I fill my package.accept_keywords. ;)

Yes, but we want to add them for others
Comment 8 Ben Kohler gentoo-dev 2022-07-29 20:49:00 UTC
I did not revbump because it was a hard build failure, try again with the revised ebuild