Using FEATURES='keepwork' to resume a build of www-client/chromium encounters errors. Reproducible: always Steps to Reproduce: 1. Start a build of www-client/chromium without FEATURES='keepwork' 2. Allow the build to progress at least a little ways into the compile phase 3. Kill the build (ctrl+c, yank the power cord, what have you) 4. Start another build of www-client/chromium with FEATURES='keepwork' Expected Results: The build continues where it left off and completes successfully. Actual Results: The build fails before completing the compile step with an error like: ``` "python3.12" "../../build/rust/rustc_wrapper.py" --rustc=../../../../../../../../../opt/rust-bin-1.83.0//bin/rustc --depfile=obj/base/libbase_crust_ulogg er.rlib.d --rsp=obj/base/libbase_crust_ulogger.rlib.rsp -- -Clinker="x86_64-pc-linux-gnu-clang++-19" --crate-name base_crust_ulogger ../../base/logging/r ust_logger.rs --crate-type rlib --edition=2021 -Dunsafe_op_in_unsafe_fn -Cforce-unwind-tables=no -Crelocation-model=pic -Cdefault-linker-libraries -Zdep- info-omit-d-target -Zmacro-backtrace -Zremap-cwd-prefix=. -Zexternal-clangrt --color=always --target=x86_64-unknown-linux-gnu -Cembed-bitcode=no -Clto=no -Ccodegen-units=1 -Zallow-features= -Coverflow-checks=on -Zdefault-visibility=hidden --emit=dep-info=obj/base/libbase_crust_ulogger.rlib.d,link -o obj/b ase/libbase_crust_ulogger.rlib LDFLAGS RUSTENV OUT_DIR=../../out/Release/gen/base/rust_logger error: the option `Z` is only accepted on the nightly compiler help: consider switching to a nightly toolchain: `rustup default nightly` note: selecting a toolchain with `+toolchain` arguments require a rustup proxy; see <https://rust-lang.github.io/rustup/concepts/index.html> note: for more information about Rust's stability policy, see <https://doc.rust-lang.org/book/appendix-07-nightly-rust.html#unstable-features> error: 1 nightly option were parsed ``` Versions Affected: At least versions 132.0.6834.83, 133.0.6943.53, 133.0.6943.98, and 133.0.6943.126 . I haven't tested any of these, but for reasons I'll list in a moment, almost definitely also 134.0.6998.15, 135.0.6999.2, and 135.0.7012.4 . Root Cause: The Rust compiler is invoked in the compile step (by Ninja) with several compiler options which are specific to the nightly compiler. With RUSTC_BOOTSTRAP=1, this works fine. Without RUSTC_BOOTSTRAP=1, it tries to use a non-nightly compiler which doesn't support any -Z flags. The RUSTC_BOOTSTRAP=1 environment variable is set in the pkg_setup() function in the ebuild script. If the pkg_setup() function runs and then the src_compile() step runs thereafter without exiting to a shell in between and losing the RUSTC_BOOTSTRAP=1 environment variable, everything works fine. But if a build is exited after pkg_setup() concludes and resumed later with FEATURES='keepwork', the missing RUSTC_BOOTSTRAP=1 environment variable results in the above-quoted error message. A Possible Solution: One solution would be simply to move the line which sets/exports RUSTC_BOOTSTRAP=1 into the src_compile() step. (The solution I've used was to move it to the top of the chromium_compile() function.) Postscript: I don't leave my computer on overnight, and Chromium takes a while to compile. So being able to continue a half-completed emerge of Chromium is pretty necessary for me.
Please provide emerge --info and a build.log and reopen the bug to UNCONFIRMED. For what it's worth, it is not supported to continue a failed build regardless of the reason for failure (error, ctrl+c, yank the power cord, etc). There are ways to use the 'ebuild' command directly, but not supported. Emerge does have a --resume function, but it resumes an emerge, not the compilation of a package itself.
Bugzilla isn't cooperating with me here. It's not letting me attach the build.log . It's well over the 1000 KB limit, so I compressed it. The bzip2-compressed file is 122 KB, but is still rejected with an `ERR_ACCESS_DENIED` response from https://bugs.gentoo.org/attachment.cgi . And it's not letting me include my `emerge --info www-client/chromium` in a comment because comments can't be more than 16384 characters. I guess I'll divide my `emerge --info www-client/chromium` across two comments, but I don't have a workaround for the build.log yet. (I'm sure you'd agree we don't want that split up and pasted into over 350 comments.) Oh, one more note. `emerge --info www-client/chromium` output does not reflect the `FEATURES=keepwork`. That's not in my `make.conf` or anything. The builds which failed with the `the option 'Z' is only accepted on the nightly compiler` error were started with `FEATURES='keepwork' emerge www-client/chromium`. Emerge Info (1/2): ``` > emerge --info www-client/chromium Portage 3.0.66.1 (python 3.12.8-final-0, default/linux/amd64/23.0/hardened/selinux, gcc-14, glibc-2.40-r8, 6.13.3-arch1-1 x86_64) ================================================================= System Settings ================================================================= System uname: Linux-6.13.3-arch1-1-x86_64-AMD_Ryzen_3_1300X_Quad-Core_Processor-with-glibc2.40 KiB Mem: 16287548 total, 12836812 free KiB Swap: 0 total, 0 free Timestamp of repository gentoo: Wed, 19 Feb 2025 23:45:00 +0000 Head commit of repository gentoo: bf2f6195ba1c83a4d7f2593b463a23fc5acb3817 sh bash 5.2_p37 ld GNU ld (Gentoo 2.43 p3) 2.43.1 ccache version 4.10.2 [disabled] app-misc/pax-utils: 1.3.8::gentoo app-shells/bash: 5.2_p37::gentoo dev-build/autoconf: 2.13-r8::gentoo, 2.72-r1::gentoo dev-build/automake: 1.16.5-r2::gentoo dev-build/cmake: 3.30.6::gentoo dev-build/libtool: 2.5.4::gentoo dev-build/make: 4.4.1-r100::gentoo dev-build/meson: 1.6.1::gentoo dev-lang/perl: 5.40.0-r1::gentoo dev-lang/python: 3.12.8_p1::gentoo, 3.13.1_p1::gentoo dev-lang/rust-bin: 1.82.0-r101::gentoo, 1.83.0-r1::gentoo dev-util/ccache: 4.10.2-r1::gentoo llvm-core/clang: 19.1.7::gentoo llvm-core/lld: 19.1.7::gentoo llvm-core/llvm: 18.1.8-r6::gentoo, 19.1.7::gentoo sec-policy/selinux-base: 2.20240916-r1::gentoo sys-apps/baselayout: 2.17::gentoo sys-apps/openrc: 0.55.1::gentoo sys-apps/sandbox: 2.39::gentoo sys-devel/binutils: 2.43-r2::gentoo sys-devel/binutils-config: 5.5.2::gentoo sys-devel/gcc: 14.2.1_p20241221::gentoo sys-devel/gcc-config: 2.12.1::gentoo sys-kernel/linux-headers: 6.6-r1::gentoo (virtual/os-headers) sys-libs/glibc: 2.40-r8::gentoo sys-libs/libselinux: 3.7-r1::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-metamanifest: yes sync-rsync-verify-jobs: 1 sync-rsync-extra-opts: sync-rsync-verify-max-age: 3 local location: /var/db/repos/local masters: gentoo volatile: False ABI="amd64" ABI_X86="64" ACCEPT_KEYWORDS="amd64" ACCEPT_LICENSE="@FREE" ACCEPT_PROPERTIES="*" ACCEPT_RESTRICT="*" ADA_TARGET="gcc_14" 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" ARCH="amd64" AUTOCLEAN="no" BINPKG_COMPRESS="zstd" BINPKG_FORMAT="gpkg" BINPKG_GPG_SIGNING_BASE_COMMAND="/usr/bin/flock /run/lock/portage-binpkg-gpg.lock /usr/bin/gpg --sign --armor [PORTAGE_CONFIG]" BINPKG_GPG_SIGNING_DIGEST="SHA512" BINPKG_GPG_VERIFY_BASE_COMMAND="/usr/bin/gpg --verify --batch --no-tty --no-auto-check-trustdb --status-fd 2 [PORTAGE_CONFIG] [SIGNATURE]" BINPKG_GPG_VERIFY_GPG_HOME="/etc/portage/gnupg" BOOTSTRAP_USE="unicode pkg-config split-usr xml python_targets_python3_12 python_single_target_python3_12 multilib zstd cet hardened pic xtpax -jit -orc curl_ssl_openssl jpeg ssl unconfined" BROOT="" CALLIGRA_FEATURES="karbon sheets words" CASROOT="/usr" CBUILD="x86_64-pc-linux-gnu" CCACHE_SIZE="2G" CFLAGS="-march=native -mtune=native -O2 -pipe" CFLAGS_amd64="-m64" CFLAGS_x32="-mx32" CFLAGS_x86="-m32 -mfpmath=sse" CHOST="x86_64-pc-linux-gnu" CHOST_amd64="x86_64-pc-linux-gnu" CHOST_x32="x86_64-pc-linux-gnux32" CHOST_x86="i686-pc-linux-gnu" CLEAN_DELAY="5" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" COLLISION_IGNORE="/boot/dtbs/* /lib/modules/*" COMMON_FLAGS="-march=native -mtune=native -O2 -pipe" CONFIG_PROTECT="/etc /usr/share/gnupg/qualified.txt" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/revdep-rebuild /etc/sandbox.d" CPU_FLAGS_X86="mmx mmxext sse sse2" CSF_GraphicShr="/usr/lib64/opencascade/libTKOpenGl.so" CSF_IGESDefaults="/usr/share/opencascade/resources/XSTEPResource" CSF_MDTVTexturesDirectory="/usr/share/opencascade/resources/Textures" CSF_MIGRATION_TYPES="/usr/share/opencascade/resources/StdResource/MigrationSheet.txt" CSF_PluginDefaults="/usr/share/opencascade/resources/StdResource" CSF_SHMessage="/usr/share/opencascade/resources/SHMessage" CSF_STEPDefaults="/usr/share/opencascade/resources/XSTEPResource" CSF_ShadersDirectory="/usr/share/opencascade/resources/Shaders" CSF_StandardDefaults="/usr/share/opencascade/resources/StdResource" CSF_StandardLiteDefaults="/usr/share/opencascade/resources/StdResource" CSF_UnitsDefinition="/usr/share/opencascade/resources/UnitsAPI/Units.dat" CSF_XCAFDefaults="/usr/share/opencascade/resources/StdResource" CSF_XSMessage="/usr/share/opencascade/resources/XSMessage" CSF_XmlOcafResource="/usr/share/opencascade/resources/XmlOcafResource" CXXFLAGS="-march=native -mtune=native -O2 -pipe" DEFAULT_ABI="amd64" DISTDIR="/var/cache/distfiles" EDITOR="vi" ELIBC="glibc" EMERGE_DEFAULT_OPTS="--verbose --ask --jobs 2" EMERGE_WARNING_DELAY="10" 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" EPREFIX="" EROOT="/" ESYSROOT="/" FCFLAGS="-march=native -mtune=native -O2 -pipe" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" FETCHCOMMAND="wget -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" FETCHCOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}"" FETCHCOMMAND_SFTP="bash -c "x=\${2#sftp://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; eval \"declare -a ssh_opts=(\${3})\" ; exec sftp \${port:+-P \${port}} \"\${ssh_opts[@]}\" \"\${host}:/\${x#*/}\" \"\$1\"" sftp "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" FETCHCOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" FFLAGS="-march=native -mtune=native -O2 -pipe" GCC_SPECS="" GENTOO_MIRRORS="https://mirror.clarkson.edu/gentoo/ http://mirror.clarkson.edu/gentoo/ rsync://mirror.clarkson.edu/gentoo/ http://www.gtlib.gatech.edu/pub/gentoo rsync://rsync.gtlib.gatech.edu/gentoo https://mirrors.mit.edu/gentoo-distfiles/ http://mirrors.mit.edu/gentoo-distfiles/ rsync://mirrors.mit.edu/gentoo-distfiles/ https://gentoo.osuosl.org/ http://gentoo.osuosl.org/ https://mirrors.rit.edu/gentoo/ http://mirrors.rit.edu/gentoo/ ftp://mirrors.rit.edu/gentoo/ rsync://mirrors.rit.edu/gentoo/ https://mirror.servaxnet.com/gentoo/ http://mirror.servaxnet.com/gentoo/ http://gentoo-mirror.flux.utah.edu/" GPG_VERIFY_GROUP_DROP="nogroup" GPG_VERIFY_USER_DROP="nobody" 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" GRUB_PLATFORMS="" GUILE_SINGLE_TARGET="3-0" GUILE_TARGETS="3-0" HOME="/root" INFOPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/14/info:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.43/info:/usr/share/autoconf-2.72/info:/usr/share/autoconf-2.13/info:/usr/share/automake-1.16.5/info:/usr/share/info" INPUT_DEVICES="libinput" IUSE_IMPLICIT="abi_x86_64 prefix prefix-guest prefix-stack" KERNEL="linux" ```
Emerge Info (2/2): ``` L10N="en en-US" LANG="en_US.utf8" LCD_DEVICES="bayrad cfontz glk hd44780 lb216 lcdm001 mtxorb text" LC_MESSAGES="C.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed -Wl,-z,pack-relative-relocs" LDFLAGS_amd64="-m elf_x86_64" LDFLAGS_x32="-m elf32_x86_64" LDFLAGS_x86="-m elf_i386" LESS="-R -M --shift 5" LESSOPEN="|lesspipe %s" LEX="flex" LIBDIR_amd64="lib64" LIBDIR_x32="libx32" LIBDIR_x86="lib" LS_COLORS="rs=0:di=01;34:ln=01;36:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:su=37;41:sg=30;43:ca=00:tw=30;42:ow=34;42:st=37;44:ex=01;32:*.7z=01;31:*.ace=01;31:*.alz=01;31:*.apk=01;31:*.arc=01;31:*.arj=01;31:*.bz=01;31:*.bz2=01;31:*.cab=01;31:*.cpio=01;31:*.crate=01;31:*.deb=01;31:*.drpm=01;31:*.dwm=01;31:*.dz=01;31:*.ear=01;31:*.egg=01;31:*.esd=01;31:*.gz=01;31:*.jar=01;31:*.lha=01;31:*.lrz=01;31:*.lz=01;31:*.lz4=01;31:*.lzh=01;31:*.lzma=01;31:*.lzo=01;31:*.pyz=01;31:*.rar=01;31:*.rpm=01;31:*.rz=01;31:*.sar=01;31:*.swm=01;31:*.t7z=01;31:*.tar=01;31:*.taz=01;31:*.tbz=01;31:*.tbz2=01;31:*.tgz=01;31:*.tlz=01;31:*.txz=01;31:*.tz=01;31:*.tzo=01;31:*.tzst=01;31:*.udeb=01;31:*.war=01;31:*.whl=01;31:*.wim=01;31:*.xz=01;31:*.z=01;31:*.zip=01;31:*.zoo=01;31:*.zst=01;31:*.avif=01;35:*.jpg=01;35:*.jpeg=01;35:*.mjpg=01;35:*.mjpeg=01;35:*.gif=01;35:*.bmp=01;35:*.pbm=01;35:*.pgm=01;35:*.ppm=01;35:*.tga=01;35:*.xbm=01;35:*.xpm=01;35:*.tif=01;35:*.tiff=01;35:*.png=01;35:*.svg=01;35:*.svgz=01;35:*.mng=01;35:*.pcx=01;35:*.mov=01;35:*.mpg=01;35:*.mpeg=01;35:*.m2v=01;35:*.mkv=01;35:*.webm=01;35:*.webp=01;35:*.ogm=01;35:*.mp4=01;35:*.m4v=01;35:*.mp4v=01;35:*.vob=01;35:*.qt=01;35:*.nuv=01;35:*.wmv=01;35:*.asf=01;35:*.rm=01;35:*.rmvb=01;35:*.flc=01;35:*.avi=01;35:*.fli=01;35:*.flv=01;35:*.gl=01;35:*.dl=01;35:*.xcf=01;35:*.xwd=01;35:*.yuv=01;35:*.cgm=01;35:*.emf=01;35:*.ogv=01;35:*.ogx=01;35:*.cfg=00;32:*.conf=00;32:*.diff=00;32:*.doc=00;32:*.ini=00;32:*.log=00;32:*.patch=00;32:*.pdf=00;32:*.ps=00;32:*.tex=00;32:*.txt=00;32:*.aac=00;36:*.au=00;36:*.flac=00;36:*.m4a=00;36:*.mid=00;36:*.midi=00;36:*.mka=00;36:*.mp3=00;36:*.mpc=00;36:*.ogg=00;36:*.ra=00;36:*.wav=00;36:*.oga=00;36:*.opus=00;36:*.spx=00;36:*.xspf=00;36:*~=00;90:*#=00;90:*.bak=00;90:*.crdownload=00;90:*.dpkg-dist=00;90:*.dpkg-new=00;90:*.dpkg-old=00;90:*.dpkg-tmp=00;90:*.old=00;90:*.orig=00;90:*.part=00;90:*.rej=00;90:*.rpmnew=00;90:*.rpmorig=00;90:*.rpmsave=00;90:*.swp=00;90:*.tmp=00;90:*.ucf-dist=00;90:*.ucf-new=00;90:*.ucf-old=00;90:" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" MAKEOPTS="-j4" MANPAGER="manpager" MANPATH="/usr/share/gcc-data/x86_64-pc-linux-gnu/14/man:/usr/share/binutils-data/x86_64-pc-linux-gnu/2.43/man:/usr/local/share/man:/usr/share/man:/usr/lib/rust/man-bin-1.82.0:/usr/lib/rust/man-bin-1.83.0:/usr/lib/llvm/19/share/man:/usr/lib/llvm/18/share/man" MOZ_GMP_PATH="/usr/lib64/nsbrowser/plugins/gmp-gmpopenh264/system-installed" MULTILIB_ABIS="amd64 x86" MULTILIB_STRICT_DENY="64-bit.*shared object" MULTILIB_STRICT_DIRS="/lib32 /lib /usr/lib32 /usr/lib /usr/kde/*/lib32 /usr/kde/*/lib /usr/qt/*/lib32 /usr/qt/*/lib /usr/X11R6/lib32 /usr/X11R6/lib" MULTILIB_STRICT_EXEMPT="(perl5|gcc|binutils|eclipse-3|debug|portage|udev|systemd|clang|python-exec|llvm)" OFFICE_IMPLEMENTATION="libreoffice" OLDPWD="/" PAGER="/usr/bin/less" PATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/19/bin:/usr/lib/llvm/18/bin:/usr/lib64/opencascade/bin" PAX_MARKINGS="none" PHP_TARGETS="php8-2" PKGDIR="/var/cache/binpkgs" POLICY_TYPES="strict targeted" PORTAGE_ARCHLIST="alpha amd64 amd64-linux arm arm-linux arm64 arm64-linux arm64-macos hppa loong m68k mips ppc ppc-macos ppc64 ppc64-linux riscv riscv-linux s390 sparc x64-macos x64-solaris x86 x86-linux x86-macos" PORTAGE_BIN_PATH="/usr/lib/portage/python3.12" PORTAGE_COMPRESS_EXCLUDE_SUFFIXES="css gif htm[l]? jp[e]?g js pdf png" PORTAGE_CONFIGROOT="/" PORTAGE_DEBUG="0" PORTAGE_DEPCACHEDIR="/var/cache/edb/dep" PORTAGE_ELOG_CLASSES="log warn error" PORTAGE_ELOG_MAILFROM="portage@localhost" PORTAGE_ELOG_MAILSUBJECT="[portage] ebuild log for ${PACKAGE} on ${HOST}" PORTAGE_ELOG_MAILURI="root" PORTAGE_ELOG_SYSTEM="save_summary:log,warn,error,qa echo" PORTAGE_FETCH_CHECKSUM_TRY_MIRRORS="5" PORTAGE_FETCH_RESUME_MIN_SIZE="350K" PORTAGE_FETCH_T="portage_fetch_t" PORTAGE_GID="250" PORTAGE_GPG_SIGNING_COMMAND="gpg --sign --digest-algo SHA256 --clearsign --yes --default-key "${PORTAGE_GPG_KEY}" --homedir "${PORTAGE_GPG_DIR}" "${FILE}"" PORTAGE_INST_GID="0" PORTAGE_INST_UID="0" PORTAGE_INTERNAL_CALLER="1" PORTAGE_LOGDIR="/var/log/portage" PORTAGE_LOGDIR_CLEAN="find "${PORTAGE_LOGDIR}" -type f ! -name "summary.log*" -mtime +7 -delete" PORTAGE_OVERRIDE_EPREFIX="" PORTAGE_PYM_PATH="/usr/lib/python3.12/site-packages" PORTAGE_PYTHONPATH="/usr/lib/python3.12/site-packages" 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_RSYNC_RETRIES="-1" PORTAGE_SANDBOX_T="portage_sandbox_t" PORTAGE_SYNC_STALE="30" PORTAGE_T="portage_t" PORTAGE_TMPDIR="/var/tmp" PORTAGE_TRUST_HELPER="/usr/bin/getuto" PORTAGE_VERBOSE="1" PORTAGE_WORKDIR_MODE="0700" PORTAGE_XATTR_EXCLUDE="bcachefs.* bcachefs_effective.* btrfs.* security.evm security.ima security.selinux system.nfs4_acl user.apache_handler user.Beagle.* user.dublincore.* user.mime_encoding user.xdg.*" POSTGRES_TARGETS="postgres16" PROFILE_IS_HARDENED="1" PROFILE_ONLY_VARIABLES="ARCH ELIBC IUSE_IMPLICIT KERNEL USE_EXPAND_IMPLICIT USE_EXPAND_UNPREFIXED USE_EXPAND_VALUES_ARCH USE_EXPAND_VALUES_ELIBC USE_EXPAND_VALUES_KERNEL" PWD="/root" PYTHONDONTWRITEBYTECODE="1" PYTHON_SINGLE_TARGET="python3_12" PYTHON_TARGETS="python3_12" RESUMECOMMAND="wget -c -t 3 -T 60 --passive-ftp -O "${DISTDIR}/${FILE}" "${URI}"" RESUMECOMMAND_RSYNC="rsync -LtvP "${URI}" "${DISTDIR}/${FILE}"" RESUMECOMMAND_SSH="bash -c "x=\${2#ssh://} ; host=\${x%%/*} ; port=\${host##*:} ; host=\${host%:*} ; [[ \${host} = \${port} ]] && port= ; exec rsync --rsh=\"ssh \${port:+-p\${port}} \${3}\" -avP \"\${host}:/\${x#*/}\" \"\$1\"" rsync "${DISTDIR}/${FILE}" "${URI}" "${PORTAGE_SSH_OPTS}"" ROOT="/" ROOTPATH="/usr/local/sbin:/usr/local/bin:/usr/bin:/opt/bin:/usr/lib/llvm/19/bin:/usr/lib/llvm/18/bin" RPMDIR="/var/cache/rpm" RUBY_TARGETS="ruby32" SHELL_SETS_TITLE="0" SHLVL="1" SYMLINK_LIB="no" SYSROOT="/" TERM="st-256color" TERMINFO_DIRS="/usr/share/st/terminfo" TWISTED_DISABLE_WRITING_OF_PLUGIN_CACHE="1" UNINSTALL_IGNORE="/boot/dtbs/* /lib/modules/* /var/run /var/lock /bin /lib /lib32 /lib64 /libx32 /sbin /usr/sbin /usr/lib/modules/*" USE="acl amd64 audit bzip2 caps cet crypt gdbm hardened iconv ipv6 libtirpc linguas_en multilib ncurses nls openmp pam pcre pic pie readline seccomp selinux ssl ssp test-rust unicode wayland xattr xtpax zlib" ABI_X86="64" ADA_TARGET="gcc_14" 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="mmx mmxext sse sse2" 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="ruby32" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" USERLAND="GNU" USE_EXPAND="ABI_MIPS ABI_S390 ABI_X86 ADA_TARGET ALSA_CARDS AMDGPU_TARGETS APACHE2_MODULES APACHE2_MPMS CALLIGRA_FEATURES CAMERAS COLLECTD_PLUGINS CPU_FLAGS_ARM CPU_FLAGS_PPC CPU_FLAGS_X86 CURL_QUIC CURL_SSL ELIBC FFTOOLS GPSD_PROTOCOLS GRUB_PLATFORMS GUILE_SINGLE_TARGET GUILE_TARGETS INPUT_DEVICES KERNEL L10N LCD_DEVICES LIBREOFFICE_EXTENSIONS LLVM_SLOT LLVM_TARGETS LUA_SINGLE_TARGET LUA_TARGETS NGINX_MODULES_HTTP NGINX_MODULES_MAIL NGINX_MODULES_STREAM OFFICE_IMPLEMENTATION OPENMPI_FABRICS OPENMPI_OFED_FEATURES OPENMPI_RM PERL_FEATURES PHP_TARGETS POSTGRES_TARGETS PYTHON_SINGLE_TARGET PYTHON_TARGETS QEMU_SOFTMMU_TARGETS QEMU_USER_TARGETS RUBY_TARGETS SANE_BACKENDS UWSGI_PLUGINS VIDEO_CARDS VOICEMAIL_STORAGE XTABLES_ADDONS" USE_EXPAND_HIDDEN="ABI_MIPS ABI_S390 CPU_FLAGS_ARM CPU_FLAGS_PPC ELIBC KERNEL" USE_EXPAND_IMPLICIT="ARCH ELIBC KERNEL" USE_EXPAND_UNPREFIXED="ARCH" USE_EXPAND_VALUES_ARCH="alpha amd64 amd64-linux arm arm64 arm64-macos hppa loong m68k mips ppc ppc64 ppc64-linux ppc-macos riscv s390 sparc x64-macos x64-solaris x86 x86-linux" USE_EXPAND_VALUES_ELIBC="bionic Darwin glibc mingw musl SunOS" USE_EXPAND_VALUES_KERNEL="Darwin linux SunOS" USE_ORDER="env:pkg:conf:defaults:pkginternal:features:repo:env.d" VIDEO_CARDS="radeon radeonsi" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipp2p iface geoip fuzzy condition tarpit sysrq proto logmark ipmark dhcpmac delude chaos account" ac_cv_c_undeclared_builtin_options="none needed" enable_year2038="no" gl_cv_compiler_check_decl_option="-Werror=implicit-function-declaration" gl_cv_func_getcwd_path_max="yes" ================================================================= Package Settings ================================================================= www-client/chromium-133.0.6943.98::local was built with the following: USE="official proprietary-codecs screencast (selinux) system-harfbuzz system-png system-zstd vaapi wayland widevine -X -bindist -cups -custom-cflags -debug -ffmpeg-chromium -gtk4 -hangouts (-headless) -kerberos -pax-kernel (-pgo) -pulseaudio -qt6 (-system-icu) -test" ABI_X86="(64)" L10N="-af -am -ar -bg -bn -ca -cs -da -de -el -en-GB -es -es-419 -et -fa -fi -fil -fr -gu -he -hi -hr -hu -id -it -ja -kn -ko -lt -lv -ml -mr -ms -nb -nl -pl -pt-BR -pt-PT -ro -ru -sk -sl -sr -sv -sw -ta -te -th -tr -uk -ur -vi -zh-CN -zh-TW" LLVM_SLOT="19" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs binpkg-multi-instance buildpkg buildpkg-live clean-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox keepwork merge-sync merge-wait multilib-strict network-sandbox news parallel-fetch pkgdir-index-trusted preserve-libs protect-owned qa-unresolved-soname-deps sandbox selinux sesandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr" ```
Created attachment 919642 [details] build.log (bzip2 compressed)
One more thing. Here's a patch which accomplishes what I'm proposing. ``` > diff -ur /var/db/repos/gentoo/www-client/chromium/chromium-135.0.7012.4.ebuild /var/db/repos/local/www-client/chromium/chromium-135.0.7012.4.ebuild --- /var/db/repos/gentoo/www-client/chromium/chromium-135.0.7012.4.ebuild 2025-02-14 06:10:44.000000000 -0600 +++ /var/db/repos/local/www-client/chromium/chromium-135.0.7012.4.ebuild 2025-02-21 15:45:54.644569673 -0600 @@ -350,10 +350,6 @@ CPP="${CBUILD}-clang++-${LLVM_SLOT} -E" fi - # I hate doing this but upstream Rust have yet to come up with a better solution for - # us poor packagers. Required for Split LTO units, which are required for CFI. - export RUSTC_BOOTSTRAP=1 - # Users should never hit this, it's purely a development convenience if ver_test $(gn --version || die) -lt ${GN_MIN_VER}; then die "dev-build/gn >= ${GN_MIN_VER} is required to build this Chromium" @@ -1216,6 +1212,9 @@ } chromium_compile() { + # I hate doing this but upstream Rust have yet to come up with a better solution for + # us poor packagers. Required for Split LTO units, which are required for CFI. + export RUSTC_BOOTSTRAP=1 # Final link uses lots of file descriptors. ulimit -n 2048 ``` Thanks for taking a look!
(Oh, and the upload issue was on my end. My browser didn't have permissions to the file I was trying to upload.)
Hi AntiMS. `FEATURES=keepwork` is really more about keeping a failed compile around for inspecting its output afterwards rather than a guarantee that you'll be able to resume the build - as you've identified here it's kind of "dumb" and doesn't re-use / source the existing ebuild environment, resulting in all kinds of issues like this. I've linked a selection of other `keepwork` - related bugs to this one for reference. Using `ebuild chromium-1.2.3.4.ebuild merge` should source the existing environment in the ebuild if you want to resume - I use this regularly for Chromium ebuild development. Closing as invalid (not a bug).
Thank you for the response!
*** Bug 950441 has been marked as a duplicate of this bug. ***