Skip to content

Compilation issue with aie++ #236

@keryell

Description

@keryell

With latest unified/next I get this error:

python3 ./buildbot/configure.py \
 -o build-release \
 --cuda --hip --xrt \
 --shared-libs \
 --use-lld \
 --cmake-opt="-DCMAKE_EXPORT_COMPILE_COMMANDS=1" \
 -t Release \
 --cmake-gen Ninja \
 --llvm-external-projects=mlir,clang-tools-extra \
 --cmake-opt="-DCMAKE_C_COMPILER=/usr/lib/llvm-18/bin/clang" \
 --cmake-opt="-DCMAKE_CXX_COMPILER=/usr/lib/llvm-18/bin/clang++" \
 --cmake-opt="-DCMAKE_PREFIX_PATH=/storage/gauthier/flopoco/install" \
 --cmake-opt="-DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;NVPTX;AMDGPU"

python3 ./buildbot/configure.py \
 -o build-release \
 --cuda --hip --xrt \
 --shared-libs \
 --use-lld \
 --cmake-opt="-DCMAKE_EXPORT_COMPILE_COMMANDS=1" \
 -t Release \
 --cmake-gen Ninja \
 --llvm-external-projects=mlir,clang-tools-extra \
 --cmake-opt="-DCMAKE_C_COMPILER=/usr/lib/llvm-18/bin/clang" \
 --cmake-opt="-DCMAKE_CXX_COMPILER=/usr/lib/llvm-18/bin/clang++" \
 --cmake-opt="-DCMAKE_PREFIX_PATH=/storage/gauthier/flopoco/install" \
 --cmake-opt="-DLLVM_TARGETS_TO_BUILD=X86;AArch64;ARM;NVPTX;AMDGPU"

cmake --build build-release --verbose --parallel `nproc`
# Relaunch with 1 thread to figure-out the failure
rkeryell@xsjsycl41:/var/tmp/rkeryell/SYCL/llvm (sycl/unified/next)$ cmake --build build-release --verbose --parallel 
1                                                                                                                    
[0/2] /usr/bin/cmake -P /var/tmp/rkeryell/SYCL/llvm/build-release/CMakeFiles/VerifyGlobs.cmake                    
[1/5806] : && /usr/lib/llvm-18/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werro
r=date-time -Werror=unguarded-availability-new -Wall -Wextra -Wno-unused-parameter -Wwrite-strings -Wcast-qual -Wmiss
ing-field-initializers -pedantic -Wno-long-long -Wc++98-compat-extra-semi -Wimplicit-fallthrough -Wcovered-switch-def
ault -Wno-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmislead
ing-indentation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wl,-z
,defs -Wl,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections  -Wl,--version-script,"/var/tmp/rkerye
ll/SYCL/llvm/build-release/tools/lto/LTO.exports" -shared -Wl,-soname,libLTO.so.16git -o lib/libLTO.so.16git tools/lt
o/CMakeFiles/LTO.dir/LTODisassembler.cpp.o tools/lto/CMakeFiles/LTO.dir/lto.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib"  lib/
libLLVMX86AsmParser.so.16git  lib/libLLVMAArch64AsmParser.so.16git  lib/libLLVMARMAsmParser.so.16git  lib/libLLVMAMDG
PUAsmParser.so.16git  lib/libLLVMX86CodeGen.so.16git  lib/libLLVMAArch64CodeGen.so.16git  lib/libLLVMARMCodeGen.so.16
git  lib/libLLVMNVPTXCodeGen.so.16git  lib/libLLVMAMDGPUCodeGen.so.16git  lib/libLLVMX86Desc.so.16git  lib/libLLVMNVP
TXDesc.so.16git  lib/libLLVMX86Disassembler.so.16git  lib/libLLVMAArch64Disassembler.so.16git  lib/libLLVMARMDisassem
bler.so.16git  lib/libLLVMAMDGPUDisassembler.so.16git  lib/libLLVMX86Info.so.16git  lib/libLLVMNVPTXInfo.so.16git  li
b/libLLVMLTO.so.16git  lib/libLLVMAArch64Desc.so.16git  lib/libLLVMAArch64Info.so.16git  lib/libLLVMARMDesc.so.16git 
 lib/libLLVMARMInfo.so.16git  lib/libLLVMAMDGPUDesc.so.16git  lib/libLLVMAMDGPUInfo.so.16git  lib/libLLVMMCDisassembl
er.so.16git  lib/libLLVMCodeGen.so.16git  lib/libLLVMTarget.so.16git  lib/libLLVMMC.so.16git  lib/libLLVMBitReader.so
.16git  lib/libLLVMCore.so.16git  lib/libLLVMSupport.so.16git  -Wl,-rpath-link,/var/tmp/rkeryell/SYCL/llvm/build-rele
ase/lib && :
FAILED: lib/libLTO.so.16git 
: && /usr/lib/llvm-18/bin/clang++ -fPIC -fPIC -fno-semantic-interposition -fvisibility-inlines-hidden -Werror=date-ti
me -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-fallthrough -Wcovered-switch-default -Wno
-noexcept-type -Wnon-virtual-dtor -Wdelete-non-virtual-dtor -Wsuggest-override -Wstring-conversion -Wmisleading-inden
tation -Wctad-maybe-unsupported -fdiagnostics-color -ffunction-sections -fdata-sections -O3 -DNDEBUG  -Wl,-z,defs -Wl
,-z,nodelete -fuse-ld=lld -Wl,--color-diagnostics   -Wl,--gc-sections  -Wl,--version-script,"/var/tmp/rkeryell/SYCL/l
lvm/build-release/tools/lto/LTO.exports" -shared -Wl,-soname,libLTO.so.16git -o lib/libLTO.so.16git tools/lto/CMakeFi
les/LTO.dir/LTODisassembler.cpp.o tools/lto/CMakeFiles/LTO.dir/lto.cpp.o  -Wl,-rpath,"\$ORIGIN/../lib"  lib/libLLVMX8
6AsmParser.so.16git  lib/libLLVMAArch64AsmParser.so.16git  lib/libLLVMARMAsmParser.so.16git  lib/libLLVMAMDGPUAsmPars
er.so.16git  lib/libLLVMX86CodeGen.so.16git  lib/libLLVMAArch64CodeGen.so.16git  lib/libLLVMARMCodeGen.so.16git  lib/
libLLVMNVPTXCodeGen.so.16git  lib/libLLVMAMDGPUCodeGen.so.16git  lib/libLLVMX86Desc.so.16git  lib/libLLVMNVPTXDesc.so
.16git  lib/libLLVMX86Disassembler.so.16git  lib/libLLVMAArch64Disassembler.so.16git  lib/libLLVMARMDisassembler.so.1
6git  lib/libLLVMAMDGPUDisassembler.so.16git  lib/libLLVMX86Info.so.16git  lib/libLLVMNVPTXInfo.so.16git  lib/libLLVM
LTO.so.16git  lib/libLLVMAArch64Desc.so.16git  lib/libLLVMAArch64Info.so.16git  lib/libLLVMARMDesc.so.16git  lib/libL
LVMARMInfo.so.16git  lib/libLLVMAMDGPUDesc.so.16git  lib/libLLVMAMDGPUInfo.so.16git  lib/libLLVMMCDisassembler.so.16g
it  lib/libLLVMCodeGen.so.16git  lib/libLLVMTarget.so.16git  lib/libLLVMMC.so.16git  lib/libLLVMBitReader.so.16git  l
ib/libLLVMCore.so.16git  lib/libLLVMSupport.so.16git  -Wl,-rpath-link,/var/tmp/rkeryell/SYCL/llvm/build-release/lib &
& :
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasm' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasmCPU' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMDisasmDispose' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMDisasmInstruction' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMSetDisasmOptions' failed: symbol not defined
ld.lld: error: version script assignment of 'LLVM_16' to symbol 'LLVMCreateDisasmCPUFeatures' failed: symbol not defined
clang++: error: linker command failed with exit code 1 (use -v to see invocation)
ninja: build stopped: subcommand failed.

Curious this LLVM_16.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions