Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Virtualbox and compiling qt 5.15.13
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
Zarhan
l33t
l33t


Joined: 27 Feb 2004
Posts: 996

PostPosted: Mon Apr 15, 2024 2:34 pm    Post subject: Virtualbox and compiling qt 5.15.13 Reply with quote

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
View user's profile Send private message
Zarhan
l33t
l33t


Joined: 27 Feb 2004
Posts: 996

PostPosted: Thu Apr 18, 2024 9:48 am    Post subject: Reply with quote

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
View user's profile Send private message
GentleFranl
n00b
n00b


Joined: 25 Apr 2024
Posts: 1

PostPosted: Thu Apr 25, 2024 9:12 pm    Post subject: Reply with quote

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 :lol:
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum