@Meldon I saw your out of date notification. Still can't get recent versions of Teleport to build. Every few weeks I take another stab at it, but it's been failing on this error when it tries to build wasm-opt:
Compiling wasm-opt v0.116.1
error: linking with `cc` failed: exit status: 1
|
= note: "cc" "-m64" "/tmp/cargo-install4THXNF/release/deps/rustcpioN0x/symbols.o" "<3 object files omitted>" "-Wl,--as-needed" "-Wl,-Bstatic" "/tmp/cargo-install4THXNF/release/deps/{libanyhow-0cc1cd6559651380,liblibc-35263512c9d1fac1,libwasm_opt_sys-29d1eea59ff86047,libcxx-c0dfbd9910d4395b,liblink_cplusplus-fb8232680bb13b01}.rlib" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib/{libstd-*,libpanic_unwind-*,libobject-*,libmemchr-*,libaddr2line-*,libgimli-*,libcfg_if-*,librustc_demangle-*,libstd_detect-*,libhashbrown-*,librustc_std_workspace_alloc-*,libminiz_oxide-*,libadler2-*,libunwind-*,liblibc-*,librustc_std_workspace_core-*,liballoc-*,libcore-*,libcompiler_builtins-*}.rlib" "-Wl,-Bdynamic" "-lstdc++" "-lgcc_s" "-lutil" "-lrt" "-lpthread" "-lm" "-ldl" "-lc" "-L" "/tmp/cargo-install4THXNF/release/deps/rustcpioN0x/raw-dylibs" "-B<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/bin/gcc-ld" "-fuse-ld=lld" "-Wl,--eh-frame-hdr" "-Wl,-z,noexecstack" "-L" "/tmp/cargo-install4THXNF/release/build/wasm-opt-cxx-sys-b0f9b09ced88838f/out" "-L" "/tmp/cargo-install4THXNF/release/build/cxx-9bacfb6f71ad41a8/out" "-L" "/tmp/cargo-install4THXNF/release/build/link-cplusplus-1bf3acc08e282112/out" "-L" "/tmp/cargo-install4THXNF/release/build/wasm-opt-sys-f08e2d060552e51f/out" "-L" "<sysroot>/lib/rustlib/x86_64-unknown-linux-gnu/lib" "-o" "/tmp/cargo-install4THXNF/release/deps/wasm_opt-f749108259403a59" "-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: llvm::sys::fs::detail::directory_iterator_destruct(llvm::sys::fs::detail::DirIterState&)
>>> referenced by DWARFUnit.cpp
>>> a8f31fb4bceafb9f-DWARFUnit.o:(std::_Sp_counted_ptr_inplace<llvm::sys::fs::detail::DirIterState, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /tmp/cargo-install4THXNF/release/deps/libwasm_opt_sys-29d1eea59ff86047.rlib
>>> referenced by DWARFUnit.cpp
>>> a8f31fb4bceafb9f-DWARFUnit.o:(std::_Sp_counted_base<(__gnu_cxx::_Lock_policy)2>::_M_release() (.part.0)) in archive /tmp/cargo-install4THXNF/release/deps/libwasm_opt_sys-29d1eea59ff86047.rlib
>>> referenced by DWARFUnit.cpp
>>> a8f31fb4bceafb9f-DWARFUnit.o:(std::_Sp_counted_ptr_inplace<llvm::sys::fs::detail::RecDirIterState, std::allocator<void>, (__gnu_cxx::_Lock_policy)2>::_M_dispose()) in archive /tmp/cargo-install4THXNF/release/deps/libwasm_opt_sys-29d1eea59ff86047.rlib
>>> referenced 2 more times
collect2: error: ld returned 1 exit status
error: could not compile `wasm-opt` (bin "wasm-opt") due to 1 previous error
error: failed to compile `wasm-opt v0.116.1`, intermediate artifacts can be found at `/tmp/cargo-install4THXNF`.
To reuse those artifacts with a future compilation, set the environment variable `CARGO_TARGET_DIR` to that path.
The wasm-opt command is provided by the binaryen package, but I've tried everything I can think of to get the build scripts to use the system's version of wasm-bindgen and wasm-opt and it refuses to do so. Any suggestions are welcome.
Pinned Comments
fuhry commented on 2026-06-05 21:21 (UTC)
Updates are currently blocked by build errors. I don't push new versions until I have a successful local build produced using this script.