View previous topic :: View next topic |
Author |
Message |
Zarhan l33t
Joined: 27 Feb 2004 Posts: 996
|
Posted: Mon Apr 15, 2024 2:34 pm Post subject: Virtualbox and compiling qt 5.15.13 |
|
|
As is well known, Virtualbox does not have proper support for AVX2.
I ran into this issue with qt 5.13 ages ago in topic https://forums.gentoo.org/viewtopic-t-1106432.html
Anyway, now I seem to be running into this again with qt 5.15.13. qt 5.15.12 was working fine. I can try masking 5.15.13 if nothing else works, but so far I've tried the following in make.conf:
Code: |
COMMON_FLAGS="-march=native -O3 -pipe"
COMMON_FLAGS="-march=native -O3 -pipe -mno-avx2"
COMMON_FLAGS="-march=ivybridge -O3 -pipe"
|
So, just running with -native, disabling AVX2 explicitly, and then using explicit arch that does not have AVX2.
None of them work. I still get something like this in build logs.
Code: |
cd /var/tmp/portage/dev-qt/qtbase-6.7.0-r1/work/qtbase-everywhere-src-6.7.0_build/src/gui && /usr/bin/cmake -E make_directory vulkan && /var/tmp/portage/dev-qt/qtbase-6.7.0-r1/work/qtbase-everywhere-src-6.7.0_build/lib64/qt6/libexec/qvkgen /var/tmp/portage/dev-qt/qtbase-6.7.0-r1/work/qtbase-everywhere-src-6.7.0/src/gui/vulkan/vk.xml /var/tmp/portage/dev-qt/qtbase-6.7.0-r1/work/qtbase-everywhere-src-6.7.0/src/gui/vulkan/generated_header.txt /var/tmp/portage/dev-qt/qtbase-6.7.0-r1/work/qtbase-everywhere-src-6.7.0_build/src/gui/vulkan/qvulkanfunctions
Incompatible processor. This Qt build requires the following features:
f16c |
Any thoughts?
This time, I could not mask them easily, because the older versions (5.15.12*) have been removed from portage. There are no other versions left! |
|
Back to top |
|
|
Zarhan l33t
Joined: 27 Feb 2004 Posts: 996
|
Posted: Thu Apr 18, 2024 9:48 am Post subject: |
|
|
Ok, the solution was that in Virtualbox, I added directive to NOT expose AVX2 to the guest.
Code: | VboxManage setextradata <vm name> VboxInternal/CPUM/IsaExts/AVX2 0 |
With this, the /proc/cpuinfo stopped showing avx2 and software stopped trying to use it. |
|
Back to top |
|
|
GentleFranl n00b
Joined: 25 Apr 2024 Posts: 1
|
Posted: Thu Apr 25, 2024 9:12 pm Post subject: |
|
|
Howdy! This Tutorial for the Virtualbox Installation works on Gentoo Linux? https://www.veuhoff.net/virtualbox-auf-debian-11-bullseye-installieren-anleitung would be nice if you can tell me this |
|
Back to top |
|
|
|