Git Product home page Git Product logo

mingw-builds's Introduction

  • I’m currently working on FlatJson (optimization/refactoring/rethinking)
  • I’m currently learning C++20
  • I take orders for software development using C++ in the following areas: network programming, distributed services, data processing, video processing, video streaming, profiling and optimization, re-architect of existing software

Top Langs GitHub stats YAS Binapi MinGW-Builds MinGW-Builds-Binaries FlatJSON CSProt CTMap

mingw-builds's People

Contributors

alexpux avatar andne avatar aphanic avatar bence42 avatar cristianadam avatar cyanohao avatar eldiener avatar ericlemanissier avatar furniel avatar guyutongxue avatar jcbrill avatar johanneskauffmann avatar jpf91 avatar kimwalisch avatar lazybiz avatar lhmouse avatar lurobi avatar markkoz avatar mingwandroid avatar net147 avatar nixman avatar orgads avatar prince213 avatar qwinci avatar rallenh avatar starg2 avatar supdrewin avatar theodelrieu avatar user123321111 avatar vszakats avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mingw-builds's Issues

libtool has gcc dependancy

Can't built from msys2-base

The alpha packs have libtool pre installed but when using base with pacman libtool requires msys-gcc.

The scripts complain if gcc is found. ( which is why I listed it here)

All that has to be done is and the extracted path to the beginning of the path variable and remove the check.
It should then find the right gcc.

some problems with mingw-builds develop

Hi nixman!
I've encountered three problems with building my own fully static gcc toolchain

(1) the mpfr-patch is not working
(2) winpthreads.sh: LINK_TYPE_STATIC is required for static building
(3) usage of _ftime instead of _ftime64 (libgomp, winpthreads) does not work in case of using a non default crt runtime (i.e. mscvr90)

with best Regards

CarlKl

options for disable shared?

hi,

currently mingw-builds's compiler will produce executes that depends on serveral dlls, such like libgcc.dll, etc, can you add a options that makes script build gcc using --disable-shared flag to makes compiled executes without depends?

thx :-)

gdbm не собирается если нет файла /usr/share/gettext/archive.dir.tar.xz

строка запуска:
./build --mode=gcc-4.9.1 --arch=i686 --static-gcc --threads=posix --exceptions=sjlj --bootstrap --jobs=6 --bin-compress

Матюки в консоли:

-> gdbm
---> gdbm-1.10.tar.gz downloaded
---> gdbm-1.10.tar.gz unpacked
--> patching... done
--> execute commands...Failed to execute "autoreconf --install --force"

Матюки в файле ~/mingw-gcc-4.9.1/src/gdbm-1.10/exec-after_patch-0.log:

/usr/bin/autopoint: line 410: /usr/share/gettext/archive.dir.tar.xz: No such file or directory
tar: This does not look like a tar archive
tar: gettext-0.18: Not found in archive
tar: Exiting with failure status due to previous errors
autopoint: *** infrastructure files for version 0.18 not found; this is autopoint from GNU gettext-tools 0.18.3
autopoint: *** Stop.
autoreconf: autopoint failed with exit status: 1

Данный файл находится в пакете gettext-devel, если положить по указанному пути этот файл из пакета gettext-devel, то gdbm компилируется нормально.

Include exception type in prereq directory name?

When I was building various configurations in order to test things, I noticed that the build would skip over steps that it thought had already been done - such as downloading, extracting, building, etc... It appears that that output directory for MinGW itself is fairly specific, but I started to wonder if the prerequisite directories should also have more detail in their name. The downloaded compiler to start with is partially based on the exception model, so should the directory names also include the exception model in them? The only other value that I think changes that may have an effect is the threading model, so I'm not sure if that should be included as well or not. I think that the downloaded toolchain does not vary based on the thread model, so maybe it doesn't matter then.

Не собирается gcc

строка запуска

 ./build --mode=gcc-4.9.1 --arch=i686 --threads=posix --exceptions=sjlj --bootstrap --jobs=4 --bin-compress --dyn-deps

Обрывается на этапе компиляции gcc, в логах такое сообщение:

/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4/build/gcc-4.9.1/./gcc/xgcc -B/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4/build/gcc-4.9.1/./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 -g -O2 -pipe -I/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4/mingw32/opt/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-zlib-shared/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-w64-mingw32-shared/include -O2 -I../../../../../src/gcc-4.9.1/libgcc/../winsup/w32api/include -g -O2 -pipe -I/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4/mingw32/opt/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-zlib-shared/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-w64-mingw32-shared/include -DIN_GCC -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wno-format -Wstrict-prototypes -Wmissing-prototypes -Wold-style-definition -isystem ./include -g -DIN_LIBGCC2 -fbuilding-libgcc -fno-stack-protector -I. -I. -I../.././gcc -I../../../../../src/gcc-4.9.1/libgcc -I../../../../../src/gcc-4.9.1/libgcc/. -I../../../../../src/gcc-4.9.1/libgcc/../gcc -I../../../../../src/gcc-4.9.1/libgcc/../include -I../../../../../src/gcc-4.9.1/libgcc/config/libbid -DENABLE_DECIMAL_BID_FORMAT -DHAVE_CC_TLS -DUSE_EMUTLS -o _mulsc3_s.o -MT _mulsc3_s.o -MD -MP -MF _mulsc3_s.dep -DSHARED -DL_mulsc3 -c ../../../../../src/gcc-4.9.1/libgcc/libgcc2.c
J:\1\gcc_build\home\ladserg\mingw-builds-develop\toolchains\mingw32\i686-w64-mingw32\bin\ld.exe: cannot open output file 64J:/1/gcc_build/shlib/libgcc_s_sjlj-1.dll.tmp: Invalid argument
collect2.exe: error: ld returned 1 exit status

Похоже на то, что ld пытается открыть файл 64J:/1/gcc_build/shlib/libgcc_s_sjlj-1.dll.tmp, похоже gcc неверно передаёт в ld параметры неверно.

gdb - ctrl-c not handled properly

If ctrl-c is pressed when using gdb through the wrapper, it terminates gdb instantly. The normal behaviour is to interrupt the program if it is running into a gdb prompt. If the program is not running, it will display "Quit (expect signal SIGINT when the program is resumed)" and show the gdb prompt.

Support New and deprecated platforms

Today it is possible to compile dlls using winAPI for ARM and ARM64 (Hacked version of windows RT can run unsigned native code).
Windows and visual studio supported Alpha; PowerPC; Mips and IA64 in the past. While it restricts to outdated Windows® versions, getting those is the best way to run desktop windows apps if you have the source code.

Static gcc 5.2.0 fails

 ./build --mode=gcc-5.2.0 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran

Fails at:

-> gcc-5.2.0
--> download gcc-5.2.0.tar.bz2... done
--> unpack gcc-5.2.0.tar.bz2... done
--> patching... done
--> configure... done
--> building...error!

With:

configure: creating cache ./config.cache
checking for --enable-version-specific-runtime-libs... yes
checking for --enable-generated-files-in-srcdir... no
checking build system type... i686-w64-mingw32
checking host system type... i686-w64-mingw32
checking target system type... i686-w64-mingw32
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether /bin/make sets $(MAKE)... yes
checking for i686-w64-mingw32-gcc... /home/Jeroen/mingw-gcc-5.2.0/i686-520-win32-sjlj-rt_v4-s/build/gcc-5.2.0/./gcc/xgcc -B/home/Jeroen/mingw-gcc-5.2.0/i686-520-win32-sjlj-rt_v4-s/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
checking for C compiler default output file name... 
configure: error: in `/home/Jeroen/mingw-gcc-5.2.0/i686-520-win32-sjlj-rt_v4-s/build/gcc-5.2.0/i686-w64-mingw32/64/libatomic':
configure: error: C compiler cannot create executables
See `config.log' for more details.
Makefile:18396: recipe for target 'configure-target-libatomic' failed
make[1]: *** [configure-target-libatomic] Error 1
make[1]: Leaving directory '/home/Jeroen/mingw-gcc-5.2.0/i686-520-win32-sjlj-rt_v4-s/build/gcc-5.2.0'
Makefile:906: recipe for target 'all' failed
make: *** [all] Error 2

Не проходит этап tests

Строка запуска:

./build --mode=gcc-4.9.1 --arch=i686 --static-gcc --threads=posix --exceptions=sjlj --bootstrap --jobs=4 --bin-compress

На этапе tests, при тестировании запуска dll_test1.exe выдаётся сообщение:

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.
terminate called after throwing an instance of 'int'

Это из-за того, что gcc скомпилиован статически?

Merge develop and master?

When I first started trying to use mingw-builds I ran into trouble because I was using the master branch, and was told to use the develop branch. I've been using it since, but I don't understand why the develop branch is essentially the primary branch instead of master. Especially since master doesn't work at all currently. Are there other plans here that I am unaware of, or should develop be merged into master?

It seems to me that if other people try to use this project, it would make a lot more sense to them for master to the be the current mostly-stable branch to work from and other branches are for specific development activities.

gdb - can't import libstdcxx.v6.printers

If I run C:\mingw32-4.6.3\bin\gdb, I get the following error:

Traceback (most recent call last):
File "", line 3, in
ImportError: No module named libstdcxx.v6.printers
c:\mingw32-4.6.3\bin../etc/gdbinit:6: Error in sourced command file:
Error while executing Python code.

If I do:
cd /d C:\mingw32-4.6.3\bin
gdb

The error disappears.

Compiler: x32-4.6.3-release-posix-sjlj-rev2.7z

Automatic Toolchain Download

An option should be added to the main build script to automatically download a recent version of a compatible toolkit from mingw-builds if necessary. Preferably, it should attempt to download the same version toolkit as is being compiled (e.g. if compiling 64-bit seh, it should download a 64-bit seh toolkit) unless told otherwise.

Не компилируется mingw-w64-libraries-libmangle

Строка запуска:
./build --mode=gcc-4.9.1 --arch=i686 --static-gcc --threads=posix --exceptions=sjlj --bootstrap --jobs=4 --bin-compress

Прерывается на этапе конфигурации, в configure.log последние строки (с матюками):

checking for suffix of executables... .exe
checking whether we are cross compiling... configure: error: in /home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/build/libmangle-v4': configure: error: cannot run C compiled programs. If you meant to cross compile, use--host'.
See `config.log' for more details

В config.log последние строки таковы:

configure:3390: i686-w64-mingw32-gcc -o conftest.exe -O2 -pipe -I/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/mingw32/opt/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-zlib-static/include -I/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-w64-mingw32-static/include -pipe -L/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/mingw32/opt/lib -L/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-zlib-static/lib -L/home/ladserg/mingw-gcc-4.9.1/prerequisites/i686-w64-mingw32-static/lib conftest.c >&5
conftest.c:11:19: fatal error: stdio.h: No such file or directory
#include <stdio.h>
^
compilation terminated.
configure:3394: $? = 1
configure:3401: ./conftest.exe
../../../src/mingw-w64/mingw-w64-libraries/libmangle/configure: line 3403: ./conftest.exe: No such file or directory
configure:3405: $? = 127
configure:3412: error: in /home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/build/libmangle-v4': configure:3414: error: cannot run C compiled programs. If you meant to cross compile, use--host'.

Disable link time optimization

I did not specify --use-lto in the build, but g++ -v still shows --enable-lto. Does this mean gcc is using lto by default? How do I disable this LTO?

Using built-in specs.
COLLECT_GCC=g++
COLLECT_LTO_WRAPPER=C:/Rtools/gcc-4.9.3/bin/../libexec/gcc/i686-w64-mingw32/4.9.3/lto-wrapper.exe
Target: i686-w64-mingw32
Configured with: ../../../src/gcc-4.9.3/configure --host=i686-w64-mingw32 --build=i686-w64-mingw32 --target=i686-w64-mingw32 --prefix=/mingw32 --with-sysroot=/home/Jeroen/mingw-gcc-4.9.3/i686-493-win32-sjlj-rt_v3-s/mingw32 --with-gxx-include-dir=/mingw32/i686-w64-mingw32/include/c++ --enable-static --disable-shared --enable-targets=all --enable-multilib --enable-languages=c,c++,fortran,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-cloog-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=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-mpfr=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-mpc=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-isl=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --with-cloog=/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static --enable-cloog-backend=isl --with-pkgversion='i686-win32-sjlj, Built by MinGW-W64 project' --with-bugurl=http://sourceforge.net/projects/mingw-w64 CFLAGS='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.3/i686-493-win32-sjlj-rt_v3-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/include' CXXFLAGS='-O2 -pipe -I/home/Jeroen/mingw-gcc-4.9.3/i686-493-win32-sjlj-rt_v3-s/mingw32/opt/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/include -I/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/include' CPPFLAGS= LDFLAGS='-pipe -L/home/Jeroen/mingw-gcc-4.9.3/i686-493-win32-sjlj-rt_v3-s/mingw32/opt/lib -L/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-zlib-static/lib -L/home/Jeroen/mingw-gcc-4.9.3/prerequisites/i686-w64-mingw32-static/lib -Wl,--large-address-aware'
Thread model: win32
gcc version 4.9.3 (i686-win32-sjlj, Built by MinGW-W64 project) 

File tcl86.dll not included in /opt/bin

My build finished (yay). My application requires tcl/tk so I was happy to see that this is bundled with mingw-builds. However I noticed that i686-492-win32-sjlj-rt_v3-s contains:

./mingw32/opt/include/tcl.h
./mingw32/opt/include/tk.h
./mingw32/opt/lib/libtcl86.dll.a
./mingw32/opt/lib/libtk86.dll.a

It also contains /opt/bin/tk86.dll however it does not have runtime files files tcl86.dll, tclreg13.dll, tcldde14.dll. Is this a bug, or are these files not required for static gcc?

In the Ubuntu cross compiler python2.7.6 problem

Platform: Ubuntu 14.04
Have installed the official mingw64 in /usr/bin and /usr/x86_64-w64-mingw32
Run command:

Darcy@darcy-sony:~/tmp/mingw-builds$./build --mode=python-2.7.6 --arch=x86_64
- > Checking OS bitness... 64-bit
- > Checking OS type... Linux
- > Checking for necessary tools... Done
- > toolchain
-- > toolchain is not installed - > Delete corrupted download... Done
-- > Download mingw32... Error 1

How to solve?

zlib shouldn't be included

zlib.h shouldn't be included in the includes directory. If an application adds -I/path/to/zlib/include then it will pick up the GCC zlib.h instead of the zlib.h in the user-specified include directory. This is a regression in GCC 4.7.2 rev 6 build from rev 5. The zconf.h and libz.a files shouldn't be included either.

mingw32-make: Interrupt/Exception caught

Sometimes I am getting errors like the following:
mingw32-make: Interrupt/Exception caught (code = 0xc0000005, addr = 0x000007FEFD2C2020)

Using GNU Make 4.0.90 included with MinGW-builds GCC 4.8.2 64-bit SEH POSIX rev 0 building Qt 5 from git with -j8 after some time. I haven't seen this error before with GNU Make 3.82.

Patch for sjlj exceptions

There is an annoying bug in mingw-w64 v3 related to sjlj exceptions. The bug was fixed in v4, unfortunately we need to stick with v3 for now. The patch is really simple, would it be possible to add this patch to the automatic build process for --rt-version=v3?

Setting --static-gcc results in broken executables

Tried:

./build --mode=gcc-4.9.2 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran

Errored at libmangle:

-> mingw-w64-runtime-post
-> binutils
--> download binutils-2.25.tar.bz2... done
--> unpack binutils-2.25.tar.bz2... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> binutils-post
-> gcc-4.9.2
--> download gcc-4.9.2.tar.bz2... done
--> unpack gcc-4.9.2.tar.bz2... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> gcc-post
--> Switching to new compiler... done
-> mingw-w64-libraries-libmangle
--> Doesn't need to download.
--> Unpack doesn't need.
--> execute commands... done
--> configure...error!

config.log:

checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
/home/Jeroen/mingw-gcc-4.9.2/src/mingw-w64/mingw-w64-libraries/libmangle/build-aux/missing: Unknown '--is-lightweight' option
Try '/home/Jeroen/mingw-gcc-4.9.2/src/mingw-w64/mingw-w64-libraries/libmangle/build-aux/missing --help' for more information
configure: WARNING: 'missing' script is too old or missing
checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether make supports nested variables... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking for i686-w64-mingw32-gcc... i686-w64-mingw32-gcc
checking whether the C compiler works... no
configure: error: in `/home/Jeroen/mingw-gcc-4.9.2/i686-492-win32-sjlj-rt_v4-s/build/libmangle-v4':
configure: error: C compiler cannot create executables
See `config.log' for more details

mingw didn't support eclipse on Win32.

mingw-builds didn't support eclipse on Win32.
Eclipse win32 support for TDM-mingw, don't know why it's doesn't recognize mingw-builds
I tried the following release packages.
x32-4.7.2-release-posix-dwarf-rev5
x32-4.7.2-release-posix-dwarf-rev5.7z
x32-4.7.2-release-posix-sjlj-rev5
x32-4.7.2-release-posix-sjlj-rev5.7z
x32-4.7.2-release-win32-dwarf-rev5
x32-4.7.2-release-win32-dwarf-rev5.7z
x32-4.7.2-release-win32-sjlj-rev5
x32-4.7.2-release-win32-sjlj-rev5.7z

Does not download toolchain when using SEH

An appropriate toolchain is not downloaded when SEH is set as the exceptions model.

When using --exceptions=seh
-> Checking OS bitness... 64-bit
-> Checking OS type... MINGW32_NT-6.2
Checking for 7za... yes
Checking for autoconf... yes
Checking for aclocal... yes
Checking for gettext... yes
Checking for git... yes
Checking for libtool... yes
Checking for lndir... yes
Checking for m4... yes
Checking for make... yes
Checking for svn... yes
Checking for tar... yes
Checking for wget... yes
gcc is not exists in the "/home/Billy/mingw-builds-develop/toolchains/mingw64/bin" directory. terminate.

Without --exceptions=seh
-> Checking OS bitness... 64-bit
-> Checking OS type... MINGW32_NT-6.2
-> i686 toolchain
--> i686 toolchain is not installed

Tk error: unknown type name 'TCLEXCEPTION_REGISTRATION'

Trying to finalize my tool chain. Any guess to what might cause this one?

  ./build --mode=gcc-4.9.2 --rt-version=v3 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran 

Makes it to Tk:

-> tcl
--> download tcl8.6.4-src.tar.gz... done
--> unpack tcl8.6.4-src.tar.gz... done
--> patching... done
--> execute commands... done
--> configure... done
--> building... done
--> installing... done
--> execute commands... done
-> tk
--> download tk8.6.4-src.tar.gz... done
--> unpack tk8.6.4-src.tar.gz... done
--> patching... done
--> execute commands... done
--> configure... done
--> execute commands... done
--> building...error!

i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\generic\tkConsole.c" -o tkConsole.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\unix\tkUnixMenubu.c" -o tkUnixMenubu.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\unix\tkUnixScale.c" -o tkUnixScale.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\xlib\xcolors.c" -o xcolors.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\xlib\xdraw.c" -o xdraw.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\xlib\xgc.c" -o xgc.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\xlib\ximage.c" -o ximage.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\xlib\xutil.c" -o xutil.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\win\tkWin3d.c" -o tkWin3d.o
i686-w64-mingw32-gcc -c -O2 -fomit-frame-pointer -DUNICODE -D_UNICODE -Wall -Wdeclaration-after-statement  -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4/win" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//xlib" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tk8.6.4//bitmaps" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/generic" -I"C:/msys2-rtools/home/Jeroen/mingw-gcc-4.9.2/src/tcl8.6.4/win" -pipe -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_THREADS=1 -DUSE_THREAD_ALLOC=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_UXTHEME_H=1 -DHAVE_VSSYM32_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DPACKAGE_NAME=\"\" -DPACKAGE_TARNAME=\"\" -DPACKAGE_VERSION=\"\" -DPACKAGE_STRING=\"\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DSTDC_HEADERS=1 -DTCL_CFGVAL_ENCODING=\"cp1252\" -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DMODULE_SCOPE=extern -DHAVE_NO_SEH=1 -DHAVE_CAST_TO_UNION=1 -DHAVE_ZLIB=1 -DHAVE_INTPTR_T=1 -DHAVE_UINTPTR_T=1 -DHAVE_WSPIAPI_H=1 -DNDEBUG=1 -DTCL_CFG_OPTIMIZED=1 -DTCL_NO_DEPRECATED -DUSE_TCL_STUBS -DBUILD_tk -DBUILD_ttk "C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\win\tkWin32Dll.c" -o tkWin32Dll.o
C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\win\tkWin32Dll.c: In function 'DllMain':
C:\msys2-rtools\home\Jeroen\mingw-gcc-4.9.2\src\tk8.6.4\win\tkWin32Dll.c:105:5: error: unknown type name 'TCLEXCEPTION_REGISTRATION'
     TCLEXCEPTION_REGISTRATION registration;
     ^
Makefile:716: recipe for target 'tkWin32Dll.o' failed
make: *** [tkWin32Dll.o] Error 1

Bug in thiscall-thunks

In some cases, GCC generates code incorrectly which makes GDB unable to generate a proper stack trace. This can be observed with GCC 4.6.3 and 4.7.2 64-bit for example.

Upstream patch: http://gcc.gnu.org/git/?p=gcc.git;a=patch;h=f67e2d48d4c6681dec397577a6a663e596881ab7;hp=0ae5012d0b020670979570dbc075734c19c88d93

Test case:

class Base {
public:
    virtual ~Base() { }
};

class Derived : public Base
{
public:
    Derived();

private:
    int *num;
};

Derived::Derived() :
    num(new int(123))
{
    int x = 0;
    ++x;
}

int main(int argc, char *argv[])
{
    Derived d;
    return 0;
}

/* GDB stack test case
 * g++ -g test.cpp
 * gdb a.exe
 * (gdb) break test.cpp:19
 * (gdb) run
 * (gdb) where
 * #0  Derived::Derived (this=0x22fd50) at test.cpp:19
 * #1  0x0000000000000000 in ?? ()
 */

opt\bin\python missing libgcc_s_sjlj-1.dll

Hi,
thanks maintaining for these builds, they are very helpful.

I'm using x32-4.8.1-release-posix-dwarf-rev3.7z
and I've noticed that there is python in opt, but it cannot be run because of missing libgcc_s_sjlj-1.dll.

GCC Compilation error caused by -Werror / -fPIC in libbacktrace

Error occurs when building from gcc-trunk (4.9).

Compilation exits due to message about -fPIC being ignored.

Possible working solution (not necessarily best solution) is to modify x86_64-trunk-posix-seh-rt_v4/build/gcc-trunk/x86_64-w64-mingw32/libbacktrace/Makefile and remove Werror.

Не собирается gcc с опцией --use -lto

Строка запуска:

./build 
    --mode=gcc-4.9.1 \
    --arch=x86_64 \
    --threads=posix \
    --exceptions=sjlj \
    --jobs=4 \
    --bin-compress \
    --rt-version=v4 \
    --cflags=-O2 -pipe -mfpmath=sse -msse3 \
    --cxxflags=-O2 -pipe -mfpmath=sse -msse3 \
    --cppflags=-O2 -pipe -mfpmath=sse -msse3 \
    --ldflags=-pipe \
    --march-x32=prescott \
    --mtune-x32=generic \
    --march-x64=nocona \
    --mtune-x64=core2 \
    --bootstrap \
    --use-lto

Используемые тулчайны: 4.9.1-release-posix-sjlj-rt_v3-rev1 и 4.9.1-release-posix-sjlj-rt_v3-rev1 с сайта проекта mingw-64 и свой сборный 4.9.1-release-posix-sjlj-rt_v4

Сообщение в make.log:

libtool: link:  /home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/./gcc/xgcc -shared-libgcc -B/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/./gcc -nostdinc++ -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include    -shared -nostdlib C:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/mingw64/mingw/lib/../lib/dllcrt2.o C:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/mingw64/mingw/lib/../lib/crtbegin.o  .libs/compatibility.o .libs/compatibility-debug_list.o .libs/compatibility-debug_list-2.o .libs/compatibility-c++0x.o .libs/compatibility-atomic-c++0x.o .libs/compatibility-thread-c++0x.o .libs/compatibility-chrono.o .libs/compatibility-condvar.o  -Wl,--whole-archive ../libsupc++/.libs/libsupc++convenience.a ../src/c++98/.libs/libc++98convenience.a ../src/c++11/.libs/libc++11convenience.a -Wl,--no-whole-archive  -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src -L/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src/.libs -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src/.libs -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -LC:/1/msys64/mingw64/x86_64-w64-mingw32/lib -LC:/1/msys64/mingw64/mingw/lib -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/gcc -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/mingw64/mingw/lib/../lib -LC:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/mingw64/mingw/lib -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt -lpthread -ladvapi32 -lshell32 -luser32 -lkernel32 -liconv -lmingw32 -lgcc_s -lgcc -lmoldname -lmingwex -lmsvcrt C:/1/msys64/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/mingw64/mingw/lib/../lib/crtend.o  -Wl,-O1 -Wl,--gc-sections   -o .libs/libstdc++-6.dll -Wl,--enable-auto-image-base -Xlinker --out-implib -Xlinker .libs/libstdc++.dll.a
../../src/mingw-w64/mingw-w64-crt/crt/pesect.c:18:25: warning: type of '__image_base__' does not match original declaration
../../src/mingw-w64/mingw-w64-crt/crt/pseudo-reloc.c:50:13: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:66:18: warning: type of 'cin' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:56:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:67:18: warning: type of 'cout' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:57:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:68:18: warning: type of 'cerr' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:58:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:69:18: warning: type of 'clog' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:59:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:72:19: warning: type of 'wcin' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:66:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:73:19: warning: type of 'wcout' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:67:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:74:19: warning: type of 'wcerr' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:68:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:75:19: warning: type of 'wclog' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:69:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:41:35: warning: type of 'buf_cout_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:84:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:42:35: warning: type of 'buf_cin_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:85:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:43:35: warning: type of 'buf_cerr_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:86:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:45:30: warning: type of 'buf_cout' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:90:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:46:30: warning: type of 'buf_cin' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:91:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:47:30: warning: type of 'buf_cerr' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:92:16: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:50:38: warning: type of 'buf_wcout_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:97:18: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:51:38: warning: type of 'buf_wcin_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:98:18: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:52:38: warning: type of 'buf_wcerr_sync' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:99:18: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:54:33: warning: type of 'buf_wcout' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:103:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:55:33: warning: type of 'buf_wcin' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:104:17: note: previously declared here
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/ios_init.cc:56:33: warning: type of 'buf_wcerr' does not match original declaration
../../../../../../../src/gcc-4.9.1/libstdc++-v3/src/c++98/globals_io.cc:105:17: note: previously declared here
Cannot export _ZNKSt7_Mem_fnIMSt6threadFvvEEclIJEvEEvRS0_DpOT_: symbol wrong type (4 vs 3)
Cannot export _ZSt13__bind_simpleIMSt6threadFvvEJSt17reference_wrapperIS0_EEENSt19_Bind_simple_helperIT_JDpT0_EE6__typeEOS6_DpOS7_: symbol wrong type (4 vs 3)
Cannot export _ZSt9call_onceIMSt6threadFvvEJSt17reference_wrapperIS0_EEEvRSt9once_flagOT_DpOT0_: symbol wrong type (4 vs 3)
collect2.exe: error: ld returned 1 exit status
Makefile:553: recipe for target 'libstdc++.la' failed
make[6]: *** [libstdc++.la] Error 1
make[6]: Leaving directory '/home/ladserg/mingw-gcc-4.9.1/x86_64-491-posix-sjlj-rt_v4/build/gcc-4.9.1/x86_64-w64-mingw32/libstdc++-v3/src'

Остановка на этапе ncurses -> install

Строка запуска:
./build --mode=gcc-4.9.1 --arch=i686 --static-gcc --threads=posix --exceptions=sjlj --bootstrap --jobs=4 --bin-compress

В install.log в конце следующее:

/bin/sh ./run_tic.sh
/usr/bin/install -c ncurses-config /home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/mingw32/opt/bin/ncursesw5-config
** Building terminfo database, please wait...
Running tic to install /mingw32/share/terminfo: ...

You may see messages regarding extended capabilities, e.g., AX.
These are extended terminal capabilities which are compiled
using
    tic -x
If you have ncurses 4.2 applications, you should read the INSTALL
document, and install the terminfo without the -x option.

"terminfo.tmp", line 20313, terminal 'v3220': C:/1/2/mingw32/share/terminfo:: not a directory
? tic could not build /mingw32/share/terminfo:
Makefile:86: recipe for target 'install.data' failed
make[1]: *** [install.data] Error 1
make[1]: Leaving directory '/home/ladserg/mingw-gcc-4.9.1/i686-491-posix-sjlj-rt_v4-s/build /ncurses-5.9/misc'
Makefile:109: recipe for target 'install' failed
make: *** [install] Error 2

GCC 4.7.2 SEH Support for 64-bit

GCC 4.7.2 should have SEH support for 64-bit. Is it possible to enable it?
I heard you can enable it by not specifying any exception handling to configure.

cannot find -lstdc++

Error occurs when building gcc-4.7.3 using branch develop.
args: ./build --mode=gcc-4.7.3 --arch=x86_64 --exceptions=sjlj --static-gcc --rt-version=v3 --threads=posix --enable-languages=c,c++,fortran --bootstrap --bin-compress
make.log:

[ -f stage_final ] || echo stage3 > stage_final
make[1]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
rm -f stage_current
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty'
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty/testsuite'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
/bin/make  all-am
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/intl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/intl'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty'
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty/testsuite'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/fixincludes'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libcpp'
test -f config.h || (rm -f stamp-h1 && /bin/make stamp-h1)
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libcpp'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libdecnumber'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libdecnumber'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/gcc'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/gcc'
Checking multilib configuration for libgcc...
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
if [ -z "32" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../../../src/gcc-4.7.3/libgcc; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
    flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
    if (cd ../${dir}/${lib}; /bin/make "AR=ar" "AR_FLAGS=rc" "CC=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   " "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "DESTDIR=" "EXTRA_OFILES=" "HDEFINES=" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "LDFLAGS=" "LOADLIBES=" "RANLIB=ranlib" "SHELL=/bin/sh" "prefix=/mingw64" "exec_prefix=/mingw64" "libdir=/mingw64/lib" "libsubdir=/mingw64/lib/gcc/x86_64-w64-mingw32/4.7.3" "tooldir=/mingw64/x86_64-w64-mingw32" \
            CFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            CCASFLAGS=" ${flags}" \
            FCFLAGS=" ${flags}" \
            FFLAGS=" ${flags}" \
            ADAFLAGS=" ${flags}" \
            prefix="/mingw64" \
            exec_prefix="/mingw64" \
            GCJFLAGS=" ${flags}" \
            GOCFLAGS="-O2 -g ${flags}" \
            CXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include -fno-implicit-templates ${flags}" \
            LDFLAGS=" ${flags}" \
            MULTIFLAGS="${flags}" \
            DESTDIR="" \
            INSTALL="/usr/bin/install -c" \
            INSTALL_DATA="/usr/bin/install -c -m 644" \
            INSTALL_PROGRAM="/usr/bin/install -c" \
            INSTALL_SCRIPT="/usr/bin/install -c" \
            all); then \
      true; \
    else \
      exit 1; \
    fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgcc'
# If this is the top-level multilib, build all the other
# multilibs.
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/sh ../../../../../../src/gcc-4.7.3/libgcc/../mkinstalldirs ../../.././gcc/32
parts="crtfastmath.o";                  \
for file in $parts; do                  \
  rm -f ../../.././gcc/32/$file;        \
  /usr/bin/install -c -m 644 $file ../../.././gcc/32/;  \
  case $file in                     \
    *.a)                        \
      ranlib ../../.././gcc/32/$file ;; \
  esac;                         \
done
dest=../../.././gcc/include/tmp$$-unwind.h; \
cp unwind.h $dest; \
chmod a+r $dest; \
sh ../../../../../../src/gcc-4.7.3/libgcc/../move-if-change $dest ../../.././gcc/include/unwind.h
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
/bin/make install-leaf DESTDIR=../../.././gcc \
  slibdir= libsubdir= MULTIOSDIR=32
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgcc'
/bin/sh ../../../../../../src/gcc-4.7.3/libgcc/../mkinstalldirs ../../.././gcc/32
/usr/bin/install -c -m 644 libgcc.a ../../.././gcc/32/
chmod 644 ../../.././gcc/32/libgcc.a
ranlib ../../.././gcc/32/libgcc.a
/usr/bin/install -c -m 644 libgcov.a ../../.././gcc/32/
chmod 644 ../../.././gcc/32/libgcov.a
ranlib ../../.././gcc/32/libgcov.a
parts="crtfastmath.o";              \
for file in $parts; do                  \
  rm -f ../../.././gcc/32/$file;        \
  /usr/bin/install -c -m 644 $file ../../.././gcc/32/;  \
  case $file in                     \
    *.a)                        \
      ranlib ../../.././gcc/32/$file ;; \
  esac;                         \
done
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgcc'
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgcc'
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
# Early copyback; see "all" above for the rationale.  The
# early copy is necessary so that the gcc -B options find
# the right startup files when linking shared libgcc.
/bin/sh ../../../../../src/gcc-4.7.3/libgcc/../mkinstalldirs ../.././gcc
parts="crtfastmath.o";                  \
for file in $parts; do                  \
  rm -f ../.././gcc/$file;      \
  /usr/bin/install -c -m 644 $file ../.././gcc/;    \
  case $file in                     \
    *.a)                        \
      ranlib ../.././gcc/$file ;;   \
  esac;                         \
done
dest=../.././gcc/include/tmp$$-unwind.h; \
cp unwind.h $dest; \
chmod a+r $dest; \
sh ../../../../../src/gcc-4.7.3/libgcc/../move-if-change $dest ../.././gcc/include/unwind.h
# Now that we have built all the objects, we need to copy
# them back to the GCC directory.  Too many things (other
# in-tree libraries, and DejaGNU) know about the layout
# of the build tree, for now.
/bin/make install-leaf DESTDIR=../.././gcc \
  slibdir= libsubdir= MULTIOSDIR=.
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
/bin/sh ../../../../../src/gcc-4.7.3/libgcc/../mkinstalldirs ../.././gcc
/usr/bin/install -c -m 644 libgcc.a ../.././gcc/
chmod 644 ../.././gcc/libgcc.a
ranlib ../.././gcc/libgcc.a
/usr/bin/install -c -m 644 libgcov.a ../.././gcc/
chmod 644 ../.././gcc/libgcov.a
ranlib ../.././gcc/libgcov.a
parts="crtfastmath.o";              \
for file in $parts; do                  \
  rm -f ../.././gcc/$file;      \
  /usr/bin/install -c -m 644 $file ../.././gcc/;    \
  case $file in                     \
    *.a)                        \
      ranlib ../.././gcc/$file ;;   \
  esac;                         \
done
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgcc'
Checking multilib configuration for libgomp...
Checking multilib configuration for libstdc++-v3...
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
/bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-w64-mingw32-gcc" "CC_FOR_TARGET=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/" "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CXXFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_BUILD=-O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "MAKE=/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000 " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mingw64" "infodir=/mingw64/share/info" "libdir=/mingw64/lib" "includedir=/mingw64/include" "prefix=/mingw64" "tooldir=/mingw64/x86_64-w64-mingw32" "gxx_include_dir=/mingw64/x86_64-w64-mingw32/include/c++" "AR=ar" "AS=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/as" "LD=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
Making all in include
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/include'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/include'
Making all in libsupc++
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/libsupc++'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/libsupc++'
Making all in src
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src'
Making all in c++98
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src/c++98'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src/c++98'
Making all in c++11
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src/c++11'
make[6]: Nothing to be done for 'all'.
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src/c++11'
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src'
make[6]: Nothing to be done for 'all-am'.
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src'
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/src'
Making all in doc
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/doc'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/doc'
Making all in po
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/po'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/po'
Making all in testsuite
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/testsuite'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/testsuite'
Making all in python
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/python'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3/python'
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
/bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-w64-mingw32-gcc" "CC_FOR_TARGET=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/" "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CXXFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_BUILD=-O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "MAKE=/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000   " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mingw64" "infodir=/mingw64/share/info" "libdir=/mingw64/lib" "includedir=/mingw64/include" "prefix=/mingw64" "tooldir=/mingw64/x86_64-w64-mingw32" "gxx_include_dir=/mingw64/x86_64-w64-mingw32/include/c++" "AR=ar" "AS=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/as" "LD=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" DO=all multi-do # /bin/make
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
if [ -z "32" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../../../src/gcc-4.7.3/libstdc++-v3; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
    flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
    if (cd ../${dir}/${lib}; /bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-w64-mingw32-gcc" "CC_FOR_TARGET=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/" "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CXXFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_BUILD=-O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=" "LIBCFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "MAKE=/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000    " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mingw64" "infodir=/mingw64/share/info" "libdir=/mingw64/lib" "includedir=/mingw64/include" "prefix=/mingw64" "tooldir=/mingw64/x86_64-w64-mingw32" "gxx_include_dir=/mingw64/x86_64-w64-mingw32/include/c++" "AR=ar" "AS=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/as" "LD=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" \
            CFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            CCASFLAGS=" ${flags}" \
            FCFLAGS=" ${flags}" \
            FFLAGS=" ${flags}" \
            ADAFLAGS=" ${flags}" \
            prefix="/mingw64" \
            exec_prefix="/mingw64" \
            GCJFLAGS=" ${flags}" \
            GOCFLAGS="-O2 -g ${flags}" \
            CXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include -fno-implicit-templates ${flags}" \
            LDFLAGS=" ${flags}" \
            MULTIFLAGS="${flags}" \
            DESTDIR="" \
            INSTALL="/usr/bin/install -c" \
            INSTALL_DATA="/usr/bin/install -c -m 644" \
            INSTALL_PROGRAM="/usr/bin/install -c" \
            INSTALL_SCRIPT="/usr/bin/install -c" \
            all); then \
      true; \
    else \
      exit 1; \
    fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[7]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
/bin/make "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-w64-mingw32-gcc" "CC_FOR_TARGET=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/" "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "CXXFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "CFLAGS_FOR_BUILD=-O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-m32" "LIBCFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "MAKE=/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000     " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mingw64" "infodir=/mingw64/share/info" "libdir=/mingw64/lib" "includedir=/mingw64/include" "prefix=/mingw64" "tooldir=/mingw64/x86_64-w64-mingw32" "gxx_include_dir=/mingw64/x86_64-w64-mingw32/include/c++" "AR=ar" "AS=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/as" "LD=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive
make[8]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
Making all in include
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/include'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/include'
Making all in libsupc++
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/libsupc++'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/libsupc++'
Making all in src
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src'
Making all in c++98
make[10]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src/c++98'
make[10]: Nothing to be done for 'all'.
make[10]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src/c++98'
Making all in c++11
make[10]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src/c++11'
make[10]: Nothing to be done for 'all'.
make[10]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src/c++11'
make[10]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src'
make[10]: Nothing to be done for 'all-am'.
make[10]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src'
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/src'
Making all in doc
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/doc'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/doc'
Making all in po
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/po'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/po'
Making all in testsuite
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/testsuite'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/testsuite'
Making all in python
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/python'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3/python'
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
true "AR_FLAGS=rc" "CC_FOR_BUILD=x86_64-w64-mingw32-gcc" "CC_FOR_TARGET=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/" "CFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "CXXFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "CFLAGS_FOR_BUILD=-O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "CFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "INSTALL=/usr/bin/install -c" "INSTALL_DATA=/usr/bin/install -c -m 644" "INSTALL_PROGRAM=/usr/bin/install -c" "INSTALL_SCRIPT=/usr/bin/install -c" "LDFLAGS=-m32" "LIBCFLAGS=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include  -m32" "LIBCFLAGS_FOR_TARGET=-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include" "MAKE=/bin/make" "MAKEINFO=makeinfo --split-size=5000000 --split-size=5000000 --split-size=5000000       " "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/mingw64" "infodir=/mingw64/share/info" "libdir=/mingw64/lib" "includedir=/mingw64/include" "prefix=/mingw64" "tooldir=/mingw64/x86_64-w64-mingw32" "gxx_include_dir=/mingw64/x86_64-w64-mingw32/include/c++" "AR=ar" "AS=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/as" "LD=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/collect-ld" "RANLIB=ranlib" "NM=/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" DO=all multi-do # /bin/make
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
make[8]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
make[7]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libstdc++-v3'
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libstdc++-v3'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
/bin/make  all-recursive
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
Making all in testsuite
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp/testsuite'
make[5]: Nothing to be done for 'all'.
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp/testsuite'
make[5]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
/bin/make  DO=all multi-do # /bin/make
make[6]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
if [ -z "32" ]; then \
  true; \
else \
  rootpre=`${PWDCMD-pwd}`/; export rootpre; \
  srcrootpre=`cd ../../../../../src/gcc-4.7.3/libgomp; ${PWDCMD-pwd}`/; export srcrootpre; \
  lib=`echo "${rootpre}" | sed -e 's,^.*/\([^/][^/]*\)/$,\1,'`; \
  compiler="/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./gcc/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include   "; \
  for i in `${compiler} --print-multi-lib 2>/dev/null`; do \
    dir=`echo $i | sed -e 's/;.*$//'`; \
    if [ "${dir}" = "." ]; then \
      true; \
    else \
      if [ -d ../${dir}/${lib} ]; then \
    flags=`echo $i | sed -e 's/^[^;]*;//' -e 's/@/ -/g'`; \
    if (cd ../${dir}/${lib}; /bin/make  \
            CFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            CCASFLAGS=" ${flags}" \
            FCFLAGS="-L. -Wall -L../libgfortran ${flags}" \
            FFLAGS=" ${flags}" \
            ADAFLAGS=" ${flags}" \
            prefix="/mingw64" \
            exec_prefix="/mingw64" \
            GCJFLAGS=" ${flags}" \
            GOCFLAGS="-O2 -g ${flags}" \
            CXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include ${flags}" \
            LIBCXXFLAGS="-g -O2 -pipe -I/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/mingw64/opt/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-zlib-static/include -I/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/include -fno-implicit-templates ${flags}" \
            LDFLAGS=" ${flags}" \
            MULTIFLAGS="${flags}" \
            DESTDIR="" \
            INSTALL="/usr/bin/install -c" \
            INSTALL_DATA="/usr/bin/install -c -m 644" \
            INSTALL_PROGRAM="/usr/bin/install -c" \
            INSTALL_SCRIPT="/usr/bin/install -c" \
            all); then \
      true; \
    else \
      exit 1; \
    fi; \
      else true; \
      fi; \
    fi; \
  done; \
fi
make[7]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
/bin/make  all-recursive
make[8]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
Making all in testsuite
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp/testsuite'
make[9]: Nothing to be done for 'all'.
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp/testsuite'
make[9]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
true  DO=all multi-do # /bin/make
make[9]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
make[8]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
make[7]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/32/libgomp'
make[6]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
make[5]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/x86_64-w64-mingw32/libgomp'
make[2]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
rm -f stage_current
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[2]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty'
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty/testsuite'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libiberty'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
/bin/make  all-am
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/lto-plugin'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/intl'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/intl'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty'
make[4]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty/testsuite'
make[4]: Nothing to be done for 'all'.
make[4]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty/testsuite'
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/libiberty'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/fixincludes'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/build-x86_64-w64-mingw32/fixincludes'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libcpp'
test -f config.h || (rm -f stamp-h1 && /bin/make stamp-h1)
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libcpp'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libdecnumber'
make[3]: Nothing to be done for 'all'.
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/libdecnumber'
make[3]: Entering directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/gcc'
/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./prev-gcc/xgcc -B/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/./prev-gcc/ -B/mingw64/x86_64-w64-mingw32/bin/ -L/mingw64/x86_64-w64-mingw32/lib -L/mingw64/mingw/lib -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/mingw/include -B/mingw64/x86_64-w64-mingw32/bin/ -B/mingw64/x86_64-w64-mingw32/lib/ -isystem /mingw64/x86_64-w64-mingw32/include -isystem /mingw64/x86_64-w64-mingw32/sys-include      -g -O2 -D__USE_MINGW_ACCESS -Wno-pedantic-ms-format -gtoggle -DIN_GCC   -fno-exceptions -fno-rtti -W -Wall -Wno-narrowing -Wwrite-strings -Wcast-qual -Wmissing-format-attribute -pedantic -Wno-long-long -Wno-variadic-macros -Wno-overlength-strings   -DHAVE_CONFIG_H -Wl,--stack,12582912 -o cc1.exe c-lang.o c-family/stub-objc.o attribs.o c-errors.o c-decl.o c-typeck.o c-convert.o c-aux-info.o c-objc-common.o c-parser.o tree-mudflap.o c-family/c-common.o c-family/c-cppbuiltin.o c-family/c-dump.o c-family/c-format.o c-family/c-gimplify.o c-family/c-lex.o c-family/c-omp.o c-family/c-opts.o c-family/c-pch.o c-family/c-ppoutput.o c-family/c-pragma.o c-family/c-pretty-print.o c-family/c-semantics.o c-family/c-ada-spec.o i386-c.o msformat-c.o default-c.o \
  cc1-checksum.o main.o  libbackend.a libcommon-target.a libcommon.a ../libcpp/libcpp.a ../libdecnumber/libdecnumber.a libcommon.a ../libcpp/libcpp.a  -liconv ../libiberty/libiberty.a ../libdecnumber/libdecnumber.a -static -lstdc++ -L/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/lib -lcloog-isl -lisl -L/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/lib -lppl_c -lppl  -lgmpxx -L/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/lib -L/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/lib -L/home/yys/mingw-gcc-4.7.3/prerequisites/x86_64-w64-mingw32-static/lib -lmpc -lmpfr -lgmp  -static -lstdc++ -lz
D:\DevPack\msys64\home\yys\mingw-builds\toolchains\mingw64\x86_64-w64-mingw32\bin\ld.exe: cannot find -lstdc++

D:\DevPack\msys64\home\yys\mingw-builds\toolchains\mingw64\x86_64-w64-mingw32\bin\ld.exe: cannot find -lstdc++

collect2.exe: error: ld returned 1 exit status

Makefile:1841: recipe for target 'cc1.exe' failed
make[3]: *** [cc1.exe] Error 1
make[3]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3/gcc'
Makefile:4145: recipe for target 'all-stage2-gcc' failed
make[2]: *** [all-stage2-gcc] Error 2
make[2]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
Makefile:16327: recipe for target 'stage2-bubble' failed
make[1]: *** [stage2-bubble] Error 2
make[1]: Leaving directory '/home/yys/mingw-gcc-4.7.3/x86_64-473-posix-sjlj-rt_v3-s/build/gcc-4.7.3'
Makefile:902: recipe for target 'all' failed
make: *** [all] Error 2

make[4]: Leaving directory

LTO test crashes ld when building with dwarf exceptions

I've been running builds from the develop branch, and am failing one of the tests whenever I build for i686 with dwarf exceptions. The -flto test generate the following error in lto_int.o-link.log:

g++ -s -m32 lto_int.o lto_test.o -flto -o lto_test.exe
collect2.exe: error: ld terminated with signal 22 [Aborted]

This application has requested the Runtime to terminate it in an unusual way.
Please contact the application's support team for more information.

I have built with sjlj exceptions and built x86_64 with seh exceptions and neither build saw any errors. This is occuring with gcc 4.8.2, gcc 4.8.4, and gcc 4.6.4. So far I have only built with posix threads, but I am in the process of building with win32 threads to see if there is a difference, but I doubt there will be. Is this just a known issue with i686 ld? Maybe it's related to exception handling inside ld during lto since it appears that the toolchain used is one that has the same exception model as the target.

Not found level for patch gcc/gcc-4.8-filename-output.patch

I am using msys2-x64 and the develop branch of mingw-builds to with the following config:

 ./build --mode=gcc-4.9.3 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran

All goes well until gcc fails to find a patch:

-> winpthreads-x86_64
--> Doesn't need to download.
--> Unpack doesn't need.
--> configure... done
--> building... done
--> installing... done
-> mingw-w64-runtime-post
-> binutils
--> download binutils-2.25.tar.bz2... done
--> unpack binutils-2.25.tar.bz2... done
--> patching... done
--> configure... done
--> building... done
--> installing... done
-> binutils-post
-> gcc-4.9.3
--> download gcc-4.9.3.tar.bz2... done
--> unpack gcc-4.9.3.tar.bz2... done
--> patching...Not found level for patch gcc/gcc-4.8-filename-output.patch, error=1

Declarations in xmmintrin.h conflict with mingw-w64 intrin.h in c++ mode

#include <algorithm>
#include <intrin.h>

int main()
{
    return 0;
}

$ g++ -O2 -msse2 -std=c++11 test.cpp

In file included from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\x86intrin.h:34:0,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\opt_random.h:33,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\random:51,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\stl_algo.h:65,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\algorithm:62,
                 from test.cpp:1:
c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\xmmintrin.h:997:1: error: previous declaration of 'int _m_pextrw(__m64, int)' with 'C++' linkage
 _m_pextrw (__m64 const __A, int const __N)
 ^
In file included from test.cpp:2:0:
c:\mingw32-480-posix-dwarf-r0\i686-w64-mingw32\include\intrin.h:561:5: error: conflicts with new declaration with 'C' linkage
     __MACHINEX86X_NOX64(int _m_pextrw(__m64,int))
     ^
In file included from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\x86intrin.h:34:0,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\opt_random.h:33,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\random:51,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\stl_algo.h:65,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\algorithm:62,
                 from test.cpp:1:
c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\xmmintrin.h:1018:1: error: previous declaration of '__m64 _m_pinsrw(__m64, int, int)' with 'C++' linkage
 _m_pinsrw (__m64 const __A, int const __D, int const __N)
 ^
In file included from test.cpp:2:0:
c:\mingw32-480-posix-dwarf-r0\i686-w64-mingw32\include\intrin.h:566:5: error: conflicts with new declaration with 'C' linkage
     __MACHINEX86X_NOX64(__m64 _m_pinsrw(__m64,int,int))
     ^
In file included from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\x86intrin.h:34:0,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\opt_random.h:33,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\random:51,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\stl_algo.h:65,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\algorithm:62,
                 from test.cpp:1:
c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\xmmintrin.h:1119:1: error: previous declaration of '__m64 _m_pshufw(__m64, int)' with 'C++' linkage
 _m_pshufw (__m64 __A, int const __N)
 ^
In file included from test.cpp:2:0:
c:\mingw32-480-posix-dwarf-r0\i686-w64-mingw32\include\intrin.h:578:5: error: conflicts with new declaration with 'C' linkage
     __MACHINEX86X_NOX64(__m64 _m_pshufw(__m64,int))
     ^
In file included from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\x86intrin.h:34:0,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\opt_random.h:33,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\random:51,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\bits\stl_algo.h:65,
                 from c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\c++\algorithm:62,
                 from test.cpp:1:
c:\mingw32-480-posix-dwarf-r0\lib\gcc\i686-w64-mingw32\4.8.0\include\xmmintrin.h:715:1: error: previous declaration of '__m128 _mm_shuffle_ps(__m128, __m128, int)' with 'C++' linkage
 _mm_shuffle_ps (__m128 __A, __m128 __B, int const __mask)
 ^
In file included from test.cpp:2:0:
c:\mingw32-480-posix-dwarf-r0\i686-w64-mingw32\include\intrin.h:656:5: error: conflicts with new declaration with 'C' linkage
     __MACHINEX86X_NOIA64(__m128 _mm_shuffle_ps(__m128,__m128,int const))
     ^

Upstream bug report: http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56038

Linker Error when compiling GCC

../../xg++ -B../../ -B../../../x86_64-w64-mingw32/libstdc++-v3/src/.libs -B../../../x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -L../../../x86_64-w64-mingw32/libstdc++-v3/src/.libs -L../../../x86_64-w64-mingw32/libstdc++-v3/libsupc++/.libs -static-libstdc++ -static-libgcc -I- -I../rts -I. -I/home/wmoses/src/gcc-trunk/gcc/ada -DIN_GCC -O2 -pipe -I/home/wmoses/x86_64-trunk-posix-seh-rt_v4/mingw64/opt/include -I/home/wmoses/prerequisites/x86_64-zlib-static/include -I/home/wmoses/prerequisites/x86_64-w64-mingw32-static/include -D__USE_MINGW_ACCESS -W -Wall -static-libstdc++ -static-libgcc -pipe -L/home/wmoses/x86_64-trunk-posix-seh-rt_v4/mingw64/opt/lib -L/home/wmoses/prerequisites/x86_64-zlib-static/lib -L/home/wmoses/prerequisites/x86_64-w64-mingw32-static/lib -Wl,--stack,12582912 -o ../../gnatmake.exe b_gnatm.o a-except.o ali.o ali-util.o aspects.o s-casuti.o alloc.o atree.o binderr.o butil.o casing.o csets.o debug.o elists.o einfo.o errout.o erroutc.o errutil.o err_vars.o fmap.o fname.o fname-uf.o fname-sf.o gnatmake.o gnatvsn.o hostparm.o interfac.o i-c.o i-cstrin.o krunch.o lib.o make.o makeusg.o makeutl.o mlib.o mlib-fil.o mlib-prj.o mlib-tgt.o mlib-tgt-specific.o mlib-utl.o namet.o nlists.o opt.o osint.o osint-m.o output.o prj.o prj-attr.o prj-attr-pm.o prj-com.o prj-dect.o prj-env.o prj-conf.o prj-pp.o prj-err.o prj-ext.o prj-nmsc.o prj-pars.o prj-part.o prj-proc.o prj-strt.o prj-tree.o prj-util.o restrict.o rident.o s-exctab.o s-secsta.o s-stalib.o s-stoele.o scans.o scng.o sdefault.o sfn_scan.o s-purexc.o s-htable.o scil_ll.o sem_aux.o sinfo.o sinput.o sinput-c.o sinput-p.o snames.o stand.o stringt.o styleg.o stylesw.o system.o validsw.o switch.o switch-m.o table.o targparm.o tempdir.o tree_io.o types.o uintp.o uname.o urealp.o usage.o widechar.o mdll.o mdll-utl.o mdll-fil.o
../link.o ../targext.o ../../ggc-none.o ../../libcommon-target.a ../../libcommon.a ../../../libcpp/libcpp.a ../rts/libgnat.a -liconv ../../../libbacktrace/.libs/libbacktrace.a ../../../libiberty/libiberty.a
C:\posix\home\wmoses\mingw-builds-develop\toolchains\mingw64\x86_64-w64-mingw32\bin\ld.exe: cannot find -lstdc++
collect2.exe: error: ld returned 1 exit status
../gcc-interface/Makefile:2540: recipe for target '../../gnatmake.exe' failed
make[3]: *** [../../gnatmake.exe] Error 1
make[3]: Leaving directory '/home/wmoses/x86_64-trunk-posix-seh-rt_v4/build/gcc-trunk/gcc/ada/tools'
Makefile:171: recipe for target 'gnattools-native' failed
make[2]: *** [gnattools-native] Error 2
make[2]: Leaving directory '/home/wmoses/x86_64-trunk-posix-seh-rt_v4/build/gcc-trunk/gnattools'
Makefile:8707: recipe for target 'all-gnattools' failed
make[1]: *** [all-gnattools] Error 2
make[1]: Leaving directory '/home/wmoses/x86_64-trunk-posix-seh-rt_v4/build/gcc-trunk'
Makefile:865: recipe for target 'all' failed
make: *** [all] Error 2

Suggestion to enable `-fno-ident` option when building mingw compiler/runtime binaries

When enabled, this option will instruct gcc not to include a public string identified with .ident in each generate object file. That strings contain values similar to these, depending on mingw version and flavor:

GCC: (x86_64-posix-sjlj-rev0, Built by MinGW-W64 project) 4.8.4
GCC: (x86_64-win32-sjlj-rev0, Built by MinGW-W64 project) 5.1.0

These strings from mingw runtime object are accumulated in great numbers in final applications build using mingw and thus increase the size of said binaries both on disk and in memory. Enabling this option would eliminate this overhead.

GCC 32-Bit Dwarf 4.9.2 rev1 internal error

I get an internal compiler error when using GCC 4.9.2 Dwarf rev1 from MinGW-w64 downloads.

the relevant part of the config.log file is pasted below:

gcc.exe: internal compiler error: in execute, at gcc.c:2621
libbacktrace could not find executable to open
Please submit a full bug report,
with preprocessed source if appropriate.
See http://sourceforge.net/projects/mingw-w64 for instructions.
configure:3979: $? = 4
configure:4017: result: no
configure: failed program was:
| /* confdefs.h /
| #define PACKAGE_NAME "c-ares"
| #define PACKAGE_TARNAME "c-ares"
| #define PACKAGE_VERSION "1.10.0"
| #define PACKAGE_STRING "c-ares 1.10.0"
| #define PACKAGE_BUGREPORT "c-ares mailing list: http://cool.haxx.se/mailman/listinfo/c-ares"
| #define PACKAGE_URL ""
| #define OS "i686-w64-mingw32"
| /
end confdefs.h. */
|
| int main (void)
| {
|
| ;
| return 0;
| }

Error setting languages

There seems to be a bug setting the languages.

I used the following.
./build --mode=gcc-trunk --arch=x86_64 --exceptions=seh --static-gcc --rt-version=trunk --enable-languages=c,c++,fortran,objc,obj-c++,java,go --threads=posix -march-x64=core-avx-i -mtune-x64=core-avx-i -jobs=8

Yet, when I ran it it had enabled "ada,c,c++,fortran,objc,obj-c++"

To test, I modified gcc-trunk.sh by adding the following print statement.

echo "ENABLE LANGUAGES $ENABLE_LANGUAGES"
PKG_CONFIGURE_FLAGS=(
--host=$HOST
--build=$BUILD
--target=$TARGET
#
--prefix=$MINGWPREFIX
--with-sysroot=$PREFIX
#
$LINK_TYPE_GCC
#
$( [[ $USE_MULTILIB == yes ]]
&& echo "--enable-targets=all --enable-multilib"
|| echo "--disable-multilib"
)
--enable-languages=$ENABLE_LANGUAGES,lto

Likewise, when I ran the build script, the following was printed.

-> gcc-trunk
ENABLE LANGUAGES ada,c,c++,fortran,objc,obj-c++
---> gcc-trunk downloaded
---> patched

Specify custom gcc compile options

I would like to build a gcc 4.9.2 without SSE optimization, but I have a hard time figuring out where to set the custom -mno-sse option. I tried this:

./build --mode=gcc-4.9.2 --rt-version=v3 --arch=i686 --exceptions=sjlj --static-gcc --threads=win32 --enable-languages=c,c++,fortran --cflags='-mno-sse'

But that gives:

configure: error: unrecognized option: `-mno-sse'

mingw32-make gcc vs. g++ implicit rule mixup

Reporting here based on these reports and solutions:

  1. I could replicate the issue while compiling OpenSSL 1.0.2d with mingw32-make.exe taken from the mingw-w64 5.1.0 package: [URL](https://www.mirrorservice.org/sites/dl.sourceforge.net/pub/sourceforge/m/mi/mingw-w64/Toolchains targetting Win64/Personal Builds/mingw-builds/5.1.0/threads-posix/sjlj/x86_64-5.1.0-release-posix-sjlj-rt_v4-rev0.7z)
  2. The problem disappeared when using mingw32-make.exe from this alternate mingw 5.1.0 build: URL
  3. I could also replicate the problem using the minimal test case described in above link.

GNU Make version in both packages is 4.1.

EDIT: All of the above could be replicated with the 32-bit build of mingw32-make.exe, too.

GNU Make issue

Hi!
I'm trying to build the mingw-w64-builds branch on Win7x64 with MSYS2. Everything seems fine, but i got some (linking) problems at the make_git_bat stage.

D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git>gcc -mthreads -Wall -gdwarf-2 -g3 -O2 -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H -c ./w32/pathstuff.c -o pathstuff.o 

D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git>gcc -mthreads -Wall -gdwarf-2 -g3 -O2 -I. -I./glob -I./w32/include -DWINDOWS32 -DHAVE_CONFIG_H -c ./w32/compat/posixfcn.c -o posixfcn.o 

D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git>gcc -mthreads -gdwarf-2 -g3 -o gnumake.exe variable.o rule.o remote-stub.o commands.o file.o getloadavg.o default.o signame.o expand.o dir.o main.o getopt1.o  job.o output.o read.o version.o getopt.o arscan.o remake.o misc.o hash.o strcache.o ar.o function.o vpath.o implicit.o loadapi.o load.o glob.o fnmatch.o pathstuff.o posixfcn.o w32_misc.o sub_proc.o w32err.o  -lkernel32 -luser32 -lgdi32 -lwinspool -lcomdlg32 -ladvapi32 -lshell32 -lole32 -loleaut32 -luuid -lodbc32 -lodbccp32 -Wl,--out-implib=libgnumake-1.dll.a 
main.o: In function `decode_output_sync_flags':
D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git/main.c:786: undefined reference to `record_sync_mutex'
output.o: In function `acquire_semaphore':
D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git/output.c:285: undefined reference to `fcntl'
output.o: In function `release_semaphore':
D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git/output.c:297: undefined reference to `fcntl'
output.o: In function `sync_init':
D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git/output.c:205: undefined reference to `create_mutex'
D:\msys64\home\GOro\builds\x86_64-481-posix-sjlj-rt_v4\build\make_git/output.c:212: undefined reference to `same_stream'
collect2.exe: error: ld returned 1 exit status

As i see Alex wrote a similar issue to the make-w32-gnu mailing list, which caused by the configure script, not the build_w32.bat one...

GCC 4.8 DW2 + SEH Multilib

Would it be possible to get a 32-bit DW2 + 64-bit SEH GCC 4.8.0 multilib compiler?
Perhaps using --disable-sjlj-exceptions --enable-multilib.

Msys2 Libtool 2.4.6 breaks libgnurx automake command

After updating my install of msys2, I get errors during the after_patch script execution related to LIBTOOL. I downgraded libtool to 2.4.5 instead of 2.4.6, and this appears to have fixed the errors. It appears that there was a change in 2.4.6 that is not compatible with either some of the files in the libgnurx package or the copied in configure.ac and Makefile.am files.

The error occurs during the automake --add-missing command. Unfortunately I deleted the log file so will need to upgrade again and redo the build in order to get the full error back.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.