public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Confused about build proceedure srcdir vs objdir
@ 2001-10-26 22:30 Harry Putnam
  2001-10-27  2:14 ` Florian Weimer
  0 siblings, 1 reply; 14+ messages in thread
From: Harry Putnam @ 2001-10-26 22:30 UTC (permalink / raw)
  To: gcc-help

Setup: Redhat Linux 7.1
       controversial gcc-2.96-85 installed
       from stock RH 7.1 rpm

I'm attempting to install from tar.gz source gcc-3.0.2

The configure instructions at http://gcc.gnu.org/install/configure.html
are just a little to jargon riddled for my inexperienced layman eyes.

>> First, we highly recommend that GCC be built into a separate directory
>> than the sources which does not reside within the source tree. This is
>> how we generally build GCC; building where srcdir == objdir should
>> still work, but doesn't get extensive testing; building where objdir
>> is a subdirectory of srcdir is unsupported.

I'm not sure what an `objdir' refers to or what under gcc-3.0.2 is
considered `srcdir'.  Or how one knows when they are outside the
`tree'.  I don't see the familiar `src' subdirectory.

I'm familiar with the common setup that works like this:

Toplevel/src (and a number of other subdirectories)
Where the build is done in Toplevel like the steps below.

All gnu software that I've built here-to-fore, and that would only
number in the teens, used a procedure like this:

   tar xzvf gnu_packgage-1.tar.gz
   cd gnu_package-1
   ./configure [options]
   make [options]
   make install

From the discussion in the cited web page above, I can't tell if they
are describing something radically different or what.

I followed the above outline.  Is it wrong?

Can someone hand hold a bit here and show brief steps as in the above
build proceedure I described, using actual directory names for a
gcc-3.0.2.tar.gz (or other recent source file)?

My first attemp failed and I posted here the fail messages.  No one
has yet responded.  I have a hunch I'm building this differently than
the recommended proceedure so want to get that nailed down before
discussing any more errors. 

PS-In my previous attempt the `make' process lasted a very long time.
I lost track of the exact amount but well over an hour.
Is that normal on  a 400mhz pc?  

^ permalink raw reply	[flat|nested] 14+ messages in thread
[parent not found: <3BDA7B75.119F779D@unitus.it>]
* Re: Confused about build proceedure srcdir vs objdir
@ 2001-10-27  8:08 Paolo Carlini
  0 siblings, 0 replies; 14+ messages in thread
From: Paolo Carlini @ 2001-10-27  8:08 UTC (permalink / raw)
  To: reader; +Cc: gcc-help

Hi Harry,

>Oh, thanks Paolo.  I already posted another `amateur hour' message
before seeing your post.
>What is the significance of `bootstrap'? I didn't notice anything about
that at the config help page.
>Now looking at the `build' instructions ... maybe in there.

Do you know the novel "THE ADVENTURES OF BARON MUNCHHAUSEN"?
"Bootstrap" has to do with lifting yourself in the air by pulling your
own boot-straps!

So, for compilers, you have the problem that after your un-tar you have
to compile your own compiler?!? How to do it? Well, you cannot really do
what MUNCHHAUSEN does in the novel (i.e., you *need* a basic working C
compiler to begin with!) but then, after having built a new C compiler,
the boostrap process uses it to build the others (C++, Fortran, Java,
...). In the meanwhile it is also carried out a sanity check of the
system (this is for another time ;-)

I suggest you to always use "make bootstrap" even if you are confident
that you installed compiler could be used right away to build the new
suite (plain "make" does this). This should be also explained in the
docs.

Cheers,
Paolo.


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

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

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-10-26 22:30 Confused about build proceedure srcdir vs objdir Harry Putnam
2001-10-27  2:14 ` Florian Weimer
2001-10-27 15:10   ` Harry Putnam
2001-10-28  1:13     ` Florian Weimer
2001-10-28  7:25       ` Harry Putnam
2001-10-28  7:37         ` Florian Weimer
2001-10-28  8:05           ` Harry Putnam
2001-10-28  8:58             ` lange92
2001-10-28  8:07           ` John Levon
2001-10-29  9:25             ` Florian Weimer
2001-10-29  4:59         ` John Love-Jensen
2001-10-29 10:10           ` Harry Putnam
     [not found] <3BDA7B75.119F779D@unitus.it>
2001-10-27  4:10 ` Harry Putnam
2001-10-27  8:08 Paolo Carlini

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