https://bugs.winehq.org/show_bug.cgi?id=38300
Bug ID: 38300 Summary: using winegcc with stdin passes arguments in the wrong position to gcc Product: Wine Version: 1.7.38 Hardware: x86 OS: Linux Status: UNCONFIRMED Severity: normal Priority: P2 Component: winelib Assignee: wine-bugs@winehq.org Reporter: leonbogaert+winehq@gmail.com Distribution: ---
Created attachment 51131 --> https://bugs.winehq.org/attachment.cgi?id=51131 output with -v flag
When using winegcc with stdin it throws an error:
$ cat test.c | winegcc -xc -c gcc: warning: ‘-x c’ after last input file has no effect gcc: fatal error: no input files compilation terminated. winegcc: gcc failed
When compiling the file as an argument it works.
I'm wanting to use stdin because that's what cgo (https://golang.org/cmd/cgo/) uses so I can integrate winelib with my golang program.
The test.c is:
#include <stdio.h>
int main() { printf("Hello World!\n"); return 0; }
https://bugs.winehq.org/show_bug.cgi?id=38300
Luke Bratch luke@bratch.co.uk changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |luke@bratch.co.uk
https://bugs.winehq.org/show_bug.cgi?id=38300
Jacek Caban jacek@codeweavers.com changed:
What |Removed |Added ---------------------------------------------------------------------------- CC| |jacek@codeweavers.com Status|UNCONFIRMED |RESOLVED Fixed by SHA1| |d5e175e32b64cd734c142cfc583 | |f17bccb03ec5b Resolution|--- |FIXED
--- Comment #1 from Jacek Caban jacek@codeweavers.com --- Fixed in git.
https://bugs.winehq.org/show_bug.cgi?id=38300
Alexandre Julliard julliard@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |CLOSED
--- Comment #2 from Alexandre Julliard julliard@winehq.org --- Closing bugs fixed in 4.21.
https://bugs.winehq.org/show_bug.cgi?id=38300
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|--- |4.0.x
https://bugs.winehq.org/show_bug.cgi?id=38300
Michael Stefaniuc mstefani@winehq.org changed:
What |Removed |Added ---------------------------------------------------------------------------- Target Milestone|4.0.x |---
--- Comment #3 from Michael Stefaniuc mstefani@winehq.org --- Removing the 4.0.x milestone from bug fixes included in 4.0.4.