https://bugs.winehq.org/show_bug.cgi?id=47025
Bug ID: 47025 Summary: wine cannot run exe created with winegcc: "Bad EXE Format" Product: Wine Version: 4.6 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: -unknown Assignee: wine-bugs@winehq.org Reporter: jeffersoncarpenter2@gmail.com Distribution: ---
Full steps to reproduce from cloning the Wine source tree:
$ git clone git://source.winehq.org/git/wine.git $ mkdir wine64_build
$ cd wine64_build $ ../wine/configure --enable-win64 $ make $ cd ..
$ mkdir test_program $ cd test_program $ echo 'int main() { return 0; }' > main.c $ PATH="$PATH:../wine64_build/tools/winebuild/" /home/rofl/wine64-build-debug/tools/winegcc/winegcc -L/home/rofl/wine64-build-debug/dlls/advapi32 -L/home/rofl/wine64-build-debug/dlls/user32 -L/home/rofl/wine64-build-debug/dlls/ntdll/ -L/home/rofl/wine64-build-debug/dlls/winecrt0 -L/home/rofl/wine64-build-debug/dlls/kernel32 -L/home/rofl/wine64-build-debug/libs/wine/ main.c -o main $ ../wine64_build/wine64 ./main.exe
On my machine, the last command outputs
wine: Bad EXE format for Z:\home\rofl\test_program\main.exe.
Is this expected behavior meaning I'm using winegcc incorrectly, or is this a bug?