This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] Fix mingw32 bootstrap regression.
On Sun, Dec 24, 2006 at 02:24:08PM +0000, Pedro Alves wrote:
> 'Bob Rossi' escreveu:
> >> cc1 -E -lang-asm -quiet ...
> >>xgcc.exe: CreateProcess: No such file or directory
> >Why wouldn't gcc be able to find this?
> MinGW/native Windows apps don't know a thing about the /home/bobbybrasko
> cygwin mount and xgcc should be a MinGW app.
> That's why Danny has the following cygwin mount, and he puts the
> sources/builddir there:
>
> c:\developex on /developex type system (binmode)
>
> This way, both cygwin and MinGW will resolve the /developex path to the
> same dir.
> (/ on the MinGW side will resolve to the root of the current drive. )
Thanks Pedro! That got me further. I have yet another error. I'm wondering if
this has to do with the --with-local-prefix option. Essentially, it
can't find some of my headers. However, they are in the build directory,
$ find build/ -name cassert
build/mingw32/libstdc++-v3/include/cassert
and the gcc/ directory
$ find gcc/ -name cassert
gcc/libstdc++-v3/include/c/cassert
gcc/libstdc++-v3/include/c_std/cassert
Danny, with the setup that you have, do you untar the mingw-runtime,
binutuils and w32api anywhere special before you do the bootstrap?
Below is my configre and make line, along with the error.
Thanks again for everyone's help!
Bob Rossi
#!/bin/sh
PATH=/mingw/bin:$PATH
../gcc/configure \
--with-gmp=c:/msys/1.0/home/bobbybrasko/gcc/gmp/gmp \
--with-mpfr=c:/msys/1.0/home/bobbybrasko/gcc/mpfr/prefixdir \
--with-gcc --enable-libgomp --host=mingw32 \
--build=mingw32 --target=mingw32 --with-arch=i486 \
--with-tune=i686 --disable-werror --prefix=/mingw \
--with-local-prefix=/mingw --enable-threads --disable-nls \
--enable-languages=c,c++ --disable-win32-registry \
--disable-sjlj-exceptions --enable-libstdcxx-debug \
--enable-cxx-flags='-fno-function-sections -fno-data-sections' \
--disable-shared --enable-version-specific-runtime-libs 2>&1 | tee configure-out.txt
make CXXFLAGS="-mthreads -O2" bootstrap 2>&1 | tee make-out.txt
make[4]: Entering directory `/developex/build/mingw32/libstdc++-v3/include'
if [ ! -d "./mingw32/bits/stdc++.h.gch" ]; then \
mkdir -p ./mingw32/bits/stdc++.h.gch; \
fi; \
/developex/build/./gcc/xgcc -shared-libgcc -B/developex/build/./gcc
-nostdinc++ -L/developex/build/mingw32/libstdc++-v3/src
-L/developex/build/mingw32/libstdc++-v3/src/.libs
-L/developex/build/mingw32/winsup/mingw
-L/developex/build/mingw32/winsup/w32api/lib
-isystem /developex/gcc/winsup/mingw/include
-isystem /developex/gcc/winsup/w32api/include -B/mingw/mingw32/bin/
-B/mingw/mingw32/lib/ -isystem /mingw/mingw32/include
-isystem /mingw/mingw32/sys-include -Winvalid-pch -Wno-deprecated
-x c++-header -mthreads -O2
-I/developex/build/mingw32/libstdc++-v3/include/mingw32
-I/developex/build/mingw32/libstdc++-v3/include
-I/developex/gcc/libstdc++-v3/libsupc++ -O0 -g
/developex/gcc/libstdc++-v3/include/precompiled/stdc++.h
-o mingw32/bits/stdc++.h.gch/O0g.gch
/developex/gcc/libstdc++-v3/include/precompiled/stdc++.h:37:19:
error: cassert: No such file or directory^M
/developex/gcc/libstdc++-v3/include/precompiled/stdc++.h:38:18:
error: cctype: No such file or directory
/developex/gcc/libstdc++-v3/include/precompiled/stdc++.h:39:18:
error: cerrno: No such file or directory
The output of -print-search-dirs is,
install: c:\developex\build\gcc\../lib/gcc/mingw32/4.3.0/
programs: =/developex/build/./gcc/mingw32/4.3.0/;/developex/build/./gcc/;
/mingw/mingw32/bin/mingw32/4.3.0/;/mingw/mingw32/bin/;
/mingw/mingw32/lib/mingw32/4.3.0/;/mingw/mingw32/lib/;
c:/developex/build/gcc/../libexec/gcc/mingw32/4.3.0/;
c:/developex/build/gcc/../libexec/gcc/;/usr/libexec/gcc/mingw32/4.3.0/;
/usr/libexec/gcc/mingw32/;/usr/lib/gcc/mingw32/4.3.0/;/usr/lib/gcc/mingw32/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../../mingw32/bin/mingw32/4.3.0/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../../mingw32/bin/
libraries: =/developex/build/./gcc/mingw32/4.3.0/;/developex/build/./gcc/;
/mingw/mingw32/bin/mingw32/4.3.0/;/mingw/mingw32/bin/;
/mingw/mingw32/lib/mingw32/4.3.0/;/mingw/mingw32/lib/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/;
c:/developex/build/gcc/../lib/gcc/;/usr/lib/gcc/mingw32/4.3.0/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../../mingw32/lib/mingw32/4.3.0/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../../mingw32/lib/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../mingw32/4.3.0/;
c:/developex/build/gcc/../lib/gcc/mingw32/4.3.0/../../../;
/mingw/lib/mingw32/4.3.0/;/mingw/lib/