This is the mail archive of the libstdc++@gcc.gnu.org mailing list for the libstdc++ project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

help - can't build g++-3.0 -> std_cwchar.h fails


When building g++ from the gcc 3.0 release, std_cwhar.h fails to compile:

 

 

 

make[4]: Leaving directory

`/home2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3/libsupc++'

Making all in src

make[4]: Entering directory

`/home2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3/src'

/bin/sh ../libtool --tag CXX --mode=compile

/home2/gcc-3.0/build/gcc/xgcc -B/home2/gcc-3.0/build/gcc/ -nostdinc++  -L/ho

me2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home2/gcc-3.0/build/

i686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home2/usr/gcc-3.0/i686-pc-linux-

gnu/bin/ -B/home2/usr/gcc-3.0/i686-pc-linux-gnu/lib/ -isystem

/home2/usr/gcc-3.0/i686-pc-linux-gnu/include -nostdinc++    -I../../../../gcc-

3.0/libstdc++-v3/include -I../../../../gcc-3.0/libstdc++-v3/include/std -I..

/../../../gcc-3.0/libstdc++-v3/include/c_std -I../include   -I../../../../gcc

-3.0/libstdc++-v3/libsupc++ -I../libio -I../../../../gcc-3.0/libstdc++-v3/li

bio -I../../../../gcc-3.0/libstdc++-v3/libmath                -g -O2 -D_GNU_SOU

RCE -fno-implicit-templates         -Wall -Wno-format -W -Wwrite-strings -Winline

  -fdiagnostics-show-location=once       -ffunction-sections -fdata-sections  -

g    -c ../../../../gcc-3.0/libstdc++-v3/src/stdexcept.cc

/home2/gcc-3.0/build/gcc/xgcc -B/home2/gcc-3.0/build/gcc/ -nostdinc++ -L/hom

e2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3/src -L/home2/gcc-3.0/build/i

686-pc-linux-gnu/libstdc++-v3/src/.libs -B/home2/usr/gcc-3.0/i686-pc-linux-g

nu/bin/ -B/home2/usr/gcc-3.0/i686-pc-linux-gnu/lib/ -isystem

/home2/usr/gcc-3.0/i686-pc-linux-gnu/include -nostdinc++ -I../../../../gcc-3

.0/libstdc++-v3/include -I../../../../gcc-3.0/libstdc++-v3/include/std -I../

../../../gcc-3.0/libstdc++-v3/include/c_std -I../include -I../../../../gcc-3

.0/libstdc++-v3/libsupc++ -I../libio -I../../../../gcc-3.0/libstdc++-v3/libi

o -I../../../../gcc-3.0/libstdc++-v3/libmath -g -O2 -D_GNU_SOURCE -fno-impli

cit-templates -Wall -Wno-format -W -Wwrite-strings -Winline -fdiagnostics-sh

ow-location=once -ffunction-sections -fdata-sections -g -c

../../../../gcc-3.0/libstdc++-v3/src/stdexcept.cc  -fPIC -DPIC -o

.libs/stdexcept.o

In file included from

../../../../gcc-3.0/libstdc++-v3/include/bits/fpos.h:40,

                 from

../../../../gcc-3.0/libstdc++-v3/include/bits/char_traits.h:40,

                 from

../../../../gcc-3.0/libstdc++-v3/include/bits/std_string.h:41,

                 from ../../../../gcc-3.0/libstdc++-v3/src/stdexcept.cc:34:

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:126:

`fgetwc'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:127:

`fgetws'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:128:

`fputwc'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:129:

`fputws'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:130:

`fwide'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:131:

`fwprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:132:

`fwscanf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:133:

`getwc'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:134:

`getwchar'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:139:

`putwc'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:140:

`putwchar'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:141:

`swprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:142:

`swscanf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:143:

`ungetwc'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:144:

`vfwprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:145:

`vfwscanf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:146:

`vswprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:147:

`vswscanf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:148:

`vwprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:149:

`vwscanf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:156:

`wcsftime'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:174:

`wprintf'

   not declared

../../../../gcc-3.0/libstdc++-v3/include/c_std/bits/std_cwchar.h:175:

`wscanf'

   not declared

make[4]: *** [stdexcept.lo] Error 1

make[4]: Leaving directory

`/home2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3/src'

make[3]: *** [all-recursive] Error 1

make[3]: Leaving directory

`/home2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3'

make[2]: *** [all-recursive-am] Error 2

make[2]: Leaving directory

`/home2/gcc-3.0/build/i686-pc-linux-gnu/libstdc++-v3'

make[1]: *** [all-target-libstdc++-v3] Error 2

make[1]: Leaving directory `/home2/gcc-3.0/build'

make: *** [bootstrap] Error 2

 

-----------------

These are the steps I performed:

 

download gcc-core-3.0.tar.bz2

unpack

run configure:

  cd build

 

 

../gcc-3.0/configure --prefix=/home2/usr/gcc-3.0 --enable-version-specific-r

untime-libs --enable-threads --enable-threads=single

 

  make bootstrap

 

**> gcc-core built fine.

I read somewhere that you need gcc 3.0 to build libstdc++-v3

So I did this:

make install

cd /usr/bin

rm gcc    [ this was a softlink ]

ln -s /home2/usr/gcc-3.0/bin/gcc .

 

 

Next, I got gcc-g++-3.0.tar.bz2 and unpacked it and then did:

 

cd build

make clean

 

 

../gcc-3.0/configure --prefix=/home2/usr/gcc-3.0 --enable-version-specific-r

untime-libs --enable-threads --enable-threads=single

 

  make bootstrap

 

The errors from above pop out in this part.

 

System info

Linux kernel 2.2.4

Mandrake 7.2 distribution

(original) gcc 2.95.3

 

?????

 

Thanks.

 

 

 

 

 

 

 

 

 

Ed

 

 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]