This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Failure crossing gcc 3.3.3 from GNU/Linux to MinGW


I got the cross gcc to compile by using this patch:

diff -aur gcc-3.3.3-truemingw/libstdc++-v3/include/bits/char_traits.h
gcc-3.3.3-truemingw-new/libstdc++-v3/include/bits/char_traits.h
--- gcc-3.3.3-truemingw/libstdc++-v3/include/bits/char_traits.h 2003-10-07
18:15:05.000000000 -0700
+++ gcc-3.3.3-truemingw-new/libstdc++-v3/include/bits/char_traits.h
2004-03-19 20:26:29.000000000 -0800
@@ -181,7 +181,7 @@
   };


-#if defined (_GLIBCPP_USE_WCHAR_T) || defined (_GLIBCPP_USE_WSTRING)
+#if 0
   /// 21.1.3.2  char_traits specializations
   template<>
     struct char_traits<wchar_t>

However, compiling the crossed-native gcc fails with:

make[1]: Entering directory `/home/stl/cross/wingcc-build/gcc'
TM_DEFINES="" \
HEADERS="auto-host.h ansidecl.h  i386/xm-mingw32.h i386/cygming.h
i386/mingw32.h defaults.h" XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \
/bin/sh /home/stl/cross/wingcc-src/gcc/mkconfig.sh config.h
TM_DEFINES="" \
HEADERS="auto-build.h ansidecl.h  i386/cygming.h i386/mingw32.h defaults.h"
XM_DEFINES="POSIX" \
TARGET_CPU_DEFAULT="TARGET_CPU_DEFAULT_pentiumpro" \
/bin/sh /home/stl/cross/wingcc-src/gcc/mkconfig.sh hconfig.h
make[1]: *** No rule to make target `auto-build.h', needed by `gengenrtl.o'.
Stop.
make[1]: Leaving directory `/home/stl/cross/wingcc-build/gcc'
make: *** [all-gcc] Error 2

Any ideas?

Stephan T. Lavavej




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]