I am trying to emerge app-emulation/virtualbox-6.1.16, but the compilation is failing when compiling file VBox/VMM/VMMAll/IEMAll.cpp. The problem also happens in 6.1.14a and the stable-marked 6.0.24. I don't know if it is due kernel upgrade. Reproducible: Always Steps to Reproduce: Just emerge virtualbox Actual Results: Failure during compile phase Expected Results: Must install without issues - I am using kernel gentoo-sources 5.4.71. - VirtualBox used to compile on this machine before.
Created attachment 670184 [details] emerge --info
Created attachment 670187 [details] Trimmed build.log to save space, only shows important snippets.
You trimmed too much. Please attach the entire build.log file. If bugzilla says it's too big, attach it compressed.
Created attachment 670220 [details] Full build.log (Compressed)
(In reply to Lars Wendler (Polynomial-C) from comment #3) > You trimmed too much. Please attach the entire build.log file. If bugzilla > says it's too big, attach it compressed. Done. I thought only the failure part is important in addition to the building initialization information (Such as configure).
Here's the real error: x86_64-pc-linux-gnu-g++ -c -O2 -fPIC -g -pipe -Wshadow -Wall -Wextra -Wno-missing-field-initializers -Wno-unused -Wno-trigraphs -fdiagnostics-show-option -Wno-unused-parameter -Wlogical-op -Wno-variadic-macros -Wno-long-long -Wunused-variable -Wunused-function -Wunused-label -Wunused-parameter -Wno-overloaded-virtual -Wno-array-bounds -Wno-ignored-qualifiers -Wno-variadic-macros -Wno-multistatement-macros -Wno-class-memaccess -Wshadow -fshort-wchar -fpermissive -fexceptions -frtti -O2 -pipe -march=native -fno-omit-frame-pointer -fno-strict-aliasing -fvisibility-inlines-hidden -fvisibility=hidden -DVBOX_HAVE_VISIBILITY_HIDDEN -DRT_USE_VISIBILITY_DEFAULT -std=c++11 -fdollars-in-identifiers -m64 -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/ -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/src/VBox/Main/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/string -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/xpcom -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/nsprpub -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/bin/sdk/bindings/xpcom/include/ipcd -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/dtrace -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/include -I/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release -DVBOX -DVBOX_OSE -DVBOX_WITH_64_BITS_GUESTS -DRT_OS_LINUX -D_FILE_OFFSET_BITS=64 -DRT_ARCH_AMD64 -D__AMD64__ -DVBOX_WITH_DEBUGGER -DVBOX_WITH_HARDENING -DRTPATH_APP_PRIVATE=\"/usr/share/virtualbox\" -DRTPATH_APP_PRIVATE_ARCH=\"/usr/lib64/virtualbox\" -DRTPATH_SHARED_LIBS=\"/usr/lib64/virtualbox\" -DRTPATH_APP_DOCS=\"\" -DPIC -DIN_RING3 -DUNICODE -DNDEBUG=1 -DVBOX_WITH_DTRACE -DVBOX_WITH_DTRACE_R3 -DVBOX_WITH_DTRACE_R3_MAIN -DVBOX_WITH_XPCOM -DVBOX_WITH_XPCOM_NAMESPACE_CLEANUP -Wp,-MD,/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/gen/CloudNetworkWrap.o.dep -Wp,-MT,/var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/gen/CloudNetworkWrap.o -Wp,-MP -o /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/gen/CloudNetworkWrap.o -Winvalid-pch -include /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/CloudNetworkWrap.cpp cc1plus: warning: /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h.gch: created and used with differing settings of '-mlwp' cc1plus: error: one or more PCH files were found, but they were invalid cc1plus: fatal error: /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h: No such file or directory compilation terminated. kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:277: /var/tmp/portage/app-emulation/virtualbox-6.1.16/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/gen/CloudNetworkWrap.o] Error 1 kmk: *** Waiting for unfinished jobs.... Please post the output of emerge -Opqv gcc to this bug.
(In reply to Lars Wendler (Polynomial-C) from comment #6) > Please post the output of > > emerge -Opqv gcc > > to this bug. [ebuild R ] sys-devel/gcc-9.3.0-r1 USE="(cxx) fortran (multilib) nls nptl openmp pch (pie) sanitize ssp vtv (-ada) (-altivec) -d -debug -doc (-fixed-point) -go -graphite (-hardened) -jit (-libssp) -lto -objc -objc++ -objc-gc -pgo -systemtap -test -vanilla"
I don't know if this is related to gcc, but I have crossdev and used to install targets before (Mainly for aarch64 and PPC), but I removed them all.
Is this problem from our side or should it be reported to Oracle?
The same in problem in app-emulation/virtualbox-6.1.16-r1. It is the only available version now. cc1plus: warning: /var/tmp/portage/app-emulation/virtualbox-6.1.16-r1/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h.gch: created and used with differing settings of '-mrtm' cc1plus: error: one or more PCH files were found, but they were invalid cc1plus: fatal error: /var/tmp/portage/app-emulation/virtualbox-6.1.16-r1/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h: No such file or directory compilation terminated. kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:277: /var/tmp/portage/app-emulation/virtualbox-6.1.16-r1/work/VirtualBox-6.1.16/out/linux.amd64/release/obj/VBoxAPIWrap/gen/SharedFolderWrap.o] Error 1
The problem still occurs in virtualbox-6.1.18. In my opinion this is a major problem for this package.
I cannot reproduce the problem which makes it quite hard to find the cause of your issue. I'd highly appreciate a good instruction how to reliably reproduce this issue...
(In reply to Lars Wendler (Polynomial-C) from comment #12) > I cannot reproduce the problem which makes it quite hard to find the cause > of your issue. I'd highly appreciate a good instruction how to reliably > reproduce this issue... I just do a normal "emerge --ask virtualbox" with no custom USE flags. I just did an emerge --sync and tried emerging the package again and I still got the following error: cc1plus: warning: /var/tmp/portage/app-emulation/virtualbox-6.1.18/work/VirtualBox-6.1.18/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h.gch: created and used with differing settings of '-mlwp' cc1plus: error: one or more PCH files were found, but they were invalid cc1plus: fatal error: /var/tmp/portage/app-emulation/virtualbox-6.1.18/work/VirtualBox-6.1.18/out/linux.amd64/release/obj/VBoxAPIWrap/pch/VBoxAPIWrap-precomp_gcc.h: No such file or directory compilation terminated. kmk: *** [/usr/share/kBuild/footer-pass2-compiling-targets.kmk:277: /var/tmp/portage/app-emulation/virtualbox-6.1.18/work/VirtualBox-6.1.18/out/linux.amd64/release/obj/VBoxAPIWrap/gen/DHCPGroupConditionWrap.o] Error 1 kmk: *** Waiting for unfinished jobs.... The USE flags are as follows: These are the packages that would be merged, in order: Calculating dependencies... done! [ebuild N ] acct-group/vboxusers-0-r1 [ebuild N ] sys-devel/bin86-0.16.21 [ebuild N ] dev-util/byacc-20200910 [ebuild N ] dev-util/kbuild-0.1.9998.3407 [ebuild N ] sys-power/iasl-20200326 USE="-test" [ebuild N ] virtual/linux-sources-3-r5 USE="-firmware" [ebuild N ] app-emulation/virtualbox-modules-6.1.18 USE="(-dist-kernel) -pax_kernel" [ebuild N ] dev-libs/libIDL-0.8.14-r2 ABI_X86="(64) -32 (-x32)" [ebuild N ] dev-qt/qtx11extras-5.15.2 USE="-debug -test" [ebuild N ] app-emulation/virtualbox-6.1.18 USE="alsa opengl opus pam pulseaudio qt5 sdk udev -debug -doc -dtrace -headless -java (-libressl) -lvm -pax_kernel -python -vboxwebsrv -vnc" PYTHON_SINGLE_TARGET="python3_8 -python3_7"
Faced the same issue with virtualbox 6.1.22, Temporarily removing `-march=native -mtune=native` from cflags have solved the issue for me. Initially I had COMMON_FLAGS="-march=native -mtune=native -O2 -pipe" CFLAGS="${COMMON_FLAGS}" CXXFLAGS="${COMMON_FLAGS}" FCFLAGS="${COMMON_FLAGS}" FFLAGS="${COMMON_FLAGS}" in /etc/portage/make.conf
(In reply to misdoro from comment #14) > Faced the same issue with virtualbox 6.1.22, > > Temporarily removing `-march=native -mtune=native` from cflags have solved > the issue for me. > > Initially I had > > COMMON_FLAGS="-march=native -mtune=native -O2 -pipe" > CFLAGS="${COMMON_FLAGS}" > CXXFLAGS="${COMMON_FLAGS}" > FCFLAGS="${COMMON_FLAGS}" > FFLAGS="${COMMON_FLAGS}" > > in /etc/portage/make.conf What is your CPU?
It does not compile on model name : Intel(R) Core(TM) i7-9850H CPU @ 2.60GHz
CPU flags: flags : fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush dts acpi mmx fxsr sse sse2 ss ht tm pbe syscall nx pdpe1gb rdtscp lm constant_tsc art arch_perfmon pebs bts rep_good nopl xtopology nonstop_tsc cpuid aperfmperf pni pclmulqdq dtes64 monitor ds_cpl vmx smx est tm2 ssse3 sdbg fma cx16 xtpr pdcm pcid sse4_1 sse4_2 x2apic movbe popcnt tsc_deadline_timer aes xsave avx f16c rdrand lahf_lm abm 3dnowprefetch cpuid_fault epb invpcid_single ssbd ibrs ibpb stibp ibrs_enhanced tpr_shadow vnmi flexpriority ept vpid ept_ad fsgsbase tsc_adjust bmi1 avx2 smep bmi2 erms invpcid mpx rdseed adx smap clflushopt intel_pt xsaveopt xsavec xgetbv1 xsaves dtherm ida arat pln pts hwp hwp_notify hwp_act_window hwp_epp md_clear flush_l1d arch_capabilities vmx flags : vnmi preemption_timer invvpid ept_x_only ept_ad ept_1gb flexpriority tsc_offset vtpr mtf vapic ept vpid unrestricted_guest ple shadow_vmcs pml ept_mode_based_exec bugs : spectre_v1 spectre_v2 spec_store_bypass swapgs taa itlb_multihit srbds
Created attachment 746124 [details] build.log virtualbox-6.1.28 gentoo-sources-5.14.5 (gzipped) Have hit a similar error message with virtualbox-6.1.28 against gentoo-sources-5.14.5, log attached. emerge -Opqv gcc [ebuild R ] sys-devel/gcc-11.2.0 USE="(cxx) fortran jit lto (multilib) nls nptl openmp pch (pie) sanitize ssp zstd (-ada) -custom-cflags -d -debug -doc (-fixed-point) -go -graphite (-hardened) (-libssp) -objc -objc++ -objc-gc -pgo -systemtap -test -valgrind -vanilla -vtv" emerge --info Portage 3.0.28 (python 3.9.7-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-11.2.0, glibc-2.33-r7, 5.14.5-gentoo x86_64) ================================================================= System uname: Linux-5.14.5-gentoo-x86_64-Intel-R-_Core-TM-_i7-7600U_CPU_@_2.80GHz-with-glibc2.33 KiB Mem: 16122888 total, 3405124 free KiB Swap: 18753532 total, 18753276 free Timestamp of repository gentoo: Thu, 21 Oct 2021 19:30:01 +0000 Head commit of repository gentoo: 5546f78303e794af0089dede93b386093489ce83 sh bash 5.1_p8 ld GNU gold (Gentoo 2.37_p1 p0 2.37) 1.16 distcc 3.4 x86_64-pc-linux-gnu [disabled] ccache version 4.4.2 [enabled] app-shells/bash: 5.1_p8::gentoo dev-java/java-config: 2.3.1::gentoo dev-lang/perl: 5.34.0-r3::gentoo dev-lang/python: 3.9.7_p1::gentoo, 3.10.0_p1::gentoo dev-lang/rust-bin: 1.55.0::gentoo dev-util/ccache: 4.4.2::gentoo dev-util/cmake: 3.21.3::gentoo sys-apps/baselayout: 2.8::gentoo sys-apps/openrc: 0.44.7::gentoo sys-apps/sandbox: 2.25::gentoo sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r5::gentoo, 2.71-r1::gentoo sys-devel/automake: 1.16.5::gentoo sys-devel/binutils: 2.36.1-r1::gentoo, 2.37_p1::gentoo sys-devel/gcc: 10.3.0::gentoo, 11.2.0::gentoo sys-devel/gcc-config: 2.4::gentoo sys-devel/libtool: 2.4.6-r6::gentoo sys-devel/make: 4.3::gentoo sys-kernel/linux-headers: 5.14::gentoo (virtual/os-headers) sys-libs/glibc: 2.33-r7::gentoo Repositories: gentoo location: /usr/portage sync-type: rsync sync-uri: rsync://hazel/gentoo-portage priority: -1000 sync-rsync-verify-jobs: 1 sync-rsync-verify-metamanifest: no sync-rsync-verify-max-age: 24 sync-rsync-extra-opts: x-portage location: /usr/local/portage masters: gentoo priority: 0 ACCEPT_KEYWORDS="amd64 ~amd64" ACCEPT_LICENSE="*" CBUILD="x86_64-pc-linux-gnu" CFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" CHOST="x86_64-pc-linux-gnu" CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /usr/share/themes/oxygen-gtk/gtk-2.0" CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/dconf /etc/env.d /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php7.3/ext-active/ /etc/php/apache2-php7.4/ext-active/ /etc/php/apache2-php8.0/ext-active/ /etc/php/cgi-php7.3/ext-active/ /etc/php/cgi-php7.4/ext-active/ /etc/php/cgi-php8.0/ext-active/ /etc/php/cli-php7.3/ext-active/ /etc/php/cli-php7.4/ext-active/ /etc/php/cli-php8.0/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo" CXXFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" DISTDIR="/var/cache/distfiles" EMERGE_DEFAULT_OPTS="--nospinner --verbose-conflicts --quiet-build=n" ENV_UNSET="CARGO_HOME DBUS_SESSION_BUS_ADDRESS DISPLAY 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" FCFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs ccache distlocks ebuild-locks fail-clean fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news pid-sandbox preserve-libs protect-owned qa-unresolved-soname-deps sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync" FFLAGS="-march=native -O2 -pipe -fomit-frame-pointer" GENTOO_MIRRORS="http://www.mirrorservice.org/sites/distfiles.gentoo.org/ http://mirrors.gethosted.online/gentoo http://mirrors.soeasyto.com/distfiles.gentoo.org/" LANG="en_GB.utf8" LDFLAGS="-Wl,-O1 -Wl,--as-needed" LINGUAS="en_GB" MAKEOPTS="-j8 -l5.5" 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="/tmp" USE="X a52 aac acl acpi activities alsa amd64 bash-completion bluetooth branding bzip2 cairo cdda cddb cdr cli crypt css cups dbus declarative dga djvu dri dri3 dts dvd dvdr egl elogind emboss encode exif fam fbcon ffmpeg flac fortran ftp gd gdbm geoip gif gimp gles gles2 gmp gnutls gphoto2 gpm graphviz gtk gui hddtemp iconv icu imagemagick imap inotify ipv6 java javascript jit jpeg kde kipi kwallet lame latex lcms libglvnd libkms libnotify libtirpc lm-sensors lto lzma lzo mad maildir matroska mbox mmap mng mp3 mp4 mpeg mplayer mtp multilib musicbrainz mysql ncurses nls nptl nsplugin ocamlopt offensive ofx ogg opengl openmp pam pango pcre pda pdf perl php plasma png policykit posix postscript ppds qml qt5 quicktime radius raw readline rss rtc samba scanner sdl seccomp session sharedmem smp snmp sockets socks5 sound spell split-usr sqlite sqlite3 ssl startup-notification subversion svg syslog tcpd theora threads tidy tiff tk tokenizer touchpad truetype udev udisks ukit unicode upnp upnp-av upower usb v4l vaapi vcd vhosts vnc vorbis vulkan wayland webp widgets wifi wmf wps wxwidgets x264 xattr xcb xcomposite xft xine xml xpm xscreensaver xv xvid xvmc zlib" ABI_X86="64" ADA_TARGET="gnat_2019" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" APACHE2_MODULES="authn_core authz_core socache_shmcb unixd 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 cgi cgid 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" 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 sse sse2 sse3 sse4_1 sse4_2 ssse3" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock greis isync itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 multiboot" INPUT_DEVICES="synaptics libinput" KERNEL="linux" L10N="en-GB" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="X86 BPF" LUA_SINGLE_TARGET="lua5-1" LUA_TARGETS="lua5-1" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-3 php7-4" POSTGRES_TARGETS="postgres12 postgres13" PYTHON_SINGLE_TARGET="python3_9" PYTHON_TARGETS="python3_9" RUBY_TARGETS="ruby26 ruby27" SANE_BACKENDS="hp net" USERLAND="GNU" VIDEO_CARDS="intel i965 iris" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq proto steal rawnat logmark ipmark dhcpmac delude chaos account" Unset: CC, CPPFLAGS, CTARGET, CXX, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS, RUSTFLAGS
Created attachment 746619 [details] virtualbox-6.1.28 build log and emerge --info I got similar problem too on ~amd64: - app-emulation/virtualbox-6.1.28 - sys-kernel/zen-sources-5.14.6 - sys-devel/gcc-11.2.0 I join an attachment containing "emerge --info" and emerge build log. https://www.virtualbox.org/wiki/Changelog show this for 6.1.28 version: * Linux Host and Guest: Introduced initial support for kernels 5.14 and 5.15 I wonder if this problem is kernel version related.
This is a known bug that's WONTFIX from redhat. I do think this bug should be left open as we're a source-based distro and need to figure out a workaround. https://bugzilla.redhat.com/show_bug.cgi?id=1721553#c34 < this comment specifically describes what's going on. (if it seems unrelated, see the next few comments referencing virtualbox, this is the same issue). Basically because GCC is compiled as position independent code, memory addresses get scrambled and this is not compatible with PCH (which is sort of like a memory dump of GCC's state). We're not disabling PIE on GCC to make this work. It looks like the best workaround might be to disable PCH in virtualbox entirely, here's a starting point: https://pkgs.rpmfusion.org/cgit/free/VirtualBox.git/commit/?id=534430ee02d571456506126482919f390eb40d4f (I'll see if I can get a patch updated for gentoo)
Yeah... uh, actually I don't have a lot of time to work on this with holiday. Here's the easy workaround to getting it to build on an affected system: VBOX_WITHOUT_PRECOMPILED_HEADERS=1 emerge virtualbox
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1aebf0a854ed6cad6b4414767d6d6bb89da311c9 commit 1aebf0a854ed6cad6b4414767d6d6bb89da311c9 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-12 01:59:41 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-12 02:45:17 +0000 app-emulation/virtualbox: allow disabling PCH Persistent hard to debug build failures. It's fragile and I'm about to use.mask it globally anyway. Closes: https://bugs.gentoo.org/753323 Signed-off-by: Sam James <sam@gentoo.org> app-emulation/virtualbox/virtualbox-6.1.24-r1.ebuild | 9 +++++++-- app-emulation/virtualbox/virtualbox-6.1.28-r1.ebuild | 9 +++++++-- app-emulation/virtualbox/virtualbox-6.1.30.ebuild | 9 +++++++-- 3 files changed, 21 insertions(+), 6 deletions(-) Additionally, it has been referenced in the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fb809aeadee57ffa24591e60cfb41aecd4823090 commit fb809aeadee57ffa24591e60cfb41aecd4823090 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-01-12 01:16:55 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-01-12 02:45:18 +0000 profiles/base: [QA] mask USE=pch PCH is notoriously fragile & unstable. It often leads to (unclear) build failures and has questionable value in terms of performance, at least for the general case. Users are free to unmask it if they wish at their own risk. Bug: https://bugs.gentoo.org/753323 Bug: https://bugs.gentoo.org/822690 Signed-off-by: Sam James <sam@gentoo.org> profiles/base/use.mask | 8 ++++++++ 1 file changed, 8 insertions(+)