Open alimulap opened 8 months ago
You could try to using the LLVM_SYS_140_PREFIX
environment variable.
Sorry for abandoning this issue. I thought this language doesn't suits my need, but turns out it is but it just in a slow development so probably if I get more interest in this, I will try to contribute.
Anyway, with the prefix, the problem still occurs.
I'm not sure if i did it right though
It looks like the program is still including lld headers that are not for lld 14, but its unclear to me why that would be the case.
I tried to build from souce and got this errors:
Errors
``` ❯ RUST_BACKTRACE=full; cargo build --release Compiling llvm-sys v140.1.3 error: failed to run custom build command for `llvm-sys v140.1.3` note: To improve backtraces for build dependencies, set the CARGO_PROFILE_RELEASE_BUILD_OVERRIDE_DEBUG=true environment variable to enable debug information generation. Caused by: process didn't exit successfully: `/home/alimulap/packages/mun/target/release/build/llvm-sys-f3712a7800f20de1/build-script-build` (exit status: 101) --- stdout cargo:rerun-if-env-changed=LLVM_SYS_140_PREFIX cargo:rerun-if-env-changed=LLVM_SYS_140_IGNORE_BLOCKLIST cargo:rerun-if-env-changed=LLVM_SYS_140_STRICT_VERSIONING cargo:rerun-if-env-changed=LLVM_SYS_140_NO_CLEAN_CFLAGS cargo:rerun-if-env-changed=LLVM_SYS_140_USE_DEBUG_MSVCRT cargo:rerun-if-env-changed=LLVM_SYS_140_FFI_WORKAROUND TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("0") HOST = Some("x86_64-unknown-linux-gnu") cargo:rerun-if-env-changed=CC_x86_64-unknown-linux-gnu CC_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CC_x86_64_unknown_linux_gnu CC_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("false") CARGO_CFG_TARGET_FEATURE = Some("fxsr,sse,sse2") cargo:rerun-if-env-changed=CFLAGS_x86_64-unknown-linux-gnu CFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=CFLAGS_x86_64_unknown_linux_gnu CFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = Some("-I/usr/include -D_GNU_SOURCE -D__STDC_CONSTANT_MACROS -D__STDC_FORMAT_MACROS -D__STDC_LIMIT_MACROS ") cargo:rerun-if-env-changed=AR_x86_64-unknown-linux-gnu AR_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=AR_x86_64_unknown_linux_gnu AR_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_AR HOST_AR = None cargo:rerun-if-env-changed=AR AR = None cargo:rerun-if-env-changed=ARFLAGS_x86_64-unknown-linux-gnu ARFLAGS_x86_64-unknown-linux-gnu = None cargo:rerun-if-env-changed=ARFLAGS_x86_64_unknown_linux_gnu ARFLAGS_x86_64_unknown_linux_gnu = None cargo:rerun-if-env-changed=HOST_ARFLAGS HOST_ARFLAGS = None cargo:rerun-if-env-changed=ARFLAGS ARFLAGS = None cargo:rustc-link-lib=static=targetwrappers cargo:rustc-link-search=native=/home/alimulap/packages/mun/target/release/build/llvm-sys-d8565b9913fe0409/out cargo:config_path=llvm-config cargo:libdir=/usr/lib cargo:rustc-link-search=native=/usr/lib --- stderr thread 'main' panicked at /home/alimulap/.cargo/registry/src/index.crates.io-6f17d22bba15001f/llvm-sys-140.1.3/build.rs:462:5: failed to get link libraries from llvm-config: [("static", Custom { kind: Other, error: "llvm-config failed with error code Some(1)" })] stack backtrace: 0: 0x56be01d82c5c - std::backtrace_rs::backtrace::libunwind::trace::ha69d38c49f1bf263 at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:93:5 1: 0x56be01d82c5c - std::backtrace_rs::backtrace::trace_unsynchronized::h93125d0b85fd543c at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 2: 0x56be01d82c5c - std::sys_common::backtrace::_print_fmt::h8d65f438e8343444 at /rustc/a28077b28a02b92985b3a3faecf92813155f1ea1/library/std/src/sys_common/backtrace.rs:67:5 3: 0x56be01d82c5c -I asked in the llvm-sys repo here and the solution i got there lead me to another problem. So i think it's better to ask here too, since I'm building mun and not directly use llvm-sys.
rustc & cargo:
os:
llvm-config:
i think that's the source of the problem. Even though I already installed llvm14