This is the mail archive of the
libstdc++@gcc.gnu.org
mailing list for the libstdc++ project.
linux->mingw cross and latest gcc snapshot
- To: libstdc++ at gcc dot gnu dot org
- Subject: linux->mingw cross and latest gcc snapshot
- From: Florian Wunderlich <fwunderlich at devbrain dot de>
- Date: Tue, 13 Mar 2001 15:29:30 +0100
I tried to build a cross compiler from Linux to Mingw for the latest gcc
snapshots (20010205 and 20010305), and the compilation stops because of
some undeclared symbols in ctype_base.h. The same snapshot compiles as a
native compiler on Linux, and the symbols really are undeclared as far
as I can tell, so this is not a bug in the compiler.
Configuration: --prefix=/opt/gcc-mingw32 --target=i386-mingw32
--with-gnu-as --with-gnu-ld --enable-shared i586-linux
i386-mingw32/libstdc++-v3/include/bits/ctype_base.h in the build
directory is linked to libstdc++-v3/config/os/newlib/bits/ctype_base.h
in the source directory.
Here are the error messages:
/usr/scratch/BUILD/gcc-mingw32/obj/gcc/g++
-B/usr/scratch/BUILD/gcc-mingw32/obj/gcc/ -nostdinc++
-L/usr/scratch/BUILD/gcc-mingw32/obj/i386-mingw32/libstdc++-v3/src
-L/usr/scratch/BUILD/gcc-mingw32/obj/i386-mingw32/libstdc++-v3/src/.libs
-B/opt/gcc-mingw32/i386-mingw32/bin/
-B/opt/gcc-mingw32/i386-mingw32/lib/ -isystem
/opt/gcc-mingw32/i386-mingw32/include -nostdinc++
-I../../../../gcc-20010205/libstdc++-v3/include
-I../../../../gcc-20010205/libstdc++-v3/include/std
-I../../../../gcc-20010205/libstdc++-v3/include/c_std -I../include
-I../../../../gcc-20010205/libstdc++-v3/libsupc++ -I../libio
-I../../../../gcc-20010205/libstdc++-v3/libio
-I../../../../gcc-20010205/libstdc++-v3/libmath -g -O2
-fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -g
-c ../../../../gcc-20010205/libstdc++-v3/src/ios.cc -o ios.o
In file included from
../../../../gcc-20010205/libstdc++-v3/include/bits/locale_facets.h:51,
from
../../../../gcc-20010205/libstdc++-v3/include/bits/std_locale.h:38,
from
../../../../gcc-20010205/libstdc++-v3/include/bits/std_fstream.h:40,
from
../../../../gcc-20010205/libstdc++-v3/src/ios.cc:37:
../include/bits/ctype_base.h:46: `_U' was not declared in this scope
../include/bits/ctype_base.h:47: `_L' was not declared in this scope
../include/bits/ctype_base.h:48: `_U' was not declared in this scope
../include/bits/ctype_base.h:48: `_L' was not declared in this scope
../include/bits/ctype_base.h:49: `_N' was not declared in this scope
../include/bits/ctype_base.h:50: `_X' was not declared in this scope
../include/bits/ctype_base.h:50: `_N' was not declared in this scope
../include/bits/ctype_base.h:51: `_S' was not declared in this scope
../include/bits/ctype_base.h:52: `_P' was not declared in this scope
../include/bits/ctype_base.h:52: `_U' was not declared in this scope
../include/bits/ctype_base.h:52: `_L' was not declared in this scope
../include/bits/ctype_base.h:52: `_N' was not declared in this scope
../include/bits/ctype_base.h:52: `_B' was not declared in this scope
../include/bits/ctype_base.h:53: `_P' was not declared in this scope
../include/bits/ctype_base.h:53: `_U' was not declared in this scope
../include/bits/ctype_base.h:53: `_L' was not declared in this scope
../include/bits/ctype_base.h:53: `_N' was not declared in this scope
../include/bits/ctype_base.h:54: `_C' was not declared in this scope
../include/bits/ctype_base.h:55: `_P' was not declared in this scope
../include/bits/ctype_base.h:56: `_U' was not declared in this scope
../include/bits/ctype_base.h:56: `_L' was not declared in this scope
../include/bits/ctype_base.h:56: `_N' was not declared in this scope
../../../../gcc-20010205/libstdc++-v3/libsupc++/exception: In method
`virtual
std::exception::~exception()':
../../../../gcc-20010205/libstdc++-v3/libsupc++/exception:44: warning:
function
using setjmp cannot be inline
../../../../gcc-20010205/libstdc++-v3/libsupc++/exception: In method
`virtual
std::exception::~exception()':
../../../../gcc-20010205/libstdc++-v3/libsupc++/exception:44: warning:
function
using setjmp cannot be inline
make[3]: *** [ios.lo] Error 1
make[3]: Leaving directory
`/usr/scratch/BUILD/gcc-mingw32/obj/i386-mingw32/libstdc++-v3/src'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory
`/usr/scratch/BUILD/gcc-mingw32/obj/i386-mingw32/libstdc++-v3'
make[1]: *** [all-recursive-am] Error 2
make[1]: Leaving directory
`/usr/scratch/BUILD/gcc-mingw32/obj/i386-mingw32/libstdc++-v3'
make: *** [all-target-libstdc++-v3] Error 2