Skip to content

Symbol not found with latest LLVM 21.1.8 #49

@Mike-Leo-Smith

Description

@Mike-Leo-Smith

with latest LLVM 21.1.8, don't know if its a common problem

[2025-12-18T07:09:49Z INFO  luisa-cpp] [luisa_compute_backend_impl::cpu::llvm] Loading LLVM functions from C:\SoftWare\LLVM\bin\LLVM-C.dll
  20:     0x7ff7834f0860 - luisa_compute_backend::proxy::impl$2::create_shader
                               at C:\resource\luisa-compute-rs\luisa_compute_sys\LuisaCompute\src\rust\luisa_compute_backend\src\proxy.rs:188
  21:     0x7ff7834bed8f - luisa_compute::runtime::impl$31::new::closure$0
                               at C:\resource\luisa-compute-rs\luisa_compute\src\runtime.rs:1227
  22:     0x7ff783512451 - core::panic::unwind_safe::impl$25::call_once<tuple$<>,luisa_compute::runtime::impl$31::new::closure_env$0>
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:274
  23:     0x7ff7835119fb - std::panicking::catch_unwind::do_call<core::panic::unwind_safe::AssertUnwindSafe<luisa_compute::runtime::impl$31::new::closure_env$0>,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:590
  24:     0x7ff78350e543 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<luisa_compute::runtime::impl$31::new::closure_env$0>,tuple$<> >
  25:     0x7ff78350e4c4 - std::panicking::catch_unwind
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:553
  26:     0x7ff78350e4c4 - std::panic::catch_unwind<core::panic::unwind_safe::AssertUnwindSafe<luisa_compute::runtime::impl$31::new::closure_env$0>,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:359
  27:     0x7ff78350c4b1 - rayon_core::unwind::halt_unwinding<luisa_compute::runtime::impl$31::new::closure_env$0,tuple$<> >  
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\unwind.rs:17
  28:     0x7ff7835049e2 - rayon_core::registry::Registry::catch_unwind<luisa_compute::runtime::impl$31::new::closure_env$0>  
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:376
  29:     0x7ff7834f06cb - rayon_core::spawn::spawn_job::closure$0<luisa_compute::runtime::impl$31::new::closure_env$0>       
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\spawn\mod.rs:95
  30:     0x7ff78350495b - rayon_core::job::impl$6::execute<rayon_core::spawn::spawn_job::closure_env$0<luisa_compute::runtime::impl$31::new::closure_env$0> >
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\job.rs:169
  31:     0x7ff783acd17d - rayon_core::job::JobRef::execute
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\job.rs:64
  32:     0x7ff783ac8842 - rayon_core::registry::WorkerThread::execute
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:866
  33:     0x7ff783ac8247 - rayon_core::registry::WorkerThread::wait_until_cold
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:800
  34:     0x7ff783ac7f1a - rayon_core::registry::WorkerThread::wait_until<rayon_core::latch::OnceLatch>
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:775
  35:     0x7ff783ac843a - rayon_core::registry::WorkerThread::wait_until_out_of_work
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:824
  36:     0x7ff783acaa11 - rayon_core::registry::main_loop
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:929
  37:     0x7ff783ac8909 - rayon_core::registry::ThreadBuilder::run
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:50
  38:     0x7ff783acc814 - rayon_core::registry::impl$2::spawn::closure$0
                               at C:\Users\17124\.cargo\registry\src\github.com-25cdd57fae9f0462\rayon-core-1.13.0\src\registry.rs:95
  39:     0x7ff783abb1c9 - core::hint::black_box
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\hint.rs:473
  40:     0x7ff783abb1c9 - std::sys::backtrace::__rust_begin_short_backtrace<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\sys\backtrace.rs:158
  41:     0x7ff783ac679e - std::thread::impl$0::spawn_unchecked_::closure$1::closure$0<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\mod.rs:562
  42:     0x7ff783acdcb4 - core::panic::unwind_safe::impl$25::call_once<tuple$<>,std::thread::impl$0::spawn_unchecked_::closure$1::closure_env$0<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> > >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\panic\unwind_safe.rs:274
  43:     0x7ff783ac33b4 - std::panicking::catch_unwind::do_call<core::panic::unwind_safe::AssertUnwindSafe<std::thread::impl$0::spawn_unchecked_::closure$1::closure_env$0<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> > >,tuple$<> >      
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:590
  44:     0x7ff783ac7d63 - alloc::boxed::impl$30::call_mut<tuple$<usize>,dyn$<core::ops::function::FnMut<tuple$<usize>,assoc$<Output,alloc::string::String> > >,alloc::alloc::Global>
  45:     0x7ff783ac6270 - std::panicking::catch_unwind
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panicking.rs:553
  46:     0x7ff783ac6270 - std::panic::catch_unwind
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\panic.rs:359
  47:     0x7ff783ac6270 - std::thread::impl$0::spawn_unchecked_::closure$1<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\std\src\thread\mod.rs:560
  48:     0x7ff783abb5de - core::ops::function::FnOnce::call_once<std::thread::impl$0::spawn_unchecked_::closure_env$1<rayon_core::registry::impl$2::spawn::closure_env$0,tuple$<> >,tuple$<> >
                               at C:\Users\17124\.rustup\toolchains\nightly-x86_64-pc-windows-msvc\lib\rustlib\src\rust\library\core\src\ops\function.rs:250
  49:     0x7ff783aea0ed - alloc::boxed::impl$29::call_once
                               at /rustc/82ae0ee6487e93bd6c05167ccb2ef3485fdbc890/library\alloc\src\boxed.rs:2085
  50:     0x7ff783aea0ed - alloc::boxed::impl$29::call_once
                               at /rustc/82ae0ee6487e93bd6c05167ccb2ef3485fdbc890/library\alloc\src\boxed.rs:2085
  51:     0x7ff783aea0ed - std::sys::thread::windows::impl$0::new::thread_start
                               at /rustc/82ae0ee6487e93bd6c05167ccb2ef3485fdbc890/library\std\src\sys\thread\windows.rs:60    
  52:     0x7ff8db58259d - BaseThreadInitThunk
  53:     0x7ff8dd50af78 - RtlUserThreadStart
thread caused non-unwinding panic. aborting.

thread '<unnamed>' (16468) panicked at luisa_compute_backend_impl\src\cpu\llvm.rs:561:54:
Failed to load LLVM function LLVMOrcThreadSafeContextGetContext: could not load C:\SoftWare\LLVM\bin\LLVM-C.dll, error: GetProcAddress failed

Originally posted by @windwhiterain in #48 (comment)

Metadata

Metadata

Assignees

No one assigned

    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