[libav-bugs] [Bug 424] [MinGW-w64] Different behavior for %zu modifier

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Tue Feb 26 20:06:28 CET 2013


https://bugzilla.libav.org/show_bug.cgi?id=424

--- Comment #2 from Rafael Antonio Porras Samaniego <SpOeK at DistroBit.Net> 2013-02-26 20:06:28 CET ---
My toolchain is MinGW-w64, specifically, rubenvb's build[1]

This is the configure command line that leads to a failing build:
./configure --prefix=/usr/local/athlon64-sse3 --enable-gpl --enable-version3
--disable-programs --disable-doc --enable-dxva2
--host-cppflags=-U__STRICT_ANSI__ --extra-cflags='-O2 -march=athlon64-sse3
-DPTW32_STATIC_LIB -I/usr/local/include -I/usr/local/athlon64-sse3/include'
--extra-ldflags='-L/usr/local/lib -L/usr/local/athlon64-sse3/lib'
--cpu=athlon64-sse3 --enable-hardcoded-tables --enable-lto --disable-ssse3
--disable-sse4 --disable-sse42 --disable-avx --disable-fma4 --disable-debug

The partial results are the attached files: build.log.BAD and cbrt_tables.h.BAD


This is the configure command line that successfully builds the libraries:
./configure --prefix=/usr/local/athlon64-sse3 --enable-gpl --enable-version3
--disable-programs --disable-doc --enable-dxva2
--host-cppflags='-U__STRICT_ANSI__ -D__USE_MINGW_ANSI_STDIO=1'
--extra-cflags='-O2 -march=athlon64-sse3 -DPTW32_STATIC_LIB
-I/usr/local/include -I/usr/local/athlon64-sse3/include'
--extra-ldflags='-L/usr/local/lib -L/usr/local/athlon64-sse3/lib'
--cpu=athlon64-sse3 --enable-hardcoded-tables --enable-lto --disable-ssse3
--disable-sse4 --disable-sse42 --disable-avx --disable-fma4 --disable-debug

The partial results are the attached files: build.log.OK and cbrt_tables.h.OK

When the compiler builds cbrt_tablegen.c, by default, against MS' printf, the
%z formatter isn't recognized. But by defining the macro
__USE_MINGW_ANSI_STDIO=1, the compiler resorts to POSIX's printf facility which
indeed can process the %z formatter.

Finally, your difficulties understanding this bug report is probably my fault.
English is not my native language, sorry.

[1]
http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win32/Personal%20Builds/rubenvb/gcc-4.7-release/

-- 
Configure bugmail: https://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list