Hello!
I guess I need some help to verify my toolchain.
My host=target=embedded mpc8540 (e500 core) processor which has no fpu.
I am working with:
[EMAIL PROTECTED]:/$gcc -v
Reading specs from /usr/local/lib/gcc/powerpc-unknown-linux-gnu/3.4.4/specs
Configured with: ../gcc-3.4-20050408/configure --with-float=soft
--enable-shared --enable-threads=posix --enable-__cxa_atexit
--enable-languages=c,c++,objc --enable-nls=yes --enable-clocale=gnu
Thread model: posix
gcc version 3.4.4 20050408 (prerelease)
[EMAIL PROTECTED]:/$gcc -print-multi-lib
.;@[EMAIL PROTECTED]
nof;@[EMAIL PROTECTED]@mstrict-align
[EMAIL PROTECTED]:/usr/lib$ l libstdc++.*
-rw-r--r-- 1 root root 1721590 Apr 6 12:17 libstdc++.a
lrwxrwxrwx 1 root root 18 Apr 6 12:18 libstdc++.so ->
libstdc++.so.5.0.5
lrwxrwxrwx 1 root root 18 Apr 6 12:18 libstdc++.so.5 ->
libstdc++.so.5.0.5
-rwxr-xr-x 1 root root 857824 Apr 6 12:17 libstdc++.so.5.0.5
[EMAIL PROTECTED]:/usr/lib$ l ../local/lib/nof/libstdc++.*
-rw-r--r-- 1 root root 7298624 Apr 12 20:31
../local/lib/nof/libstdc++.a
-rwxr-xr-x 1 root root 1307 Apr 12 20:31
../local/lib/nof/libstdc++.la
lrwxrwxrwx 1 root root 18 Apr 12 20:31
../local/lib/nof/libstdc++.so -> libstdc++.so.6.0.3
lrwxrwxrwx 1 root root 18 Apr 12 20:31
../local/lib/nof/libstdc++.so.6 -> libstdc++.so.6.0.3
-rwxr-xr-x 1 root root 5433010 Apr 12 20:31
../local/lib/nof/libstdc++.so.6.0.3
[EMAIL PROTECTED]:/usr/lib$
But when I compile X6.7.2 I get undefined references in the nof/libstdc++:
make[4]: Entering directory `/share/home/clemens/newbuild/xc/programs/glxinfo'
gcc -O2 -fno-strict-aliasing -fsigned-char -I../.. -I../../exports/include
-Dlinux -D__powerpc__ -D_POSIX_C_SOURCE=199309L -D_POSIX_SOURCE
-D_XOPEN_SOURCE -D_BSD_SOURCE -D_SVID_SOURCE
-D_GNU_SOURCE -DFUNCPROTO=15 -DNARROWPROTO -DXTHREADS
-D_REENTRANT -DXUSE_MTSAFE_API -DDO_GLU -c -o glxinfo.o glxinfo.c
rm -f glxinfo
gcc -o glxinfo -O2 -fno-strict-aliasing -fsigned-char -L../../exports/lib
glxinfo.o -lGLU -lGL -lXext -lX11 -lpthread -lm
-Wl,-rpath-link,../../exports/lib
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
/usr/local/lib/nof/libstdc++.so.6: undefined reference to [EMAIL PROTECTED]'
collect2: ld returned 1 exit status
make[4]: *** [glxinfo] Error 1
make[4]: Leaving directory `/share/home/clemens/newbuild/xc/programs/glxinfo'
make[3]: *** [all] Error 2
make[3]: Leaving directory `/share/home/clemens/newbuild/xc/programs'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/share/home/clemens/newbuild/xc'
make[1]: *** [World] Error 2
make[1]: Leaving directory `/share/home/clemens/newbuild/xc'
make: *** [World] Error 2
So I am concerned if my configuration is correct or is there a problem with the
lib?
What is _the_ recommended way to build a toolchain for the mpc8540 for the
latest
mainline? Is the -mfloat-gprs working?
Thanks,
Clemens Koller
_______________________________
R&D Imaging Devices
Anagramm GmbH
Rupert-Mayer-Str. 45/1
81379 Muenchen
Germany
http://www.anagramm.de
Phone: +49-89-741518-50
Fax: +49-89-741518-19