It seems that this patch somehow broke cross-compiling the gnu toolchain when 
_not_ using the "--with-default-msvcrt=ucrtbase" option.

I am getting the following errors during "make" in gcc subdir (final build step 
for building cross-compiler from Cygwin to mingw64 x86_64):
configure:3713: checking for C compiler default output file name
configure:3735: /home/sven/buildtmp/build/gcc/./gcc/xgcc 
-B/home/sven/buildtmp/build/gcc/./gcc/ -L/CROSS64/x86_64-w64-mingw32/lib 
-L/CROSS64/mingw/lib -isystem /CROSS64/x86_64-w64-mingw32/include -isystem 
/CROSS64/mingw/include -B/CROSS64/x86_64-w64-mingw32/bin/ 
-B/CROSS64/x86_64-w64-mingw32/lib/ -isystem /CROSS64/x86_64-w64-mingw32/include 
-isystem /CROSS64/x86_64-w64-mingw32/sys-include --sysroot=/CROSS64   -g -O2   
conftest.c  >&5
/CROSS64/x86_64-w64-mingw32/lib/crt2.o: In function `__tmainCRTStartup':
/home/sven/buildtmp/build/mingw-crt/../../src/mingw-w64/mingw-w64-crt/crt/crtexe.c:301:
 undefined reference to `__p__acmdln'
collect2: error: ld returned 1 exit status
==>(from config.log generated while building libgomp for gcc)

Also I get the following error while executing a "make check" when building  
winpthreads (../src/mingw-w64/mingw-w64-libraries/winpthreads/):
make[2]: Entering directory '/home/sven/buildtmp/build/winpthreads/tests'
/bin/sh ../libtool  --tag=CC   --mode=link x86_64-w64-mingw32-gcc  -g -O2 
-L../fakelib -L.. -lwinpthread -static  -o t_clock_getres t_clock_getres.o
libtool: link: x86_64-w64-mingw32-gcc -g -O2 -o t_clock_getres t_clock_getres.o 
 -L../fakelib -L.. /home/sven/buildtmp/build/winpthreads/.libs/libwinpthread.a 
-L./fakelib
/CROSS64/lib/gcc/x86_64-w64-mingw32/6.4.0/../../../../x86_64-w64-mingw32/lib/../lib/crt2.o:
 In function `__tmainCRTStartup':
/home/sven/buildtmp/build/mingw-crt/../../src/mingw-w64/mingw-w64-crt/crt/crtexe.c:301:
 undefined reference to `__p__acmdln'
collect2: error: ld returned 1 exit status

Question:
--------------
Do you have an idea how to fix this ?
Should I just revoke the corresponding change/patch ? :
https://sourceforge.net/p/mingw-w64/mingw-w64/ci/fa33563b8f3f128d62257f1bc24bae9f04a5e14a/

Thanks
- Sven

-----Original Message-----
From: Martin Storsjö [mailto:[email protected]] 
Sent: 24 November 2017 20:59
To: mingw-w64-public <[email protected]>
Subject: Re: [Mingw-w64-public] [PATCH 2/2] Use public _acmdln and _wcmdln 
declarations in crt and get rid of no loner needed ucrtbase compat hack.

On Fri, 24 Nov 2017, Jacek Caban wrote:

> Signed-off-by: Jacek Caban <[email protected]>
> ---
> mingw-w64-crt/crt/ucrtbase_compat.c |  8 --------
> mingw-w64-crt/include/internal.h    | 12 ------------
> 2 files changed, 20 deletions(-)

Nice, thanks!

Signed-off-by: Martin Storsjö <[email protected]>

(Fee free to add the S-o-b to all the other ones as well, I forgot to add it to 
the replies.)

// Martin
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most engaging tech 
sites, Slashdot.org! http://sdm.link/slashdot 
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public


------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to