Reputation: 1
I am trying to install Blender on gentoo using emerge, this is the error message i recieve:
sudo emerge --ask media-gfx/blender
* IMPORTANT: 16 news items need reading for repository 'gentoo'.
* Use eselect news read to view new items.
* IMPORTANT: 2 config files in '/etc/portage' need updating.
* See the CONFIGURATION FILES and CONFIGURATION FILES UPDATE TOOLS
* sections of the emerge man page to learn how to update config files.
These are the packages that would be merged, in order:
Calculating dependencies... done!
Dependency resolution took 2.32 s.
!!! The ebuild selected to satisfy ">=media-libs/embree-3.10.0[raymask]" has unmet requirements.
- media-libs/embree-3.13.5::gentoo USE="compact-polys raymask tbb -ispc -ssp -tutorial" ABI_X86="(64)" CPU_FLAGS_X86="-avx -avx2 -avx512dq -sse2 -sse4_2"
The following REQUIRED_USE flag constraints are unsatisfied:
any-of ( cpu_flags_arm_neon cpu_flags_x86_sse2 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512dq )
(dependency required by "media-gfx/blender-3.5.1-r1::gentoo[embree]" [ebuild])
(dependency required by "media-gfx/blender" [argument])
Make.conf:
COMMON_FLAGS="-march=native -O2 -pipe"
ABI_X86="(64)"
CFLAGS="${COMMON_FLAGS}"
CXXFLAGS="${COMMON_FLAGS}"
FCFLAGS="${COMMON_FLAGS}"
FFLAGS="${COMMON_FLAGS}"
MAKEOPTS="-j4"
ACCEPT_LICENSE="*"
VIDEO_CARDS="nvidia"
USE="abi_x86_32 cuda bullet nvenc cycles embree ffmpeg -debug -gpm -systemd alsa alsa-plugin -pulseaudio -gnome -kde X"
INPUT_DEVICES="libinput synaptics"
ACCEPT_KEYWORDS="~amd64"
CPU_FLAGS_X86=""
# NOTE: This stage was built with the bindist Use flag enabled
# This sets the language of build output to English.
# Please keep this setting intact when reporting bugs.
LC_MESSAGES=C.utf8
GENTOO_MIRRORS="https://mirror.clarkson.edu/gentoo/
Package use flags:
# required by media-gfx/blender-3.5.1-r1::gentoo
# required by media-gfx/blender (argument)
>=media-libs/freetype-2.13.1 brotli
# required by media-gfx/blender-3.5.1-r1::gentoo[ffmpeg]
# required by media-gfx/blender (argument)
>=media-video/ffmpeg-6.0-r1 theora opus vpx
I already tried adding the flags, cpu flags, updating the system, and nothing seems to work.
Upvotes: 0
Views: 275
Reputation: 1
The error says:
The following REQUIRED_USE flag constraints are unsatisfied:
any-of ( cpu_flags_arm_neon cpu_flags_x86_sse2 cpu_flags_x86_sse4_2 cpu_flags_x86_avx cpu_flags_x86_avx2 cpu_flags_x86_avx512dq )
Which means you need to enable any of the listed flags and it seems you have them disabled in make.conf
by saying
CPU_FLAGS_X86=""
So as Miezhiko said, you can use cpuid2cpuflags
like this:
# emerge -av app-portage/cpuid2cpuflags
$ cpuid2cpuflags
For me the cpuid2cpuflags
command returns:
CPU_FLAGS_X86: aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3
So in make.conf
I put:
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3"
Hope this helps :)
Off topic, but why do you have ABI_X86="(64)"
and USE="abi_x86_32"
in separate lines? It should be ABI_X86="64 32"
, why do you have them in your make.conf
in the first place? These should be specified by your profile, you don't need to specify them in make.conf
.
Upvotes: 0
Reputation: 35
on your first error it states that you should have one of listed flag inside CPU_FLAGS_X86
inside your make.conf CPU_FLAGS_X86=""
wiki article about this variable: https://wiki.gentoo.org/wiki/CPU_FLAGS_*
I'd suggest to use cpuid2cpuflags to get flags you'd like to put inside (it will list what your current CPU supports)
Upvotes: 0