Open
Description
I'm constantly receiving Undefined symbols for architecture x86_64
when running cargo build/test/check/run
. It happens in projects with a variety of targets (wasm/arm/x86/musl). I can make it temporarily go away when switching my default from stable to nightly, but the issues will resume and I'll have to switch back.
The stack traces I'm receiving are especially nasty:
= note: Undefined symbols for architecture x86_64:
"syn::punctuated::Pair$LT$T$C$P$GT$::into_tuple::h7650409a1648a723", referenced from:
syn::gen::visit::visit_angle_bracketed_generic_arguments::h17c66b0edf1406c7 in libwasm_bindgen_macro_support-62eb06893cdd5d5c.rlib(wasm_bindgen_macro_support-62eb06893cdd5d5c.wasm_bindgen_macro_support.6s2lo5z5-cgu.0.rcgu.o)
"syn::punctuated::Pair$LT$T$C$P$GT$::into_tuple::h9e3a72cf01e3775d", referenced from:
syn::gen::visit::visit_lifetime_def::h12b1c6ddc1818ba7 in libwasm_bindgen_macro_support-62eb06893cdd5d5c.rlib(wasm_bindgen_macro_support-62eb06893cdd5d5c.wasm_bindgen_macro_support.6s2lo5z5-cgu.0.rcgu.o)
syn::gen::visit::visit_predicate_lifetime::h90dd0a0408d5ad94 in libwasm_bindgen_macro_support-62eb06893cdd5d5c.rlib(wasm_bindgen_macro_support-62eb06893cdd5d5c.wasm_bindgen_macro_support.6s2lo5z5-cgu.0.rcgu.o)
....
....
"_$LT$alloc..raw_vec..RawVec$LT$T$C$A$GT$$u20$as$u20$core..ops..drop..Drop$GT$::drop::hdf6534d4c8747194", referenced from:
core::ptr::drop_in_place::h3e5e73dbe7eaf673 in libwasm_bindgen_macro_support-62eb06893cdd5d5c.rlib(wasm_bindgen_macro_support-62eb06893cdd5d5c.wasm_bindgen_macro_support.6s2lo5z5-cgu.6.rcgu.o)
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
Unfortunately, cargo clean
doesn't help, nor does switching from debug to release.