Skip to content

cannot open crt1-command.o: No such file or directory #88

@Ludea

Description

@Ludea

getrandom try to add wasip3 support but get

error: linking with `wasm-component-ld` failed: exit status: 1
  |
  = note:  "wasm-component-ld" "-flavor" "wasm" "--export" "__main_void" "--export" "cabi_realloc" "--export" "cabi_realloc_wit_bindgen_0_45_1" "-z" "stack-size=1048576" "--stack-first" "--allow-undefined" "--no-demangle" "crt1-command.o" "<2 object files omitted>" "/home/runner/work/getrandom/getrandom/target/wasm32-wasip3/debug/deps/{libpanic_abort-c82f46a4c8537275,libtest-fe3fb2dc14a5aed5,libgetopts-f558786b5910ae8f,librustc_std_workspace_std-bb89477c3cc350b8,libstd-28548a5c48a45934,libwasi-d4f75bbb0c7dc115,libwit_bindgen-8e455fd620ac4c8e,libcfg_if-da92e3dd9f2fabe0,librustc_demangle-d6522a9ea09539e7,libstd_detect-df972a48f41f6762,libhashbrown-e2c83b0f82d40f1e,librustc_std_workspace_alloc-7816117ca92d26b5,libminiz_oxide-9503d77a0428e9ce,libadler2-f24d440d3742ef6e,libunwind-1e7cc73c4be28223,liblibc-8ff5677e821a7344}.rlib" "-l" "c" "/home/runner/work/getrandom/getrandom/target/wasm32-wasip3/debug/deps/{librustc_std_workspace_core-0d8bfb0865e5d7b1,liballoc-3d89ad90d5e86280,libcore-745f1239c221b437,libcompiler_builtins-63c821cdd302a982}.rlib" "-L" "/home/runner/work/getrandom/getrandom/target/wasm32-wasip3/debug/build/wit-bindgen-4e784275c4cf5f30/out" "-L" "/home/runner/work/getrandom/getrandom/target/wasm32-wasip3/debug/build/wit-bindgen-1c8d8422493b410e/out" "-L" "<sysroot>/lib/rustlib/wasm32-wasip3/lib/self-contained" "-o" "/home/runner/work/getrandom/getrandom/target/wasm32-wasip3/debug/deps/sys_rng-c324c40e41ba36b7.wasm" "--gc-sections" "-O0"
  = note: some arguments are omitted. use `--verbose` to show all linker arguments
  = note: rust-lld: error: cannot open crt1-command.o: No such file or directory
          rust-lld: error: unable to find library -lc
          error: failed to invoke LLD: exit status: 1
          

error: could not compile `getrandom` (test "sys_rng") due to 1 previous error

OS: Ubuntu 24.04 x86_64
rust version: nightly

Full logs: https://github.com/rust-random/getrandom/actions/runs/20799036693/job/59739722173

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