cross compiling libstdc++ fails
"Dehmel, Rüdiger"
de@lmnet.de
Mon Oct 28 02:54:00 GMT 2002
Hello,
My gcc version is 3.2
On my build system solaris sparc 2.6 a native gcc 3.2 is installed.
I need a solaris 2.5.1 i386 cross compiler.
../binutils-2.13/configure --target=i386-pc-solaris2.5.1
make "CFLAGS=-s -O2"
make install
copy libs (libc) and includes from a solaris 2.5.1 i386 to my build machine:
/usr/local/i386-pc-solaris2.5.1/...
Configure cmd line for gcc is:
../gcc-3.2/configure \
--target=i386-pc-solaris2.5.1 \
--enable-languages=c,c++ \
--with-gnu-as \
--with-gnu-ld
Makeing the cross compiler for C (gcc) is OK. (Hello world runs fine)
Makeing C++ fails because of problems make libstdc++:
many error mesages like this one:
::acosf undeclared
It looks like a difference between the configure run and the compiler run.
the main gcc makefile generates configure flags for libstdc++:
--build=sparc-sun-solaris2.6 --host=i386-pc-solaris2.5.1
is this correct for cross building libstdc++?
Thanks for any idea
Ruediger
More information about the Libstdc++
mailing list