Created attachment 906331 [details] Build log for sys-devel/llvm-20.0.0.9999::gentoo Hello, When I try building both sys-devel/llvm-19.1.2::gentoo and sys-devel/llvm-20.0.0.9999::gentoo I get same error. I managed to capture this line from the logs. (See the attachment to view all) FAILED: lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o /usr/lib/llvm/20/bin/clang++ -m32 -mfpmath=sse -DLLVM_EXPORTS -D_DEBUG -D_FILE_OFFSET_BITS=64 -D_GLIBCXX_ASSERTIONS -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMI T_MACROS -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm_build-abi_x86_32.x86/lib/Support -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Support -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999 /work/llvm_build-abi_x86_32.x86/include -I/var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/include -march=znver5 -O2 -pipe -stdlib=libc++ -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werr or=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmissing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthro ugh -Wcovered-switch-default -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunctio n-sections -fdata-sections -std=c++17 -UNDEBUG -MD -MT lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o -MF lib/Support/CMakeFiles/LLVMSupport.dir/APInt.cpp.o.d -o lib/Support/CMakeFiles/LLVMSupport.dir/APInt .cpp.o -c /var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Support/APInt.cpp clang++: /var/tmp/portage/sys-devel/llvm-20.0.0.9999/work/llvm/lib/Target/X86/X86ISelLowering.cpp:34122: virtual void llvm::X86TargetLowering::ReplaceNodeResults(SDNode *, SmallVectorImpl<SDValue> &, SelectionDA G &) const: Assertion `Subtarget.hasXOP() && "Expected XOP"' failed.
Created attachment 906332 [details] Emerge info for sys-devel/llvm-20.0.0.9999::gentoo
I'm sorry but we aren't going to provide support for live ebuilds. Since you're using a live version of clang, it's quite possible that you've hit a broken commit upstream. Please try using another compiler, e.g. gcc or clang < 20.
And if you can consistently reproduce it with a definitely-working compiler, please report it upstream.