public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Installing GCC 3.0 on Redhat
@ 2001-10-02 19:42 Premetz, Dan (MED)
  2001-10-02 22:19 ` Frank Schafer
  2001-10-02 22:50 ` Alexandre Oliva
  0 siblings, 2 replies; 5+ messages in thread
From: Premetz, Dan (MED) @ 2001-10-02 19:42 UTC (permalink / raw)
  To: 'gcc-help@gcc.gnu.org'

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



################################################################
Dan Premetz, W-832              | Email: premetz@mr.med.ge.com
GE Medical Systems              | Phone: 262-521-6581
3200 North Grandview Boulevard  | Pager: 414-515-2460
Waukesha, Wisconsin 53188       | Fax:   262-521-6409
################################################################

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

* Re: Installing GCC 3.0 on Redhat
  2001-10-02 19:42 Installing GCC 3.0 on Redhat Premetz, Dan (MED)
@ 2001-10-02 22:19 ` Frank Schafer
  2001-10-02 22:50 ` Alexandre Oliva
  1 sibling, 0 replies; 5+ messages in thread
From: Frank Schafer @ 2001-10-02 22:19 UTC (permalink / raw)
  To: Premetz, Dan (MED); +Cc: 'gcc-help@gcc.gnu.org'

"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
>
> ################################################################
> Dan Premetz, W-832              | Email: premetz@mr.med.ge.com
> GE Medical Systems              | Phone: 262-521-6581
> 3200 North Grandview Boulevard  | Pager: 414-515-2460
> Waukesha, Wisconsin 53188       | Fax:   262-521-6409
> ################################################################

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

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

* Re: Installing GCC 3.0 on Redhat
  2001-10-02 19:42 Installing GCC 3.0 on Redhat Premetz, Dan (MED)
  2001-10-02 22:19 ` Frank Schafer
@ 2001-10-02 22:50 ` Alexandre Oliva
  2001-10-03  9:27   ` help on cross-compile applications Ming Ouyang
  1 sibling, 1 reply; 5+ messages in thread
From: Alexandre Oliva @ 2001-10-02 22:50 UTC (permalink / raw)
  To: Premetz, Dan (MED); +Cc: 'gcc-help@gcc.gnu.org'

On Oct  2, 2001, "Premetz, Dan (MED)" <Daniel.Premetz@med.ge.com> wrote:

> 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?

It doesn't.  It got past `stage 1' and started building target
libraries.  The C++ language had been enabled at configure time, so
the top-level make attempted to configure and build the target library
after building the compiler.

LANGUAGES="lang lang lang..." is deprecated.  Use
--enable-languages=lang,lang,lang... at configure time instead.

-- 
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] 5+ messages in thread

* help on cross-compile applications
  2001-10-02 22:50 ` Alexandre Oliva
@ 2001-10-03  9:27   ` Ming Ouyang
  2001-10-08 17:22     ` Michael Eager
  0 siblings, 1 reply; 5+ messages in thread
From: Ming Ouyang @ 2001-10-03  9:27 UTC (permalink / raw)
  To: gcc-help; +Cc: Alexandre Oliva

Hi,
I installed gcc 3.0 for mips and newlib 1.9.0 on my
redhat box, and I have compiled linux kernel 2.4.3 for
mips successfully, but when I tried to compile some
simple applications, I always got error messages like
"can't find xxx.h", does that means newlib is not
enough and I should install glibc or something else?
If I need glibc, which version is the best?
Thanks for any help so much.

Ming

__________________________________________________
Do You Yahoo!?
Listen to your Yahoo! Mail messages from any phone.
http://phone.yahoo.com

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

* Re: help on cross-compile applications
  2001-10-03  9:27   ` help on cross-compile applications Ming Ouyang
@ 2001-10-08 17:22     ` Michael Eager
  0 siblings, 0 replies; 5+ messages in thread
From: Michael Eager @ 2001-10-08 17:22 UTC (permalink / raw)
  To: Ming Ouyang; +Cc: gcc-help, Alexandre Oliva

Ming Ouyang wrote:
> 
> Hi,
> I installed gcc 3.0 for mips and newlib 1.9.0 on my
> redhat box, and I have compiled linux kernel 2.4.3 for
> mips successfully, but when I tried to compile some
> simple applications, I always got error messages like
> "can't find xxx.h", does that means newlib is not
> enough and I should install glibc or something else?
> If I need glibc, which version is the best?
> Thanks for any help so much.

Newlib is for applications which do not use an OS.  

You need to build a bootstrap version of gcc, build glibc with
the bootstrap-gcc, then build a final version of gcc.  You also
need the kernel headers from linux to build glibc.  Use the glibc-2.2.3.
Read the CrossGCC FAQ.

--
Michael Eager     eager@mvista.com	408-328-8426	
MontaVista Software, Inc. 1237 E. Arques Ave., Sunnyvale, CA  94085

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

end of thread, other threads:[~2001-10-08 17:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-02 19:42 Installing GCC 3.0 on Redhat Premetz, Dan (MED)
2001-10-02 22:19 ` Frank Schafer
2001-10-02 22:50 ` Alexandre Oliva
2001-10-03  9:27   ` help on cross-compile applications Ming Ouyang
2001-10-08 17:22     ` Michael Eager

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).