public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Problems building gcc 2.95.3 with libstdc++ 2.90.8
@ 2001-08-04  7:11 Jason M'Sadoques
  2001-08-05 15:29 ` Alexandre Oliva
  0 siblings, 1 reply; 2+ messages in thread
From: Jason M'Sadoques @ 2001-08-04  7:11 UTC (permalink / raw)
  To: gcc-help

I'm trying to compile gcc 2.95.3 with libstdc++ 2.90.8, by following the install directions contained with the source.
I'm using gcc 2.95.2 on an i386 Linux machine to do the compilation. These are the exact steps that I took, as per the
directions in the gccsrc/install dir and libstdc++/docs dir:

tar -yxvf downloads/gcc-2.95.3.tar.bz2
cd gcc-2.95.3/
mv libstdc++ libstdc++-v2
mv libio libio-v2
tar -yxvf ../downloads/libstdc++-2.90.8.tar.bz2
ln -s libstdc++-2.90.8 libstdc++
cd ..
mkdir buildgcc
cd buildgcc
../gcc-2.95.3/configure --prefix=/usr
make bootstrap

Also, my environment variables are:
CFLAGS=-O3 -march=k6
CXXFLAGS=-O3 -march=k6

I also made sure that I have a new version of binutils (2.10). I have tried a couple of times, in case I may be typing it in
wrong but I keep getting the same error. It compiles for a while, maybe an hour and then I get this error:

c1plus: warnings being treated as errors
../../../../gcc-2.95.3/libstdc++/bits/string.tcc: In method `std::basic_string<char,std::char_traits<char>,std::allocator<char> >::basic_string(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &, unsigned int, unsigned int = std::basic_string<_CharT,_Traits,_Alloc>::npos)':
../../../../gcc-2.95.3/libstdc++/src/string-inst.cc:64:   instantiated from here
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:712: warning: can't inline call to `static char * std::basic_string<char,std::char_traits<char>,std::allocator<char> >::_S_construct<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 *,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >, const std::allocator<char> &)'
../../../../gcc-2.95.3/libstdc++/bits/string.tcc:184: warning: called from here
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h: In method `class std::basic_string<char,std::char_traits<char>,std::allocator<char> > & std::basic_string<char,std::char_traits<char>,std::allocator<char> >::append(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)':
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:451:   instantiated from `std::basic_string<char,std::char_traits<char>,std::allocator<char> >::operator +=(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &)'
../../../../gcc-2.95.3/libstdc++/src/string-inst.cc:64:   instantiated from here
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:675: warning: can't inline call to `class std::basic_string<char,std::char_traits<char>,std::allocator<char> > & std::basic_string<char,std::char_traits<char>,std::allocator<char> >::replace<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 *,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 *,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >)'
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:470: warning: called from here
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h: In method `class std::basic_string<char,std::char_traits<char>,std::allocator<char> > & std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign(const std::basic_string<char,std::char_traits<char>,std::allocator<char> > &, unsigned int, unsigned int)':
../../../../gcc-2.95.3/libstdc++/src/string-inst.cc:64:   instantiated from here
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:541: warning: can't inline call to `class std::basic_string<char,std::char_traits<char>,std::allocator<char> > & std::basic_string<char,std::char_traits<char>,std::allocator<char> >::assign<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 *,std::basic_string<char,std::char_traits<char>,std::allocator<char> > >)'
../../../../gcc-2.95.3/libstdc++/bits/basic_string.h:523: warning: called from here
make[4]: *** [stringMAIN.lo] Error 1
make[4]: Leaving directory `/usr/src/buildgcc/i586-pc-linux-gnu/libstdc++/src'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/usr/src/buildgcc/i586-pc-linux-gnu/libstdc++'
make[2]: *** [all-recursive-am] Error 2
make[2]: Leaving directory `/usr/src/buildgcc/i586-pc-linux-gnu/libstdc++'
make[1]: *** [all-target-libstdc++] Error 2
make[1]: Leaving directory `/usr/src/buildgcc'
make: *** [bootstrap] Error 2

Any help in getting gcc to compile fully would be appreciated.

Thanks
--
MACINTOSH = Machine Always Crashes If Not The Operating System Hangs
"Life would be so much easier if we could just look at the source code." - Dave Olson

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Problems building gcc 2.95.3 with libstdc++ 2.90.8
  2001-08-04  7:11 Problems building gcc 2.95.3 with libstdc++ 2.90.8 Jason M'Sadoques
@ 2001-08-05 15:29 ` Alexandre Oliva
  0 siblings, 0 replies; 2+ messages in thread
From: Alexandre Oliva @ 2001-08-05 15:29 UTC (permalink / raw)
  To: Jason M'Sadoques; +Cc: gcc-help

On Aug  4, 2001, "Jason M'Sadoques" <jsado@mediaone.net> wrote:

> c1plus: warnings being treated as errors

I guess this warning would have been harmless if it were not for
-Werror being in the command line.  Was it you who added it?  If not,
try editing <target>/libstdc++-v3/Makefile and removing -Werror from
wherever you find it.

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist    *Please* write to mailing lists, not to me

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-08-05 15:29 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-08-04  7:11 Problems building gcc 2.95.3 with libstdc++ 2.90.8 Jason M'Sadoques
2001-08-05 15:29 ` Alexandre Oliva

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).