Hi Martin,

Am 22.11.2017 um 20:03 schrieb Martin Storsjö:
> On Wed, 22 Nov 2017, Rainer Emrich wrote:
>> building master is broken atm.
>>
>> gcc-7.2.0
>> binutils 2.29
>>
>> Configure:
>> /opt/devel/gnu/src/gcc-mingw-w64/mingw-w64-runtime.git/configure
>> --prefix=/home/rainer/software/install/x86_64-w64-mingw32/mingw-w64/trunk
>> --build=x86_64-w64-mingw32 --disable-lib32 --enable-lib64
>> --enable-secure-api --with-tools=all --enable-sdk=all
>> --with-libraries=all
>>
>> Failure:
>> D:/opt/devel/gnu/src/gcc-mingw-w64/mingw-w64-runtime.git/mingw-w64-crt/crt/ucrtbase_compat.c:
>> In function '__ms_fwprintf':
>> D:/opt/devel/gnu/src/gcc-mingw-w64/mingw-w64-runtime.git/mingw-w64-crt/crt/ucrtbase_compat.c:225:9:
>> warning: implicit declaration of function '__stdio_common_vfwprintf';
>> did you mean '__mingw_vfwprintf'? [-Wimplicit-function-declaration]
>>   ret =
>> __stdio_common_vfwprintf(UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS, file,
>> fmt, NULL, ap);
>>         ^~~~~~~~~~~~~~~~~~~~~~~~
>>         __mingw_vfwprintf
>> D:/opt/devel/gnu/src/gcc-mingw-w64/mingw-w64-runtime.git/mingw-w64-crt/crt/ucrtbase_compat.c:225:34:
>> error: 'UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS' undeclared (first use
>> in this function)
>>   ret =
>> __stdio_common_vfwprintf(UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS, file,
>> fmt, NULL, ap);
>>                                  ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> 
> This sounds like the build of the crt happens with old/incorrect
> versions of the headers somehow. If you look in
> mingw-w64-headers/crt/stdio.h, you'll find the missing definitions of
> UCRTBASE_PRINTF_LEGACY_WIDE_SPECIFIERS and __stdio_common_vfwprintf.
> ucrtbase_compat.c does undefine __MSVCRT_VERSION__ and redefine it to
> 0x1400 before including any header, so it should have the right value to
> make these declarations visible.
> 
you're right. Installing the headers first solved the issue.
It's a little bit annoying that a top level build still doesn't work. In
theory it should not be hard to implement using the in tree and just
build headers and libraries at build time. But atm I don't have the time
to do this.

Cheers

Rainer


------------------------------------------------------------------------------
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