This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
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 at gcc dot gnu dot org
- Date: Thu, 17 Jun 2004 23:12:42 +0900
- Subject: header of the build system is used for cross compiling libstdc++
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