public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: "Jason M'Sadoques" <jsado@mediaone.net>
To: gcc-help@gcc.gnu.org
Subject: Problems building gcc 2.95.3 with libstdc++ 2.90.8
Date: Sat, 04 Aug 2001 07:11:00 -0000	[thread overview]
Message-ID: <200108041411.f74EBXB18831@chmls20.mediaone.net> (raw)

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

             reply	other threads:[~2001-08-04  7:11 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-08-04  7:11 Jason M'Sadoques [this message]
2001-08-05 15:29 ` Alexandre Oliva

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200108041411.f74EBXB18831@chmls20.mediaone.net \
    --to=jsado@mediaone.net \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).