Unable to emerge net-dns/bind (any version) on a fresh gentoo installation (kvm guest). Every other packages emerge just fine. if I ./configure with same flags shown at config.log, the process just runs fine also. $ emerge bind These are the packages that would be merged, in order: Calculating dependencies * IMPORTANT: 7 news items need reading for repository 'gentoo'. * Use eselect news read to view new items. ... done! [ebuild N ] net-dns/bind-9.16.8::gentoo USE="berkdb caps dlz gssapi ldap postgres urandom zlib -dnsrps -dnstap -doc -fixed-rrset -geoip -geoip2 -json (-libressl) -lmdb -mysql -odbc -python (-selinux) -static-libs -xml" PYTHON_TARGETS="python3_8 -python3_7 -python3_9" 0 KiB Total: 1 package (1 new), Size of downloads: 0 KiB >>> Verifying ebuild manifests >>> Jobs: 0 of 1 complete, 1 running Load avg: 0.00, 0.00, 0.00 >>> Emerging (1 of 1) net-dns/bind-9.16.8::gentoo >>> Jobs: 0 of 1 complete, 1 running Load avg: 0.00, 0.00, 0.00 >>> Failed to emerge net-dns/bind-9.16.8, Log file: >>> Jobs: 0 of 1 complete, 1 running Load avg: 0.15, 0.03, 0.01 >>> '/var/tmp/portage/net-dns/bind-9.16.8/temp/build.log' >>> Jobs: 0 of 1 complete, 1 running Load avg: 0.15, 0.03, 0.01 >>> Jobs: 0 of 1 complete, 1 running, 1 failed Load avg: 0.15, 0.03, 0.01 >>> Jobs: 0 of 1 complete, 1 failed Load avg: 0.15, 0.03, 0.01 * Package: net-dns/bind-9.16.8 * Repository: gentoo * Maintainer: zlogene@gentoo.org chutzpah@gentoo.org * USE: abi_x86_64 amd64 berkdb caps dlz elibc_glibc gssapi kernel_linux ldap postgres python_targets_python3_8 urandom userland_GNU zlib * FEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox >>> Unpacking source... >>> Unpacking bind-9.16.8.tar.xz to /var/tmp/portage/net-dns/bind-9.16.8/work >>> Source unpacked in /var/tmp/portage/net-dns/bind-9.16.8/work >>> Preparing source in /var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8 ... * Applying ldap-library-path-on-multilib-machines.patch ... [ ok ] * Running eautoreconf in '/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8' ... * Running libtoolize --install --copy --force ... [ ok ] * Running aclocal ... [ ok ] * Running autoconf --force ... [ ok ] * Running autoheader ... [ ok ] * Running elibtoolize in: bind-9.16.8/ * Applying portage/1.2.0 patch ... * Applying sed/1.5.6 patch ... * Applying as-needed/2.4.3 patch ... >>> Source prepared. >>> Configuring source in /var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8 ... * please use append-cppflags for preprocessor flags * econf: updating bind-9.16.8/config.guess with /usr/share/gnuconfig/config.guess * econf: updating bind-9.16.8/config.sub with /usr/share/gnuconfig/config.sub ./configure --prefix=/usr --build=x86_64-pc-linux-gnu --host=x86_64-pc-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --docdir=/usr/share/doc/bind-9.16.8 --htmldir=/usr/share/doc/bind-9.16.8/html --with-sysroot=/ --libdir=/usr/lib64 AR=/usr/bin/x86_64-pc-linux-gnu-ar --prefix=/usr --sysconfdir=/etc/bind --localstatedir=/var --with-libtool --enable-full-report --without-readline --with-openssl=/usr --without-cmocka --enable-linux-caps --disable-dnsrps --disable-dnstap --disable-fixed-rrset --with-dlz-bdb --with-dlopen --with-dlz-filesystem --with-dlz-stub --with-gssapi --without-json-c --with-dlz-ldap --without-dlz-mysql --without-dlz-odbc --with-dlz-postgres --without-lmdb --without-libxml2 --with-zlib --without-python --without-maxminddb --disable-geoip checking whether to enable maintainer-specific portions of Makefiles... yes checking build system type... x86_64-pc-linux-gnu checking host system type... x86_64-pc-linux-gnu checking for x86_64-pc-linux-gnu-gcc... x86_64-pc-linux-gnu-gcc checking whether the C compiler works... yes checking for C compiler default output file name... a.out checking for suffix of executables... checking whether we are cross compiling... no checking for suffix of object files... configure: error: in `/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8': configure: error: cannot compute suffix of object files: cannot compile See `config.log' for more details !!! Please attach the following file when seeking support: !!! /var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8/config.log * ERROR: net-dns/bind-9.16.8::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 3456: Called bind_configure '--without-python' * environment, line 1279: Called econf 'AR=/usr/bin/x86_64-pc-linux-gnu-ar' '--prefix=/usr' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--with-libtool' '--enable-full-report' '--without-readline' '--with-openssl=/usr' '--without-cmocka' '--enable-linux-caps' '--disable-dnsrps' '--disable-dnstap' '--disable-fixed-rrset' '--with-dlz-bdb' '--with-dlopen' '--with-dlz-filesystem' '--with-dlz-stub' '--with-gssapi' '--without-json-c' '--with-dlz-ldap' '--without-dlz-mysql' '--without-dlz-odbc' '--with-dlz-postgres' '--without-lmdb' '--without-libxml2' '--with-zlib' '--without-python' '--without-maxminddb' '--disable-geoip' * phase-helpers.sh, line 680: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=net-dns/bind-9.16.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-dns/bind-9.16.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-dns/bind-9.16.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/bind-9.16.8/temp/environment'. * Working directory: '/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8' * S: '/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8' * Messages for package net-dns/bind-9.16.8: * ERROR: net-dns/bind-9.16.8::gentoo failed (configure phase): * econf failed * * Call stack: * ebuild.sh, line 125: Called src_configure * environment, line 3456: Called bind_configure '--without-python' * environment, line 1279: Called econf 'AR=/usr/bin/x86_64-pc-linux-gnu-ar' '--prefix=/usr' '--sysconfdir=/etc/bind' '--localstatedir=/var' '--with-libtool' '--enable-full-report' '--without-readline' '--with-openssl=/usr' '--without-cmocka' '--enable-linux-caps' '--disable-dnsrps' '--disable-dnstap' '--disable-fixed-rrset' '--with-dlz-bdb' '--with-dlopen' '--with-dlz-filesystem' '--with-dlz-stub' '--with-gssapi' '--without-json-c' '--with-dlz-ldap' '--without-dlz-mysql' '--without-dlz-odbc' '--with-dlz-postgres' '--without-lmdb' '--without-libxml2' '--with-zlib' '--without-python' '--without-maxminddb' '--disable-geoip' * phase-helpers.sh, line 680: Called __helpers_die 'econf failed' * isolated-functions.sh, line 112: Called die * The specific snippet of code: * die "$@" * * If you need support, post the output of `emerge --info '=net-dns/bind-9.16.8::gentoo'`, * the complete build log and the output of `emerge -pqv '=net-dns/bind-9.16.8::gentoo'`. * The complete build log is located at '/var/tmp/portage/net-dns/bind-9.16.8/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/net-dns/bind-9.16.8/temp/environment'. * Working directory: '/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8' * S: '/var/tmp/portage/net-dns/bind-9.16.8/work/bind-9.16.8' * * The following package has failed to build, install, or execute postinst: * * (net-dns/bind-9.16.8:0/0::gentoo, ebuild scheduled for merge), Log file: * '/var/tmp/portage/net-dns/bind-9.16.8/temp/build.log' *
Created attachment 686514 [details] emerge-info.txt emerge --info
Created attachment 686517 [details] config.log config.log
In your config.log I see: checking for suffix of object files x86_64-pc-linux-gnu-gcc -c -march=haswell -O2 -pipe -I conftest.c >&5 (-I without arguments) while for my own (using same USE): checking for suffix of object files x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -I/usr/include/db5.3 conftest.c >&5 And the ebuild has: # To include db.h from proper path use berkdb && append-flags "-I$(db_includedir)" And USE=berkdb does not depend on sys-libs/db, so it can be missing causing db_includedir to return an empty string.
(In reply to Ionen Wolkens from comment #3) > In your config.log I see: > checking for suffix of object files > x86_64-pc-linux-gnu-gcc -c -march=haswell -O2 -pipe -I conftest.c >&5 > (-I without arguments) > > while for my own (using same USE): > checking for suffix of object files > x86_64-pc-linux-gnu-gcc -c -march=native -O2 -pipe -I/usr/include/db5.3 > conftest.c >&5 > > And the ebuild has: > # To include db.h from proper path > use berkdb && append-flags "-I$(db_includedir)" > > And USE=berkdb does not depend on sys-libs/db, so it can be missing causing > db_includedir to return an empty string. OK thx. After emerging sys-libs/db, net-dns/bind compiled fine. What would the proper way to prevent something like this?
(In reply to I am from comment #4) > What would the proper way to prevent something like this? An ebuild fix, and that's why this should stay open.
fixed in latest stable.