Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 926066 - dev-libs/boost-1.84.0-r3: compile failure, ERROR: rule "object(project-target)@5854.reset-alternatives" unknown in module "predef".
Summary: dev-libs/boost-1.84.0-r3: compile failure, ERROR: rule "object(project-target...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: David Seifert
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-03-03 06:54 UTC by Robin Johnson
Modified: 2024-03-15 04:30 UTC (History)
4 users (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2024-03-03 06:54:07 UTC
# zcat  '/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/temp/build.log.gz' 
 * Package:    dev-libs/boost-1.84.0-r3:0/1.84.0
 * Repository: gentoo
 * Maintainer: soap@gentoo.org office@gentoo.org
 * USE:        abi_x86_32 abi_x86_64 amd64 bzip2 context elibc_glibc kernel_linux lzma nls python python_targets_python3_11 stacktrace tools zlib zstd
 * FEATURES:   ccache network-sandbox preserve-libs sandbox splitdebug userpriv usersandbox
>>> Unpacking source...
>>> Unpacking boost_1_84_0.tar.bz2 to /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work
>>> Source unpacked in /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work
>>> Preparing source in /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0 ...
 * Applying boost-1.81.0-disable_icu_rpath.patch ...                                                                                                                                                        [ ok ]
 * Applying boost-1.79.0-build-auto_index-tool.patch ...                                                                                                                                                    [ ok ]
 * Applying boost-1.83.0-math-gcc14.patch ...                                                                                                                                                               [ ok ]
 * Applying boost-1.79.0-context-x32.patch ...                                                                                                                                                              [ ok ]
 * Applying boost-1.84.0-signals2-patch1.patch ...                                                                                                                                                          [ ok ]
 * Applying boost-1.84.0-signals2-patch2.patch ...                                                                                                                                                          [ ok ]
 * Will copy sources from /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0
 * abi_x86_32.x86: copying to /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_32.x86
 * abi_x86_64.amd64: copying to /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_64.amd64
>>> Source prepared.
>>> Configuring source in /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0 ...
 * abi_x86_32.x86: running multilib-minimal_abi_src_compile
 * Creating configuration in /var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_32.x86/user-config.jam
 * Disabling support for NumPy extensions in Boost.Python
b2 --user-config=/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_32.x86/user-config.jam --without-python --prefix=/usr gentoorelease -j18 -q -d+2 pch=off --disable-icu boost.locale.icu=off --without-mpi --boost-build=/usr/share/b2/src --layout=system threading=multi link=shared -sNO_BZIP2=0 -sNO_LZMA=0 -sNO_ZLIB=0 -sNO_ZSTD=0
/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_32.x86/libs/predef/check/../tools/check/predef.jam:34: in predef-check
ERROR: rule "object(project-target)@5854.reset-alternatives" unknown in module "predef".
libs/test/build/Jamfile.v2:22: in modules.load
/usr/share/b2/src/build/project.jam:372: in load-jamfile
/usr/share/b2/src/build/project.jam:64: in load
/usr/share/b2/src/build/project.jam:89: in load-used-projects
/usr/share/b2/src/build/project.jam:75: in load
/usr/share/b2/src/build/project.jam:142: in project.find
/usr/share/b2/src/build-system.jam:618: in load
/usr/share/b2/src/kernel/modules.jam:294: in import
/usr/share/b2/src/kernel/bootstrap.jam:135: in module scope
 * ERROR: dev-libs/boost-1.84.0-r3::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 3321:  Called multilib-minimal_src_compile
 *   environment, line 2083:  Called multilib_foreach_abi 'multilib-minimal_abi_src_compile'
 *   environment, line 2350:  Called multibuild_foreach_variant '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2055:  Called _multibuild_run '_multilib_multibuild_wrapper' 'multilib-minimal_abi_src_compile'
 *   environment, line 2053:  Called _multilib_multibuild_wrapper 'multilib-minimal_abi_src_compile'
 *   environment, line  500:  Called multilib-minimal_abi_src_compile
 *   environment, line 2077:  Called multilib_src_compile
 *   environment, line 2570:  Called die
 * The specific snippet of code:
 *       ejam --prefix="${EPREFIX}"/usr "${OPTIONS[@]}" || die;
 * 
 * If you need support, post the output of `emerge --info '=dev-libs/boost-1.84.0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-libs/boost-1.84.0-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/temp/build.log.gz'.
 * The ebuild environment file is located at '/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/temp/environment'.
 * Working directory: '/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0-abi_x86_32.x86'
 * S: '/var/tmp/portage-tmpfs/portage/dev-libs/boost-1.84.0-r3/work/boost_1_84_0'
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2024-03-03 06:54:17 UTC
doudna ~ # emerge -pv dev-libs/boost

 * IMPORTANT: 27 config files in '/etc/portage' need updating.
 * See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
 * sections of the emerge man page to learn how to update config files.

These are the packages that would be merged, in order:

Calculating dependencies... done!
Dependency resolution took 2.44 s (backtrack: 0/20).

[ebuild     U  ] dev-libs/boost-1.84.0-r3:0/1.84.0::gentoo [1.81.0-r1:0/1.81.0::gentoo] USE="bzip2 context* lzma nls python stacktrace%* tools zlib zstd* -debug -doc -icu -mpi -numpy" ABI_X86="32 (64) (-x32)" PYTHON_TARGETS="python3_11 -python3_10* -python3_12% (-python3_9%*)" 0 KiB

Total: 1 package (1 upgrade), Size of downloads: 0 KiB

 * IMPORTANT: 31 news items need reading for repository 'gentoo'.
 * Use eselect news read to view new items.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2024-03-03 06:54:34 UTC
doudna ~ # emerge --info
Portage 3.0.61 (python 3.11.8-final-0, default/linux/amd64/17.1, gcc-13, glibc-2.37-r3, 5.14.9-gentoo-x86_64 x86_64)
=================================================================
System uname: Linux-5.14.9-gentoo-x86_64-x86_64-AMD_Ryzen_5_3600_6-Core_Processor-with-glibc2.37
KiB Mem:    65797588 total,  43423908 free
KiB Swap:    2097084 total,   2097084 free
Timestamp of repository gentoo: Sun, 03 Mar 2024 06:30:00 +0000
Head commit of repository gentoo: 2cc6964f97c84b02944bf72ce1b53de8e5743e54
sh bash 5.1_p16-r6
ld GNU ld (Gentoo 2.41 p5) 2.41.0
ccache version 4.7.4 [enabled]
app-misc/pax-utils:        1.3.5::gentoo
app-shells/bash:           5.1_p16-r6::gentoo
dev-build/autoconf:        2.69-r8::gentoo, 2.71-r6::gentoo
dev-build/automake:        1.16.5::gentoo
dev-build/cmake:           3.25.2::gentoo
dev-build/libtool:         2.4.7-r1::gentoo
dev-build/make:            4.4.1-r1::gentoo
dev-build/meson:           1.3.1-r1::gentoo
dev-lang/perl:             5.36.0-r1::gentoo
dev-lang/python:           3.8.18_p2::gentoo, 3.9.18_p2::gentoo, 3.10.13_p3::gentoo, 3.11.8_p1::gentoo, 3.12.2_p1::gentoo
dev-lang/rust-bin:         1.74.1::gentoo
dev-util/ccache:           4.7.4::gentoo
sys-apps/baselayout:       2.14::gentoo
sys-apps/openrc:           0.45.2-r2::gentoo
sys-apps/sandbox:          2.29::gentoo
sys-devel/binutils:        2.41-r5::gentoo
sys-devel/binutils-config: 5.4.1::gentoo
sys-devel/gcc:             13.2.1_p20240113-r1::gentoo
sys-devel/gcc-config:      2.11::gentoo
sys-kernel/linux-headers:  6.1::gentoo (virtual/os-headers)
sys-libs/glibc:            2.37-r3::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-metamanifest: yes
    sync-rsync-verify-max-age: 24

usr_local
    location: /usr/local/portage
    masters: gentoo
    volatile: True

ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O2 -pipe"
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/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php8.0/ext-active/ /etc/php/apache2-php8.1/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cgi-php8.1/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/php/cli-php8.1/ext-active/ /etc/php/fpm-php8.0/ext-active/ /etc/php/fpm-php8.1/ext-active/ /etc/php/phpdbg-php8.0/ext-active/ /etc/php/phpdbg-php8.1/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo"
CXXFLAGS="-O2 -pipe"
DISTDIR="/home/gentoo/distfiles"
EMERGE_DEFAULT_OPTS="--jobs 4 --load-average=10 --autounmask-write"
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 -pipe"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs buildpkg buildpkg-live ccache compress-build-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox lmirror merge-sync mirror multilib-strict network-sandbox news parallel-fetch pid-sandbox pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms split-elog split-log splitdebug strict test-fail-continue unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O2 -pipe"
GENTOO_MIRRORS="http://distfiles.gentoo.org"
LANG="C.UTF8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LEX="flex"
MAKEOPTS="-j18 -l12"
PKGDIR="/home/gentoo/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/portage-tmpfs"
SHELL="/bin/bash"
USE="acl acpi adns amd64 audit augeas auto-hinter bzip2 cdr cgi cli crypt cryptsetup cscope curl cvs device-mapper diff dri expat fortran gd gdbm git hardened harfbuzz iconv innodb ipv6 ldns libtirpc lua luajit lvm2 lzma lzo metalink mmx multicall multilib ncurses nettle nls openmp pam pcap pcre perl png python readline rrdcgi rrdtool ruby savedconfig seccomp shadow socks5 split-usr sqlite3 sse sse2 ssh ssl suid test-rust threads tools udev unicode urandom usb utils vim-pager vim-syntax xattr xinetd xml xml2 xz yaml zlib zstd" ABI_X86="64 32" ADA_TARGET="gnat_2021" APACHE2_MODULES="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 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 asis auth_digest imagemap log_forensic proxy proxy_ajp proxy_balancer proxy_connect proxy_ftp proxy_http cgi version access_compat authn_core authz_core proxy_fcgi proxy_scgi ratelimit remoteip reqtimeout slotmem_shm socache_shmcb cache_disk authn_dbd cern_meta cgid charset_lite dbd dumpio ident lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat substitute unixd" APACHE2_MPMS="prefork" 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 mtk3301 ntrip navcom oceanserver oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 tsip tripmate tnt ublox" GRUB_PLATFORMS="efi-64 pc multiboot" INPUT_DEVICES="libinput" KERNEL="linux" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" NGINX_MODULES_HTTP="access auth_basic autoindex browser charset empty_gif fastcgi geo gzip limit_conn limit_req map memcached proxy referer rewrite scgi split_clients ssi upstream_ip_hash userid uwsgi addition ajp auth_pam auth_request cache_purge dav dav_ext degradation echo fancyindex flv geoip gunzip gzip_static headers_more image_filter lua metrics mp4 naxsi mogilefs perl push_stream random_index realip secure_link security slowfs_cache spdy sticky stub_status sub upload_progress upstream_check xslt" NGINX_MODULES_MAIL="imap pop3 smtp" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php8-1" POSTGRES_TARGETS="postgres15" PYTHON_SINGLE_TARGET="python3_11" PYTHON_TARGETS="python3_11" RUBY_TARGETS="ruby31" VIDEO_CARDS="amdgpu fbdev intel nouveau radeon radeonsi vesa dummy" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat 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, 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 Michael Plate 2024-03-13 23:46:59 UTC
I had the same problem and got rid of it by updating 

dev-build/b2

to the latest version 5.0.0 (from 4.9.x)
Comment 4 Alex Buell 2024-03-14 19:53:34 UTC
BDEPEND says it needs >= dev-build/b2-4.9.2 but it should be > not >=.
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2024-03-15 04:29:46 UTC
(In reply to Alex Buell from comment #4)
> BDEPEND says it needs >= dev-build/b2-4.9.2 but it should be > not >=.

While you might be technically right that it would make the dependency correct, I don't think it was a typo. I think it was just the number was forgotten for incrementing.

> deps tend to look ugly and we usually prefer explicitly stating the first OK version.
Comment 6 Larry the Git Cow gentoo-dev 2024-03-15 04:30:53 UTC
The bug has been closed via the following commit(s):

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

commit 8159431f00644ea772b93f494dd3996105733d8e
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2024-03-15 04:30:19 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2024-03-15 04:30:19 +0000

    dev-libs/boost: needs newer b2 (>=5.0.0)
    
    Closes: https://bugs.gentoo.org/926066
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-libs/boost/boost-1.84.0-r3.ebuild | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)