-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
build fails when cross compiling on Linux for Windows #4262
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
Comments
Thanks for opening this. |
15 tasks
I don't like to be the "me too" guy, but it happens for me as well on MacOS. When executing: wails build -platform windows/arm64 -o prmonitor_arm64.exe The output is: # Building target: windows/arm64
• Generating bindings: ERROR
fork/exec /var/folders/3p/577s80k51c94ym0fp2j2g4xw0000gn/T/wailsbindings: exec format error
ERROR
fork/exec /var/folders/3p/577s80k51c94ym0fp2j2g4xw0000gn/T/wailsbindings: exec format error Also happens if the platform is amd64. I am compiling on an M3 MacBook Air. Wails doctor output: # Wails
Version | v2.10.1
# System
┌────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┐
| OS | MacOS |
| Version | 15.4.1 |
| ID | 24E263 |
| Go Version | go1.24.2 |
| Platform | darwin |
| Architecture | arm64 |
| CPU 1 | Apple M3 |
| CPU 2 | Apple M3 |
| GPU | Chipset Model: Apple M3 Type: GPU Bus: Built-In Total Number of Cores: 10 Vendor: Apple (0x106b) Metal Support: Metal 3 |
| Memory | 16GB |
└────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌──────────────────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version |
| Xcode command line tools | N/A | Installed | 2409 |
| Nodejs | N/A | Installed | 23.11.0 |
| npm | N/A | Installed | 10.9.2 |
| *Xcode | N/A | Available | |
| *upx | N/A | Installed | upx 4.2.4 |
| *nsis | N/A | Installed | v3.11 |
| |
└──────────────────── * - Optional Dependency ─────────────────────┘
# Diagnosis
Optional package(s) installation details:
- Xcode: Available at https://apps.apple.com/us/app/xcode/id497799835
SUCCESS Your system is ready for Wails development! |
I think this is a duplicate of: |
That's happen for me too, on Apple M1 Pro. Happy to hear if there is an updated issues for this problem. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
When cross compiling on Linux for Windows, build fails at
Generating bindings:
.To Reproduce
Expected behaviour
The application should build and a windows executable should be produced.
Screenshots
No response
Attempted Fixes
No response
System Details
Additional context
/tmp/wailsbindings
is a windows executable, but the build process tries to execute it on the Linux build machine.The text was updated successfully, but these errors were encountered: