rust-cross / cargo-xwin

Cross compile Cargo project to Windows MSVC target with ease
Other
357 stars 30 forks source link

Failed to build for napi-rs #18

Closed Fnll closed 2 years ago

Fnll commented 2 years ago

I'm trying to build from macos to windows using napi-rs. is error below a problem with node.js?

$ cargo xwin build --target x86_64-pc-windows-msvc

error: linking with `lld-link` failed: exit status: 1
  |
  = note: "lld-link" "-flavor" "link" "/DEF:/var/folders/06/l583zd5n1m34myqg90t3w95r0000gy/T/rustcTMvSwV/lib.def" "/NOLOGO" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.1jyy8w734oyjlkdw.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.3xmzi2f6yznmvke9.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.4457gy7djbbkza6s.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.45jrnfsrzqei5we0.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.56sz58ybl1qgjd5.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.d0str2lc3s7lntb.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.gms10agia86rl0.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.l7s8ragl3zmtnsh.rcgu.o" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.537dtz2pacykn2fi.rcgu.o" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/debug/deps" "/LIBPATH:/Users/kerui.lian/Library/Caches/cargo-xwin/xwin/crt/lib/x86_64" "/LIBPATH:/Users/kerui.lian/Library/Caches/cargo-xwin/xwin/sdk/lib/um/x86_64" "/LIBPATH:/Users/kerui.lian/Library/Caches/cargo-xwin/xwin/sdk/lib/ucrt/x86_64" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/build/node-15b4b75853f51642/out" "/LIBPATH:/Users/kerui.lian/.cargo/registry/src/github.com-1ecc6299db9ec823/windows_x86_64_msvc-0.30.0/lib" "/LIBPATH:/Users/kerui.lian/.cargo/registry/src/github.com-1ecc6299db9ec823/windows_x86_64_msvc-0.32.0/lib" "/LIBPATH:core/log/lib/windows/win" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/build/libz-sys-579dd9dad8ffb161/out/lib" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/build/libz-sys-579dd9dad8ffb161/out/lib" "/LIBPATH:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/build/ring-8d11c4034bf497dc/out" "/LIBPATH:/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib" "node-x64.lib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnapi-9b89c7caa2a8d66b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnapi_sys-b13266caa9c08ec8.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwindows-e6dbf8fdb3bea8e4.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libsdk-72e1e84cb3a1a923.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libpanic_monitor-e240300347cf893e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtoml-2ebb99f1f20fc0dc.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libos_info-31323bed7050c922.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnetwork-fc5794228f500bcb.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwebpki_roots-fcaa37611ff02697.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libhex-98baf40e2799672b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librmp_serde-54a4f6bb6dd4a760.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librmp-bd810c53610e15fe.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnum_traits-e050119b9b030ae0.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtokio_tungstenite-315c4cfbee1930e1.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libpin_project-a0301659b38d6bb7.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtokio_native_tls-d5a84412649a904c.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtungstenite-7158f7a58360cb9f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbase64-8b1979a762d92b3f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librand-cd6d4e57cecc359b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librand_chacha-3011c25a6f54a97d.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libppv_lite86-61794855a1dec592.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librand_core-e2d720e4aa83de03.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libgetrandom-d79c42f12f71f6ef.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libutf8-035957444fc0789e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbyteorder-c2da14bf6673182f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libsha1-54f75ad970d6d6ca.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libopaque_debug-270c61b02f97deae.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libcpufeatures-a6d5c29ffae468eb.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libblock_buffer-189911a4d77613f8.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libdigest-ac0eb717dcf8058f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libgeneric_array-5080313a96c6753a.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtypenum-66b79020dc253618.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libinput_buffer-21c21724b3cfc735.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libhttparse-fb067e79c7083a4f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnative_tls-ed695a5db8bc43af.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libschannel-b578ca66f99f8cd2.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liburl-872d77527d996a22.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libidna-141143cbdf51eb2f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libunicode_normalization-69f36f68f7796d8e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtinyvec-850f66873a5e19b7.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtinyvec_macros-bc3813f134893656.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libunicode_bidi-ccf7e8a7676619d2.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libform_urlencoded-9e92acf0013961db.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libpercent_encoding-9fc886178857cb3a.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libmatches-64c7b9c7046ed63e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libhttp-cb07233c1bf79385.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libitoa-a5d3bf6e6cd5d690.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfnv-43b57e363d26fd7c.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtokio_rustls-e210c8f59c40bcf0.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librustls-db626de07e601a50.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libsct-dee3abc5aab3d5f2.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwebpki-e0cecf7fbdae74df.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libring-bb15a59360850de6.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libspin-d98c5c11558efa7d.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libuntrusted-2f562de7d25d2d12.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtokio_util-210a5ff842bcf0b0.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfailure-be4ac953a30ef908.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbacktrace-b19046e9b06fae23.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/librustc_demangle-941082f64d25acf5.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libserde-ed248b61327ab54b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnom-c99f8977f7436b41.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblexical_core-d08c1f633cebf2b9.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbitflags-4d0dc71f4fad52ea.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libryu-499b13adf5e77612.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libstatic_assertions-cd423e24f46ae17a.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libarrayvec-a2e061e42ae3aa91.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbitvec-704eb8910cea9db1.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfunty-7ebf4b21be3c4bec.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwyz-e81e56cd0a97fc7c.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtap-08a0e83d89156d20.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libradium-ca5c0fd6a624b0d4.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libliblog-680bb57935afaa82.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libgettid-78fbe751e5e9d955.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblibz_sys-f5bb5e757e9087c6.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblibc-44f74c4dafcf2b42.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblink_cplusplus-c065282f4745bd1c.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbridge-50a53808b816b224.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libprost-fef7b26f57e90f0e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libthiserror-f3ff810216b6f176.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libtokio-1df9e9adfbdb3d84.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libnum_cpus-e1511d1ff4dadbba.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libsocket2-953e20a378cae557.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libonce_cell-8c21e38169e63852.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libbytes-6ed18ad6b538b9f5.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libmio-3c5a75d35ed462d4.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libmiow-562889d46b1176fa.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libntapi-1bb4b27b2c9ef753.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblog-8be6f97d784bb53b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwinapi-f98a2a883ddfef5d.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libparking_lot-4637368cd0b264b3.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libparking_lot_core-2fb1ba8782208b87.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libwindows_sys-fc4662ecbe525d4b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libcfg_if-5c0d39d12e2c7f2e.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libsmallvec-9efc3eaa72ef0b12.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblock_api-dcd8aa6a16319bbf.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libscopeguard-37dc9e4c1e67f454.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/liblazy_static-72808a07df37bcf6.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures-039a4165ee4ab78f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_executor-63274d892f2ff0e5.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_util-d389eaab597409fb.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libmemchr-a3defd4cb4654fa6.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_io-46eed63d6014b5a4.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libslab-79a114736344531b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_channel-0ecb81eff8e6a78b.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libpin_project_lite-d0c2b2363b603bac.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_sink-1d3fe470657c285f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_task-8d78a7d4f8948a4f.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libpin_utils-c4b8786a2e06c746.rlib" "/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/libfutures_core-2c8b147798d4bc9a.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd-9505d954cc550ca4.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libpanic_unwind-4368ec34df66b968.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_demangle-c4e960482b87deda.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libstd_detect-3e30157661c6e929.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libhashbrown-441bbf33311d8f21.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_alloc-a65adc14aa7ec78a.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libunwind-754bada3b2f76f43.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libcfg_if-bbc7454d63bcee48.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/liblibc-083a8721e26e7568.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/liballoc-fc82f5be4815a343.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/librustc_std_workspace_core-14f675cf009ff7ec.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libcore-39142ba17f25ae37.rlib" "/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib/libcompiler_builtins-1a5802a39db22341.rlib" "windows.lib" "kernel32.lib" "oleaut32.lib" "ole32.lib" "oleaut32.lib" "kernel32.lib" "bcrypt.lib" "xlog.lib" "c++.lib" "ntdll.lib" "advapi32.lib" "bcrypt.lib" "cfgmgr32.lib" "credui.lib" "crypt32.lib" "cryptnet.lib" "fwpuclnt.lib" "gdi32.lib" "kernel32.lib" "msimg32.lib" "mswsock.lib" "ncrypt.lib" "ntdll.lib" "opengl32.lib" "secur32.lib" "synchronization.lib" "user32.lib" "winspool.lib" "ws2_32.lib" "windows.lib" "kernel32.lib" "ws2_32.lib" "bcrypt.lib" "advapi32.lib" "userenv.lib" "kernel32.lib" "msvcrt.lib" "/NXCOMPAT" "/LIBPATH:/Users/kerui.lian/.rustup/toolchains/stable-x86_64-apple-darwin/lib/rustlib/x86_64-pc-windows-msvc/lib" "/OUT:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.dll" "/OPT:REF,NOICF" "/DLL" "/IMPLIB:/Users/kerui.lian/works/shopee/works/rust/seatalk-sdk/target/x86_64-pc-windows-msvc/debug/deps/node.dll.lib" "/DEBUG" "delayimp.lib" "/DELAYLOAD:node.exe"
  = note: lld-link: error: could not open 'c++.lib': No such file or directory

warning: `node` (lib) generated 5 warnings
error: could not compile `node` due to previous error; 5 warnings emitted
messense commented 2 years ago

I don't know, you need to figure out where is c++.lib coming from.

messense commented 2 years ago

Closing as inactive.