This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: header of the build system is used for cross compiling libstdc++
- From: Hideki IWAMOTO <h-iwamoto at kit dot hi-ho dot ne dot jp>
- To: gcc-patches at gcc dot gnu dot org
- Date: Sun, 20 Jun 2004 13:45:41 +0900
- Subject: Re: header of the build system is used for cross compiling libstdc++
- References: <200406171412.AA01004@k7.kit.hi-ho.ne.jp>
I had to comment out these lines for canadian cross on both trunk and 3.4 branch.
Index: libstdc++-v3/acinclude.m4
===================================================================
RCS file: /cvsroot/gcc/gcc/libstdc++-v3/acinclude.m4,v
retrieving revision 1.290
diff -u -r1.290 acinclude.m4
--- libstdc++-v3/acinclude.m4 15 Jun 2004 14:47:05 -0000 1.290
+++ libstdc++-v3/acinclude.m4 20 Jun 2004 04:39:24 -0000
@@ -649,9 +649,9 @@
-I$glibcxx_srcdir/libsupc++"
# For Canadian crosses, pick this up too.
- if test $CANADIAN = yes; then
- GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
- fi
+ #if test $CANADIAN = yes; then
+ # GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
+ #fi
# Stuff in the actual top level. Currently only used by libsupc++ to
# get unwind* headers from the gcc dir.
On Thu, 17 Jun 2004 23:12:42 +0900, Hideki IWAMOTO wrote...
> The following is a part of libstdc++-v3/acinclude.m4.
>
> # For Canadian crosses, pick this up too.
> if test $CANADIAN = yes; then
> GLIBCXX_INCLUDES="$GLIBCXX_INCLUDES -I\${includedir}"
> fi
>
> I cannot understand why this is required.
> When I tried canadian cross, the header of the build system was
> used for cross compiling, and failed in building of libstdc++.
>
> configured with:
> /home2/iwamoto/work/canadian-test/build/gcc-3.4.0/configure --prefix=/usr \
> --build=i686-pc-linux-gnu --host=am33_2.0-linux --target=mn10300-elf \
> --enable-languages=c,c++ --with-newlib
>
> Error message:
> mn10300-elf-c++ -mam33 -I/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf -
I/home2/iwamoto/work/canadian-test/build/build-
> gcc/mn10300-elf/am33/libstdc++-v3/include -I/home2/iwamoto/work/canadian-test/build/gcc-3.4.0/libstdc++-v3/libsupc++ -I/usr/include -O2 -g -O2
-g -O2 -mam33 -fno-implicit-te
> mplates -Wall -W -Wwrite-strings -Wcast-qual -fdiagnostics-show-location=once -c /home2/iwamoto/work/canadian-test/build/gcc-3.4.0/libstdc++-
v3/src/codecvt.cc -o codecvt.o
> In file included from /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/bits/locale_facets.h:132,
> from /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/locale:46,
> from /home2/iwamoto/work/canadian-test/build/gcc-3.4.0/libstdc++-v3/src/codecvt.cc:30:
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:46: error: `_U' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:47: error: `_L' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:48: error: `_U' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:48: error: `_L' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:49: error: `_N' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:50: error: `_X' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:50: error: `_N' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:51: error: `_S' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:52: error: `_P' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:52: error: `_U' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:52: error: `_L' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:52: error: `_N' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:52: error: `_B' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:53: error: `_P' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:53: error: `_U' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:53: error: `_L' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:53: error: `_N' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:54: error: `_C' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:55: error: `_P' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:56: error: `_U' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:56: error: `_L' was not
declared in this scope
> /home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/include/mn10300-elf/bits/ctype_base.h:56: error: `_N' was not
declared in this scope
> make[7]: *** [codecvt.lo] Error 1
> make[7]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3/src'
> make[6]: *** [all-recursive] Error 1
> make[6]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3'
> make[5]: *** [all] Error 2
> make[5]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/am33/libstdc++-v3'
> make[4]: *** [multi-do] Error 1
> make[4]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/libstdc++-v3'
> make[3]: *** [all-multi] Error 2
> make[3]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/libstdc++-v3'
> make[2]: *** [all] Error 2
> make[2]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc/mn10300-elf/libstdc++-v3'
> make[1]: *** [all-target-libstdc++-v3] Error 2
> make[1]: Leaving directory `/home2/iwamoto/work/canadian-test/build/build-gcc'
> make: *** [/home2/iwamoto/work/canadian-test/build/.build-gcc] Error 2
>
> ----
> Hideki IWAMOTO h-iwamoto@kit.hi-ho.ne.jp
>
----
Hideki IWAMOTO h-iwamoto@kit.hi-ho.ne.jp