Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 862166 - net-misc/smbc: Compiling failed, file in wrong format. Is there still an ELF in the source?
Summary: net-misc/smbc: Compiling failed, file in wrong format. Is there still an ELF ...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Gentoo's SAMBA Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2022-07-29 21:15 UTC by korte
Modified: 2023-03-11 14:45 UTC (History)
2 users (show)

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


Attachments
build.log (smbc-1.2.2-r3:20220729-193902.log,12.79 KB, text/plain)
2022-07-29 21:20 UTC, korte
Details

Note You need to log in before you can comment on or make changes to this bug.
Description korte 2022-07-29 21:15:53 UTC
net-misc/smbc-1.2.2-r3 after #833344
System is a RaspberryPi 400, arm64

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-manag
e.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.3.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: r
elocations in generic ELF (EM: 3)
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.3.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: r
elocations in generic ELF (EM: 3)
/usr/lib/gcc/aarch64-unknown-linux-gnu/11.3.0/../../../../aarch64-unknown-linux-gnu/bin/ld: smbc-smbc.o: e
rror adding symbols: file in wrong format
collect2: error: ld returned 1 exit status

Reproducible: Always




Portage 3.0.30 (python 3.10.5-final-0, default/linux/arm64/17.0, gcc-11.3.0, glibc-2.34-r13, 5.15.32-v8 aarch64)
=================================================================
System uname: Linux-5.15.32-v8-aarch64-with-glibc2.34
KiB Mem:     3833752 total,    778860 free
KiB Swap:    4194300 total,   3578620 free
Timestamp of repository gentoo: Thu, 28 Jul 2022 18:30:01 +0000
Head commit of repository gentoo: bfe27dc08ea31ad160791f1e83467f9a2511f246
sh bash 5.1_p16
ld GNU ld (Gentoo 2.37_p1 p2) 2.37
distcc 3.4 aarch64-unknown-linux-gnu [disabled]
ccache version 4.5.1 [enabled]
app-misc/pax-utils:        1.3.4::gentoo
app-shells/bash:           5.1_p16::gentoo
dev-java/java-config:      2.3.1::gentoo
dev-lang/perl:             5.34.1-r3::gentoo
dev-lang/python:           2.7.18_p13::gentoo, 3.8.12_p1::gentoo, 3.9.13::gentoo, 3.10.5::gentoo
dev-lang/rust:             1.60.0::gentoo
dev-lang/rust-bin:         1.62.1::gentoo
dev-util/ccache:           4.5.1::gentoo
dev-util/cmake:            3.22.4::gentoo
dev-util/meson:            0.62.2::gentoo
sys-apps/baselayout:       2.8::gentoo
sys-apps/openrc:           0.44.10::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/autoconf:        2.13-r2::gentoo, 2.71-r1::gentoo
sys-devel/automake:        1.16.5::gentoo
sys-devel/binutils:        2.37_p1-r2::gentoo, 2.38-r2::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/clang:           12.0.1::gentoo, 13.0.1::gentoo, 14.0.4::gentoo
sys-devel/gcc:             11.3.0::gentoo
sys-devel/gcc-config:      2.5-r1::gentoo
sys-devel/libtool:         2.4.7::gentoo
sys-devel/lld:             14.0.4::gentoo
sys-devel/llvm:            11.1.0::gentoo, 12.0.1::gentoo, 13.0.1::gentoo, 14.0.4::gentoo
sys-devel/make:            4.3::gentoo
sys-kernel/linux-headers:  5.15-r3::gentoo (virtual/os-headers)
sys-libs/glibc:            2.34-r13::gentoo
Repositories:

gentoo
    location: /var/db/repos/gentoo
    sync-type: rsync
    sync-uri: rsync://rsync.gentoo.org/gentoo-portage
    priority: -1000
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-max-age: 24
    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 /etc/stunnel/stunnel.conf /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 /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
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 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://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
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 archive arm64 avif bash-completion bittorrent blake2 bluetooth bmp bogofilter brotli btrfs bzip2 cacert cairo caps cdda cddb cdr cli codec2 console crypt cups curl dav1d dbus dcaenc dcron djvu dri dts dvb egl elogind encode evdev exif faac faad fading-colors fam fasteap fdformat fdk ffmpeg flac fortran gbm gd gdbm gentoo-vm geo german128 ghcbootstrap gif gles1 gles2 gme gpg gstreamer gtk gtk2 gtk3 gui harfbuzz hddtemp http http2 hwaccel iconv icu id3tag imagemagick imagequant inkjar inotify ipv6 ithreads javascript jingle jpeg kms lame libdrm libglvnd libmpeg2 libnotify libsamplerate libtesseract libtirpc libzfs lz4 lzma lzo mad magic man matroska metalink midi mikmod minizip mod modplug mount mp3 mpeg multimedia musicbrainz ncat ncurses network nls nping nptl office ogg omemo openal opengl openh264 openmp opus pcre pdf pdfimport perl pillow plugins png postproc postscript ppds printsupport python qml qt5 rar rav1e readline rtc rtmp rubberband samba screen script sdl seccomp sendto session sftp smime snappy sox speech speex spell split-usr ssh ssl su svg svg2 taglib text theora threads tiff timidity tk toolame tools tremor truetype twolame unicode upnp usb usbredir v4l vc vcd verify-sig visio vlc vorbis vpx wavpack webp widgets x264 x265 xattr xen xface xft xml xmlrpc xorg xpm xv xvfb 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_alias" 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 ntrip 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" LUA_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_10" PYTHON_TARGETS="python3_10" QEMU_SOFTMMU_TARGETS="aarch64 arm i386 x86_64" QEMU_USER_TARGETS="aarch64 arm i386 x86_64" RUBY_TARGETS="ruby27" USERLAND="GNU" VIDEO_CARDS="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, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-29 21:19:54 UTC
Please attach the full build.log.
Comment 2 korte 2022-07-29 21:20:24 UTC
Created attachment 795584 [details]
build.log
Comment 3 Ben Kohler gentoo-dev 2022-07-30 00:40:20 UTC
I don't think you have the latest ebuild yet, that still shows it's reusing a lot of built objects.  Please emerge --sync again.
Comment 4 korte 2022-07-30 07:10:47 UTC
(In reply to Ben Kohler from comment #3)
> I don't think you have the latest ebuild yet, that still shows it's reusing
> a lot of built objects.  Please emerge --sync again.

pwd
/var/db/repos/gentoo/net-misc/smbc
wget https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/smbc/smbc-1.2.2-r3.ebuild -O t
diff smbc-1.2.2-r3.ebuild t && echo Same
Same
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-07-30 07:13:24 UTC
(In reply to korte from comment #4)
> (In reply to Ben Kohler from comment #3)
> > I don't think you have the latest ebuild yet, that still shows it's reusing
> > a lot of built objects.  Please emerge --sync again.
> 
> pwd
> /var/db/repos/gentoo/net-misc/smbc
> wget
> https://gitweb.gentoo.org/repo/gentoo.git/plain/net-misc/smbc/smbc-1.2.2-r3.
> ebuild -O t
> diff smbc-1.2.2-r3.ebuild t && echo Same
> Same

Your build log is missing some of the patches iamben added:
	"${FILESDIR}"/${P}-samba4-includes.patch
	"${FILESDIR}"/${P}-multiple-definitions-gcc10.patch
	"${FILESDIR}"/${P}-tinfo.patch

I think maybe your comparison happened a while after the build, perhaps you'd sycned since.
Comment 6 korte 2022-07-30 07:27:08 UTC
(In reply to Sam James from comment #5)
> I think maybe your comparison happened a while after the build, perhaps
> you'd sycned since.

You are right. Yesterday evening I synced and tried it and today I did a semi-automatic system update, didn't think about it and did the comparison.

smbc compiles and starts up, but doesn't show anything. I have never used it before and don't know if I need to have samba configured, how much the windows installation in my network show and so on.
Comment 7 korte 2022-07-30 07:30:29 UTC
(In reply to korte from comment #6)
> smbc compiles and starts up, but doesn't show anything. I have never used it
> before and don't know if I need to have samba configured, how much the
> windows installation in my network show and so on.


smbc -V
Samba Commander 1.2.2
With debug mode.
With smbc_set_context.
With smbc_new_context.

smbc -h
Usage: smbc [OPTIONS]*
  -h, --help               Displays this help message
  -f, --flush              Flush all download lists
  -l, --list               Show all download lists
  -s, --show=INT           Displays all items form dulistX
  -p, --sleep              Sleep, don't download/upload any files
  -m, --message=STRING     Receive message from samba.
  -i, --file=STRING        File with samba message, usage only with -m.
  -V, --version            Displays the current version

smbc w/o anything just hangs.
Comment 8 Ben Kohler gentoo-dev 2023-03-11 14:45:14 UTC
If you still believe there's a problem with smbc, please open a new report.  I've fixed the issue this but was opened for.