Error building gcc-5.* with threads=win32

niXman i.nixman@autistici.org
Sun Aug 23 09:39:00 GMT 2015


Jonathan Wakely 2015-08-04 12:28:
> That should be OK.
> 
> The command used by the configure test is:
> 
> $CC $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS
> 
> so have you set any of those environment variables?

The global CFLAGS/CXXFLAGS/CPPFLAGS/LDFLAGS vars are not set, but I set 
them as args for configure script:

--host=i686-w64-mingw32 \
--build=i686-w64-mingw32 \
--target=i686-w64-mingw32 \
--prefix=/mingw32 \
--with-sysroot=/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/mingw32 \
--with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ \
--enable-shared \
--enable-static \
--enable-targets=all \
--enable-multilib \
--enable-languages=c,c++,fortran,objc,obj-c++,lto \
--enable-libstdcxx-time=yes \
--enable-threads=win32 \
--enable-libgomp \
--enable-libatomic \
--enable-lto \
--enable-graphite \
--enable-checking=release \
--enable-fully-dynamic-string \
--enable-version-specific-runtime-libs \
--enable-sjlj-exceptions \
--disable-isl-version-check \
--disable-libstdcxx-pch \
--disable-libstdcxx-debug \
--enable-bootstrap \
--disable-rpath \
--disable-win32-registry \
--disable-nls \
--disable-werror \
--disable-symvers \
--with-gnu-as \
--with-gnu-ld \
--with-arch-32=i686 \
--with-arch-64=nocona \
--with-tune-32=generic \
--with-tune-64=core2 \
--with-libiconv \
--with-system-zlib \
--with-gmp=/c/mingw520/prerequisites/i686-w64-mingw32-static \
--with-mpfr=/c/mingw520/prerequisites/i686-w64-mingw32-static \
--with-mpc=/c/mingw520/prerequisites/i686-w64-mingw32-static \
--with-isl=/c/mingw520/prerequisites/i686-w64-mingw32-static \
--with-pkgversion="i686-win32-sjlj-rev0, Built by MinGW-W64 project" \
--with-bugurl=http://sourceforge.net/projects/mingw-w64 \
CFLAGS="-O2 -pipe 
-I/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/mingw32/opt/include 
-I/c/mingw520/prerequisites/i686-zlib-static/include 
-I/c/mingw520/prerequisites/i686-w64-mingw32-static/include" \
CXXFLAGS="-O2 -pipe 
-I/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/mingw32/opt/include 
-I/c/mingw520/prerequisites/i686-zlib-static/include 
-I/c/mingw520/prerequisites/i686-w64-mingw32-static/include" \
CPPFLAGS="" \
LDFLAGS="-pipe 
-L/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/mingw32/opt/lib 
-L/c/mingw520/prerequisites/i686-zlib-static/lib 
-L/c/mingw520/prerequisites/i686-w64-mingw32-static/lib 
-Wl,--large-address-aware"

As you can see there are no '-march=*'/'-mtune=*' options.

Ideas?

Thanks.



More information about the Gcc-help mailing list