Open
Description
When running the following in my automatic CI (on DouglasDwyer/wasm_runtime_layer@c5d41d4):
cargo test --no-fail-fast --release --no-default-features -p wasm_runtime_layer
on today's nightly, linking failed with the following error:
Error
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/rustcP6g0IE/symbols.o" "<17 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/home/runner/work/wasm_runtime_layer/wasm_runtime_layer/target/release/deps/{libwasmer_runtime_layer-e49a5a58b32447e1.rlib,libwasmer-ad0f04782b929226.rlib,libderive_more-f122258ef65374a0.rlib,libwat-878268f7f728ea09.rlib,libwast-48c4fb528a34c466.rlib,libwasm_encoder-79de2b9cfb1abc49.rlib,libleb128fmt-8349dc3ca2d9e604.rlib,libunicode_width-146b852c747f9d66.rlib,libwasmer_compiler_cranelift-60133527daa6bfa0.rlib,libitertools-78dee02948f87b59.rlib,libcranelift_frontend-a3a05dc7f3f950bc.rlib,librayon-46b01c409d36ec59.rlib,librayon_core-815443d7ec7c2aff.rlib,libcrossbeam_deque-ade2506e74b53117.rlib,libcrossbeam_epoch-696009d91fc341d6.rlib,libcranelift_codegen-973532af74fda034.rlib,libcranelift_codegen_shared-e0f9efdac8e98fa5.rlib,libregalloc2-999597983290f82c.rlib,libslice_group_by-76c40f27c04ecf9d.rlib,libhashbrown-fe4e80428ce0852c.rlib,librustc_hash-c06122de976ac865.rlib,libgimli-fa91054139b0e06b.rlib,libfallible_iterator-5a8927285411d878.rlib,libstable_deref_trait-35c40be64ac32f53.rlib,libcranelift_control-37033a1bd62b3bd5.rlib,libcranelift_bforest-4dc124b6287e17c8.rlib,libcranelift_entity-aedb82671512bcce.rlib,libcranelift_bitset-6a2784f2d682895b.rlib,libtracing-6263c249c0c8ef27.rlib,libpin_project_lite-1f9e39383d384674.rlib,libtracing_core-1d0d27835ebeaf50.rlib,libwasmer_compiler-964f5f8cc57ef795.rlib,libwasmparser-0c5fa94b19dc7e42.rlib,libself_cell-67647eb36af87427.rlib,libobject-2ad8fe424e27b476.rlib,libruzstd-cca2610fa7c2b08e.rlib,libtwox_hash-55b7e75b22ffd4b5.rlib,libstatic_assertions-3518b8fe4806afd0.rlib,libflate2-a38f6305d871e3fa.rlib,libshared_buffer-7f7740638e270f6b.rlib,libmemmap2-8fe8fc7d2570d858.rlib,libwasmer_vm-c2a64cf30c1ef1d4.rlib,libcrossbeam_queue-e3a5dcff7c5ce306.rlib,libregion-6626aef0becf1076.rlib,libbitflags-cdd316de466a1969.rlib,liblibunwind-5a3f8743c7e800ee.rlib,libcorosensei-a4a8e0720dcbb0bd.rlib,libbacktrace-804730bc796c01f5.rlib,libminiz_oxide-7e8f1c94c65e6178.rlib,libadler2-6b9a1aa0b3a9f52d.rlib,libaddr2line-6b891ce791b7fb9f.rlib,librustc_demangle-53bab62dd8673fab.rlib,libfnv-78e0fcf88335a4d1.rlib,libdashmap-9c291247f0a1a1e6.rlib,liblock_api-4929d1c3074fc7e5.rlib,libscopeguard-e66bdda20f92c774.rlib,libhashbrown-348d560f133e6734.rlib,libahash-cfa41d8b52ca0ea9.rlib,libzerocopy-c179604c28f8462d.rlib,libcrossbeam_utils-014619cb7c5541a6.rlib,libparking_lot_core-27974ee181e0e143.rlib,libmemoffset-e710536dfd8a9aba.rlib,libwasmer_types-a54cea52da69c78e.rlib,libxxhash_rust-de057aacde810d6a.rlib,libhex-acf666edea27876f.rlib,libmore_asserts-108268237e108898.rlib,libtarget_lexicon-c43daf02d55e2dc4.rlib,libenumset-526248c2c999457f.rlib,libsha2-6ebdc7342035c454.rlib,libcpufeatures-068a9aeb591fa98f.rlib,libdigest-5ccdb72ddf3dd79a.rlib,libblock_buffer-6f5c233ad32dd062.rlib,libcrypto_common-02cdf74022888f89.rlib,libgeneric_array-533ed0f0ac7febd2.rlib,libtypenum-83fceef2c3364c70.rlib,libenum_iterator-f491bae96ae16c28.rlib,librkyv-de41d95a5717f9fe.rlib,librend-cd884b2c07d1fab5.rlib,libmunge-f2e92688f90d88d9.rlib,libbytecheck-a1c640bead03a952.rlib,libsimdutf8-18646bb2e586b95c.rlib,librancor-6093fc7d689b4149.rlib,libptr_meta-1f6e2b87bd18c28e.rlib,libthiserror-264bc1ef525d83ee.rlib,libbytes-3ed9d7689ac5d1c1.rlib,libwasmi_runtime_layer-648edc68c59f82bb.rlib,libwasmi-e1a438218e191fda.rlib,libwasmi_ir-004a22162bb99e48.rlib,libwasmi_collections-ae7d67b27ff2214b.rlib,libwasmi_core-5db178587effa823.rlib,libmulti_stash-cbc9dd6e63bf5b26.rlib,libarrayvec-4c55aea7988c7daa.rlib,libwasmparser-b7b27d14368c87f7.rlib,libspin-1c4a93839517dfd9.rlib,libwasmtime_runtime_layer-4fb14160a5c10a85.rlib,libwasmtime-518fa69fdd0f6d98.rlib,libwasmtime_cranelift-3a536937e18b0092.rlib,libcranelift_native-51eaa69f70c81273.rlib,libitertools-bebd813213f7e9f5.rlib,libeither-fd945b7000bbd350.rlib,libthiserror-efd2f6330337541b.rlib,libcranelift_frontend-859008cf4a87e47b.rlib,libcranelift_codegen-79027f89920fc18f.rlib,libpulley_interpreter-65f1561770508179.rlib,libcranelift_assembler_x64-0a9280129386456f.rlib,libcranelift_codegen_shared-586b5a972edb04ec.rlib,libregalloc2-f4b225732f7b968c.rlib,librustc_hash-3344ea6a15951e54.rlib,libcranelift_control-65ca6c196cc260d5.rlib,libarbitrary-3bfd08abca3bc161.rlib,libcranelift_bforest-a4f72af67a19f7c0.rlib,libwasmtime_math-e39dfedc8736f7f6.rlib,liblibm-1649969c0526f2f1.rlib,libmemfd-3b3f0d05b1102db0.rlib,librustix-a6e2b4bf46c109c7.rlib,liblinux_raw_sys-ba6385a7da74e517.rlib,liblibc-3efaa7a0bc2bf4fe.rlib,libbumpalo-3c5a42b882c24120.rlib,liballocator_api2-d6816e127d076781.rlib,librustix-836ed2aedff15419.rlib,liblinux_raw_sys-64a6b4ffab4aa994.rlib,libsptr-58f0a290d2d65c6c.rlib,libwasmtime_slab-9908c1c2d968eed9.rlib,libwasmtime_jit_icache_coherence-08f317ba927b0d3d.rlib,libwasmtime_environ-c64b87477aff16e4.rlib,libpostcard-82eabf4d0e1cbdfc.rlib,libcobs-56ebf0157bc5071f.rlib,libgimli-5783c89192441cd1.rlib,liblog-28da0a5aaa40939b.rlib,libcranelift_entity-29401d8ba49524c8.rlib,libcranelift_bitset-5402533a0cc8b3d0.rlib,libtarget_lexicon-ccdad27c043f18d4.rlib,libobject-653f828fcda5f489.rlib,libindexmap-0939bd133ec46732.rlib,libequivalent-f60641437efedd8b.rlib,libcrc32fast-7abaead3f143c3e7.rlib,libmemchr-c5be2dffeffaa43d.rlib,libwasmparser-4d88c3eef499efb6.rlib,libbitflags-131c5e2e36ce8574.rlib,libsemver-fc313c95981a47d8.rlib,libwasm_bindgen_test-166e21fd51126724.rlib,libwasm_bindgen_futures-bb9a61da00a4bbbd.rlib,libjs_sys-77b40e1872a42262.rlib,libwasm_bindgen-64da50993705ec5c.rlib,libonce_cell-2370782cc8dc072f.rlib,libcfg_if-deeff2d4ea59a0c8.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libtest-*,libgetopts-*,libunicode_width-*,librustc_std_workspace_std-*}.rlib" "/home/runner/work/wasm_runtime_layer/wasm_runtime_layer/target/release/deps/{libwasm_runtime_layer-846087f78928afc9.rlib,libsmallvec-2f35511d9e34e540.rlib,libserde-bc4bd111d9b8689a.rlib,libref_cast-ae32137018149976.rlib,libhashbrown-1db6526f74b5411b.rlib,libfoldhash-13ade093879705ec.rlib,libfxhash-68b3445da3cc8fb9.rlib,libbyteorder-3b89acd91dfafd26.rlib,libanyhow-9ecd68dedf42d476.rlib}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,libcfg_if-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/rustcP6g0IE/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,-znostart-stop-gc" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/home/runner/work/wasm_runtime_layer/wasm_runtime_layer/target/release/build/wasmtime-7b312df1049a5a7e/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/home/runner/work/wasm_runtime_layer/wasm_runtime_layer/target/release/deps/add_one-02e1d2218467093c" "-Wl,--gc-sections" "-pie" "-Wl,-z,relro,-z,now" "-Wl,-O1" "-Wl,--strip-debug" "-nodefaultlibs"
= note: some arguments are omitted. use `--verbose` to show all linker arguments
= note: rust-lld: error: undefined symbol: __rust_probestack
>>> referenced by wasmer_vm.32e6fef4f2d5f1ed-cgu.08
>>> wasmer_vm-c2a64cf30c1ef1d4.wasmer_vm.32e6fef4f2d5f1ed-cgu.08.rcgu.o:(wasmer_vm::libcalls::function_pointer::hf8cae759ddeaae50) in archive /home/runner/work/wasm_runtime_layer/wasm_runtime_layer/target/release/deps/libwasmer_vm-c2a64cf30c1ef1d4.rlib
collect2: error: ld returned 1 exit status
error: could not compile `wasm_runtime_layer` (test "add_one") due to 1 previous error