You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a followup for #3430 - currently the test_cross_compile_python_windows and test_wasmer_create_exe_pirita_works don't work on windows when compiling from Windows to Windows:
This is because zig cannot build libunwind / libcxxabi on Windows when adding -lunwind to zig build-exe:
error(compilation): clang failed with stderr: zig: warning: argument unused during compilation: '-nostdinc++' [-Wunused-command-line-argument]
zig: warning: argument unused during compilation: '-nostdinc++' [-Wunused-command-line-argument]
In file included from C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/cxa_aux_runtime.cpp:14:
In file included from C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxx\include/typeinfo:76:
C:\Program Files (x86)\Microsoft Visual Studio\2019\Enterprise\VC\Tools\MSVC\14.29.30133\include/vcruntime_typeinfo.h:121:13: error: target of using declaration conflicts with declaration already in scope
C:\Program Files (x86)\Microsoft Visual Studio\[2019](https://github.com/wasmerio/wasmer/actions/runs/3824129197/jobs/6506132267#step:12:2020)\Enterprise\VC\Tools\MSVC\14.29.30133\include/vcruntime_typeinfo.h:69:7: note: target of using declaration
C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\include/cxxabi.h:30:27: note: conflicting declaration
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/stdlib_typeinfo.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/stdlib_new_delete.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/stdlib_exception.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/stdlib_stdexcept.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/cxa_handlers.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/cxa_guard.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/cxa_exception.cpp:1:1: unable to build C object: clang exited with code 1
error(compilation): C:\hostedtoolcache\windows\zig\zig-windows-x86_64-0.10.0\x64\lib\libcxxabi\src/cxa_aux_runtime.cpp:1:1: unable to build C object: clang exited with code 1
error: unable to build libunwind: BuildingLibCObjectFailed
error: unable to build libcxxabi: BuildingLibCObjectFailed
We could work around this if we build windows-gnu/libwasmer.a without any panicking / unwinding support, in order to do this, you'd have to use:
syrusakbary
changed the title
Cross-compiling from Windows to Windows doesn't work
Create-exe: Cross-compiling from Windows to Windows doesn't work
Jan 27, 2023
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This is a followup for #3430 - currently the
test_cross_compile_python_windows
andtest_wasmer_create_exe_pirita_works
don't work on windows when compiling from Windows to Windows:This is because zig cannot build libunwind / libcxxabi on Windows when adding
-lunwind
tozig build-exe
:We could work around this if we build windows-gnu/libwasmer.a without any panicking / unwinding support, in order to do this, you'd have to use:
... and then specify it with:
The text was updated successfully, but these errors were encountered: