<div dir="ltr">Thanks! I've filed a bug: <a href="https://bugs.winehq.org/show_bug.cgi?id=38300">https://bugs.winehq.org/show_bug.cgi?id=38300</a></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 8:21 AM, Ruslan Kabatsayev <span dir="ltr"><<a href="mailto:b7.10110111@gmail.com" target="_blank">b7.10110111@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<div><div class="h5"><br>
On Fri, Mar 27, 2015 at 1:54 AM, Leon Bogaert <<a href="mailto:leonbogaert@gmail.com">leonbogaert@gmail.com</a>> wrote:<br>
> I'm getting an error when using winegcc with stdin:<br>
><br>
>><br>
>> $ cat test.c | winegcc -xc -c -<br>
>> gcc: warning: ‘-x c’ after last input file has no effect<br>
>> gcc: error: -E or -x required when input is from standard input<br>
>> winegcc: gcc failed<br>
><br>
><br>
> Does anyone know what I could be doing wrong? I'm trying to use stdin<br>
> because that's what the go (cgo) build tool is trying to use.<br>
</div></div>I think it's not you who does something wrong, it's winegcc which runs<br>
gcc a bit wrongly. If you look at gcc command line arguments, you'll<br>
get something like<br>
<br>
-fshort-wchar -DWINE_UNICODE_NATIVE -D_REENTRANT -fPIC -DWIN64<br>
-D_WIN64 -D__WIN64 -D__WIN64__ -DWIN32 -D_WIN32 -D__WIN32 -D__WIN32__<br>
-D__WINNT -D__WINNT__ -D__stdcall=__attribute__((ms_abi))<br>
-D__cdecl=__attribute__((ms_abi)) -D_stdcall=__attribute__((ms_abi))<br>
-D_cdecl=__attribute__((ms_abi)) -D__fastcall=__attribute__((ms_abi))<br>
-D_fastcall=__attribute__((ms_abi)) -D__declspec(x)=__declspec_##x<br>
-D__declspec_align(x)=__attribute__((aligned(x)))<br>
-D__declspec_allocate(x)=__attribute__((section(x)))<br>
-D__declspec_deprecated=__attribute__((deprecated))<br>
-D__declspec_dllimport=__attribute__((dllimport))<br>
-D__declspec_dllexport=__attribute__((dllexport))<br>
-D__declspec_naked=__attribute__((naked))<br>
-D__declspec_noinline=__attribute__((noinline))<br>
-D__declspec_noreturn=__attribute__((noreturn))<br>
-D__declspec_nothrow=__attribute__((nothrow))<br>
-D__declspec_novtable=__attribute__(())<br>
-D__declspec_selectany=__attribute__((weak))<br>
-D__declspec_thread=__thread -D__int8=char -D__int16=short<br>
-D__int32=int -D__int64=long -D__WINE__ -c - -xc<br>
-isystem/usr/include/wine/windows<br>
<br>
Notice that '-xc' has moved after '-c -'. Maybe this should be<br>
considered a bug of winegcc.<br>
<br>
><br>
> Leon<br>
><br>
><br>
><br>
<span class="HOEnZb"><font color="#888888"><br>
Ruslan<br>
</font></span></blockquote></div><br></div>