This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Error building gcc-5.* with threads=win32
- From: Jonathan Wakely <jwakely dot gcc at gmail dot com>
- To: niXman <i dot nixman at autistici dot org>
- Cc: gcc-help <gcc-help at gcc dot gnu dot org>
- Date: Tue, 4 Aug 2015 10:28:45 +0100
- Subject: Re: Error building gcc-5.* with threads=win32
- Authentication-results: sourceware.org; auth=none
- References: <4f2eb1967bed93c6376015af3ac98000 at autistici dot org> <CAH6eHdQ1Th+mYvOTCYf0N9upLXzD8n=Yf=kWdeDxpzTLPbvdRw at mail dot gmail dot com> <c9cb7ce601fb17a822bc957dd97580d8 at autistici dot org>
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?