There's something wrong with your MinGW install, or maybe it's just that your PATH environment variable isn't set up quite right.
COLLECT_GCC
indicates thatgcc
is inE:\MinGW\bin\gcc.exe
COLLECT_GCC_OPTIONS
indicates thatgcc
couldn't locatecc1.exe
, so it's trying to execute it as a simplecc1
command hoping that the system will find it by a normal PATH search. The system doesn't find it, so you get theCreateProcess
error. Because theTarget
that GCC is built for ismingw32
, I'd expect thatcc1.exe
would be located inE:\MinGW\libexec\gcc\mingw32\4.8.1\cc1.exe
.
There's something else interesting about the cc1
invocation: it specifies the option -iprefix E:\MinGWmingw32/4.8.1/
.
I'd expect it to look like: -iprefix E:\MinGW\bin\../lib/gcc/mingw32/4.8.1/
Something is munging the -iprefix
option, but I'm not sure what.
I'd suggest reinstalling MinGW. As mentioned in one of my comments, I'd choose one of the following distributions since they've always installed in a straightforward manner for me. I can't say the same thing for the standard MinGW distribution installer, though I hear it's been greatly improved over the past few years.
nuwen.net's MinGW Distro - note that recent versions of this are 64-bit native, so it will only run on 64-bit machines and apparently will only build 64-bit binaries (distro versions before 11.0 were 32-bit native and only built 32-bit binaries). One very nice thing about nuwen MinGW is that installation is simply unpacking the archive and setting the path appropriately. There's a
set_distro_paths.bat
that will add it to the path for you. Nuwen's distribution also includes several libraries, including Boost. Unfortunately C++11 threads don't seem to be supported just yet.TDM MinGW - you have a choice of 32-bit or 64-bit versions. The 64-bit version will build either 32 or 64-bit targets. The toolchain itself is a 32-bit build, so it doesn't need a 64-bit machine to perform the compile/link steps. Use the
-m32
option to build a 32-bit target. The installer for TDM is a wizard-style installer. C++ 11 threads are supported, but Boost isn't included.