Closed rafaelfortes closed 4 years ago
-fuse-ld=[bfd/gold]
in the CFLAGS, which is how I do it ( https://gcc.gnu.org/onlinedocs/gcc-9.2.0/gcc/Link-Options.html#Link-Options )emerge --info
output with us, as it seems like you are running a hardened profileskipping incompatible /usr/lib/libdl.a when searching for -ldl
, where /usr/lib is for 32-bit binaries and /usr/lib64 for 64-bit ones; VirtualBox is being compiled as an amd64 (64-bit) program, while the compiler and linker are being served IA-32 (32-bit) libraries, which are not compatible (at least this is my guess from personal experience, https://bugs.gentoo.org/show_bug.cgi?id=690676 and https://bugs.gentoo.org/show_bug.cgi?id=691274 , and the little information you have currently provided us with regarding your system)sandy@sandys-pavilion:/usr/src/linux$ emerge --info virtualbox
Portage 2.3.78 (python 3.7.5-final-0, default/linux/amd64/17.1/desktop/plasma/systemd, gcc-9.2.0, glibc-2.29-r6, 5.3.7-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-5.3.7-gentoo-x86_64-AMD_A9-9410_RADEON_R5,_5_COMPUTE_CORES_2C+3G-with-gentoo-2.6
KiB Mem: 7533992 total, 1069204 free
KiB Swap: 16777212 total, 16748272 free
Timestamp of repository gentoo: Thu, 31 Oct 2019 15:30:01 +0000
Head commit of repository gentoo: 3aeef5adfe325a8ab4ab59d80e750b94ee54cb9c
Timestamp of repository jorgicio: Thu, 31 Oct 2019 14:29:21 +0000
Head commit of repository jorgicio: 3749c82bbe5a72c8bd3098f76383b56b396c23ad
Timestamp of repository kde: Tue, 29 Oct 2019 22:25:25 +0000
Head commit of repository kde: 5fcabba9ef7f6d971a6ea37a52a6add042cef67b
Timestamp of repository lto-overlay: Wed, 16 Oct 2019 15:45:27 +0000
Head commit of repository lto-overlay: 942c90c8938349ba37297c0d6d28cad5f0b09921
Timestamp of repository matrix: Sun, 20 Oct 2019 11:25:12 +0000
Head commit of repository matrix: f76e012dfc39db34d484f5356585199934ae51bd
Timestamp of repository mv: Sun, 20 Oct 2019 07:29:10 +0000
Head commit of repository mv: bcd15be060e30ad0eb4cb25e4b08eba31d7ca289
Timestamp of repository steam-overlay: Sun, 20 Oct 2019 07:29:16 +0000
Head commit of repository steam-overlay: 015300bb294fa559644603cf79426bb8ca59a14e
sh bash 5.0_p11
ld GNU ld (Gentoo 2.32 p2) 2.32.0
ccache version 3.7.5 [disabled]
app-shells/bash: 5.0_p11::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.30.0::gentoo
dev-lang/python: 2.7.16-r102::lto-overlay, 3.6.9-r1::lto-overlay, 3.7.5-r1::gentoo
dev-util/ccache: 3.7.5::gentoo
dev-util/cmake: 3.15.5::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/sandbox: 2.18::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.11.6-r3::gentoo, 1.13.4-r2::gentoo, 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 8.3.0-r2::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config: 2.1::gentoo
sys-devel/libtool: 2.4.6-r5::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 5.3::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r6::gentoo
Repositories:
gentoo
location: /usr/portage
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-max-age: 24
sync-rsync-verify-jobs: 1
sync-rsync-extra-opts:
sync-rsync-verify-metamanifest: yes
jorgicio
location: /var/db/repos/jorgicio
sync-type: git
sync-uri: https://github.com/gentoo-mirror/jorgicio.git
masters: gentoo
kde
location: /var/db/repos/kde
sync-type: git
sync-uri: https://github.com/gentoo-mirror/kde.git
masters: gentoo
localrepo
location: /var/db/repos/localrepo
masters: gentoo
lto-overlay
location: /var/db/repos/lto-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/lto-overlay.git
masters: gentoo mv
matrix
location: /var/db/repos/matrix
sync-type: git
sync-uri: https://github.com/gentoo-mirror/matrix.git
masters: gentoo
mv
location: /var/db/repos/mv
sync-type: git
sync-uri: https://github.com/gentoo-mirror/mv.git
masters: gentoo
steam-overlay
location: /var/db/repos/steam-overlay
sync-type: git
sync-uri: https://github.com/gentoo-mirror/steam-overlay.git
masters: gentoo
ACCEPT_KEYWORDS="amd64 ~amd64"
ACCEPT_LICENSE="*"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc/locale* /etc/nginx/nginx.conf /etc/portage/make.conf /etc/sudoers /etc/systemd/logind.conf /etc/systemd/system/ /usr/lib/sysctl.d/90-override.conf"
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/cgi-php7.3/ext-active/ /etc/php/cli-php7.3/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="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
DISTDIR="/usr/portage/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra"
GENTOO_MIRRORS="http://ftp.ntua.gr/pub/linux/gentoo/ https://mirrors.evowise.com/gentoo/ https://ftp.halifax.rwth-aachen.de/gentoo/ http://ftp.halifax.rwth-aachen.de/gentoo/"
LANG="en_US.UTF-8"
LDFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=2 -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra -Wl,-O1 -Wl,--as-needed -Wl,-O3"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/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"
USE="* 7zip X a52 aac acl acpi activities aio alsa amd64 amr amrenc androiddump apache2 appstream aribsub asm audiofile bash-completion berkdb bluetooth branding brightness-control browser-integration bzip2 cairo caps cdda cddb cdio cdr cdrom cgroup-hybrid cholmod ciscodump cjk clamdtop cli color-management colord connection-sharing context corefonts cracklib crypt cups cxx cycles d3d9 dav1d dbus declarative designer dri dri3 drm dts dvd dvdr egl emboss encode eps examples exif extras fam farstream fcitx fcitx4 fdt ffmpeg fftw filecaps flac fluidsynth fontconfig fortran fpm frei0r ftp fuse gallium gbm gd gdbm gentoo-vm geolocation gif git glamor gles gles1 gles2 gles3 glib gme gmp gnuefi gnuplot googledrive gpg gpm gps graphite grub gsl gstreamer gtk gtk3 guile guile2 handbook hardened heif hpn iconv icu id3tag imagemagick introspection ipv6 iso java joystick jpeg jpeg2k json kde kdenlive kipi kms kwallet latex layers lcms ldap lensfun libaom libass libcaca libdrm libinput libkms libnotify libtirpc libxml2 llvm lm-sensors lrz lto lz4 lzma lzo mad man matroska mem-scramble minizip mng modern-top mount mousepad mp3 mp4 mpeg mpi mtp multilib musepack mysql mysqli native-headset ncurses networkmanager nfs nghttp2 nginx nls nptl numpy ogg omxil openal opencl opencv openexr opengl openh264 openimageio openmp opus orientation osmesa pam pango pch pci pcre pdf pdfimport phonon pie plasma png policykit posix postproc postscript ppds prison projectm ptex pulseaudio python qalculate qml qt4 qt5 qtmedia quad quicktime rar raw readline realtime rubberband sasl sbc sbsms scanner scripts sdl seccomp semantic-desktop sha3 shout sid skins smi sound sox speex spell spice split-usr sqlite ssl startup-notification svg swaybar swaybg swaymsg swaynag symlink sync-plugin-portage system-llvm systemd systemtap taglib tcpd theora threads tiff tls-heartbeat tools touchpad truetype twolame udev udisks umfpack unicode unwind upower usb usbredir user-permissions user-session utils uuid v4l vaapi vala vamp vcd vdpau video vim-pager vim-syntax virgl virt-network vlc vorbis vpx vulkan vulkan-overlay wallpapers wayland webengine webp widgets wifi wireshark-plugins wxwidgets x264 x265 xattr xcb xcomposite xml xpm xv xvid yaml zlib zvbi" ABI_X86="32 64" ADA_TARGET="gnat_2018" 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="fpu vme de pse tsc msr pae mce cx8 apic sep mtrr pge mca cmov pat pse36 clflush mmx fxsr sse sse2 ht syscall nx mmxext fxsr_opt pdpe1gb rdtscp lm constant_tsc rep_good acc_power nopl nonstop_tsc cpuid extd_apicid aperfmperf pni pclmulqdq monitor ssse3 sse3 fma cx16 sse4_1 sse4_2 movbe popcnt aes xsave avx f16c rdrand lahf_lm cmp_legacy svm extapic cr8_legacy abm sse4a misalignsse 3dnowprefetch osvw ibs xop skinit wdt lwp fma4 tce nodeid_msr tbm perfctr_core perfctr_nb bpext ptsc mwaitx cpb hw_pstate ssbd vmmcall fsgsbase bmi1 avx2 smep bmi2 xsaveopt arat npt lbrv svm_lock nrip_save tsc_scale vmcb_clean flushbyasid decodeassists pausefilter pfthreshold avic v_vmsave_vmload vgif overflow_recov" 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" INPUT_DEVICES="libinput wacom" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" LLVM_TARGETS="AMDGPU WebAssembly" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_7 python3_6 python2_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="amdgpu radeonsi radeon" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, LINGUAS, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
app-emulation/virtualbox-6.0.14::gentoo was built with the following:
USE="alsa java opengl opus pam pulseaudio python qt5 sdk udev -debug -doc -dtrace -headless -libressl -lvm -pax_kernel -vboxwebsrv -vnc" ABI_X86="(64)" PYTHON_SINGLE_TARGET="python3_7 -python2_7 -python3_5 -python3_6" PYTHON_TARGETS="python2_7 python3_6 python3_7 -python3_5"
CFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra -Wl,-O1 -Wl,--as-needed -Wl,-O3"
CXXFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra -Wl,-O1 -Wl,--as-needed -Wl,-O3"
LDFLAGS="-O3 -march=bdver4 -pipe -pthread -fira-hoist-pressure -fira-loop-pressure -fbranch-target-load-optimize -fweb -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -fuse-linker-plugin -fuse-ld=bfd -Wall -Wextra -Wl,-O1 -Wl,--as-needed -Wl,-O3"
Hi, see below my emerge --info virtualbox
rafael rafael # emerge --info virtualbox
Portage 2.3.76 (python 3.6.9-final-0, default/linux/amd64/17.1/desktop/plasma, gcc-9.2.0, glibc-2.29-r2, 4.19.66-gentoo x86_64)
=================================================================
System Settings
=================================================================
System uname: Linux-4.19.66-gentoo-x86_64-AMD_Ryzen_9_3900X_12-Core_Processor-with-gentoo-2.6
KiB Mem: 32903128 total, 25519064 free
KiB Swap: 0 total, 0 free
Timestamp of repository gentoo: Sat, 02 Nov 2019 13:00:01 +0000
Head commit of repository gentoo: 95f3d2d96181cf192b59ad1672041b977c64df72
sh bash 4.4_p23-r1
ld GNU gold (Gentoo 2.32 p2 2.32.0) 1.16
ccache version 3.7.4 [disabled]
app-shells/bash: 4.4_p23-r1::gentoo
dev-java/java-config: 2.2.0-r4::gentoo
dev-lang/perl: 5.28.2-r1::gentoo
dev-lang/python: 2.7.16-r102::lto-overlay, 3.6.9::gentoo
dev-util/ccache: 3.7.4::gentoo
dev-util/cmake: 3.14.6::gentoo
sys-apps/baselayout: 2.6-r1::gentoo
sys-apps/openrc: 0.41.2::gentoo
sys-apps/sandbox: 2.13::gentoo
sys-devel/autoconf: 2.13-r1::gentoo, 2.69-r4::gentoo
sys-devel/automake: 1.16.1-r1::gentoo
sys-devel/binutils: 2.32-r1::gentoo
sys-devel/gcc: 8.3.0-r1::gentoo, 9.2.0-r1::gentoo
sys-devel/gcc-config: 2.0::gentoo
sys-devel/libtool: 2.4.6-r3::gentoo
sys-devel/make: 4.2.1-r4::gentoo
sys-kernel/linux-headers: 4.19::gentoo (virtual/os-headers)
sys-libs/glibc: 2.29-r2::gentoo
Repositories:
gentoo
location: /var/db/repos/gentoo
sync-type: rsync
sync-uri: rsync://rsync.gentoo.org/gentoo-portage
priority: -1000
sync-rsync-verify-metamanifest: yes
sync-rsync-verify-max-age: 24
sync-rsync-extra-opts:
sync-rsync-verify-jobs: 1
jorgicio
location: /var/lib/layman/jorgicio
sync-type: laymansync
sync-uri: https://github.com/jorgicio/jorgicio-gentoo.git
masters: gentoo
priority: 50
lto-overlay
location: /var/lib/layman/lto-overlay
sync-type: laymansync
sync-uri: https://github.com/InBetweenNames/gentooLTO.git
masters: gentoo mv
priority: 50
mv
location: /var/lib/layman/mv
sync-type: laymansync
sync-uri: https://anongit.gentoo.org/git/user/mv.git
masters: gentoo
priority: 50
steam-overlay
location: /var/lib/layman/steam-overlay
masters: gentoo
priority: 50
zugaina
location: /var/lib/layman/zugaina
sync-type: laymansync
sync-uri: rsync://gentoo.zugaina.org/zugaina-portage
masters: gentoo
priority: 50
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="@FREE geekbench truecrypt-3.0 bh-luxi AdobeFlash-11.x Google-TOS Oracle-BCLA-JavaSE PUEL google-chrome NVIDIA-CUDA teamspeak3 MPEG-4 CUDPP unRAR spideroak NVIDIA-r2 linux-fw-redistributable no-source-code freedist linux-firmware CC-BY-ND-3.0 dropbox ValveSteamLicense MSttfEULA VIGRA SIFT FraunhoferFDK"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=25 -fuse-linker-plugin -pipe -fomit-frame-pointer"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/spool/munin-async/.ssh"
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=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=25 -fuse-linker-plugin -pipe -fomit-frame-pointer"
DISTDIR="/var/cache/distfiles"
ENV_UNSET="DBUS_SESSION_BUS_ADDRESS DISPLAY GOBIN 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=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=25 -fuse-linker-plugin -pipe -fomit-frame-pointer"
FEATURES="assume-digests binpkg-docompress binpkg-dostrip binpkg-logs config-protect-if-modified distlocks ebuild-locks fixlafiles ipc-sandbox merge-sync multilib-strict network-sandbox news parallel-fetch pid-sandbox preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch userpriv usersandbox usersync xattr"
FFLAGS="-march=znver2 -O3 -fgraphite-identity -floop-nest-optimize -fdevirtualize-at-ltrans -fipa-pta -fno-semantic-interposition -flto=25 -fuse-linker-plugin -pipe -fomit-frame-pointer"
GENTOO_MIRRORS="https://gentoo.c3sl.ufpr.br/ https://mirror.csclub.uwaterloo.ca/gentoo-distfiles/ https://gentoo.osuosl.org/"
LANG="pt_BR.utf8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="pt_BR"
MAKEOPTS="-j25"
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"
USE="X a52 aac acpi activities alsa amd64 argyllcms bash-completion berkdb branding bzip2 cairo cdr clang cli consolekit crypt cups cxx dbus declarative dri dts dvd dvdr emboss encode exif fam fat fdk ffmpeg flac fortran gdbm gif glamor gold gpm graphite gtk hddtemp iconv icu inspector ipv6 jpeg kde kdenlive kipi kwallet lapack lastfm lcms ldap libnotify libtirpc lm-sensors lzma mad mng mp3 mp4 mpeg multilib ncurses nfsv41 nls nptl ntfs nvenc ogg opencl opengl openmp opus pam pango pcre pdf phonon plasma png policykit ppds qml qt5 rdesktop readline samba sdl seccomp semantic-desktop sift spell split-usr sqlite ssl startup-notification static-libs steamruntime svc svg swat sync-plugin-portage tcpd theora threads tiff truetype udev udisks unicode upower usb uvm vdpau vnc vorbis vpx widevine widgets wxwidgets x264 x265 xattr xcb xcomposite xml xorg xv xvid zenmap zip zlib" ABI_X86="64 32" ADA_TARGET="gnat_2018" ALSA_CARDS="hda-intel" 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 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 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf skytraq superstar2 timing tsip tripmate tnt ublox ubx" GRUB_PLATFORMS="efi-64 pc" INPUT_DEVICES="evdev" KERNEL="linux" L10N="pt-BR" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LIBREOFFICE_EXTENSIONS="presenter-console presenter-minimizer" NETBEANS_MODULES="apisupport cnd groovy gsf harness ide identity j2ee java mobility nb php profiler soa visualweb webcommon websvccommon xml" OFFICE_IMPLEMENTATION="libreoffice" PHP_TARGETS="php7-2" POSTGRES_TARGETS="postgres10 postgres11" PYTHON_SINGLE_TARGET="python3_6" PYTHON_TARGETS="python3_6 python2_7" RUBY_TARGETS="ruby24 ruby25" USERLAND="GNU" VIDEO_CARDS="nvidia" 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: CC, CPPFLAGS, CTARGET, CXX, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LC_ALL, PORTAGE_BINHOST, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
=================================================================
Package Settings
=================================================================
app-emulation/virtualbox-5.2.26-r1::gentoo was built with the following:
USE="alsa opengl opus pam qt5 sdk udev vnc -debug -doc -headless -java -libressl -lvm -pax_kernel -pulseaudio -python -vboxwebsrv" ABI_X86="(64)" PYTHON_TARGETS="python2_7"
CFLAGS="-march=znver1 -O2 -pipe"
CXXFLAGS="-march=znver1 -O2 -pipe"
I hadn't noticed that the libraries were 32bit, but this wasn't happening before LTO, should I change something at the ebuild?
ACCEPT_KEYWORDS=~amd64
set in your make.conf when using GentooLTO, as we do not test against the stable version of Gentoo and recommend to use the latest version of the compiler of your choice (some people are successfully using Clang instead of GCC, though I am not sure how smooth the transition was for them)equery belongs libcrypto.so
? Mine is: * Searching for libcrypto.so ...
dev-libs/openssl-1.1.1d-r2 (/usr/lib64/libcrypto.so -> libcrypto.so.1.1)
dev-libs/openssl-1.1.1d-r2 (/usr/lib/libcrypto.so -> libcrypto.so.1.1)
If it says bash: equery: command not found
, then install app-portage/gentoolkit and try again.
If you do not see a lib64 entry, your system needs troubleshooting.
Is there a way in ltoworkarounds to force the linker to be GOLD?
In short, not really.
Emerge ltoize with USE override-flagomatic
. This will link a script in /etc/portage/bashrc.d
to overwrite all the functions in the flag-o-matic.eclass
at build time. The original eclass file is located at /var/db/repos/gentoo/eclass/flag-o-matic.eclass
if you would like to take a look.
By erasing all the eclass functions, what override-flagomatic
will do is remove all ebuild forced flag modifications and allow you to use all of your own. The problem with this is that it can break emerges where changing or adding a flag is needed. You can emerge ltoize with override-flagomatic
, build the package, then rebuild ltoize without it so you don't have to worry about random breakages in other packages.
What I generally do is copy the package into a local overlay and edit it from there. Unfortunately, I don't think there is a one-and-done way to force a linker when it's built into an ebuild like that.
@jiblime -fuse-ld=gold
- Ebuilds have no effect on libraries
- Was your transition to 17.1 smooth (like mine), or did you have issues?
- It is recommended that you have
ACCEPT_KEYWORDS=~amd64
set in your make.conf when using GentooLTO, as we do not test against the stable version of Gentoo and recommend to use the latest version of the compiler of your choice (some people are successfully using Clang instead of GCC, though I am not sure how smooth the transition was for them)- What is your output of
equery belongs libcrypto.so
? Mine is:* Searching for libcrypto.so ... dev-libs/openssl-1.1.1d-r2 (/usr/lib64/libcrypto.so -> libcrypto.so.1.1) dev-libs/openssl-1.1.1d-r2 (/usr/lib/libcrypto.so -> libcrypto.so.1.1)
If it says
bash: equery: command not found
, then install app-portage/gentoolkit and try again. If you do not see a lib64 entry, your system needs troubleshooting.
Sorry for the late reply, didn't have time the last few days.
* Searching for libcrypto.so ...
app-backup/spideroak-bin-7.5.0 (/opt/SpiderOakONE/lib/libcrypto.so)
dev-libs/openssl-1.1.1d-r2 (/usr/lib/libcrypto.so -> libcrypto.so.1.1)
dev-libs/openssl-1.1.1d-r2 (/usr/lib64/libcrypto.so -> libcrypto.so.1.1)
@jiblime
-fuse-ld=gold
Pretty surprised tc-ld-disable-gold
doesn't filter ld.gold
from *FLAGS. Nice catch.
If the package still fails to compile, you can also try -fuse-ld=lld
with sys-devel/lld
installed
Maybe his .pc file for the library(ies) is not pointing towards /usr/lib64? That's what happened with Rubberband.
So, it took some time but recompiled my whole system with ACCEPT_KEYWORDS="~amd64"... and still have the same problem with virtualbox. (uploaded to a google drive with the full log if anyone want to take a better look https://drive.google.com/open?id=161w-wZchG8fhUR_SUOoAlfcyCbYe2-T5) Using -fuse-ld=gold apparently did not work, still got the message saying bfd was being used.
@elsandosgrande what do you mean by .pc file? don't know this extension. And if the problem is with the ebuild or something of the sort, why would only happen after I changed to LTO (it compiled fine before)?
.pc file -> pkg-config file. By "Rubberband", I am referring to this: https://bugs.gentoo.org/691274.
Checked pkg-config (didn't even know I had this, learned one more thing today :) ) and there is no .pc file for virtualbox. Virtualbox ebuild has no reference to /usr/lib or /usr/lib64 directly, only to get_libdir function. I'm kind in a loss here, don't know how to debug this, any ideas?
You don't have a VirtualBox .pc file because VirtualBox is not yet installed. Even then, it would be irrelevant, as pkg-config looks at the pc files of libraries being used. Did you look at the linked forum posts @rafaelfortes?
Anyway, the line before Please submit a full bug report
is probably the actual error here, since I just saw that some packages still get that skipping incompatible
output, while not failing at all. Could you please post the latter half of the build log in a GitHub gist?
@elsandosgrande created a gist as requested, included the beginning of emerge process and after around line 430 a section of the end of the build. if you need it to have more data just ask.
https://gist.github.com/rafaelfortes/d256fb546ced4b22f5ac4ce018e37a51
I could not create a gist with the entire build.log file, github just gives an error, apparently it is way too long, but did upload to google drive here build.log. Checked the pc files, most libs don't have .pc files associated, only found for libssl and libcrypto, but I do have two .pc files for each, one at /usr/lib/pkgconfig and another at /usr/lib64/pkgconfig. The ones at 'lib' reference internally to '/usr/lib' and the ones at 'lib64' reference '/usr/lib64', as one would expect. The thing is, should I have these two folders with .pc files, can the linker be looking for the libraries at the wrong folder because of it? One thing, could this be cause by a bad environmental variable? maybe I'm missing a '/usr/lib64' somewhere?
All right... I am not seeing anything out of the ordinary yet and don't have the time right now to rebuild VirtualBox for the sole purpose of comparing the logs.
Also, other libraries should have respective pkg-config files. For example, after running equery belongs /usr/lib/libX11.so
, I got x11-libs/libX11-1.6.9 (/usr/lib/libX11.so -> libX11.so.6.3.0)
, from which I was able to see which package owns the library. Then, by doing equery files x11-libs/libX11-1.6.9
and looking for .pc files, I found /usr/lib/pkgconfig/x11-xcb.pc, /usr/lib/pkgconfig/x11.pc, /usr/lib64/pkgconfig/x11-xcb.pc and /usr/lib64/pkgconfig/x11.pc.
To emphasize, having one mere library with a misconfigured pkg-config file was enough to bring everything down to a grinding halt in the issue ticket linked above.
@jiblime Pardon the mention, but do you have any ideas here? I am truly stumped.
So, after a few weeks of traveling for work and being busy decided to compile virtualbox again and it worked... I tried version 6.1.0 this time. I guess the issue is closed, thank you @elsandosgrande for your efforts trying to solve this, its appreciated.
I'm glad that it worked out.
I installed a new system and after everything was up and running decided to give gentooLTO a go, so far has been great with exception of three packages that will not compile without LTO by "FLAGS-=-flto" and/or completely removing the gentooLTO optimizations (created a custom ltoworkarounds file with "FLAGS="-march=znver2 -O2 -pipe -fomit-frame-pointer") and with GOLD or BFD linkerm the results are the same. In the case of VirtualBox I tried versions 5.2.32 and 6.0.14 and one thing that I noticed is that the ebuild is forcing the use of BFD linker and when the build fails it seems to be the linker to cause it, see below the beginning and end of build.log. For chromium and powerdevil I will create separate issues later.
Is there a way in ltoworkarounds to force the linker to be GOLD? could be some library or other package that Virtualbox depends on that also need to be compiled without LTO?