tshort / StaticCompiler.jl

Compiles Julia code to a standalone library (experimental)
Other
489 stars 31 forks source link

Tests failing on Julia 1.9.0-rc2 on Ubuntu due to a Clang issue #110

Closed tshort closed 1 year ago

tshort commented 1 year ago

Tests are failing when running Clang. I can reproduce this locally, too. The error is an undefined symbol: LLVMInitializeAVRTargetInfo. See here.

/home/runner/.julia/artifacts/9f98f3ddf523da9c41e1e5f66b7d0176a008d4f7/tools/clang: symbol lookup error: /home/runner/.julia/artifacts/9f98f3ddf523da9c41e1e5f66b7d0176a008d4f7/tools/clang: undefined symbol: LLVMInitializeAVRTargetInfo, version JL_LLVM_14.0

Tests work fine on the macOS tests, though.

I tried upgrading to GPUCompiler v0.19 (this branch), and that didn't help.

If I pin Clang_jll to v14.0.5 locally, tests pass. It seems like an upstream issue with the Clang_jll or LLVM_jll build, but I'm not sure how to track that down or who to ping.

tshort commented 1 year ago

Tests pass with Clang_jll v14.0.6+2 (here) but fail with Clang_jll v14.0.6+3 (above).

tshort commented 1 year ago

Looks like the error is in llc. Here's an easy way to reproduce it in 1.9.0-rc2 on Ubuntu:

using LLVM_jll
run(`$(llc()) --version`);
tshort commented 1 year ago

I submitted an upstream report at https://github.com/JuliaPackaging/Yggdrasil/issues/6615.

tshort commented 1 year ago

Works on rc3!