This is the mail archive of the
libstdc++-prs@sources.redhat.com
mailing list for the libstdc++ project.
libstdc++/73: libstdc++-v3 doesn't build for PowerPc cross compiler on x86
- To: libstdc++-gnats at sourceware dot cygnus dot com
- Subject: libstdc++/73: libstdc++-v3 doesn't build for PowerPc cross compiler on x86
- From: jfardo at laurelnetworks dot com
- Date: 14 Jul 2000 18:12:08 -0000
- Reply-To: jfardo at laurelnetworks dot com
- Resent-Cc: libstdc++-prs at sourceware dot cygnus dot com
- Resent-Reply-To: libstdc++-gnats@sourceware.cygnus.com, jfardo@laurelnetworks.com
>Number: 73
>Category: libstdc++
>Synopsis: libstdc++-v3 doesn't build for PowerPc cross compiler on x86
>Confidential: no
>Severity: critical
>Priority: high
>Responsible: unassigned
>State: open
>Class: sw-bug
>Submitter-Id: net
>Arrival-Date: Fri Jul 14 11:17:00 PDT 2000
>Closed-Date:
>Last-Modified:
>Originator: John Fardo
>Release: gcc 2.95.2/libstdc++-2.90.8 (Also gcc 2.96 2000713)
>Organization:
>Environment:
Build platform - i686 Linux 2.2.14-6.1.1
Target platform - PowerPC 750
>Description:
The libstdc++-v3/gcc build fails for the PowerPC750 cross
compiler on a x86 PC host. I have tried with both the most
recent released version as well as the current CVS version.
The build fails with the following error message:
if [ x"-fPIC" != x ]; then \
/compilers/BUILD/gcc-obj/gcc/xgcc -B/compilers/BUILD/gcc-obj/gcc/ -B/compilers/ppc/7xx/powerpc-linux/bin/ -c -DHAVE_CONFIG_H -g -O2 -I. -I../../../gcc/libiberty/../include -W - Wall -Wtraditional -pedantic -fPIC ../../../gcc/libiberty/strerror.c -o pic/strerror.o; \
else true; fi
../../../gcc/libiberty/strerror.c:463: warning: static declaration for `sys_nerr
' follows non-static
../../../gcc/libiberty/strerror.c:464: conflicting types for `sys_errlist'
/u/jfardo/work/compilers/opt/hardhat/devkit/ppc/7xx/powerpc-linux/sys-include/st
dio.h:553: previous declaration of `sys_errlist'
>How-To-Repeat:
1. Following the instructions in the installation instructions,
I renamed libstdc++ to libstdc++-v2 and libio to libio-v2.
2. I linked the libstdc++-v3 source to the libstdc++ directory
at the top of the gcc source tree.
3. I have binutils 2.9.5.0.22 built for the powerpc on the x86.
4. I created a directory called gcc-obj and ran the
configure script from there :
configure --host=i386-linux --target=powerpc-linux
--program-prefix=powerpc-linux- --with-cpu=750
--with-gnu-as --with-gnu-ld --enable-threads=posix
--enable-cross --enable-shared --enable-languages=c,c++
--disable-libgcc-rebuild
--with-headers=<My dir containing the linux and glibc header files.>
--with-newlib
5. Run make.
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: