This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


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

RE: Installing GCC 3.0 on Redhat



Frank:

> Thanks!  I've been putzing with this for over a week.  After doing as
> you wrote, everything compiled OK.
> 
> -DLP
> 
> 
> ----------
> From: 	Frank Schafer
> Reply To: 	frank.schafer@setuza.cz
> Sent: 	Wednesday, October 3, 2001 12:33 AM
> To: 	Premetz, Dan (MED)
> Cc: 	'gcc-help@gcc.gnu.org'
> Subject: 	Re: Installing GCC 3.0 on Redhat
> 
> <<File: frank.schafer.vcf>>
> "Premetz, Dan (MED)" wrote:
> 
> > OK.  I purchased the "Using and Porting GNU CC" from the Free
> Software
> > Foundation.  I thought I knew what I was doing from reading the
> book,
> > until I actually tried to implement what I'd read.
> >
> > I run the "configure" script for GCC 3.0.  This does a slew of
> "checks".
> >
> > All OK.  I am in the "gcc-3.0" directory when I type "make
> LANGUAGES=c".
> >
> > The make compiles for a couple of minutes, then runs a bunch of
> "link"
> > commands, then another bunch of "checks".
> >
> > Problem: During the "check" phase of the "stage 1" compilation, I
> get
> > the
> > following error...
> >
> > "checking for g++ that will successfully compile libstdc++-v3...
> > configure: error: please upgrade to GCC 3.0 or above
> > make: *** [configure-target-libstdc++-v3] Error 1"
> >
> > I thought the "LANGUAGES=c" argument on the make line would only
> build
> > the C compiler stuff.  Why does it care about the C++ stuff during
> the
> > stage 1 compilation?
> >
> > I'm stuck.  Please help.
> >
> > -Dan Premetz
> 
> 
> 
> Hi Dan,
> 
> You shouldn't build or configure from the gcc-3.0 directory. The docs
> complain against this.
> in Your src directory unpack the distro and create a build directory,
> that
> it looks like this:
> /usr/src # ls
> gcc-3.0    build
> /usr/src #
> for instance
> Change to the build directory and do a:
> /usr/src/build # ../gcc-3.0/configure ... --enable-languages=c,c++ ...
> ...
> /usr/src/build # make bootstrap
> /usr/src/build # make install
> This all can be found in the /usr/src/gcc-3.0/{README,INSTALL} files
> and
> should solve
> Your problems.
> 
> Hope this helps
> Frank
> 
> 
> 


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