From mboxrd@z Thu Jan 1 00:00:00 1970 From: joel@OARcorp.com To: gcc-gnats@gcc.gnu.org Subject: libstdc++/3174: sparc-rtems (also seen on i386-rtems) Date: Wed, 13 Jun 2001 11:26:00 -0000 Message-id: <20010613181753.11955.qmail@sourceware.cygnus.com> X-SW-Source: 2001-06/msg00588.html List-Id: >Number: 3174 >Category: libstdc++ >Synopsis: sparc-rtems (also seen on i386-rtems) >Confidential: no >Severity: serious >Priority: high >Responsible: unassigned >State: open >Class: sw-bug >Submitter-Id: net >Arrival-Date: Wed Jun 13 11:26:01 PDT 2001 >Closed-Date: >Last-Modified: >Originator: joel@OARcorp.com >Release: gcc-3.0-20010611 >Organization: >Environment: RedHat GNU/Linux 6.2 >Description: Configure fails to use just built compiler for CXXCPP, based on the output below, I think it is using the native install for CXXCPP instead of the just built cross. I added a "set -x" above the test in libstdc++-v3/configure and some echos and get this output: appending configuration tag "CXX" to libtool checking for GNU make... make + echo cross_compiling= cross_compiling= + echo CXXCPP=/lib/cpp CXXCPP=/lib/cpp + echo CPPFLAGS= CPPFLAGS= + echo CXX=/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/gcc/xgcc -B/usr3/ftp_archive/ gnu/gcc/ss/b1/b-sparc/gcc/ -nostdinc++ -L/usr3/ftp_archive/gnu/gcc/ss/b1/b-spar c/sparc-rtems/libstdc++-v3/src -L/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc-r tems/libstdc++-v3/src/.libs -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/ sparc-rtems/newlib/ -isystem /usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc-rtems /newlib/targ-include -isystem /usr3/ftp_archive/gnu/gcc/ss/b1/gcc-3.0-20010611/n ewlib/libc/include -B/opt/rtems/sparc-rtems/bin/ -B/opt/rtems/sparc-rtems/lib/ - isystem /opt/rtems/sparc-rtems/include CXX=/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/gcc/xgcc -B/usr3/ftp_archive/gnu/gcc /ss/b1/b-sparc/gcc/ -nostdinc++ -L/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc -rtems/libstdc++-v3/src -L/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc-rtems/li bstdc++-v3/src/.libs -nostdinc -B/usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc-r tems/newlib/ -isystem /usr3/ftp_archive/gnu/gcc/ss/b1/b-sparc/sparc-rtems/newlib /targ-include -isystem /usr3/ftp_archive/gnu/gcc/ss/b1/gcc-3.0-20010611/newlib/l ibc/include -B/opt/rtems/sparc-rtems/bin/ -B/opt/rtems/sparc-rtems/lib/ -isystem /opt/rtems/sparc-rtems/include + test ! -f stamp-sanity-compiler + echo -n checking for g++ that will successfully compile libstdc++-v3... checking for g++ that will successfully compile libstdc++-v3... + echo configure :2590: checking for g++ that will successfully compile libstdc++-v3 + ac_ext=C + ac_cpp=$CXXCPP $CPPFLAGS + ac_compile=${CXX-g++} -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext 1>&5 + ac_link=${CXX-g++} -o conftest${ac_exeext} $CXXFLAGS $CPPFLAGS $LDFLAGS confte st.$ac_ext $LIBS 1>&5 + cross_compiling= + cat + egrep ok + rm -rf conftest.C + echo configure: error: please upgrade to GCC 3.0 or above configure: error: please upgrade to GCC 3.0 or above >How-To-Repeat: Unfortunately, someone may have to have some patches but I believe that this can be compiled with the following configure line: + ../gcc-3.0-20010611/configure --target=sparc-rtems --with-gnu-as --with-gnu-ld --with-newlib --verbose --enable-threads --prefix=/opt/rtems >Fix: Properly set CXXCPP to use the just built compiler. >Release-Note: >Audit-Trail: >Unformatted: