Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946395 - dev-libs/boost-1.87.0 -- ‘#pragma message: This header is deprecated. Use <boost/smart_ptr/detail/atomic_count.hpp> instead.
Summary: dev-libs/boost-1.87.0 -- ‘#pragma message: This header is deprecated. Use <b...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Linux bug wranglers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-13 23:44 UTC by Gary E. Miller
Modified: 2024-12-14 01:30 UTC (History)
2 users (show)

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


Attachments
build log (dev-libs:boost-1.87.0:20241213-232004.log,728.45 KB, text/plain)
2024-12-13 23:45 UTC, Gary E. Miller
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gary E. Miller 2024-12-13 23:44:18 UTC
Fails to emerge.

In file included from ./boost/wave/wave_config.hpp:17,
                 from /var/tmp/portage/dev-libs/boost-1.87.0/work/boost_1_87_0-abi_x86_64.amd64/libs/wave/src/instantiate_cpp_literalgrs.cpp:14:
./boost/config/pragma_message.hpp:24:34: note: ‘#pragma message: This header is deprecated. Use <boost/smart_ptr/detail/atomic_count.hpp> instead.’
   24 | # define BOOST_PRAGMA_MESSAGE(x) _Pragma(BOOST_STRINGIZE(message(x)))
      |                                  ^~~~~~~
./boost/config/header_deprecated.hpp:23:37: note: in expansion of macro ‘BOOST_PRAGMA_MESSAGE’
   23 | # define BOOST_HEADER_DEPRECATED(a) BOOST_PRAGMA_MESSAGE("This header is deprecated. Use " a " instead.")
      |                                     ^~~~~~~~~~~~~~~~~~~~
./boost/detail/atomic_count.hpp:10:1: note: in expansion of macro ‘BOOST_HEADER_DEPRECATED’
   10 | BOOST_HEADER_DEPRECATED("<boost/smart_ptr/detail/atomic_count.hpp>")
      | ^~~~~~~~~~~~~~~~~~~~~~~
gcc.compile.c++ bin.v2/libs/wave/build/gcc-14.2/gentoorelease/x86_64/pch-off/threading-multi/visibility-hidden/instantiate_cpp_grammar.o


Reproducible: Always

Steps to Reproduce:
1. emerge -uDNa world
2.
3.
Actual Results:  
see build log


media ~ # emerge -pqv '=dev-libs/boost-1.87.0::gentoo'

[ebuild  r  U ] dev-libs/boost-1.87.0 [1.86.0-r1] USE="bzip2 context icu lzma nls python stacktrace tools zlib zstd -debug -doc -mpi -numpy" ABI_X86="(64) -32 (-x32)" PYTHON_TARGETS="python3_12 -python3_10 -python3_11 -python3_13" 
[ebuild  rR   ] media-sound/snapcast-0.27.0  USE="client expat flac opus server vorbis zeroconf -tremor" 

The following packages are causing rebuilds:

  (dev-libs/boost-1.87.0:0/1.87.0::gentoo, ebuild scheduled for merge) causes rebuilds for:
    (media-sound/snapcast-0.27.0:0/0::gentoo, ebuild scheduled for merge)


media /~ # emerge --info '=dev-libs/boost-1.87.0::gentoo'
Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/split-usr/desktop, gcc-14, glibc-2.40-r7, 6.12.3-gentoo x86_64)
=================================================================
                         System Settings
=================================================================
System uname: Linux-6.12.3-gentoo-x86_64-AMD_Ryzen_5_PRO_2400GE_w-_Radeon_Vega_Graphics-with-glibc2.40
KiB Mem:    15792712 total,   4157760 free
KiB Swap:   16777212 total,  16762876 free
Timestamp of repository gentoo: Fri, 13 Dec 2024 20:18:29 +0000
Timestamp of repository guru: Fri, 13 Dec 2024 13:18:29 +0000
Head commit of repository guru: 5a54a80623a46978bb1990c7515398b53b7933f6

sh bash 5.2_p37
ld GNU ld (Gentoo 2.43 p3) 2.43.1
app-misc/pax-utils:        1.3.8::gentoo
app-shells/bash:           5.2_p37::gentoo
dev-build/autoconf:        2.13-r8::gentoo, 2.71-r7::gentoo, 2.72-r1::gentoo
dev-build/automake:        1.16.5-r2::gentoo, 1.17-r1::gentoo
dev-build/cmake:           3.31.2::gentoo
dev-build/libtool:         2.5.4::gentoo
dev-build/make:            4.4.1-r100::gentoo
dev-build/meson:           1.6.0-r1::gentoo
dev-lang/perl:             5.40.0-r1::gentoo
dev-lang/python:           3.11.9-r1::gentoo, 3.12.8::gentoo, 3.13.1::gentoo
dev-lang/rust-bin:         1.81.0-r100::gentoo, 1.82.0-r100::gentoo, 1.83.0::gentoo
llvm-core/clang:           15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8-r6::gentoo, 19.1.5::gentoo
llvm-core/lld:             15.0.7::gentoo, 16.0.6::gentoo, 17.0.6::gentoo, 18.1.8::gentoo, 19.1.5::gentoo
llvm-core/llvm:            15.0.7-r3::gentoo, 16.0.6::gentoo, 17.0.6-r2::gentoo, 18.1.8-r6::gentoo, 19.1.5::gentoo
sys-apps/baselayout:       2.17::gentoo
sys-apps/openrc:           0.55.1::gentoo
sys-apps/sandbox:          2.40::gentoo
sys-devel/binutils:        2.43-r2::gentoo
sys-devel/binutils-config: 5.5.2::gentoo
sys-devel/gcc:             14.2.1_p20241116::gentoo
sys-devel/gcc-config:      2.12.1::gentoo
sys-kernel/linux-headers:  6.12::gentoo (virtual/os-headers)
sys-libs/glibc:            2.40-r7::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-extra-opts: 
    sync-rsync-verify-jobs: 1
    sync-rsync-verify-metamanifest: yes
    sync-rsync-verify-max-age: 24

guru
    location: /var/db/repos/guru
    sync-type: git
    sync-uri: https://github.com/gentoo-mirror/guru.git
    masters: gentoo
    volatile: False

ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/bind"
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"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/var/cache/distfiles"
EMERGE_DEFAULT_OPTS="--keep-going=y --backtrack=100 --autounmask-backtrack=y"
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 candy clean-logs 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 sfperms unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=native -O2 -pipe"
GENTOO_MIRRORS="http://mirror.reenigne.net/gentoo/     https://mirrors.mit.edu/gentoo-distfiles/     http://172.83.105.10/gentoo/~
ANG="en_US.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs"
LEX="flex"
LINGUAS="en en_US"
MAKEOPTS="-j4"
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"
PYTHONPATH="/usr/local/lib/python3.12/site-packages/"
SHELL="/bin/bash"
USE="X a52 aac acl acpi alsa amd64 archive avif bash-completion bluetooth branding btpclient bzip2 cairo caps cdp cdr cet crypt cups curl dav1d dbus dec265 dri dts dvb dvd dvdr edp elfutils elogind enc265 encode exif extra extras faad fdp ffmpeg flac flashrom fontconfig gdbm gdk-pixbuf gif gles2 gnutls gstreamer gtk gtk3 gui harfbuzz hdhomerun heif http http3 hwloc iconv icu iptv ipv6 jpeg kf6compat ladspa lcms legacy-ciphers libaom libdrm libmount libnotify libssh2 libtirpc libvisual libxml2 lm-sensors lv2 lzma mad mdnsresponder-compat minizip mng mp3 mp4 mpeg mplayer multilib na-dd na-dtv na-tvmedia ncat ncurses netlink network nfs nfsdcld nfsidmap nfsv4 nfsv41 nls nping nvme obex ogg opencl opengl openh264 openmp openssl opus osmesa pam pango pcre pdf pipewire pipewire-alsa pixeltool png policykit ppds pulseaudio python qml qt5 qt6 quic rav1e readline rpc rubberband rustfmt satip sdl seccomp sndio snmp sound spell spirv split-usr sqlite ssh ssl startup-notification suid svg svt-av1 system-info taglib test-rust theora tiff tk tools tpm truetype tv-check tv-combiner tv-pick-cgi twolame udev udisks uefi unicode upower uriparser usb utils uuid vaapi vdpau vorbis vpx vulkan wavpack webkit webp wxwidgets x264 x265 xattr xcb xcrypt xft xml xmltv xorg xpm xtables xv xvfb xvid zeroconf zimg zink zlib 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" 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 rdrand sha sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" INPUT_DEVICES="libinput" KERNEL="linux" L10N="en en-US" 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="postgres16" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu radeon radeonsi swrast zzink" 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, INSTALL_MASK, LC_ALL, LD, LFLAGS, LIBTOOL, 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 Gary E. Miller 2024-12-13 23:45:14 UTC
Created attachment 913975 [details]
build log

build log
Comment 2 Ionen Wolkens gentoo-dev 2024-12-14 00:08:06 UTC
>compressed_pair.hpp:120:32: internal compiler error: in hash_table_higher_prime_index, at hash-table.cc:9
It's a bit more recent ryzen, but may or may not still be related to bug #724314

Assuming that it's not another hardware issue (e.g. bad ram), have you tried more than once to see if it fails the same way every time? (aka internal compiler error on the same file, and not something else).
Comment 3 Ionen Wolkens gentoo-dev 2024-12-14 00:20:58 UTC
To clarify, internal compiler error (aka ICE) is in the vast majority of cases related to hardware problems, esp. if using a well tested version of the compiler.
Comment 4 Gary E. Miller 2024-12-14 01:14:37 UTC
Sam claims that my znver1 triggers errors in gcc.  I earlier had
similar "internal compiler error" issues with dev-qt/qtdeclarative-6.7.3-r4.
Otherwise I update daily on that host with no other issues.

At that time I was given a script to power through the intermittent errors building qtdeclaritive.  I'll see if I can adapt that here.  I prolly need to update that host past znver1.
Comment 5 Gary E. Miller 2024-12-14 01:29:22 UTC
tl;dr: Known CPU bug.  Closing as invalid

This is the CPU:

[    0.205798] smpboot: CPU0: AMD Ryzen 5 PRO 2400GE w/ Radeon Vega Graphics (family: 0x17, model: 0x11, stepping: 0x0)


dmesg complains:

[    0.099435] AMD Zen1 DIV0 bug detected. Disable SMT for full protection.

Turning off SMT would be drastic.

This allowed me to finish the build:

while [[ j != k ]]; do ebuild /var/db/repos/gentoo/dev-libs/boost/boost-1.87.0.ebuild compile && break; done

ebuild /var/db/repos/gentoo/dev-libs/boost/boost-1.87.0.ebuild install

ebuild /var/db/repos/gentoo/dev-libs/boost/boost-1.87.0.ebuild qmerge
Comment 6 Ionen Wolkens gentoo-dev 2024-12-14 01:30:27 UTC
Oh right, had forgot you were one of those affected for qtdeclarative.

Easiest workaround (beside replacing hardware) for affected packages is to just use clang to build them rather than try to power through.