Help please:gcc 2.95.2 and libstdc++ 2.90.8 won't compile

Help please:gcc 2.95.2 and libstdc++ 2.90.8 won't compile

Post by Sharon Galtzu » Sun, 31 Dec 1899 09:00:00



Hi all,
I've just downloaded gcc 2.95.2 and libstdc++ 2.90.8 and trying to install
them.
The problem is that when i run make bootstrap after a long compilation
time i get the following lines:

cc1plus: warnings being treated as errors
../../../../gcc-2.95.2/libstdc++/bits/string.tcc: In method
`std::basic_string<c
har,std::char_traits<char>,std::allocator<char> >::basic_string(const
std::basic
_string<char,std::char_traits<char>,std::allocator<char> > &, unsigned
int, unsi
gned int = std::basic_string<_CharT,_Traits,_Alloc>::npos)':
../../../../gcc-2.95.2/libstdc++/src/string-inst.cc:64:   instantiated
from here
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:712: warning: can't
inline
call to `static char *
std::basic_string<char,std::char_traits<char>,std::alloca
tor<char> >::_S_construct<std::__normal_iterator<char
*,std::basic_string<char,s
td::char_traits<char>,std::allocator<char> > >

Quote:>(std::__normal_iterator<char *,s

td::basic_string<char,std::char_traits<char>,std::allocator<char> > >,
std::__no
rmal_iterator<char
*,std::basic_string<char,std::char_traits<char>,std::allocato
r<char> > >, const std::allocator<char> &)'
../../../../gcc-2.95.2/libstdc++/bits/string.tcc:184: warning: called
from here
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h: In method `class
std::basi
c_string<char,std::char_traits<char>,std::allocator<char> > &
std::basic_string<
char,std::char_traits<char>,std::allocator<char> >::append(const
std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char> > &)':
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:451:   instantiated
from `s
td::basic_string<char,std::char_traits<char>,std::allocator<char>
Quote:>::operator +=

(const
std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
../../../../gcc-2.95.2/libstdc++/src/string-inst.cc:64:   instantiated
from here
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:675: warning: can't
inline
call to `class
std::basic_string<char,std::char_traits<char>,std::allocator<char
Quote:> > & std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::repl

ace<std::__normal_iterator<char
*,std::basic_string<char,std::char_traits<char>,
std::allocator<char> > > >(std::__normal_iterator<char
*,std::basic_string<char,
std::char_traits<char>,std::allocator<char> > >,
std::__normal_iterator<char *,s
td::basic_string<char,std::char_traits<char>,std::allocator<char> > >,
std::__no
rmal_iterator<char
*,std::basic_string<char,std::char_traits<char>,std::allocato
r<char> > >, std::__normal_iterator<char
*,std::basic_string<char,std::char_trai
ts<char>,std::allocator<char> > >)'
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:470: warning:
called from h
ere
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h: In method `class
std::basi
c_string<char,std::char_traits<char>,std::allocator<char> > &
std::basic_string<
char,std::char_traits<char>,std::allocator<char> >::assign(const
std::basic_stri
ng<char,std::char_traits<char>,std::allocator<char> > &, unsigned int,
unsigned
int)':
../../../../gcc-2.95.2/libstdc++/src/string-inst.cc:64:   instantiated
from here
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:541: warning: can't
inline
call to `class
std::basic_string<char,std::char_traits<char>,std::allocator<char
Quote:> > & std::basic_string<char,std::char_traits<char>,std::allocator<char>
>::assi

gn<std::__normal_iterator<char
*,std::basic_string<char,std::char_traits<char>,s
td::allocator<char> > > >(std::__normal_iterator<char
*,std::basic_string<char,s
td::char_traits<char>,std::allocator<char> > >,
std::__normal_iterator<char *,st
d::basic_string<char,std::char_traits<char>,std::allocator<char> > >)'
../../../../gcc-2.95.2/libstdc++/bits/basic_string.h:523: warning:
called from h
ere
make[4]: *** [stringMAIN.lo] Error 1
make[4]: Leaving directory
`/home/download/gcc-2.95.2.out/i686-linux-gnu/libstdc
++/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory
`/home/download/gcc-2.95.2.out/i686-linux-gnu/libstdc
++'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory
`/home/download/gcc-2.95.2.out/i686-linux-gnu/libstdc
++'
make[1]: *** [all-target-libstdc++] Error 2
make[1]: Leaving directory `/home/download/gcc-2.95.2.out'
make: *** [bootstrap] Error 2

Whats wrong ?
I suspect that the problem is in the libstdc++ lib.
My machine is i686-linux.

Thanks

---------------------------
Sharon Galtzur

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

 
 
 

1. Help Compiling GCC 2.95.1 (Please!! )

Okay, so I'm trying to install Gcc 2.95.1 on an Ultra Enterprise 450,
running Solaris 2.5.1.

Here's what I do, and here's what happens: (And please help!)

1.  Untar gcc-2.95.1.tar.gz into /u7/gcc-2.95.1/
2.  Mkdir /u7/objdir
3.  Chdir /u7/objdir
4.  '../gcc-2.95.1/configure --prefix=/u7/installs/gcc-2.95.1 \
        --with-local-prefix=/u7/installs/gcc-2.95.1\
        --with-gxx-include-dir=/u7/installs/gcc-2.95.1/include/g++'
5.  Configure whirrs on for a while, doing its thing...
6.  No errors, normal termination of configure.
7. 'make bootstrap MAKE="make -j 4" -j 4'
8.  This whirrs on for about 15 minutes (on 4 processors, oh yeah!)
9.  A few warnings, but no errors. Normal termination of make.
10. 'make install'
11. Copies files, everything still seems okay.

Now, I changedir to /u7/installs/gcc-2.95.1/, and the binaries are in
/bin, and the libs are in /lib, and everything seems alright, except
there are NO INCLUDE files in /include.  The g++ include files are in
/include/g++, but there are no other headers in this distribution.
This seems a bit puzzling to me, and my stuff tends to fail when I'm
unable to include the necessary files... Hmm..

BTW: I did downlad the full 12.x meg gcc-2.95.1.tar, so don't go
there! :)

Anyone have any ideas?  Is it possible that the install is noting that
I already have include headers somewhere else, so its not installing
them?  They didn't get put in /usr/include, or /usr/local/include, so
I don't know what happened to them or if perhaps they simply weren't
included....

HELP!?!?!?!?! PLEASE!!!!

We've been working on this for days now, its really depressing and a
bit pathetic... :)

---
 John K. McDonald, Jr.      Alcatel, USA

 --
 "I speak for me and not this company"

 TO SPAMMERS:
 Please note important  defininitions:
 The Telephone Consumer Protection Act
 of  1991,    Title   47,   Chapter 5,
 Subchapter II, Section 227.

2. default route, no gw and Linux router

3. Help Compiling GCC 2.95.1 (Please! :))

4. Developer sought

5. OpenServer 5 won't install with Windows 95 -- Please HELP!

6. ALERT! W2000 potentially dangerous in multi-OS environment

7. Win'95 front-end for HylaFAX problem (Help, please!!!)

8. Cannot setup hard-wired Terminal even though I used hints from serial-FAQ

9. gcc won't compile C++ but will compile C, help!

10. gcc/flex cross-compile to linux->dos (win/95)

11. GCC-i2.6.3 compiling (gcc with pentium optimiz's) PLEASE HELP US!!

12. libstdc++-v3 on Solaris/SPARC with GCC 2.95.3

13. gcc 2.95.2 Prebuilt with shared libstdc++.so?