-
Notifications
You must be signed in to change notification settings - Fork 13k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't cross compile from Linux to Windows (i686) #32859
Comments
Same issue with Ubuntu 14.04.4 LTS |
Thanks for the report! Like with #32858 you'll want to pass gcc instead of ld, but unfortunately i686 probably won't work because the threading model of the compiler on Ubuntu is pthreads where we target the Windows threading model (an alternate mingw toolchain). As a result you'll probably still get link failures :( |
I try command: rustc -v -C linker=i686-w64-mingw32-gcc --target x86_64-pc-windows-gnu hello.rs But it don't work :(
|
Yep that's the expected error! Those two symbols aren't defined in all mingw toolchains, but they're the ones that we want. I'm not entirely sure what the best course of action here is for this cross-compilation scenario... cc @vadimcn |
Yeah, these are symbols from the DWARF unwinder, which we use on Windows. For some reason Linux distros prefer to configure cross-mingw toolchain for SJLJ unwinding, so these symbols are missing. As for what can be done... |
Edit: nevermind, it did work after all :-) |
I got the same problem but i resolve it now. It seems the If I download the native windows package You can find there are more files from windows lib then from linux multirust lib for Perhaps multirust is not picking good source of files when it adds target? I don't know. |
Hm that may actually be because the So basically if you install both the cc @brson, seems... an interesting insight! Also another reason to control components, we'd probably want to actually install the rust-mingw package by default on Linux perhaps? |
I'm experiencing the same issue on What I tried:
Rustup show:
Target list:
Component list:
Error I got: (the error is the same if I use target stable)
what I find strange, is even when default toolchain is set to windows-gnu, in the command passed to gcc contains the path to linux-gnu toolchain. But not all commands, some are windows-gnu, but some not. I'm not sure if this is by design, or some bug. But I tried everything I could think of and find on the internet, but it is impossible right now to cross-compile from mac or linux -> windows. |
As workaround you can create
Directory |
I added the second line and now it can't find the linker. Do I need to install it from somewhere?
|
@lunemec If you're on Linux and trying to cross compile to Windows, yes you need to install the appropriate MinGW toolchain. |
I don't known. I have not a Mac OS :( |
I was running this command inside debian jessie inside docker on my macbook. I also installed the toolchain with rustup. It is shown in my previous post. Is this separate toolchain from rustup's toolchain (and components)? Where do I find it? |
May be:
|
Yes! this indeed was the last step to getting it to compile. However, this is really terrible user experience with cross-compilation (yes I know it is difficult problem to solve right), but Golang is much much easier with their GOOS= ... setting (and 1 tar.gz download). I very much hope Rust will get there someday :) Also, I'll open issue of this in rustup project, since none of this is documented. |
Sorry for the spam(I repeated this in 1 issue and 1 merge request) but I searched for a more appropriate issue. Line 37 in 1572bf1
It will cross-compile to Unix targets only if the host is Unix (CYGWIN is included of course) and cross-compile to Windows targets only if the host is Windows .
I have not checked other files, it just so happened that I was working on a library that needs functions that are exported from that module and I observed that |
|
Ok, than I misunderstood what Edit: Google... |
I , too, have the issue with What is the way to go from here to compile from linux to windows ? My setup consists of:
How does
|
~/.cargo/config [target.x86_64-pc-windows-gnu]
linker = "/usr/bin/x86_64-w64-mingw32-gcc"
[target.i686-pc-windows-gnu]
linker = "/usr/bin/i686-w64-mingw32-gcc"
rustflags = "-C panic=abort" run
|
Thanks. The rustflags trick worked for me. The resulting binary works with wine. |
I'm trying to compile from x86_64 linux to x86_64 windows. I can compile with:
but compiling with:
fails (with OP's error) even with: [target.x86_64-pc-windows-gnu]
linker = "x86_64-w64-mingw32-gcc' What's the difference between the two commands and is there anything I'm doing wrong in the |
@zacps Your |
@retep998 Ahh I had just gotten confused between the manifest and cargo's config file. |
@mati865 Yes, I wrote some comments about it there #55444 (comment) |
This is a workaround I use on ubuntu 18.04 for the x86_64-pc-windows-gnu target.
|
I have similar problems. I run arch. The
Rustup info:
Building gives these errors that I do not understand...
What are |
@lokegustafsson your issue is related to #47048 You should be able to fix it by running this command every time you update Rust toolchain:
|
Rust 1.44.0 made this issue resurface for us. Error
Happens on this minimal code: pub fn hello_world() -> i32 {
31
} and set to compile as a Compiled like this:
The above fails on Rust 1.44.0
On our larger project compilation works in release mode ( mingw gcc:
|
(Ah well, I guess the original issue as reported wasn't due to the missing symbols, but at least the title matched, the other linked issues are suited better I guess) |
@badboy it could be caused by refactoring of panic handling which happened in 1.44 but it's only a guess. |
Yup, saw the refactoring PR, that was also my first guess. |
Using Yeah, fixing #53301 would be really nice. |
Status report. I'm running in a docker on Ubuntu:18.04 with gcc-mingw-w64-i686 installed, and Tried setting So currently not able to compile from Ubuntu:18.04 (on x86_64) to the |
It's cargo argument. |
I see, I was passing it via |
Yes, like that: |
I tried writing a patch to have rustc 32-bit windows use sjlj, but later found out someone already tried it (#55444), and there was an explanation on why it would take much more effort.
|
@infinity0 Rust uses pthreads so that toolchain would have to be posix+dw2. |
@mati865 where is that documented? I was going off #37409 via google which says
|
I also managed to build cargo fine with win32 threads, so assumed it was fine. |
@infinity0 the explanation for building Rust with MinGW: rust/src/ci/github-actions/ci.yml Line 493 in 3323691
Pthreads are linked here: rust/src/librustc_llvm/build.rs Line 306 in e8b55a4
You are building only std for MinGW target so you very likely won't need pthreads here (this code won't be built). Since GCC libs use pthread with POSIX toolchain we had explicitly link pthread here:
You can patch out it and then it should work with win32 threads. |
@mati865 So to summarise, pthreads is required if we need to link in libstdc++ is that right?
Without patching anything, I built cargo.exe with win32 threads and it worked fine. So this part is confusing me. However it sounds like, even if std/cargo builds fine with win32 threads, things will fail if the user wants to link in libstdc++ later, so I should follow suit and switch to the pthreads toolchain anyways. |
Yes, for
There are
To make it clear, libstdc++ works with both win32 and posix threads. However with win32 threads it's missing many key features like |
I think this issue should be closed since the original problem has been fixed. |
Otherwise you have ❯ cargo b -F static --target x86_64-pc-windows-gnu Compiling libftd2xx-ffi v0.8.5 (.../libftd2xx-ffi) Compiling cfg-if v1.0.0 error: could not find native static library `ftd2xx`, perhaps an -L flag is missing? error: could not compile `libftd2xx-ffi` due to previous error Created with `gendef` from mingw-w64-v10.0.0/mingw-w64-tools/gendef and x86_64-w64-mingw32-dlltool from mingw-w64 bintools $ gendef ftd2xx64.dll $ x86_64-w64-mingw32-dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libftd2xx.a --input-def ftd2xx64.def See https://sourceforge.net/p/mingw-w64/wiki2/Answer%20generation%20of%20DLL%20import%20library/ https://stackoverflow.com/questions/11793370/how-can-i-convert-a-vsts-lib-to-a-mingw-a I tried the 32-bit version equivalent too, but I didn't succeed $ gendef ftd2xx.dll $ i686-w64-mingw32-dlltool --as-flags=--32 -m i386 -k --output-lib libftd2xx.a --input-def ftd2xx.def It gives me error: linking with `i686-w64-mingw32-gcc` failed: exit status: 1 | = note: "i686-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-Wl,--large-address-aware" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsbegin.o" "/tmp/rustcNwn5XD/symbols.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.18cg3lkp0ox1niuz.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1e6b4s8dc47pgda7.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1g2e0d2si4w606bh.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1y4iskyzv8rvw0fd.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.26y00rqklyxqv569.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2cbu41u1qakbf0jd.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2fhfkki64esteo6x.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2gwzznyo0iuxm3wf.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2i7rmgcexbfz1zbx.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2rl400t7pxm9ryzu.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2td98tvuo3ap4yki.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2x5zgaz88zb4530w.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2zyv1orloclxdbf5.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.34vekv9ch94uihc.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.39manho08t3o4ig9.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3bxk0mj2bxgoiege.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3cyh60cp98vpslv7.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3dru9xt795zfm9o2.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3q3ihisxs3eb1ufp.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3v7ew6btgq0qb55s.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3zsoj7qmlv65ukgq.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.405d79q5orop9n9f.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.42mujrqwnp2dketl.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.48sp8gl7ynzj58fa.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.49r00ed522v71quo.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.49sj6op9sy9cxf8x.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4al5pxycywsk0r35.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4drxnj1ihexiyh4y.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4qb6ne4le4sodg6l.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4yxh9fdiduhzrnhp.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5ciq4l067i542igs.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5dk52pt7ivjtpn35.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5lfmu9neb1og9hr.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.dh46i7anenqsb41.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.duvhpxi35c0zas9.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.vai1lf8dg2yvems.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3bzsz1alnipn5jco.rcgu.o" "-L" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps" "-L" "/tmp/ftdi-windows-gnu-test/target/debug/deps" "-L" "/tmp/libftd2xx-ffi/vendor/windows/Static/i386" "-L" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-Wl,-Bstatic" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libftdi_embedded_hal-b57f9fb3ed8fda18.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal_nb-a4b9cafa7e768cb4.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblog-077be3fa69b6c72f.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx_ffi-65280a271df0bbb3.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libcfg_if-fa56bff161aa35e8.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libftdi_mpsse-162b893530c114d6.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal-852d0fb8c1e08e96.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libvoid-4aecd2516e24c3cf.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libnb-1ff1d3a2dfea8ecd.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libnb-baa01238a52332c0.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal-92b0fcf6cbbfcf9b.rlib" "-Wl,--start-group" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd-15fb4244ba810ccb.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libmemchr-84adb6c2964e7238.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libaddr2line-11c26fff489a4c72.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_demangle-24d2250a58f0df34.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd_detect-03be0bc4a5c39a79.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libhashbrown-14bef48cbad7c84a.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libminiz_oxide-b4535c8397a6efb7.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libadler-32e0c526c8215fa3.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_alloc-11a8dcc034680bbe.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libunwind-0167b182a8481682.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcfg_if-25b318fc6b8592ec.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liblibc-ca57748d8a80220e.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liballoc-96618852d32fbf17.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_core-fea03c05f48b5e1d.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcore-f3dc9a5bac545e0e.rlib" "-Wl,--end-group" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcompiler_builtins-efe19633a174deab.rlib" "-Wl,-Bdynamic" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsend.o" = note: /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o: in function `ZN17ftdi_embedded_hal4gpio22InputPin$LT$Device$GT$3get17h2a83f20a4748ea96E': /home/rmk/.cargo/git/checkouts/ftdi-embedded-hal-2b2b820a903ffac1/1770d4c/src/gpio.rs:146: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o: in function `ZN17ftdi_embedded_hal4gpio22InputPin$LT$Device$GT$3new17hc67119f1ba367a76E': /home/rmk/.cargo/git/checkouts/ftdi-embedded-hal-2b2b820a903ffac1/1770d4c/src/gpio.rs:129: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1e6b4s8dc47pgda7.rcgu.o: in function `ZN3std4sync5mutex14Mutex$LT$T$GT$3new17h8ce196903131195eE': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\std\src\sync\mutex.rs:218: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1g2e0d2si4w606bh.rcgu.o: in function `ZN4core3ops8function6FnOnce9call_once17he1af58539747a1f3E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\core\src\ops\function.rs:248: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1y4iskyzv8rvw0fd.rcgu.o: in function `ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h00341bd542258844E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\std\src\sys_common\backtrace.rs:118: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3cyh60cp98vpslv7.rcgu.o:/tmp/ftdi-windows-gnu-test/src/main.rs:8: more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx6rescan17hdcc12623cbcb5297E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:492: undefined reference to `FT_Rescan@0' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10FtdiCommon11device_type17ha5ffaef80616176cE': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:590: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10FtdiCommon11device_info17h1d5f8e8b94434679E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:625: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10ft_open_ex17h20d62565aefdcba5E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:1960: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN83_$LT$libftd2xx..Ft232h$u20$as$u20$core..convert..TryFrom$LT$libftd2xx..Ftdi$GT$$GT$8try_from17hc39a272ecb211747E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN84_$LT$libftd2xx..Ft2232h$u20$as$u20$core..convert..TryFrom$LT$libftd2xx..Ftdi$GT$$GT$8try_from17h093cfe5b26099ad8E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o):/home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib(panic_unwind-fb1ba884424b1391.panic_unwind.953b687c-cgu.0.rcgu.o): in function `ZN12panic_unwind8real_imp5panic17h36aaeaca180f6b19E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library\panic_unwind\src/gcc.rs:62: undefined reference to `_Unwind_RaiseException' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib(panic_unwind-fb1ba884424b1391.panic_unwind.953b687c-cgu.0.rcgu.o): in function `ZN5alloc5boxed12Box$LT$T$GT$3new17hb252bc87d676ca07E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library\alloc\src/boxed.rs:(.text+0x48c): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib(object-a2f75630be61a1e7.object.2daa9073-cgu.0.rcgu.o):object.2daa9073-cg:(.text+0x2de): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib(object-a2f75630be61a1e7.object.2daa9073-cgu.0.rcgu.o):object.2daa9073-cg:(.text+0x252c): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x4ab): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x1ebd): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x1f3a): more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x32d): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x390): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x3ba): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1510): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x15b0): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1650): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x16d8): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1758): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x17e0): more undefined references to `__MCFCRT_ReallyWaitForMutexForever' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x18ca): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x19d2): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1a05): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x14f3): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1593): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x163a): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x16bf): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x173f): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x17cb): more undefined references to `__MCFCRT_ReallySignalMutex' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x33): undefined reference to `__MCFCRT_ReallyWaitForOnceFlagForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x7d): undefined reference to `_MCFCRT_TlsAllocKey' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x9c): undefined reference to `__MCFCRT_ReallySignalOnceFlagAsFinished' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0xcc): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x115): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x203): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x251): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x36a): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x451): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x472): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x4c4): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x509): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x6c5): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x795): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x91d): undefined reference to `_MCFCRT_TlsGet' collect2: error: ld returned 1 exit status = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `ftdi-windows-gnu-test` due to previous error The _MCFCRT_TlsGet et al can be solved by linking against `-lmcfgthreads`, but I wasn't sure about the _Unwind_Resume, I don't know how to configure i686 mingw to use DWARF unwinding, see rust-lang/rust#32859 (comment)
Otherwise you have ❯ cargo b -F static --target x86_64-pc-windows-gnu Compiling libftd2xx-ffi v0.8.5 (.../libftd2xx-ffi) Compiling cfg-if v1.0.0 error: could not find native static library `ftd2xx`, perhaps an -L flag is missing? error: could not compile `libftd2xx-ffi` due to previous error Created with `gendef` from mingw-w64-v10.0.0/mingw-w64-tools/gendef and x86_64-w64-mingw32-dlltool from mingw-w64 bintools $ gendef ftd2xx64.dll $ x86_64-w64-mingw32-dlltool --as-flags=--64 -m i386:x86-64 -k --output-lib libftd2xx.a --input-def ftd2xx64.def See https://sourceforge.net/p/mingw-w64/wiki2/Answer%20generation%20of%20DLL%20import%20library/ https://stackoverflow.com/questions/11793370/how-can-i-convert-a-vsts-lib-to-a-mingw-a I tried the 32-bit version equivalent too, but I didn't succeed $ gendef ftd2xx.dll $ i686-w64-mingw32-dlltool --as-flags=--32 -m i386 -k --output-lib libftd2xx.a --input-def ftd2xx.def It gives me error: linking with `i686-w64-mingw32-gcc` failed: exit status: 1 | = note: "i686-w64-mingw32-gcc" "-fno-use-linker-plugin" "-Wl,--dynamicbase" "-Wl,--disable-auto-image-base" "-Wl,--large-address-aware" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsbegin.o" "/tmp/rustcNwn5XD/symbols.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.18cg3lkp0ox1niuz.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1e6b4s8dc47pgda7.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1g2e0d2si4w606bh.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1y4iskyzv8rvw0fd.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.26y00rqklyxqv569.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2cbu41u1qakbf0jd.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2fhfkki64esteo6x.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2gwzznyo0iuxm3wf.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2i7rmgcexbfz1zbx.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2rl400t7pxm9ryzu.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2td98tvuo3ap4yki.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2x5zgaz88zb4530w.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.2zyv1orloclxdbf5.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.34vekv9ch94uihc.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.39manho08t3o4ig9.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3bxk0mj2bxgoiege.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3cyh60cp98vpslv7.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3dru9xt795zfm9o2.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3q3ihisxs3eb1ufp.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3v7ew6btgq0qb55s.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3zsoj7qmlv65ukgq.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.405d79q5orop9n9f.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.42mujrqwnp2dketl.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.48sp8gl7ynzj58fa.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.49r00ed522v71quo.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.49sj6op9sy9cxf8x.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4al5pxycywsk0r35.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4drxnj1ihexiyh4y.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4qb6ne4le4sodg6l.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.4yxh9fdiduhzrnhp.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5ciq4l067i542igs.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5dk52pt7ivjtpn35.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.5lfmu9neb1og9hr.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.dh46i7anenqsb41.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.duvhpxi35c0zas9.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.vai1lf8dg2yvems.rcgu.o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3bzsz1alnipn5jco.rcgu.o" "-L" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps" "-L" "/tmp/ftdi-windows-gnu-test/target/debug/deps" "-L" "/tmp/libftd2xx-ffi/vendor/windows/Static/i386" "-L" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-Wl,-Bstatic" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libftdi_embedded_hal-b57f9fb3ed8fda18.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal_nb-a4b9cafa7e768cb4.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblog-077be3fa69b6c72f.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx_ffi-65280a271df0bbb3.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libcfg_if-fa56bff161aa35e8.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libftdi_mpsse-162b893530c114d6.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal-852d0fb8c1e08e96.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libvoid-4aecd2516e24c3cf.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libnb-1ff1d3a2dfea8ecd.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libnb-baa01238a52332c0.rlib" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/libembedded_hal-92b0fcf6cbbfcf9b.rlib" "-Wl,--start-group" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd-15fb4244ba810ccb.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libmemchr-84adb6c2964e7238.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libaddr2line-11c26fff489a4c72.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_demangle-24d2250a58f0df34.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libstd_detect-03be0bc4a5c39a79.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libhashbrown-14bef48cbad7c84a.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libminiz_oxide-b4535c8397a6efb7.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libadler-32e0c526c8215fa3.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_alloc-11a8dcc034680bbe.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libunwind-0167b182a8481682.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcfg_if-25b318fc6b8592ec.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liblibc-ca57748d8a80220e.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/liballoc-96618852d32fbf17.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/librustc_std_workspace_core-fea03c05f48b5e1d.rlib" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcore-f3dc9a5bac545e0e.rlib" "-Wl,--end-group" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libcompiler_builtins-efe19633a174deab.rlib" "-Wl,-Bdynamic" "-ladvapi32" "-luserenv" "-lkernel32" "-lws2_32" "-lbcrypt" "-lgcc_eh" "-l:libpthread.a" "-lmsvcrt" "-lmingwex" "-lmingw32" "-lgcc" "-lmsvcrt" "-luser32" "-lkernel32" "-Wl,--nxcompat" "-L" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib" "-o" "/tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.exe" "-Wl,--gc-sections" "-no-pie" "-nodefaultlibs" "/home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/rsend.o" = note: /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o: in function `ZN17ftdi_embedded_hal4gpio22InputPin$LT$Device$GT$3get17h2a83f20a4748ea96E': /home/rmk/.cargo/git/checkouts/ftdi-embedded-hal-2b2b820a903ffac1/1770d4c/src/gpio.rs:146: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1a2yb283fvmix7mn.rcgu.o: in function `ZN17ftdi_embedded_hal4gpio22InputPin$LT$Device$GT$3new17hc67119f1ba367a76E': /home/rmk/.cargo/git/checkouts/ftdi-embedded-hal-2b2b820a903ffac1/1770d4c/src/gpio.rs:129: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1e6b4s8dc47pgda7.rcgu.o: in function `ZN3std4sync5mutex14Mutex$LT$T$GT$3new17h8ce196903131195eE': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\std\src\sync\mutex.rs:218: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1g2e0d2si4w606bh.rcgu.o: in function `ZN4core3ops8function6FnOnce9call_once17he1af58539747a1f3E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\core\src\ops\function.rs:248: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.1y4iskyzv8rvw0fd.rcgu.o: in function `ZN3std10sys_common9backtrace28__rust_begin_short_backtrace17h00341bd542258844E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52\library\std\src\sys_common\backtrace.rs:118: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/ftdi_windows_gnu_test-b77a591a11908e8d.3cyh60cp98vpslv7.rcgu.o:/tmp/ftdi-windows-gnu-test/src/main.rs:8: more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx6rescan17hdcc12623cbcb5297E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:492: undefined reference to `FT_Rescan@0' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10FtdiCommon11device_type17ha5ffaef80616176cE': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:590: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10FtdiCommon11device_info17h1d5f8e8b94434679E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:625: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN9libftd2xx10ft_open_ex17h20d62565aefdcba5E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:1960: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN83_$LT$libftd2xx..Ft232h$u20$as$u20$core..convert..TryFrom$LT$libftd2xx..Ftdi$GT$$GT$8try_from17hc39a272ecb211747E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o): in function `ZN84_$LT$libftd2xx..Ft2232h$u20$as$u20$core..convert..TryFrom$LT$libftd2xx..Ftdi$GT$$GT$8try_from17h093cfe5b26099ad8E': /home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /tmp/ftdi-windows-gnu-test/target/i686-pc-windows-gnu/debug/deps/liblibftd2xx-dac11a9d0beb7d30.rlib(libftd2xx-dac11a9d0beb7d30.libftd2xx.7e7b58c8-cgu.0.rcgu.o):/home/rmk/.cargo/registry/src/github.com-1ecc6299db9ec823/libftd2xx-0.32.1/src/lib.rs:2272: more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib(panic_unwind-fb1ba884424b1391.panic_unwind.953b687c-cgu.0.rcgu.o): in function `ZN12panic_unwind8real_imp5panic17h36aaeaca180f6b19E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library\panic_unwind\src/gcc.rs:62: undefined reference to `_Unwind_RaiseException' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libpanic_unwind-fb1ba884424b1391.rlib(panic_unwind-fb1ba884424b1391.panic_unwind.953b687c-cgu.0.rcgu.o): in function `ZN5alloc5boxed12Box$LT$T$GT$3new17hb252bc87d676ca07E': /rustc/a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52/library\alloc\src/boxed.rs:(.text+0x48c): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib(object-a2f75630be61a1e7.object.2daa9073-cgu.0.rcgu.o):object.2daa9073-cg:(.text+0x2de): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libobject-a2f75630be61a1e7.rlib(object-a2f75630be61a1e7.object.2daa9073-cgu.0.rcgu.o):object.2daa9073-cg:(.text+0x252c): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x4ab): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x1ebd): undefined reference to `_Unwind_Resume' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /home/rmk/.rustup/toolchains/1.64-x86_64-unknown-linux-gnu/lib/rustlib/i686-pc-windows-gnu/lib/libgimli-883137f4a16c8383.rlib(gimli-883137f4a16c8383.gimli.90d093f9-cgu.0.rcgu.o):gimli.90d093f9-cgu:(.text+0x1f3a): more undefined references to `_Unwind_Resume' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x32d): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x390): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x3ba): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1510): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x15b0): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1650): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x16d8): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1758): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x17e0): more undefined references to `__MCFCRT_ReallyWaitForMutexForever' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x18ca): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x19d2): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1a05): undefined reference to `__MCFCRT_ReallyWaitForMutexForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x14f3): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x1593): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x163a): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x16bf): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x173f): undefined reference to `__MCFCRT_ReallySignalMutex' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-dw2-fde.o):(.text+0x17cb): more undefined references to `__MCFCRT_ReallySignalMutex' follow /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x33): undefined reference to `__MCFCRT_ReallyWaitForOnceFlagForever' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x7d): undefined reference to `_MCFCRT_TlsAllocKey' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x9c): undefined reference to `__MCFCRT_ReallySignalOnceFlagAsFinished' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0xcc): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x115): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x203): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x251): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x36a): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x451): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x472): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x4c4): undefined reference to `__MCFCRT_OnAssertionFailure' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x509): undefined reference to `_MCFCRT_TlsRequire' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x6c5): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x795): undefined reference to `_MCFCRT_TlsGet' /nix/store/dzbd06k59z4rprc24in6h49sdllzck1s-i686-w64-mingw32-binutils-2.39/bin/i686-w64-mingw32-ld: /nix/store/h2i2i7cqsjb8ppqzdpscpb913ig9zp98-i686-w64-mingw32-stage-final-gcc-11.3.0/lib/gcc/i686-w64-mingw32/11.3.0/libgcc_eh.a(unwind-sjlj.o):(.text+0x91d): undefined reference to `_MCFCRT_TlsGet' collect2: error: ld returned 1 exit status = help: some `extern` functions couldn't be found; some native libraries may need to be installed or have their path specified = note: use the `-l` flag to specify native libraries to link = note: use the `cargo:rustc-link-lib` directive to specify the native libraries to link with Cargo (see https://doc.rust-lang.org/cargo/reference/build-scripts.html#cargorustc-link-libkindname) error: could not compile `ftdi-windows-gnu-test` due to previous error The _MCFCRT_TlsGet et al can be solved by linking against `-lmcfgthreads`, but I wasn't sure about the _Unwind_Resume, I don't know how to configure i686 mingw to use DWARF unwinding, see rust-lang/rust#32859 (comment)
Environment:
lxc-create -n rust -t ubuntu -- --release xenial
)apt install mingw-w64
)rustup
tool (curl https://sh.rustup.rs -sSf | sh
)rustup default beta
/rustup default nightly
)rustup target add i686-pc-windows-gnu
)I create a sample file
hello.rs
:And run compilation:
I expected
hello.exe
file, but has error:The text was updated successfully, but these errors were encountered: