Bug#955531: llvm-10-toolchain: mesa/intel-opencl-clang fails to build with llvm-10: undefined reference to `getPollyPluginInfo()'
Witold Baryluk
witold.baryluk at gmail.com
Mon Jun 8 23:01:31 BST 2020
Package: libllvm10
Version: 1:10.0.0-4
Followup-For: Bug #955531
I started seeing the same issue today when trying to compile Mesa master:
Debian, amd64, testing.
This started maybe today or yesterday, as it was working find for me before that:
```
[1461/1469] Linking target src/gallium/targets/opencl/libMesaOpenCL.so.1.0.0
FAILED: src/gallium/targets/opencl/libMesaOpenCL.so.1.0.0
/usr/bin/x86_64-linux-gnu-g++-9 -o src/gallium/targets/opencl/libMesaOpenCL.so.1.0.0 -Wl,--as-needed -Wl,--no-undefined -shared -fPIC -Wl,--start-group -Wl,-soname,libMesaOpenCL.so.1 -Wl,--whole-archive src/gallium/state_trackers/clover/libclover.a -Wl,--no-whole-archive src/gallium/auxiliary/pipe-loader/libpipe_loader_dynamic.a src/loader/libloader.a src/util/libxmlconfig.a src/util/libmesa_util.a src/util/format/libmesa_format.a src/gallium/auxiliary/libgallium.a src/compiler/nir/libnir.a src/compiler/libcompiler.a src/gallium/state_trackers/clover/libclllvm.a src/gallium/state_trackers/clover/libclspirv.a src/gallium/state_trackers/clover/libclnir.a -Wl,--gc-sections -Wl,--version-script /home/user/mesa-git/src/gallium/targets/opencl/opencl.sym /usr/lib/x86_64-linux-gnu/libz.so -pthread -lm -ldl /usr/lib/x86_64-linux-gnu/libunwind.so /usr/lib/x86_64-linux-gnu/libelf.so /usr/lib/llvm-10/lib/libclangCodeGen.a /usr/lib/llvm-10/lib/libclangFrontendTool.a /usr/lib/llvm-10/lib/libclangFrontend.a /usr/lib/llvm-10/lib/libclangDriver.a /usr/lib/llvm-10/lib/libclangSerialization.a /usr/lib/llvm-10/lib/libclangParse.a /usr/lib/llvm-10/lib/libclangSema.a /usr/lib/llvm-10/lib/libclangAnalysis.a /usr/lib/llvm-10/lib/libclangAST.a /usr/lib/llvm-10/lib/libclangASTMatchers.a /usr/lib/llvm-10/lib/libclangEdit.a /usr/lib/llvm-10/lib/libclangLex.a /usr/lib/llvm-10/lib/libclangBasic.a /usr/lib/x86_64-linux-gnu/libdrm.so /usr/lib/x86_64-linux-gnu/libexpat.so -L/usr/lib/llvm-10/lib -lLLVM-10 -lsensors -L/usr/lib/llvm-10/lib -lLLVM-10 /usr/lib/libLLVMSPIRVLib.so /usr/lib/x86_64-linux-gnu/libSPIRV-Tools-opt.a /usr/lib/x86_64-linux-gnu/libSPIRV-Tools.a /usr/lib/x86_64-linux-gnu/libSPIRV-Tools-link.a -Wl,--end-group '-Wl,-rpath,$ORIGIN/../../auxiliary/pipe-loader:$ORIGIN/../../../loader:$ORIGIN/../../../util:$ORIGIN/../../../util/format:$ORIGIN/../../auxiliary:$ORIGIN/../../../compiler/nir:$ORIGIN/../../../compiler' -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/gallium/auxiliary/pipe-loader -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/loader -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/util -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/util/format -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/gallium/auxiliary -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/compiler/nir -Wl,-rpath-link,/home/user/mesa-git/builddir/build-amd64-opt/src/compiler
/usr/bin/ld: /usr/lib/llvm-10/lib/libclangCodeGen.a(BackendUtil.cpp.o): in function `(anonymous namespace)::EmitAssemblyHelper::EmitAssemblyWithNewPassManager(clang::BackendAction, std::unique_ptr<llvm::raw_pwrite_stream, std::default_delete<llvm::raw_pwrite_stream> >)':
(.text._ZN12_GLOBAL__N_118EmitAssemblyHelper30EmitAssemblyWithNewPassManagerEN5clang13BackendActionESt10unique_ptrIN4llvm17raw_pwrite_streamESt14default_deleteIS5_EE+0x1f15): undefined reference to `getPollyPluginInfo()'
collect2: error: ld returned 1 exit status
```
Tested with LLVM 10.0.0-4 packages, and gcc 9.3.0 and gcc 10.1.0.
I know I was able to compile opencl/clover just few days ago just fine.
-- System Information:
Debian Release: bullseye/sid
APT prefers unstable-debug
APT policy: (500, 'unstable-debug'), (500, 'unstable'), (1, 'experimental-debug'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 5.6.0-1-amd64 (SMP w/32 CPU cores)
Kernel taint flags: TAINT_WARN
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages libllvm10 depends on:
ii libc6 2.30-8
ii libedit2 3.1-20191231-1
ii libffi7 3.3-4
ii libgcc-s1 10.1.0-3
ii libstdc++6 10.1.0-3
ii libtinfo6 6.2-1
ii libz3-4 4.8.7-4
ii zlib1g 1:1.2.11.dfsg-2
libllvm10 recommends no packages.
libllvm10 suggests no packages.
-- no debconf information
More information about the Pkg-llvm-team
mailing list