public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Error building gcc-5.* with threads=win32
@ 2015-08-01  8:32 niXman
  2015-08-02 11:37 ` niXman
  2015-08-03 15:51 ` Jonathan Wakely
  0 siblings, 2 replies; 11+ messages in thread
From: niXman @ 2015-08-01  8:32 UTC (permalink / raw)
  To: gcc-help


Hi,

I have successfully built gcc-4.8.*/4.9.* as MinGW-w64 with 
--enable-threads=win32 but I can't build gcc-5.* with the same options.
Error occurs when building libatomic on stage 3.

If I change the '--enable-threads=win32' option on 
'--enable-threads=posix' then it builds successfully.


configure: error: in 
`/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/i686-w64-mingw32/64/libatomic':
configure: error: C compiler cannot create executables
See `config.log' for more details.


libatomic/config.log:
configure:3566: checking for C compiler default output file name
configure:3588: 
/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/xgcc 
-B/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/ 
-L/mingw32/i686-w64-mingw32/lib -L/mingw32/mingw/lib -isystem 
/mingw32/i686-w64-mingw32/include -isystem /mingw32/mingw/include 
-B/mingw32/i686-w64-mingw32/bin/ -B/mingw32/i686-w64-mingw32/lib/ 
-isystem /mingw32/i686-w64-mingw32/include -isystem 
/mingw32/i686-w64-mingw32/sys-include  -m64 -g -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 
-fno-sync-libcalls  -march=i486 -mtune=i686 -fomit-frame-pointer   
conftest.c  >&5
conftest.c:1:0: error: CPU you selected does not support x86-64 
instruction set

As you can see here are simultaneously used the '-m64 -march=i486 
-mtune=i686' options.


Question is, why and how can I fix it?

Thanks.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-01  8:32 Error building gcc-5.* with threads=win32 niXman
@ 2015-08-02 11:37 ` niXman
  2015-08-03 11:31   ` niXman
  2015-08-03 15:51 ` Jonathan Wakely
  1 sibling, 1 reply; 11+ messages in thread
From: niXman @ 2015-08-02 11:37 UTC (permalink / raw)
  To: gcc-help

niXman 2015-08-01 11:32:
> Hi,
> 
> I have successfully built gcc-4.8.*/4.9.* as MinGW-w64 with
> --enable-threads=win32 but I can't build gcc-5.* with the same
> options.
> Error occurs when building libatomic on stage 3.
> 
> If I change the '--enable-threads=win32' option on
> '--enable-threads=posix' then it builds successfully.
> 
> 
> configure: error: in
> `/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/i686-w64-mingw32/64/libatomic':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
> 
> 
> libatomic/config.log:
> configure:3566: checking for C compiler default output file name
> configure:3588:
> /c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/xgcc
> -B/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/
> -L/mingw32/i686-w64-mingw32/lib -L/mingw32/mingw/lib -isystem
> /mingw32/i686-w64-mingw32/include -isystem /mingw32/mingw/include
> -B/mingw32/i686-w64-mingw32/bin/ -B/mingw32/i686-w64-mingw32/lib/
> -isystem /mingw32/i686-w64-mingw32/include -isystem
> /mingw32/i686-w64-mingw32/sys-include  -m64 -g -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
> -fno-sync-libcalls  -march=i486 -mtune=i686 -fomit-frame-pointer
> conftest.c  >&5
> conftest.c:1:0: error: CPU you selected does not support x86-64 
> instruction set
> 
> As you can see here are simultaneously used the '-m64 -march=i486
> -mtune=i686' options.
> 
> 
> Question is, why and how can I fix it?

This bug is also present in the gcc-trunk.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-02 11:37 ` niXman
@ 2015-08-03 11:31   ` niXman
  0 siblings, 0 replies; 11+ messages in thread
From: niXman @ 2015-08-03 11:31 UTC (permalink / raw)
  To: gcc-help

niXman 2015-08-02 14:37:
> niXman 2015-08-01 11:32:
>> Hi,
>> 
>> I have successfully built gcc-4.8.*/4.9.* as MinGW-w64 with
>> --enable-threads=win32 but I can't build gcc-5.* with the same
>> options.
>> Error occurs when building libatomic on stage 3.
>> 
>> If I change the '--enable-threads=win32' option on
>> '--enable-threads=posix' then it builds successfully.
>> 
>> 
>> configure: error: in
>> `/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/i686-w64-mingw32/64/libatomic':
>> configure: error: C compiler cannot create executables
>> See `config.log' for more details.
>> 
>> 
>> libatomic/config.log:
>> configure:3566: checking for C compiler default output file name
>> configure:3588:
>> /c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/xgcc
>> -B/c/mingw520/i686-520-win32-sjlj-rt_v4-rev0/build/gcc-5.2.0/./gcc/
>> -L/mingw32/i686-w64-mingw32/lib -L/mingw32/mingw/lib -isystem
>> /mingw32/i686-w64-mingw32/include -isystem /mingw32/mingw/include
>> -B/mingw32/i686-w64-mingw32/bin/ -B/mingw32/i686-w64-mingw32/lib/
>> -isystem /mingw32/i686-w64-mingw32/include -isystem
>> /mingw32/i686-w64-mingw32/sys-include  -m64 -g -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
>> -fno-sync-libcalls  -march=i486 -mtune=i686 -fomit-frame-pointer
>> conftest.c  >&5
>> conftest.c:1:0: error: CPU you selected does not support x86-64 
>> instruction set
>> 
>> As you can see here are simultaneously used the '-m64 -march=i486
>> -mtune=i686' options.
>> 
>> 
>> Question is, why and how can I fix it?
> 
> This bug is also present in the gcc-trunk.

ping?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-01  8:32 Error building gcc-5.* with threads=win32 niXman
  2015-08-02 11:37 ` niXman
@ 2015-08-03 15:51 ` Jonathan Wakely
  2015-08-03 18:42   ` niXman
  1 sibling, 1 reply; 11+ messages in thread
From: Jonathan Wakely @ 2015-08-03 15:51 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

On 1 August 2015 at 09:32, niXman wrote:
>
> Hi,
>
> I have successfully built gcc-4.8.*/4.9.* as MinGW-w64 with
> --enable-threads=win32 but I can't build gcc-5.* with the same options.

It would help if you told us what options those are.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-03 15:51 ` Jonathan Wakely
@ 2015-08-03 18:42   ` niXman
  2015-08-04  9:28     ` Jonathan Wakely
  0 siblings, 1 reply; 11+ messages in thread
From: niXman @ 2015-08-03 18:42 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-help

Jonathan Wakely  2015-08-03 18:51:
> It would help if you told us what options those are.

Hi,

configure \
--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 \
--with-mpfr=/c/mingw520/prerequisites/i686-w64-mingw32 \
--with-mpc=/c/mingw520/prerequisites/i686-w64-mingw32 \
--with-isl=/c/mingw520/prerequisites/i686-w64-mingw32 \
--with-pkgversion=i686-win32-sjlj-rev0, Built by MinGW-W64 project \
--with-bugurl=http://sourceforge.net/projects/mingw-w64

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-03 18:42   ` niXman
@ 2015-08-04  9:28     ` Jonathan Wakely
  2015-08-04  9:31       ` Jonathan Wakely
  2015-08-23  9:39       ` niXman
  0 siblings, 2 replies; 11+ messages in thread
From: Jonathan Wakely @ 2015-08-04  9:28 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

On 3 August 2015 at 19:42, niXman wrote:
> Jonathan Wakely  2015-08-03 18:51:
>>
>> It would help if you told us what options those are.
>
>
> Hi,
>
> configure \
> --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 \
> --with-mpfr=/c/mingw520/prerequisites/i686-w64-mingw32 \
> --with-mpc=/c/mingw520/prerequisites/i686-w64-mingw32 \
> --with-isl=/c/mingw520/prerequisites/i686-w64-mingw32 \
> --with-pkgversion=i686-win32-sjlj-rev0, Built by MinGW-W64 project \
> --with-bugurl=http://sourceforge.net/projects/mingw-w64

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?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-04  9:28     ` Jonathan Wakely
@ 2015-08-04  9:31       ` Jonathan Wakely
  2015-08-23  9:39       ` niXman
  1 sibling, 0 replies; 11+ messages in thread
From: Jonathan Wakely @ 2015-08-04  9:31 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

On 4 August 2015 at 10:28, Jonathan Wakely wrote:
>
> 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?

My libatomic/config.log shows no options after -g -O2, so I'm curious
where the -pipe ... -march=i486 -mtune=i686 options are coming from.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-04  9:28     ` Jonathan Wakely
  2015-08-04  9:31       ` Jonathan Wakely
@ 2015-08-23  9:39       ` niXman
  2015-08-25 18:07         ` niXman
  1 sibling, 1 reply; 11+ messages in thread
From: niXman @ 2015-08-23  9:39 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-help

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-23  9:39       ` niXman
@ 2015-08-25 18:07         ` niXman
  2015-08-27 11:42           ` niXman
  0 siblings, 1 reply; 11+ messages in thread
From: niXman @ 2015-08-25 18:07 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-help

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?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-25 18:07         ` niXman
@ 2015-08-27 11:42           ` niXman
  2015-08-27 11:52             ` Jonathan Wakely
  0 siblings, 1 reply; 11+ messages in thread
From: niXman @ 2015-08-27 11:42 UTC (permalink / raw)
  To: Jonathan Wakely, gcc-help

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?

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: Error building gcc-5.* with threads=win32
  2015-08-27 11:42           ` niXman
@ 2015-08-27 11:52             ` Jonathan Wakely
  0 siblings, 0 replies; 11+ messages in thread
From: Jonathan Wakely @ 2015-08-27 11:52 UTC (permalink / raw)
  To: niXman; +Cc: gcc-help

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.

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2015-08-27 11:52 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-08-01  8:32 Error building gcc-5.* with threads=win32 niXman
2015-08-02 11:37 ` niXman
2015-08-03 11:31   ` niXman
2015-08-03 15:51 ` Jonathan Wakely
2015-08-03 18:42   ` niXman
2015-08-04  9:28     ` Jonathan Wakely
2015-08-04  9:31       ` Jonathan Wakely
2015-08-23  9:39       ` niXman
2015-08-25 18:07         ` niXman
2015-08-27 11:42           ` niXman
2015-08-27 11:52             ` Jonathan Wakely

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).