Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 937907 - net-dns/bind-9.16.48 with gcc 13.3.1 lib.c:28:2: error: #error Either __attribute__((constructor|destructor))__ or DllMain support needed to compile BIND 9.
Summary: net-dns/bind-9.16.48 with gcc 13.3.1 lib.c:28:2: error: #error Either __attri...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: Patrick McLean
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2024-08-14 07:02 UTC by Peter B
Modified: 2024-09-02 19:26 UTC (History)
2 users (show)

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


Attachments
failed ebuild of net-dns/bin with gcc 13.3.1 - upstream might have fix (build.log.xz,9.37 KB, application/x-xz)
2024-08-14 07:02 UTC, Peter B
Details
the asked for: /var/tmp/portage/net-dns/bind-9.16.48/work/bind-9.16.48/config.log (bind-9.16.48_compile_log.tgz,20.22 KB, application/x-gzip)
2024-09-01 17:21 UTC, Peter B
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter B 2024-08-14 07:02:19 UTC
Created attachment 900097 [details]
failed ebuild of net-dns/bin with gcc 13.3.1 - upstream might have fix

Did a completely fres installation of gentoo from the minimal install.
Got new amd64 system working on local network.
Ran emerge @world to bring everything up to date which among other things seemed to bring in a newer gcc.
Things seemed fine until I went to emerge net-dns/bind.
Hits a compile error that seems relate to some header file changes and how gcc treats things? Supposedly fix upstream but gentoo only provide bind-9.16.48 so far. ;-(

Portage 3.0.65 (python 3.12.3-final-0, default/linux/amd64/23.0/systemd, gcc-13, glibc-2.39-r6, 6.6.38-gentoo-x86_64 x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.6.38-gentoo-x86_64-x86_64-AMD_Ryzen_5_7600_6-Core_Processor-with-glibc2.39
KiB Mem:    65063136 total,   1589756 free
KiB Swap:   16777212 total,  16777212 free
Timestamp of repository gentoo: Mon, 12 Aug 2024 01:30:00 +0000
Head commit of repository gentoo: 1e8fdcd7ded31397ad5350a89d1f9f381e66b979
sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.71-r7::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r4::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.12.3-r1::gentoo
dev-lang/rust-bin:         1.79.0::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-apps/systemd:          255.7-r1::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             13.3.1_p20240614::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.39-r6::gentoo
Repositories:

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

Binary Repositories:

gentoobinhost
    priority: 1
    sync-uri: https ://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64-v3

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE @BINARY-REDISTRIBUTABLE"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe -znver4"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt /var/bind"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /etc/revdep-rebuild /etc/sandbox.d"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-march=native -O2 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg-live config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="https ://gentoo.osuosl.org/     http ://gentoo-mirror.flux.utah.edu/"
LANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j12 -l14"
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="acl acpi amd64 amdgpu apache2 bash-completion berkdb brotli bzip2 cet clamdtop crypt curl dracut efistub exif expat fam fastcgi fpm ftp gdbm geoip gif git gmp guile gzip hddtemp heif http2 iconv idn imap initramfs inotify ipv6 jpeg jpeg2k libtirpc lua lzip lzma lzo lzy magic maildir man mmap mng multilib native-extensions ncurses nls nsplugin ocaml offensive ofx openmp pam pcre png postgres python raw readline rss sasl screencast sctp seccomp smp snappy snmp sockets source spamassassin spell sqlite ssl suid symlink systemd systemd-boot szip test-rust theora threads tidy udev udisks uefi uki ukify unicode upower urandom vda verify-sig vhosts vim-syntax xattr xmpp zip zlib zsh-completion zstd" ABI_X86="64" ADA_TARGET="gcc_12" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd actions alias auth_basic authn_anon authn_dbm authn_file authz_dbm authz_groupfile authz_host authz_owner authz_user autoindex cache cgi cgid dav dav_fs dav_lock deflate dir env expires ext_filter file_cache filter headers include info log_config logio mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" APACHE2_MPMS="event" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="mmx mmxext sse sse2 aes avx avx2 avx512_bf16 avx512_bitalg avx512_vbmi2 avx512_vnni avx512_vpopcntdq avx512bw avx512cd avx512dq avx512f avx512ifma avx512vbmi avx512vl f16c fma3 pclmul popcnt rdrand sha sse3 sse4_1 sse4_2 sse4a ssse3 vpclmulqdq" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-2" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31 ruby32" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto 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, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS

=================================================================
                        Package Settings
=================================================================

net-dns/bind-9.20.0::gentoo was built with the following:
USE="caps dlz geoip postgres verify-sig zlib -berkdb -dnsrps -dnstap -doc -fixed-rrset -geoip2 -gssapi -json -ldap -lmdb -mysql -odbc -python (-selinux) -static-libs -test -xml" ABI_X86="(64)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11"
Comment 1 Peter B 2024-08-14 07:10:00 UTC
I adjusted the emerge --info output to have a space in what would otherswise be a URL which I couldn't post as I only made my account today. There were only a few occurances, on only these 3 lines:
- sync-uri: https ://distfiles.gentoo.org/releases/amd64/binpackages/23.0/x86-64-v3
- GENTOO_MIRRORS="https ://gentoo.osuosl.org/     http ://gentoo-mirror.flux.utah.edu/"
- sync-uri: rsync ://rsync.gentoo.org/gentoo-portage

The originals didn't have the space before the colons.
Comment 2 Peter Gantner (a.k.a. nephros) 2024-08-21 09:28:12 UTC
Same issue with  sys-devel/gcc-11.4.1_p20240501

-----------------------

Portage 3.0.65 (python 3.12.3-final-0, default/linux/x86/23.0/i686/split-usr, gcc-11, glibc-2.38-r13, 5.15.147-gentoo-chIII19 x86_64)
=================================================================
System uname: Linux-5.15.147-gentoo-chIII19-x86_64-AMD_FX-tm-4300_Quad-Core_Processor-with-glibc2.38
KiB Mem:     7622292 total,    361288 free
KiB Swap:    1942520 total,   1465988 free
Timestamp of repository gentoo: Sun, 28 Jul 2024 14:49:03 +0000
Head commit of repository gentoo: a903d70fa322906513f994261bda50eeb49f38ea

Head commit of repository mv: 3fef276de4930ec46b03b219602473ab15da0dd4

Head commit of repository nvidia-legacy: 6a142c20ad68ef9c5b812fafbafee13f45ae51d9

sh bash 5.2_p26-r6
ld GNU ld (Gentoo 2.42 p3) 2.42.0
distcc 3.4 i686-pc-linux-gnu [enabled]
ccache version 4.9.1 [enabled]
app-misc/pax-utils:        1.3.7::gentoo
app-shells/bash:           5.2_p26-r6::gentoo
dev-build/autoconf:        2.71-r6::gentoo
dev-build/automake:        1.16.5-r2::gentoo
dev-build/cmake:           3.28.5::gentoo
dev-build/libtool:         2.4.7-r3::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.4.1::gentoo
dev-java/java-config:      2.3.1-r1::gentoo
dev-lang/perl:             5.38.2-r3::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.3-r1::gentoo
dev-lang/rust-bin:         1.77.1::gentoo
dev-util/ccache:           4.9.1-r1::gentoo
sys-apps/baselayout:       2.15::gentoo
sys-apps/openrc:           0.54.2::gentoo
sys-apps/sandbox:          2.38::gentoo
sys-devel/binutils:        2.42-r1::gentoo
sys-devel/binutils-config: 5.5::gentoo
sys-devel/gcc:             11.4.1_p20240501::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-devel/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo
sys-kernel/linux-headers:  6.6-r1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.38-r13::gentoo
sys-libs/libselinux:       3.5-r1::gentoo
Repositories:

gentoo
    location: /var/portage/gentoo
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/gentoo
    priority: -1000
    volatile: True

crownest
    location: /var/portage/crownest
    masters: gentoo
    priority: 0
    volatile: True

mv
    location: /var/portage/overlays/mv
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/mv.git
    masters: gentoo
    priority: 1
    volatile: True

crossdev
    location: /var/portage/crossdev
    masters: gentoo
    priority: 10
    volatile: True

nvidia-legacy
    location: /var/portage/overlays/nvidia-legacy
    sync-type: git
    sync-uri: https://gitlab.com/shibotto/nvidia-legacy.git
    masters: gentoo
    priority: 50
    volatile: True

Installed sets: @srv-mail
ACCEPT_KEYWORDS="amd64 x86"
ACCEPT_LICENSE="@FREE @FREE free-noncomm fairuse freedist as-is CC-BY-NC-ND-2.5 CC-BY-NC-SA-2.5"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=i686 -mtune=bdver2 -O2 -pipe -w -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /etc/stunnel/stunnel.conf /usr/share/easy-rsa /usr/share/gnupg/qualified.txt /var/bind /var/lib/i2pd/certificates /var/lib/sabnzbd/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.1/ext-active/ /etc/php/apache2-php8.2/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cgi-php8.2/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/cli-php8.2/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/fpm-php8.2/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/php/phpdbg-php8.2/ext-active/ /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=i686 -mtune=bdver2 -O2 -pipe -w -fomit-frame-pointer"
DISTDIR="/var/portage/gentoo/../distfiles"
EMERGE_DEFAULT_OPTS="-j 2 --load-average 5.8 --keep-going --with-bdeps=n --usepkg=y --binpkg-respect-use=y --binpkg-changed-deps=y --verbose-conflicts --ask-enter-invalid --noconfmem"
ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY GDK_PIXBUF_MODULE_FILE 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 XDG_STATE_HOME"
FCFLAGS="-O2 -march=i686 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg-live ccache clean-logs compress-build-logs config-protect-if-modified distcc distlocks downgrade-backup ebuild-locks fixlafiles icecream ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news noinfo parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-backup unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -march=i686 -pipe"
GENTOO_MIRRORS="http://ftp.fi.muni.cz/pub/linux/gentoo/ http://mirror.wheel.sk/gentoo http://mirror.dkm.cz/gentoo/ http://packages.hs-regensburg.de/gentoo-distfiles/ http://ftp.romnet.org/gentoo/ "
INSTALL_MASK="ACKNOWLEDGEMENTS* ANNOUNCE* AUTHORS* BUGS* ChangeLog* CHANGES* COPYING NEWS* THANKS* TODO*        /usr/lib/debug/sbin     /usr/lib/debug/usr/sbin    /usr/lib/debug/opt      /usr/lib/debug/usr/games                /etc/systemd    /usr/lib/systemd/*/*.service    /lib/systemd/*/*.service  /usr/share/locale -/usr/share/locale/C -/usr/share/locale/POSIX -/usr/share/locale/en -/usr/share/locale/de -/usr/share/locale/de_AT -/usr/share/locale/de_AT.iso88591 -/usr/share/locale/de_AT.iso885915@euro -/usr/share/locale/de_AT.utf8 -/usr/share/locale/de_AT@euro -/usr/share/locale/de_AT.UTF-8 -/usr/share/locale/de_DE -/usr/share/locale/de_DE.iso88591 -/usr/share/locale/de_DE.iso885915@euro -/usr/share/locale/de_DE.utf8 -/usr/share/locale/de_DE@euro -/usr/share/locale/de_DE.UTF-8 -/usr/share/locale/en_IE -/usr/share/locale/en_IE.iso88591 -/usr/share/locale/en_IE.iso885915@euro -/usr/share/locale/en_IE.UTF-8 -/usr/share/locale/en_IE.utf8 -/usr/share/locale/en_IE@euro -/usr/share/locale/en_GB -/usr/share/locale/en_GB.iso88591 -/usr/share/locale/en_GB.utf8 -/usr/share/locale/en_GB.UTF-8 -/usr/share/locale/en_US -/usr/share/locale/en_US.iso88591 -/usr/share/locale/en_US.utf8 -/usr/share/locale/en_US.UTF-8"
LANG="en_IE.utf-8"
LC_ALL="C"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
MAKEOPTS="-j6 -s -l4.8"
PKGDIR="/var/portage/gentoo/../packages/i686-pc-linux-gnu"
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="aac aalib acl acpi alsa apache apache2 avahi avi bash-completion blueray branding bzip2 cacert caps cdr crypt dbus dga dvd dvdr egl encode fam fbcon flac gif gmp iconv ieee1394 infinality inotify ipv6 iscsi joystick jpeg jpeg2k kdexdeltas kerberos libtirpc lirc logrotate logwatch lzma mikmod mmx mmx2 mmxext mp3 mpd natspec ncurses nfs nptl nptlonly numa offensive ogg oggvorbis openal openexr opengl openmp opus oss pam pcre pie png qt qt3support qtmt quicktime readline sasl sctp seccomp sep-usr skey snmp split-usr sse sse2 sse3 ssl ssse3 tcpd test-rust theora threads tiff udev unicode usb v4l v4l2 vaapi vdpau verify-sig vhosts vorbis wavpack wifi wmf x264 x86 xattr xcb xml xml2 xv xvid xvmc zeroconf zlib" ABI_X86="32" ADA_TARGET="gcc_12" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_core authn_default authn_file authz_default authz_core authz_groupfile authz_host authz_owner authz_user autoindex cache cache_disk cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers http2 imagemap include info log_config logio mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_http2 proxy_http proxy_html proxy_uwsgi rewrite setenvif slotmem_shm socache_shmcb so speling status substitute unique_id unixd userdir usertrack vhost_alias xml2enc" APACHE2_MPMS="worker" CALLIGRA_FEATURES="karbon sheets words" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" CPU_FLAGS_X86="aes avx f16c fma3 fma4 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 xop" ELIBC="glibc" GPSD_PROTOCOLS="aivdm garmin garmintxt gpsclock nmea oncore rtcm104v2 rtcm104v3 sirf tsip ubx nmea2000 ublox" GRUB_PLATFORMS="efi-64 emu multiboot pc" INPUT_DEVICES="evdev joystick void libinput" KERNEL="linux" L10N="en la" LCD_DEVICES="ncurses imon text xosd" LLVM_TARGETS="AMDGPU BPF X86" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access addition auth_basic auth_pam autoindex browser charset empty_gif fastcgi geo gzip limit_req limit_zone map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi dav geoip image_filter perl push realip headers_more sub xslt" NGINX_MODULES_MAIL="imap smtp" OFFICE_IMPLEMENTATION="libreoffice" PERL_FEATURES="ithreads" PHP_TARGETS="php8-1 php8-2" POSTGRES_TARGETS="postgres14" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12 python3_11" QEMU_SOFTMMU_TARGETS="aarch64 hppa i386 m68k sparc sparc64 x86_64 arm" QEMU_USER_TARGETS="aarch64 arm armeb hppa i386 m68k sparc sparc32plus sparc64 x86_64" RUBY_TARGETS="ruby31" VIDEO_CARDS="dummy fbdev lavapipe r600 radeon v4l vesa virgl" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account"
Unset:  ADDR2LINE, AR, ARFLAGS, AS, ASFLAGS, CC, CCLD, CONFIG_SHELL, CPP, CPPFLAGS, CTARGET, CXX, CXXFILT, ELFEDIT, EXTRA_ECONF, F77FLAGS, FC, GCOV, GPROF, LD, LFLAGS, LIBTOOL, LINGUAS, MAKE, MAKEFLAGS, NM, OBJCOPY, OBJDUMP, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PYTHONPATH, RANLIB, READELF, RUSTFLAGS, SIZE, STRINGS, STRIP, YACC, YFLAGS
Comment 3 Larry the Git Cow gentoo-dev 2024-08-31 07:10:41 UTC
The bug has been referenced in the following commit(s):

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

commit fee87f6a429d64ad7cdd55348802cd8662dc9c9c
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-08-31 05:55:59 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:17 +0000

    profiles: mask new Bind
    
    Please unmask and test. If you have any issues, please file a new bug.
    
    The mask will be lifted by 2024-09-02. Test it before then please!
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/package.mask | 6 ++++++
 1 file changed, 6 insertions(+)

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

commit eeefb354f217b318b31ef252c71d6cea749c0101
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-16 00:32:46 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:17 +0000

    profiles/arch/loong: mask bind[dnstap]
    
    dev-libs/fstrm not keyworded here
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 profiles/arch/loong/package.use.mask | 4 ++++
 1 file changed, 4 insertions(+)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=754524d4345dd41ff9e31cba85afb4f104a9815a

commit 754524d4345dd41ff9e31cba85afb4f104a9815a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-02-15 23:44:24 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:16 +0000

    net-dns/bind-tools: add 9.18.0
    
    This is just a proxy for net-dns/bind. Splitting the ebuilds is *way* too
    fragile and gains nothing because the same software gets built again anyway,
    just thrown away at the end.
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind-tools/bind-tools-9.18.0.ebuild | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

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

commit e50ac466402806e78c10a98b626bd737e0edbe49
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-08-31 06:56:09 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:16 +0000

    net-dns/bind: restore some old files to /var/bind
    
    We need to keep named.cache, root.cache, and localhost.zone because
    we installed these for years *and* configs referencing them.
    
    Dropping them suddenly means they disappear yet the configs
    still refer to them. It's unnecessary disruption which we should
    handle at another time. (No CONFIG_PROTECT applies there.)
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/bind-9.18.29.ebuild | 18 +++++++++++++++++-
 1 file changed, 17 insertions(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ec2125d3019ec659f58f471f8f3b075a1e0bb86

commit 7ec2125d3019ec659f58f471f8f3b075a1e0bb86
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-12-17 04:27:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:15 +0000

    net-dns/bind: add 9.18.29, drop 9.18.0
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/Manifest                              |  2 +-
 .../{bind-9.18.0.ebuild => bind-9.18.29.ebuild}    | 63 ++++++++++------------
 2 files changed, 30 insertions(+), 35 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=654c7d2780ac64a43e9ee0c04e0964a110755f5a

commit 654c7d2780ac64a43e9ee0c04e0964a110755f5a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-16 18:54:34 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:14 +0000

    net-dns/bind: restore USE=jemalloc
    
    We can't force jemalloc because bind-tools (which this now
    blocks, and installs the same tools as, and we may end up
    just using net-dns/bind for all of it) needs to be
    usable in as many places as possible and jemalloc isn't
    ported to all arches.
    
    We can therefore restore ~sparc.
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/bind-9.18.0.ebuild | 7 +++----
 1 file changed, 3 insertions(+), 4 deletions(-)

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

commit de3f4c4ededefda3220a8dd4c7a8622567ed2584
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-16 18:50:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:14 +0000

    net-dns/bind: use standard USE=test
    
    USE=test-extra means we lose some of the niceties of emerge ... --with-test-deps
    and such.
    
    In order to avoid circular dependencies, use the normal pattern of:
    - emerge -v1o --with-test-deps net-dns/bind
    - FEATURES=test emerge -v1 net-dns/bind
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/bind-9.18.0.ebuild | 7 ++++---
 net-dns/bind/metadata.xml       | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20c274b220ba9be18fa465ff03cd9e7b95b1591b

commit 20c274b220ba9be18fa465ff03cd9e7b95b1591b
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2022-03-16 18:35:50 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:13 +0000

    net-dns/bind: restore chroot support
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Bug: https://github.com/gentoo/gentoo/pull/24001
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/bind-9.18.0.ebuild   |  89 +++++++++++++++++++-
 net-dns/bind/files/named.confd-r8 |  19 +++++
 net-dns/bind/files/named.init-r15 | 170 ++++++++++++++++++++++++++++++++++++--
 3 files changed, 268 insertions(+), 10 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=39301e95ce662ec2f7feda5aafc9adc32a04901d

commit 39301e95ce662ec2f7feda5aafc9adc32a04901d
Author:     Eray Aslan <eraya@a21an.org>
AuthorDate: 2022-01-29 17:01:00 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:13 +0000

    net-dns/bind: whitespace
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Eray Aslan <eras@gentoo.org>
    Closes: https://github.com/gentoo/gentoo/pull/24001
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/files/named.conf-r9 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=261167b216cb2970b23e16aee3d0a76476d1adca

commit 261167b216cb2970b23e16aee3d0a76476d1adca
Author:     Eray Aslan <eraya@a21an.org>
AuthorDate: 2022-01-29 16:58:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:12 +0000

    net-dns/bind: add dot and doh examples to config file
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Eray Aslan <eras@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/files/named.conf-r9 | 42 ++++++++++++++++++++++++++--------------
 1 file changed, 27 insertions(+), 15 deletions(-)

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0795ed82642d14ebb9e975db7bfd98fbca25c770

commit 0795ed82642d14ebb9e975db7bfd98fbca25c770
Author:     Eray Aslan <eras@gentoo.org>
AuthorDate: 2022-01-28 14:53:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-08-31 07:10:11 +0000

    net-dns/bind: bump to 9.18.0
    
    - punted CHROOT stuff to simplify the ebuild and scripts
    - bind-tools binaries (dig, delv etc) are not stand alone binaries
      anymore but link to bind libraries, i.e. net-dns/bind and
      net-dns/bind-tools by neccesity produce the same libraries resulting
      in file collisions. soft blocked each other for now
    - net-dns/bind now produces everything, including binaries produced by
      net-dns/bind-tools
    - old style dlz drivers have been removed upstream. prefer dumping from
      datastore (database, ldap etc) to a file on a regular basis/on demand
      instead anyway
    - licensing: bind is mozilla-2.0
    - dev-libs/jemalloc is the preferred allocator for bind-9.18. made it
      obligatory and dropped sparc keyword
    - json and zlib USE flags dropped and made obligatory. zlib is more or
      less necessary because of doh stuff. json requirement is a small
      library. xml is still behind a USE flag as it has the potential to
      bring in big libraries (icu etc)
    - python is optional and only used for testing
    - upstream dropped berkdb support
    - unified geoip and geoip2 USE flags
    - build system now uses a more traditional autotools stack. punted old
      stuff from the ebuild
    - do not install a zone file for loopback addresses. they are already
      built in
    - no need for named.cache as well
    - install named.conf.auth as a sample config file for authoratative
      named server.  recursive server do not need one to function
    - openrc init script and confd revized, mostly because of punting chroot
    
    Bug: https://bugs.gentoo.org/832218
    Bug: https://bugs.gentoo.org/930348
    Bug: https://bugs.gentoo.org/936568
    Bug: https://bugs.gentoo.org/937907
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Eray Aslan <eras@gentoo.org>
    Signed-off-by: Sam James <sam@gentoo.org>

 net-dns/bind/Manifest             |   1 +
 net-dns/bind/bind-9.18.0.ebuild   | 151 ++++++++++++++++++++++++++++++++++++++
 net-dns/bind/files/named.conf-r9  |  21 ++++++
 net-dns/bind/files/named.confd-r8 |  18 +++++
 net-dns/bind/files/named.init-r15 |  99 +++++++++++++++++++++++++
 net-dns/bind/metadata.xml         |   2 +
 6 files changed, 292 insertions(+)
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-31 07:29:32 UTC
Could you upload config.log from /var/tmp/portage/net-dns/bind-9.16.48/work/bind-9.16.4/config.log please?
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-08-31 07:30:00 UTC
(In reply to Sam James from comment #4)
> Could you upload config.log from
> /var/tmp/portage/net-dns/bind-9.16.48/work/bind-9.16.4/config.log please?

We need to know why this failed:
```
checking contributed DLZ drivers... checking for __attribute__((constructor))... no
checking for __attribute__((destructor))... no
yes
```
Comment 6 Peter B 2024-09-01 17:21:39 UTC
Created attachment 901873 [details]
the asked for: /var/tmp/portage/net-dns/bind-9.16.48/work/bind-9.16.48/config.log
Comment 7 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-09-02 01:55:30 UTC
(In reply to Peter B from comment #6)
> Created attachment 901873 [details]
> the asked for:
> /var/tmp/portage/net-dns/bind-9.16.48/work/bind-9.16.48/config.log

Thank you Peter.

```
configure:25684: checking contributed DLZ drivers
configure:25693: checking for __attribute__((constructor))
configure:25715: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -znver4 -pthread -fPIC  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--export-dynamic conftest.c    >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: warning: -z nver4 ignored
configure:25715: $? = 0
configure:25730: result: no
configure:25745: checking for __attribute__((destructor))
configure:25767: x86_64-pc-linux-gnu-gcc -o conftest -march=native -O2 -pipe -znver4 -pthread -fPIC  -Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs -Wl,--export-dynamic conftest.c    >&5
/usr/libexec/gcc/x86_64-pc-linux-gnu/ld: warning: -z nver4 ignored
configure:25767: $? = 0
```

The issue is you have "-znver4" in your FLAGS instead of "-march=znver4".