This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug target/14666] Crossing from GNU/Linux to MinGW requires SEVERAL hacks
- From: "stl at caltech dot edu" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: 21 Mar 2004 07:06:20 -0000
- Subject: [Bug target/14666] Crossing from GNU/Linux to MinGW requires SEVERAL hacks
- References: <20040321033350.14666.stl@caltech.edu>
- Reply-to: gcc-bugzilla at gcc dot gnu dot org
------- Additional Comments From stl at caltech dot edu 2004-03-21 07:06 -------
If I use i686-pc-mingw32 instead of mingw32, and remove the hacks, making the
cross gcc fails with:
make[3]: Leaving directory `/home/stl/cross/xgcc-build/i686-pc-
mingw32/libstdc++-v3'
Making all in include
make[3]: Entering directory `/home/stl/cross/xgcc-build/i686-pc-
mingw32/libstdc++-v3/include'
sed -e '/^#/s/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_][ABCDEFGHIJKLMNOPQRSTUVWXYZ_]
*\)/_GLIBCPP_\1/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< /home/stl/cross/xgcc-src/libstdc++-v3/../gcc/gthr.h > i686-pc-
mingw32/bits/gthr.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' \
< /home/stl/cross/xgcc-src/libstdc++-v3/../gcc/gthr-single.h > i686-pc-
mingw32/bits/gthr-single.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' \
-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*WEAK\)/_GLIBCPP_\1/g' \
< /home/stl/cross/xgcc-src/libstdc++-v3/../gcc/gthr-posix.h > i686-pc-
mingw32/bits/gthr-posix.h
sed -e 's/\(UNUSED\)/_GLIBCPP_\1/g' \
-e 's/\(GCC[ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*_H\)/_GLIBCPP_\1/g' \
-e 's/\([ABCDEFGHIJKLMNOPQRSTUVWXYZ_]*WEAK\)/_GLIBCPP_\1/g' \
-e 's,^#include "\(.*\)",#include <bits/\1>,g' \
< /home/stl/cross/xgcc-src/libstdc++-v3/../gcc/gthr-win32.h > i686-pc-
mingw32/bits/gthr-default.h
make[3]: *** No rule to make target `/home/stl/cross/xgcc-src/libstdc++-
v3/config/config/os/newlib/ctype_base.h', needed by `stamp-target'. Stop.
make[3]: Leaving directory `/home/stl/cross/xgcc-build/i686-pc-
mingw32/libstdc++-v3/include'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/home/stl/cross/xgcc-build/i686-pc-
mingw32/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory `/home/stl/cross/xgcc-build/i686-pc-
mingw32/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2
So it looks like this does NOT affect the need for the first hack.
--
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=14666