Created
October 8, 2025 19:18
-
-
Save catamorphism/449fd13c91e30ac084081be48fd985dd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $ RUST_BACKTRACE=1 $WASI_SDK_PATH/bin/clang --verbose ../wasi-sdk/tests/general/mmap.c --target=wasm32-wasip2 --sysroot=./sysroot -lwasi-emulated-mman -D_WASI_EMULATED_MMAN -o mmap.wasm | |
| clang version 19.1.5-wasi-sdk (https://github.com/llvm/llvm-project ab4b5a2db582958af1ee308a790cfdb42bd24720) | |
| Target: wasm32-unknown-wasip2 | |
| Thread model: posix | |
| InstalledDir: /home/tjc/wasi-sdk-25.0-x86_64-linux/bin | |
| "/home/tjc/wasi-sdk-25.0-x86_64-linux/bin/clang-19" -cc1 -triple wasm32-unknown-wasip2 -emit-obj -dumpdir mmap.wasm- -disable-free -clear-ast-before-backend -disable-llvm-verifier -discard-value-names -main-file-name mmap.c -mrelocation-model static -mframe-pointer=none -ffp-contract=on -fno-rounding-math -mconstructor-aliases -target-cpu generic -fvisibility=hidden -debugger-tuning=gdb -fdebug-compilation-dir=/home/tjc/wasi-libc -v -fcoverage-compilation-dir=/home/tjc/wasi-libc -resource-dir /home/tjc/wasi-sdk-25.0-x86_64-linux/lib/clang/19 -D _WASI_EMULATED_MMAN -isysroot ./sysroot -internal-isystem /home/tjc/wasi-sdk-25.0-x86_64-linux/lib/clang/19/include -internal-isystem ./sysroot/include/wasm32-wasip2 -internal-isystem ./sysroot/include -ferror-limit 19 -fgnuc-version=4.2.1 -fskip-odr-check-in-gmf -fcolor-diagnostics -o /tmp/mmap-0bbcd0.o -x c ../wasi-sdk/tests/general/mmap.c | |
| clang -cc1 version 19.1.5-wasi-sdk based upon LLVM 19.1.5-wasi-sdk default target wasm32-wasi | |
| #include "..." search starts here: | |
| #include <...> search starts here: | |
| /home/tjc/wasi-sdk-25.0-x86_64-linux/lib/clang/19/include | |
| ./sysroot/include/wasm32-wasip2 | |
| ./sysroot/include | |
| End of search list. | |
| "/home/tjc/wasi-sdk-25.0-x86_64-linux/bin/wasm-component-ld" -m wasm32 --wasm-ld-path /home/tjc/wasi-sdk-25.0-x86_64-linux/bin/wasm-ld -L./sysroot/lib/wasm32-wasip2 ./sysroot/lib/wasm32-wasip2/crt1-command.o /tmp/mmap-0bbcd0.o -lwasi-emulated-mman -lc /home/tjc/wasi-sdk-25.0-x86_64-linux/lib/clang/19/lib/wasip2/libclang_rt.builtins-wasm32.a -o mmap.wasm | |
| thread 'main' panicked at /tmp/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wit-component-0.219.1/src/encoding.rs:881:9: | |
| assertion failed: prev.is_none() | |
| stack backtrace: | |
| 0: rust_begin_unwind | |
| 1: core::panicking::panic_fmt | |
| 2: core::panicking::panic | |
| 3: wit_component::encoding::EncodingState::encode_exports | |
| 4: wit_component::encoding::ComponentEncoder::encode | |
| 5: wasm_component_ld::run | |
| 6: wasm_component_ld::main | |
| note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace. | |
| clang: error: linker command failed with exit code 101 (use -v to see invocation) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment