[Mingw-users] Yet another compilation problem with building gcc 7.3.0

Back to archive index

David Gressett DGres****@amli-*****
Sat Jun 30 23:39:42 JST 2018


>From: mingw****@lists***** [mailto:mingw****@lists*****] On Behalf Of Keith Marshall
>Sent: Saturday, June 30, 2018 8:46 AM
>To: mingw****@lists*****
>Subject: Re: [Mingw-users] Yet another compilation problem with building gcc 7.3.0

>On 29/06/18 03:52, David Gressett wrote:
>> I found that my successful gcc 7.1.0 build has tconfig.h, but my 
>> failed 7.3.0 build has config.h.

>I suspect that config.h vs. tconfig.h may be a red herring; the issue is
>(again) in gcc/ada/mingw32.h, where in gcc-7.1.0, I see:

>| /* We need functionality available only starting with Windows XP */ 
>| #ifndef _WIN32_WINNT #define _WIN32_WINNT 0x0501 #endif
>|
>| #ifndef __CYGWIN__
>| #include <tchar.h>
>| #endif
>| #if defined (__CYGWIN__) && !defined (__CYGWIN32__) && !defined 
>| (IN_RTS)
>| /* Note: windows.h on cygwin-64 includes x86intrin.h which uses malloc.
>|    That fails to compile, if malloc is poisoned, i.e. if !IN_RTS.  */ 
>| #define _X86INTRIN_H_INCLUDED #endif #include <windows.h>
>|
>| #ifndef _O_U8TEXT
>| #define _O_U8TEXT _O_TEXT
>| #endif
>| #ifndef _O_U16TEXT
>| #define _O_U16TEXT _O_TEXT
>| #endif
>| #ifndef _O_WTEXT
>| #define _O_WTEXT _O_TEXT
>| #endif

... snip ...

I found the "fallback" when I resumed my detecteve work, and put it back.

The changelog file fefers to the removal; The fallback caused a problem

with Cygwin64, and contained a reference to the bug report, which I

looked up on the gcc web site. It wasn't very informative, I saw no

explanation for why the fallback was removed rather than 

given  an appropriate #ifdef wrapper.

The reinsertion solved the last build problem, and I

now have a successful native build of gcc 7.3.0

My next step is to crawl through the build log and

look for  warnings  that shouldn't be there.



More information about the MinGW-Users mailing list
Back to archive index