Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 788229 - sys-libs/talloc-2.3.2: fails to build, The configuration failed False
Summary: sys-libs/talloc-2.3.2: fails to build, The configuration failed False
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Patrick Lauer
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-05-04 21:56 UTC by Vamp898
Modified: 2021-05-11 21:41 UTC (History)
3 users (show)

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


Attachments
build.log from emerge (build.log,40.72 KB, text/plain)
2021-05-04 21:57 UTC, Vamp898
Details
config.log from talloc (config.log.xz,47.24 KB, application/x-xz)
2021-05-04 21:58 UTC, Vamp898
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Vamp898 2021-05-04 21:56:37 UTC
Trying to emerge samba, talloc is pulled in as one of its dependencies which fails to build

Reproducible: Always

Steps to Reproduce:
1. Try to build talloc



Portage 3.0.18 (python 3.8.8-final-0, default/linux/amd64/17.1/no-multilib/hardened, gcc-10.2.0, glibc-2.32-r7, 5.4.116-gentoo-igefa x86_64)
=================================================================
System uname: Linux-5.4.116-gentoo-igefa-x86_64-Intel-R-_Xeon-R-_CPU_E5-2623_v4_@_2.60GHz-with-glibc2.2.5
KiB Mem:    32636324 total,  32104316 free
KiB Swap:          0 total,         0 free
Timestamp of repository gentoo: Tue, 04 May 2021 00:45:01 +0000
Head commit of repository gentoo: 8727e4cf908cacb796d0f670fc5c2e2079b4a3d2
sh bash 5.0_p18
ld GNU ld (Gentoo 2.33.1 p2) 2.33.1
app-shells/bash:          5.0_p18::gentoo
dev-lang/perl:            5.30.3::gentoo
dev-lang/python:          2.7.18-r4::gentoo, 3.7.9::gentoo, 3.8.8_p1::gentoo, 3.9.2_p1::gentoo
dev-util/cmake:           3.18.5::gentoo
sys-apps/baselayout:      2.7::gentoo
sys-apps/openrc:          0.42.1-r1::gentoo
sys-apps/sandbox:         2.22::gentoo
sys-devel/autoconf:       2.69-r5::gentoo
sys-devel/automake:       1.16.2-r1::gentoo
sys-devel/binutils:       2.33.1-r1::gentoo, 2.34-r2::gentoo, 2.35.2::gentoo
sys-devel/gcc:            9.3.0-r2::gentoo, 10.2.0-r5::gentoo
sys-devel/gcc-config:     2.4::gentoo
sys-devel/libtool:        2.4.6-r6::gentoo
sys-devel/make:           4.3::gentoo
sys-kernel/linux-headers: 5.10::gentoo (virtual/os-headers)
sys-libs/glibc:           2.32-r7::gentoo
Repositories:

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

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE NPSL"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe -march=native"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe -march=native"
DISTDIR="/usr/portage/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 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 splitdebug strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe -march=native"
GENTOO_MIRRORS="https://ftp.gwdg.de/pub/linux/gentoo/"
LANG="de_DE.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="de"
MAKEOPTS="-j16"
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 amd64 apache apache2 bzip2 crypt hardened iconv ldap ldap-sasl libglvnd libtirpc mysql ncurses nls nptl openmp pcre php pie readline seccomp split-usr ssl ssp syslog unicode xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gnat_2018" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" 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 proxy proxy_http" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul 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" GRUB_PLATFORMS="pc" INPUT_DEVICES="libinput" KERNEL="linux" L10N="de" 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-3 php7-4" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_8" PYTHON_TARGETS="python2_7 python3_8" RUBY_TARGETS="ruby26" USERLAND="GNU" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy v4l" 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:  CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Comment 1 Vamp898 2021-05-04 21:57:52 UTC
Created attachment 706053 [details]
build.log from emerge
Comment 2 Vamp898 2021-05-04 21:58:56 UTC
Created attachment 706056 [details]
config.log from talloc
Comment 3 Vamp898 2021-05-05 08:26:58 UTC
relevant output from config.log

[1/3] Compiling bin/.conf_check_ffa284574e4766db3800769b29e658a7/test.c

['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-I/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/lib/replace', '-I.', '-I../..', '-I.', '-I../..', '../../test.c', '-c', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/test.c.1.o']
[2/3] Linking bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog

['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-Wl,-O1', '-Wl,--as-needed', 'test.c.1.o', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-Wl,-O1', '-Wl,--as-needed']
[3/3] Processing bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog

['/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog']
from /var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/lib/replace: The configuration failed False
not found
Comment 4 Vamp898 2021-05-07 06:45:15 UTC
The exact same thing happens at the exact same step when trying to build tdb

But this only happens with SAMBA Related dependencies, i can rebuild my whole system (emerge -DNave1 @world @system) without any issues.
Comment 5 Vamp898 2021-05-11 14:52:16 UTC
We noticed that this only happens on Hardware Machines, not on Virtual Machines. I removed the -march=native from the CFLAGS, but nothing changed.

Also this is the only machine using the hardened USE-Flag, i'm disabling that right now and rebuilding the system, but the hardened flag is the last difference i could find between the hardware machines and the VMs.

So i guess it will be that, but i'll come back as soon the no-hardened rebuild is done
Comment 6 Vamp898 2021-05-11 16:46:18 UTC
Disabling hardened didn't do it, trying to activate multilib next
Comment 7 Vamp898 2021-05-11 19:15:51 UTC
Hardening disabled, multilib enabled but still no change.
Comment 8 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-11 19:36:11 UTC
From your build.log:
>Checking for HAVE_SECURE_MKSTEMP                     : not found 

It's found on my machine.

Your lines:
>[1/3] Compiling bin/.conf_check_ffa284574e4766db3800769b29e658a7/test.c
>['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-I/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/lib/rep
>lace', '-I.', '-I../..', '-I.', '-I../..', '../../test.c', '-c', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/d
>efault/test.c.1.o']
>[2/3] Linking bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog
>['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-Wl,-O1', '-Wl,--as-needed', 'test.c.1.o', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa2
>84574e4766db3800769b29e658a7/testbuild/default/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-Wl,-O1', '-Wl,--as-needed']
>[3/3] Processing bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog
>['/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_ffa284574e4766db3800769b29e658a7/testbuild/default/testprog']
>from /var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/lib/replace: The configuration failed False
>not found

Mine:

>[1/3] Compiling bin/.conf_check_47998e3c1a4bfb64ec9c246b98420524/test.c
>['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-fdiagnostics-color=always', '-frecord-gcc-switches', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-I/var/tmp/portage/sys-libs/
>talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/lib/replace', '-I.', '-I../..', '-I.', '-I../..', '../../test.c', '-c', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.
>conf_check_47998e3c1a4bfb64ec9c246b98420524/testbuild/default/test.c.1.o']
>[2/3] Linking bin/.conf_check_47998e3c1a4bfb64ec9c246b98420524/testbuild/default/testprog
>['x86_64-pc-linux-gnu-gcc', '-O2', '-pipe', '-march=native', '-fdiagnostics-color=always', '-frecord-gcc-switches', '-O2', '-pipe', '-march=native', '-fdiagnostics-color=always', '-frecord-gcc-switches'
>, '-Wl,--defsym=__gentoo_check_ldflags__=0', '-Wl,-O1', '-Wl,--as-needed', 'test.c.1.o', '-o/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_47998e3c1a4bfb64ec9c
>246b98420524/testbuild/default/testprog', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-O2', '-pipe', '-march=native', '-fdiagnostics-color=always', '-frecord-gcc-switches', '-Wl,--defsym=__gen
>too_check_ldflags__=0', '-Wl,-O1', '-Wl,--as-needed']
>[3/3] Processing bin/.conf_check_47998e3c1a4bfb64ec9c246b98420524/testbuild/default/testprog
>['/var/tmp/portage/sys-libs/talloc-2.3.2/work/talloc-2.3.2-abi_x86_64.amd64/bin/.conf_check_47998e3c1a4bfb64ec9c246b98420524/testbuild/default/testprog']
>ok

I wonder what happens if you try to run the testprog it mentions?
Comment 9 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-05-11 19:37:57 UTC
https://forums.gentoo.org/viewtopic-t-1033900-start-0.html suggests dodgy /tmp permissions, which makes sense given the test program.
Comment 10 Vamp898 2021-05-11 21:41:18 UTC
I re-set the permissions on /tmp to sane defaults and ta-da, it worked.

It seems the permissions have been changed a _lot_ of months ago due to the installation of screen by a work college and somehow in the process of setting up screen, this seems to have happened.

Thank you so much guys, so much troubleshooting, such a small issue :D in that case i can go back to no-multilib/hardened and finally setup SAMBA