On a system where previously sys-libs/tdb-1.4.3 was installed, due to an updated tdb-1.4.5 was about to be emerged. The build process for tdb-1.4.5 failed with the following output (from its build.log): [110/117] Linking bin/default/tdb1-run-mutex-die 20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', 'lib/replace/replace.c.2.o', 'lib/replace/cwrap.c.2.o', 'test/external-agent.c.25.o', 'test/lock-tracking.c.25.o', 'test/logging.c.25.o', 'test/run-mutex-die.c.90.o', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/tdb1-run-mutex-die', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared/private', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-lpthread', '-lbsd', '-ldl', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-no-undefined'] [111/117] Linking bin/default/tdb1-run-mutex1 20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', 'lib/replace/replace.c.2.o', 'lib/replace/cwrap.c.2.o', 'test/external-agent.c.25.o', 'test/lock-tracking.c.25.o', 'test/logging.c.25.o', 'test/run-mutex1.c.92.o', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/tdb1-run-mutex1', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared/private', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-lpthread', '-lbsd', '-ldl', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-no-undefined'] [112/117] Linking bin/default/tdb1-run-circular-chain 20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', 'lib/replace/replace.c.2.o', 'lib/replace/cwrap.c.2.o', 'test/external-agent.c.25.o', 'test/lock-tracking.c.25.o', 'test/logging.c.25.o', 'test/run-circular-chain.c.94.o', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/tdb1-run-circular-chain', '-Wl,-rpath,/var/tmp/portage/20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', 'lib/replace/replace.c.2.o', 'lib/replace/cwrap.c.2.o', 'test/external-agent.c.25.o', 'test/lock-tra cking.c.25.o', 'test/logging.c.25.o', 'test/run-circular-chain.c.94.o', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/tdb1-run-circular-chain', '-Wl,-rpath,/var/tmp/portage/ sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared/private', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-lpthread', '-lbsd', '-ldl', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-no-undefined'] [113/117] Linking bin/default/tdb1-run-circular-freelist 20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-Wl,-O1', '-Wl,--as-needed', 'lib/replace/replace.c.2.o', 'lib/replace/cwrap.c.2.o', 'test/external-agent.c.25.o', 'test/lock-tracking.c.25.o', 'test/logging.c.25.o', 'test/run-circular-freelist.c.96.o', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/tdb1-run-circular-freelist', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared', '-Wl,-rpath,/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/shared/private', '-Wl,-Bstatic', '-Wl,-Bdynamic', '-L/usr/local/lib', '-lpthread', '-lbsd', '-ldl', '-Wl,-O1', '-Wl,--as-needed', '-Wl,-no-undefined'] [114/117] Compiling pytdb.c 20:52:04 runner ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DPACKAGE_VERSION="1.4.5"', '-DPY_SSIZE_T_CLEAN=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_pytdb_MODULES=NULL', '-DSTATIC_pytdb_MODULES_PROTO=extern void __pytdb_dummy_module_proto(void)', '-fno-strict-aliasing', '-I.', '-I../..', '-I.', '-I../..', '-Ilib/replace', '-I../../lib/replace', '-Iinclude', '-I../../include', '-I/usr/include/python3.9', '../../pytdb.c', '-c', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/pytdb.c.100.o'] In file included from ../../pytdb.c:28: ../../lib/replace/replace.h:885:10: fatal error: crypt.h: No such file or directory 885 | #include <crypt.h> | ^~~~~~~~~ compilation terminated. Waf: Leaving directory `/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default' Build failed -> task in 'pytdb.objlist' failed with exit status 1: {task 140277749007968: c pytdb.c -> pytdb.c.100.o} ['x86_64-pc-linux-gnu-gcc', '-march=core-avx2', '-O2', '-pipe', '-MMD', '-D_GNU_SOURCE=1', '-D_XOPEN_SOURCE_EXTENDED=1', '-DPACKAGE_VERSION="1.4.5"', '-DPY_SSIZE_T_CLEAN=1', '-fPIC', '-D__STDC_WANT_LIB_EXT1__=1', '-D_REENTRANT', '-fstack-protector-strong', '-fstack-clash-protection', '-DSTATIC_pytdb_MODULES=NULL', '-DSTATIC_pytdb_MODULES_PROTO=extern void __pytdb_dummy_module_proto(void)', '-fno-strict-aliasing', '-I.', '-I../..', '-I.', '-I../..', '-Ilib/replace', '-I../../lib/replace', '-Iinclude', '-I../../include', '-I/usr/include/python3.9', '../../pytdb.c', '-c', '-o/var/tmp/portage/sys-libs/tdb-1.4.5/work/tdb-1.4.5-abi_x86_64.amd64/bin/default/pytdb.c.100.o'] * ERROR: sys-libs/tdb-1.4.5::gentoo failed (compile phase): * build failed * * Call stack: * ebuild.sh, line 127: Called src_compile * environment, line 2619: Called multilib-minimal_src_compile * environment, line 1569: Called multilib_foreach_abi 'multilib-minimal_abi_src_compile' * environment, line 1839: Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1504: Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile' * environment, line 1502: Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile' * environment, line 454: Called multilib-minimal_abi_src_compile * environment, line 1563: Called multilib_src_compile * environment, line 2052: Called waf-utils_src_compile * environment, line 3384: Called die * The specific snippet of code: * "${WAF_BINARY}" ${_mywafconfig} ${jobs} "${@}" || die "build failed" * * If you need support, post the output of `emerge --info '=sys-libs/tdb-1.4.5::gentoo'`, * the complete build log and the output of `emerge -pqv '=sys-libs/tdb-1.4.5::gentoo'`. * The complete build log is located at '/var/tmp/portage/sys-libs/tdb-1.4.5/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sys-libs/tdb-1.4.5/temp/environment'. Emerging manually the package sys-libs/libxcrypt (version 4.4.25 in this situation) and manually restarting the emerge for tdb allows tdb to successfully compile. Maybe adding sys-libs/libxcrypt as a package dependency may fix this problem? Also, as the file 'pytdb.c' is involved in the compilation error, maybe this dependency may be conditional to the use flag 'python' Reproducible: Always Portage 3.0.20 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-10.3.0, glibc-2.33-r7, 5.10.52-gentoo-20210930-1959 x86_64) ================================================================= System uname: Linux-5.10.52-gentoo-20210930-1959-x86_64-Intel-R-_Core-TM-_i3-4160_CPU_@_3.60GHz-with-glibc2.33 KiB Mem: 16270648 total, 10359124 free KiB Swap: 25165820 total, 25165820 free Timestamp of repository gentoo: Fri, 05 Nov 2021 00:45:01 +0000 Timestamp of repository guru: Thu, 04 Nov 2021 11:51:23 +0000 Head commit of repository guru: c5586e4d8392d1b675c706a71088e0e35657b191 sh bash 5.1_p8 ld GNU ld (Gentoo 2.37_p1 p0) 2.37 ccache version 4.4.2 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 2.7.18_p13::gentoo, 3.8.9_p2::gentoo, 3.9.7_p1::gentoo dev-lang/rust-bin: 1.53.0::gentoo dev-util/ccache: 4.4.2::gentoo dev-util/cmake: 3.20.5::gentoo sys-apps/baselayout: 2.7::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.4::gentoo sys-devel/binutils: 2.37_p1::gentoo sys-devel/gcc: 10.3.0-r2::gentoo, 11.2.0::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.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: webrsync sync-uri: rsync://rsync.europe.gentoo.org/gentoo-portage priority: -1000 sync-webrsync-delta: true # false to use plain webrsync sync-webrsync-verify-signature: true Personal-Git-repository location: /home/xxx/git/gentoo-ebuilds masters: gentoo priority: 0 guru location: /var/db/repos/guru sync-type: git sync-uri: https://github.com/gentoo-mirror/guru.git masters: gentoo kde location: /var/lib/layman/kde masters: gentoo priority: 50 steam-overlay location: /var/lib/layman/steam-overlay masters: gentoo priority: 50 ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=core-avx2 -O2 -pipe" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/maven-bin-3.8/conf" 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="-march=core-avx2 -O2 -pipe" 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" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache 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 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,-O1 -Wl,--as-needed" MAKEOPTS="-j4" 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="7zip X a52 aac aalib acl acpi activities alsa amd64 aom aspell audiofile avif bash-completion bittorrent bluetooth branding brotli bzip2 cdaudio cdda cdparanoia cdr cleartype cli cmake consolekit crypt cups curl dbus declarative dhclient dirac djvu dlna dri dts dvd dvdr dvdread ebook emboss encode exif faac faad fame ffmpeg fftw flac fontconfig fortran ftp gdbm gif gimp git gnupg gnutls gpg gpgme gs gui harfbuzz heif http2 ical iconv icu id3tag idea idn ilbc imagemagick imap iproute2 jabber jbig jingle jpeg kde kdeprefix kpathsea kwallet lame laptop latex lcms libaom libcaca libglvnd libtirpc libv4l logrotate lua luatex lz4 lzma lzo mad mbox md5sum mjpeg mmx mng mp3 mp4 mpeg multilib ncurses network nls nptl ntp ogg opengl openmp opus pam pango pcre pcre16 pdf phonon plasma png policykit ppds pulseaudio pygments python qmake qml qt5 quicktime rar rdesktop readline rss rtc rtf rtmp samba sasl sdl seccomp sip slang slp smime smtp sndfile speex spell split-usr srt sse sse2 ssh ssl ssse3 startup-notification svg systemd tga theora threads tiff truetype udev udisks unicode unwind upower usb user-session utils v4l v4l2 vim-syntax vorbis vpx w32codecs webdav webp wicd widgets win32codecs x264 x265 xattr xcb xcomposite xetex xml xpm xv xvid yaz zlib zrtp zstd" ABI_X86="64" ADA_TARGET="gnat_2019" 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="aes avx avx2 fma3 mmx mmxext popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3 f16c" 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="evdev libinput" KERNEL="linux" 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="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" QEMU_SOFTMMU_TARGETS="arm x86_64" QEMU_USER_TARGETS="x86_64 arm" RUBY_TARGETS="ruby26 ruby27" USERLAND="GNU" VIDEO_CARDS="intel" 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, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aceb8a869524d1d4519b8119099dd9e93edc5f3 commit 1aceb8a869524d1d4519b8119099dd9e93edc5f3 Author: Sam James <sam@gentoo.org> AuthorDate: 2021-11-06 20:46:32 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2021-11-06 20:46:32 +0000 sys-libs/tdb: needs crypt.h so depend on libcrypt Doesn't seem to link against it though, so DEPEND. Closes: https://bugs.gentoo.org/822159 Signed-off-by: Sam James <sam@gentoo.org> sys-libs/tdb/tdb-1.4.5.ebuild | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)