B1nus added the bug label to Issue #9519.
B1nus opened issue #9519:
Compiler Error
I get a compiler error while trying to compile wasi-webgpu-runtime . The error comes from wasmtime 21.0.1 because the build scripts for
ittapit-sys v0.4.0
andzstd-sys v2.0.10+zstd.1.5.6
fail.warning: build failed, waiting for other jobs to finish... The following warnings were emitted during compilation: warning: ittapi-sys@0.4.0: ar: /home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o: Filen eller katalogen finns inte error: failed to run custom build command for `ittapi-sys v0.4.0` Caused by: process didn't exit successfully: `/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-ac0463e686192091/build-script-build` (exit status: 1) --- stdout TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("3") 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 = None Hello, World! Hello, World! exit status: 0 exit status: 0 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:warning=ar: /home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o: Filen eller katalogen finns inte --- stderr error occurred: Command ZERO_AR_DATE="1" "ar" "cq" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/libittnotify.a" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-jitprofiling.o" with args "ar" did not execute successfully (status code exit status: 1).
There is another block of compiler errors for
zstd-sys v2.0.10+zstd.1.5.6
but I left it out for brevity.Steps to Reproduce
- Have archlinux
- Clone the git repository for the wasi-webgpu-runtime
- Run
$ cargo check
- Have a compiler error
Expected Results
Being able to build wasi-webgpu-runtime for testing my code.
Actual Results
A compiler error complaining about missing files and ittapi and zstd build commands not working.
Versions and Environment
Wasmtime version or commit: 21.0.1
Operating system: archlinux
Architecture: x86_64
Extra Info
My installed wasmtime version is different from the one used here, but I assume that doesn't matter. Also, there is more to the error than I show, please let me know if it is relevant to show the entire error message.
alexcrichton commented on issue #9519:
Could you try setting
CC_ENABLE_DEBUG_OUTPUT=1
and rerunning the build and see if it provides any other useful output?
abrown commented on issue #9519:
cargo:warning=ar: /home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o: Filen eller katalogen finns inte
It would seem that is Swedish for "the file or directory does not exist" which would indicate that the program couldn't compile the
ittapi
object files. I do see a lot ofNone
as thecc
crate attempts to find a C toolchain to build those object files (see here). Is it possible that your version of Linux does not have a C toolchain installed? Or perhaps installed in such a way that thecc
crate can find it?
B1nus commented on issue #9519:
Could you try setting
CC_ENABLE_DEBUG_OUTPUT=1
and rerunning the build and see if it provides any other useful output?I can't find anything of note. But I'll add the file of the entire output so you can see it also.
compiler-error.txt
B1nus edited a comment on issue #9519:
Could you try setting
CC_ENABLE_DEBUG_OUTPUT=1
and rerunning the build and see if it provides any other useful output?I can't find anything of note. But I'll add the file of the entire output so you can see it also.
compiler-error.txt
B1nus commented on issue #9519:
Turns out setting the environment variable
CC
toclang
solved it. Don't ask me why.
B1nus edited a comment on issue #9519:
Turns out setting the environment variable
CC
toclang
solved it. Don't ask me why. Thanks for the help!
alexcrichton commented on issue #9519:
Could you confirm the upload link there? That looks like the wrong file may have been uploaded? (or maybe a problem being uploaded?)
B1nus closed issue #9519:
Compiler Error
I get a compiler error while trying to compile wasi-webgpu-runtime . The error comes from wasmtime 21.0.1 because the build scripts for
ittapit-sys v0.4.0
andzstd-sys v2.0.10+zstd.1.5.6
fail.warning: build failed, waiting for other jobs to finish... The following warnings were emitted during compilation: warning: ittapi-sys@0.4.0: ar: /home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o: Filen eller katalogen finns inte error: failed to run custom build command for `ittapi-sys v0.4.0` Caused by: process didn't exit successfully: `/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-ac0463e686192091/build-script-build` (exit status: 1) --- stdout TARGET = Some("x86_64-unknown-linux-gnu") OPT_LEVEL = Some("3") 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 = None Hello, World! Hello, World! exit status: 0 exit status: 0 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:warning=ar: /home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o: Filen eller katalogen finns inte --- stderr error occurred: Command ZERO_AR_DATE="1" "ar" "cq" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/libittnotify.a" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-ittnotify_static.o" "/home/linus/Projekt/wasi-gfx-runtime/target/release/build/ittapi-sys-9b4c46ae661ab6c9/out/cb7057cb9c9a66a6-jitprofiling.o" with args "ar" did not execute successfully (status code exit status: 1).
There is another block of compiler errors for
zstd-sys v2.0.10+zstd.1.5.6
but I left it out for brevity.Steps to Reproduce
- Have archlinux
- Clone the git repository for the wasi-webgpu-runtime
- Run
$ cargo check
- Have a compiler error
Expected Results
Being able to build wasi-webgpu-runtime for testing my code.
Actual Results
A compiler error complaining about missing files and ittapi and zstd build commands not working.
Versions and Environment
Wasmtime version or commit: 21.0.1
Operating system: archlinux
Architecture: x86_64
Extra Info
My installed wasmtime version is different from the one used here, but I assume that doesn't matter. Also, there is more to the error than I show, please let me know if it is relevant to show the entire error message.
B1nus commented on issue #9519:
Could you confirm the upload link there? That looks like the wrong file may have been uploaded? (or maybe a problem being uploaded?)
I'll post the error down below instead. The issue is solved however, seems that gcc was causing trouble somehow:
[linus@linus-spelman wasi-webgpu-wasmtime]$ cargo build Compiling proc-macro2 v1.0.79 Compiling unicode-ident v1.0.12 Compiling cfg-if v1.0.0 Compiling version_check v0.9.4 Compiling libc v0.2.153 Compiling once_cell v1.19.0 Compiling serde v1.0.197 Compiling zerocopy v0.7.32 Compiling bitflags v2.6.0 Compiling equivalent v1.0.1 Compiling allocator-api2 v0.2.16 Compiling log v0.4.21 Compiling itoa v1.0.11 Compiling autocfg v1.2.0 Compiling anyhow v1.0.81 Compiling rustix v0.38.32 Compiling semver v1.0.22 Compiling linux-raw-sys v0.4.13 Compiling leb128 v0.2.5 Compiling memchr v2.7.2 Compiling rustc-hash v1.1.0 Compiling cranelift-isle v0.108.1 Compiling thiserror v1.0.63 Compiling cranelift-codegen-shared v0.108.1 Compiling typenum v1.17.0 Compiling target-lexicon v0.12.14 Compiling io-lifetimes v2.0.3 Compiling ahash v0.8.11 Compiling generic-array v0.14.7 Compiling cranelift-codegen-meta v0.108.1 Compiling bumpalo v3.15.4 Compiling pkg-config v0.3.30 Compiling serde_json v1.0.115 Compiling unicode-xid v0.2.4 Compiling quote v1.0.35 Compiling hashbrown v0.14.3 Compiling hashbrown v0.13.2 Compiling slice-group-by v0.3.1 Compiling io-extras v0.18.2 Compiling crc32fast v1.4.0 Compiling syn v2.0.57 Compiling jobserver v0.1.28 Compiling crossbeam-utils v0.8.19 Compiling arbitrary v1.3.2 Compiling unicode-width v0.1.11 Compiling ryu v1.0.17 Compiling cc v1.0.90 Compiling cfg_aliases v0.1.1 Compiling pin-project-lite v0.2.14 Compiling cap-primitives v3.1.0 Compiling ambient-authority v0.0.2 Compiling slab v0.4.9 Compiling maybe-owned v0.3.4 Compiling cpp_demangle v0.4.3 Compiling either v1.10.0 Compiling zstd-safe v7.1.0 Compiling heck v0.4.1 Compiling embedded-io v0.4.0 Compiling cobs v0.2.3 Compiling ipnet v2.9.0 Compiling crossbeam-epoch v0.9.18 Compiling cranelift-control v0.108.1 Compiling dirs-sys v0.3.7 Compiling id-arena v2.2.1 Compiling cap-std v3.1.0 Compiling futures-sink v0.3.30 Compiling rayon-core v1.12.1 Compiling wasmtime-component-util v21.0.1 Compiling winnow v0.6.8 Compiling futures-core v0.3.30 Compiling crossbeam-deque v0.8.5 Compiling dirs v4.0.0 Compiling block-buffer v0.10.4 Compiling crypto-common v0.1.6 Compiling futures-channel v0.3.30 Compiling itertools v0.12.1 Compiling getrandom v0.2.12 Compiling dirs-sys-next v0.1.2 Compiling digest v0.10.7 Compiling memoffset v0.9.1 Compiling wasm-encoder v0.207.0 Compiling wast v35.0.2 Compiling wasm-encoder v0.208.1 Compiling byteorder v1.5.0 Compiling futures-io v0.3.30 Compiling tinyvec_macros v0.1.1 Compiling rustc-demangle v0.1.23 Compiling paste v1.0.14 Compiling wasmtime-cache v21.0.1 Compiling uuid v1.8.0 Compiling wasmtime-component-macro v21.0.1 Compiling libm v0.2.8 Compiling futures-task v0.3.30 Compiling zstd-sys v2.0.10+zstd.1.5.6 Compiling ittapi-sys v0.4.0 Compiling pin-utils v0.1.0 Compiling cpufeatures v0.2.12 Compiling async-trait v0.1.79 Compiling sha2 v0.10.8 Compiling wast v208.0.1 Compiling debugid v0.8.0 Compiling fxhash v0.2.1 Compiling tinyvec v1.6.0 Compiling directories-next v2.0.0 Compiling cranelift-codegen v0.108.1 Compiling rand_core v0.6.4 Compiling shellexpand v2.1.2 Compiling indexmap v2.2.6 Compiling lock_api v0.4.11 Compiling wasmtime-asm-macros v21.0.1 Compiling parking_lot_core v0.9.9 Compiling ppv-lite86 v0.2.17 Compiling base64 v0.21.7 Compiling rayon v1.10.0 Compiling rand_chacha v0.3.1 Compiling naga v22.1.0 Compiling wasmparser v0.207.0 Compiling unicode-normalization v0.1.23 The following warnings were emitted during compilation: warning: ittapi-sys@0.4.0: llvm-ar: error: /home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-be9b596de1a6a200/out/cb7057cb9c9a66a6-ittnotify_static.o: No such file or directory error: failed to run custom build command for `ittapi-sys v0.4.0` Caused by: process didn't exit successfully: `/home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-6572f4d65027c39b/build-script-build` (exit status: 1) --- stdout 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 = Some("") 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("true") 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 = None Hello, World! Hello, World! exit status: 0 exit status: 0 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 = Some("llvm-ar") 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:warning=llvm-ar: error: /home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-be9b596de1a6a200/out/cb7057cb9c9a66a6-ittnotify_static.o: No such file or directory --- stderr error occurred: Command ZERO_AR_DATE="1" "llvm-ar" "cq" "/home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-be9b596de1a6a200/out/libittnotify.a" "/home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-be9b596de1a6a200/out/cb7057cb9c9a66a6-ittnotify_static.o" "/home/linus/Projekt/wasi-gfx-runtime/target/debug/build/ittapi-sys-be9b596de1a6a200/out/cb7057cb9c9a66a6-jitprofiling.o" with args "" did not execute successfully (status code exit status: 1). warning: build failed, waiting for other jobs to finish... The following warnings were emitted during compilation: warning: zstd-sys@2.0.10+zstd.1.5.6: llvm-ar: error: /home/linus/Projekt/wasi-gfx-runtime/target/debug/build/zstd-sys-abb1b5211b4fbbfc/out/8957a4c8b028b07b-debug.o: No such file or directory error: failed to run custom build command for `zstd-sys v2.0.10+zstd.1.5.6` Caused by: process didn't exit successfully: `/home/linus/Projekt/wasi-gfx-runtime/target/debug/build/zstd-sys-d6745a064e386f86/build-script-build` (exit status: 1) --- stdout cargo:rerun-if-env-changed=ZSTD_SYS_USE_PKG_CONFIG 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 = Some("") 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("true") 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 = None 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 = Some("") cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None 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 = None 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 = Some("") cargo:rerun-if-env-changed=CC_ENABLE_DEBUG_OUTPUT cargo:rerun-if-env [message truncated]
alexcrichton commented on issue #9519:
Ok thanks! It looks like you have
CC=""
in your environment and your C compiler might be a script that printsHello, World!
and exits? In any case sounds likeCC=clang
worked for you.
Last updated: Dec 23 2024 at 12:05 UTC