llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
28.58k stars 11.81k forks source link

[clang-20.0.0git29d0a847+libcxx] virtual void llvm::X86TargetLowering::ReplaceNodeResults(SDNode *, SmallVectorImpl<SDValue> &, SelectionDA G &) const: Assertion `Subtarget.hasXOP() && "Expected XOP"' failed. #113034

Open emirhantasdeviren opened 7 hours ago

emirhantasdeviren commented 7 hours ago

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.

https://bugs.gentoo.org/941843 build.log emerge-info.txt

emirhantasdeviren commented 7 hours ago

Here is the output of clang --version

clang version 20.0.0git29d0a847+libcxx
Target: x86_64-pc-linux-gnu
Thread model: posix
InstalledDir: /usr/lib/llvm/20/bin
Build config: +assertions
Configuration file: /etc/clang/x86_64-pc-linux-gnu-clang.cfg