Repository navigation
Closed
Description
Description
When cross compiling on Linux for Windows, build fails at Generating bindings:.
[rynsf@manjaro test-wails]$ wails build -platform windows
Wails CLI v2.10.1
# Build Options
Platform(s) | windows
Compiler | /usr/bin/go
Skip Bindings | false
Build Mode | production
Devtools | false
Frontend Directory | /home/rynsf/Desktop/wails/test-wails/frontend
Obfuscated | false
Skip Frontend | false
Compress | false
Package | true
Clean Bin Dir | false
LDFlags |
Tags | []
Race Detector | false
# Building target: windows/amd64
• Generating bindings: ERROR
fork/exec /tmp/wailsbindings: exec format error
ERROR
fork/exec /tmp/wailsbindings: exec format error
♥ If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthony
To Reproduce
- wails init -n test-wails
- cd test-wails/
- wails build -platform windows
Expected behaviour
The application should build and a windows executable should be produced.
Screenshots
No response
Attempted Fixes
No response
System Details
Wails Doctor
# Wails
Version | v2.10.1
Package Manager | pacman
# System
┌──────────────────────────────────────────────────────────────────────────────────┐
| OS | Manjaro Linux |
| Version | Unknown |
| ID | manjaro |
| Go Version | go1.24.1 |
| Platform | linux |
| Architecture | amd64 |
| CPU | Intel(R) Core(TM) i3-10110U CPU @ 2.10GHz |
| GPU | CometLake-U GT2 [UHD Graphics] (Intel Corporation) - Driver: i915 |
| Memory | 8GB |
└──────────────────────────────────────────────────────────────────────────────────┘
# Dependencies
┌─────────────────────────────────────────────────────────────────────┐
| Dependency | Package Name | Status | Version |
| *docker | docker | Installed | 1:28.0.4-2 |
| gcc | gcc | Installed | 14.2.1+r753+g1cd744a6828f-1 |
| libgtk-3 | gtk3 | Installed | 1:3.24.49-1 |
| libwebkit | webkit2gtk | Installed | 2.48.1-1 |
| npm | npm | Installed | 11.2.0-1 |
| pkg-config | pkgconf | Installed | 2.4.3-1 |
| |
└────────────────────── * - Optional Dependency ──────────────────────┘
# Diagnosis
SUCCESS Your system is ready for Wails development!
♥ If Wails is useful to you or your company, please consider sponsoring the project:
https://github.com/sponsors/leaanthonyAdditional context
/tmp/wailsbindings is a windows executable, but the build process tries to execute it on the Linux build machine.
Metadata
Metadata
Assignees
Type
Projects
- StatusShow more project fieldsDone
Activity
leaanthony commentedon May 1, 2025
Thanks for opening this.
mrunion commentedon May 8, 2025
I don't like to be the "me too" guy, but it happens for me as well on MacOS.
When executing:
The output is:
Also happens if the platform is amd64.
I am compiling on an M3 MacBook Air.
Wails doctor output:
mrunion commentedon May 8, 2025
I think this is a duplicate of:
#4112
sadewa25 commentedon May 12, 2025
That's happen for me too, on Apple M1 Pro. Happy to hear if there is an updated issues for this problem.
leaanthony commentedon May 16, 2025
Moving discussion back to #4112