View previous topic :: View next topic |
Author |
Message |
Ivar n00b
Joined: 21 May 2003 Posts: 42 Location: Mullsjö, Jönköping, Sweden
|
Posted: Thu Jul 24, 2003 7:07 am Post subject: Fail to compile libstdc++ when compiling GCC3.0 |
|
|
Hi!
I'm trying to install a older version of gcc the manual way. That is retrive the tarballs, unpack, configure and compile them by myself (necesary for a application of ours that doesn't work correct with newer version, it's a long story).
The problem is that it fails when doing the libstdc++, I've tried with GCC3.0 and GCC3.0.4 and get the same error.
I have configure it with:
Quote: | ../configure --prefix=/usr/local/gcc-3.x --program-suffix=3.x --enable-__cxa_atexit --enable-threads=posix --enable-shared --enable-languages=c,c++ |
And this is what it gives me:
Quote: | make[2]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3'
make "AR_FLAGS=rc" "CC_FOR_BUILD=gcc" "CC_FOR_TARGET=/root/gcc-3.0/objdir/gcc/xgcc -B/root/gcc-3.0/objdir/gcc/ -B/usr/local/gcc-3.x/i686-pc-linux-gnu/bin/ -B/usr/local/gcc-3.x/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc-3.x/i686-pc-linux-gnu/include" "CFLAGS=-g -O2" "CXXFLAGS=-g -O2 -D_GNU_SOURCE" "CFLAGS_FOR_BUILD=" "CFLAGS_FOR_TARGET=-g -O2" "INSTALL=/bin/sh /root/gcc-3.0/install-sh -c" "INSTALL_DATA=/bin/sh /root/gcc-3.0/install-sh -c -m 644" "INSTALL_PROGRAM=/bin/sh /root/gcc-3.0/install-sh -c " "INSTALL_SCRIPT=/bin/sh /root/gcc-3.0/install-sh -c" "LDFLAGS=" "LIBCFLAGS=-g -O2" "LIBCFLAGS_FOR_TARGET=-g -O2" "MAKE=make" "MAKEINFO=makeinfo " "PICFLAG=" "PICFLAG_FOR_TARGET=" "SHELL=/bin/sh" "RUNTESTFLAGS=" "exec_prefix=/usr/local/gcc-3.x" "infodir=/usr/local/gcc-3.x/info" "libdir=/usr/local/gcc-3.x/lib" "includedir=/usr/local/gcc-3.x/include" "prefix=/usr/local/gcc-3.x" "tooldir=/usr/local/gcc-3.x/i686-pc-linux-gnu" "AR=ar" "AS=as" "LD=ld" "LIBCFLAGS=-g -O2" "PICFLAG=" "RANLIB=ranlib" "NM=nm" "NM_FOR_BUILD=" "NM_FOR_TARGET=nm" "DESTDIR=" "WERROR=" all-recursive
make[3]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3'
Making all in libio
make[4]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libio'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libio'
Making all in libmath
make[4]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libmath'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libmath'
Making all in libsupc++
make[4]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
make[4]: Nothing to be done for `all'.
make[4]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/libsupc++'
Making all in src
make[4]: Entering directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src'
/bin/sh ../libtool --tag CXX --mode=compile /root/gcc-3.0/objdir/gcc/xgcc -B/root/gcc-3.0/objdir/gcc/ -nostdinc++ -L/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src -L/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/gcc-3.0/i686-pc-linux-gnu/bin/ -B/usr/local/gcc-3.0/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc-3.0/i686-pc-linux-gnu/include -nostdinc++ -I../../../../libstdc++-v3/include -I../../../../libstdc++-v3/include/std -I../../../../libstdc++-v3/include/c_std -I../include -I../../../../libstdc++-v3/libsupc++ -I../libio -I../../../../libstdc++-v3/libio -I../../../../libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../libstdc++-v3/src/locale.cc
/root/gcc-3.0/objdir/gcc/xgcc -B/root/gcc-3.0/objdir/gcc/ -nostdinc++ -L/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src -L/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/usr/local/gcc-3.0/i686-pc-linux-gnu/bin/ -B/usr/local/gcc-3.0/i686-pc-linux-gnu/lib/ -isystem /usr/local/gcc-3.0/i686-pc-linux-gnu/include -nostdinc++ -I../../../../libstdc++-v3/include -I../../../../libstdc++-v3/include/std -I../../../../libstdc++-v3/include/c_std -I../include -I../../../../libstdc++-v3/libsupc++ -I../libio -I../../../../libstdc++-v3/libio -I../../../../libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-implicit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-show-location=once -ffunction-sections -fdata-sections -g -c ../../../../libstdc++-v3/src/locale.cc -fPIC -DPIC -o .libs/locale.o
In file included from ../../../../libstdc++-v3/src/locale.cc:557:
../include/bits/ctype_noninline.h: In constructor
`std::ctype<char>::ctype(const short unsigned int*, bool, unsigned int)':
../include/bits/ctype_noninline.h:44: `__ctype_toupper' undeclared (first use
this function)
../include/bits/ctype_noninline.h:44: (Each undeclared identifier is reported
only once for each function it appears in.)
../include/bits/ctype_noninline.h:44: `__ctype_tolower' undeclared (first use
this function)
../include/bits/ctype_noninline.h:45: `__ctype_b' undeclared (first use this
function)
make[4]: *** [locale.lo] Error 1
make[4]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/root/gcc-3.0/objdir/i686-pc-linux-gnu/libstdc++-v3'
make[1]: *** [all-target-libstdc++-v3] Error 2
make[1]: Leaving directory `/root/gcc-3.0/objdir'
make: *** [bootstrap] Error 2 |
'uname -a' gives:
Quote: | Linux ct089069.trafficsystems.com 2.4.20 #28 Mon Jul 21 14:42:08 CEST 2003 i686 Intel(R) Pentium(R) 4 CPU 2.40GHz GenuineIntel GNU/Linux |
'gcc -v' gives:
Quote: | Reading specs from /usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/specs
Configured with: /var/tmp/portage/gcc-3.2.3-r1/work/gcc-3.2.3/configure --prefix=/usr --bindir=/usr/i686-pc-linux-gnu/gcc-bin/3.2 --includedir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include --datadir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2 --mandir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/man --infodir=/usr/share/gcc-data/i686-pc-linux-gnu/3.2/info --enable-shared --host=i686-pc-linux-gnu --target=i686-pc-linux-gnu --with-system-zlib --enable-languages=c,c++,ada,f77,objc,java --enable-threads=posix --enable-long-long --disable-checking --enable-cstdio=stdio --enable-clocale=generic --enable-__cxa_atexit --enable-version-specific-runtime-libs --with-gxx-include-dir=/usr/lib/gcc-lib/i686-pc-linux-gnu/3.2.3/include/g++-v3 --with-local-prefix=/usr/local --enable-shared --enable-nls --without-included-gettext
Thread model: posix
gcc version 3.2.3 20030422 (Gentoo Linux 1.4 3.2.3-r1, propolice) |
I could compile it on my old RH machine, but on my new Gentoo it wont work at all
Any help or tips whatsoever would be greatly appricated since I'm completly stuck _________________ /Ivar |
|
Back to top |
|
|
watersb Apprentice
Joined: 04 Sep 2002 Posts: 297 Location: take a left turn in Tesuque
|
Posted: Thu Jul 31, 2003 5:08 am Post subject: |
|
|
Wierd.
I have no idea...
But note that, by the time you get to the compile error, you are already using the bootstrapped GCC -- see the xgcc command?
That is, this probably has very little to do with your current version of gcc.
But I have no clue. |
|
Back to top |
|
|
Ivar n00b
Joined: 21 May 2003 Posts: 42 Location: Mullsjö, Jönköping, Sweden
|
Posted: Thu Jul 31, 2003 6:17 am Post subject: |
|
|
'xgcc'!!
I've missed that one! Not that it helps much... still the same problem...
Could it be the include files somehow, it might be using the freshly compiled compiler, but what header files (or rather path to include files) are that compiler using, it doesn't seem to be set to new compiler, so I can only asume it's the systems, might have clue there...
I'll be back if I figure out how!! _________________ /Ivar |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|