[Bug 57339] New: can't run winegcc hello world program (clang/musl environment)
https://bugs.winehq.org/show_bug.cgi?id=57339 Bug ID: 57339 Summary: can't run winegcc hello world program (clang/musl environment) Product: Wine Version: 9.20 Hardware: x86-64 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs(a)winehq.org Reporter: zerica(a)callcc.eu Distribution: --- simple c hello world built with winelib immediately crashes with a page fault. i am running this under a musl libc environment with clang as a c compiler. wine itself is also built under that environment and works fine, so it's possible the wine build system is passing something something i'm not. -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #1 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- Created attachment 77301 --> https://bugs.winehq.org/attachment.cgi?id=77301 the hello world program source -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #2 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- Created attachment 77302 --> https://bugs.winehq.org/attachment.cgi?id=77302 verbose output of winegcc winegcc --verbose -Wb,-v hello.c -o hello -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #3 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- Created attachment 77303 --> https://bugs.winehq.org/attachment.cgi?id=77303 crash log of hello.exe.so wine hello -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #4 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- Created attachment 77304 --> https://bugs.winehq.org/attachment.cgi?id=77304 the built artifact in case it's also helpful -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 zerica(a)callcc.eu <zerica(a)callcc.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Distribution|--- |Other -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #5 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- Created attachment 77305 --> https://bugs.winehq.org/attachment.cgi?id=77305 winegcc -o hello.exe hello.c -b x86_64-windows --verbose -Wb,--verbose seemingly, when adding the `-b x86_64-windows` flag to winegcc, the result is a PE executable that does run fine, unlike the previous result which was an .exe.so shared library alongside a .exe shell wrapper. i attach the verbose output of this invocation -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 Austin English <austinenglish(a)gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Keywords| |download, source, testcase CC| |austinenglish(a)gmail.com -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 --- Comment #6 from zerica(a)callcc.eu <zerica(a)callcc.eu> --- passing -fuse-ld=bfd to winegcc fixes all the issues, so this seems to be a problem with clang's lld linker -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
https://bugs.winehq.org/show_bug.cgi?id=57339 zerica(a)callcc.eu <zerica(a)callcc.eu> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|can't run winegcc hello |winegcc yields faulty |world program (clang/musl |executables when used with |environment) |clang+lld -- Do not reply to this email, post in Bugzilla using the above URL to reply. You are receiving this mail because: You are watching all bug changes.
participants (1)
-
WineHQ Bugzilla