On 27 August 2015 at 12:42, niXman wrote: > niXman 2015-08-25 21:07: > >> niXman 2015-08-23 12:39: >>> >>> 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? >> >> >> ping? > > > ping? > I think it's safe to assume no-one knows the answer, so you can keep pinging but it isn't going to make any difference. Why not try debugging it yourself? You have all the code, and the system that reproduces the problem, no-one else has that. The command that includes -march=i486 comes from the ac_link variable, which is set on line 3225, like so: ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' Try putting some echo statements to print the values of CFLAGS, CPPFLAGS and LDFLAGS. Try to narrow down which of them contains the -march and -mtune flags, and how they get there. If you can't work it out then report a bug to bugzilla. That will be more productive than pinging the same email repeatedly.