public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Installing GCC: Some more elementary questions.
@ 2001-11-09 17:08 kabir.patel
  2001-11-09 22:32 ` Rupert Wood
  0 siblings, 1 reply; 4+ messages in thread
From: kabir.patel @ 2001-11-09 17:08 UTC (permalink / raw)
  To: help-gcc




Thanks for the last set of responses. I have ftp'd the gcc "core" files, and
uncompressed them. I'm a bit confused about some of the instructions in the
"Installing GCC: Configuration" documentation found at
http://gcc.gnu.org/install/configure.html

Here are my questions:

a) It states "We use srcdir to refer to the toplevel source directory for GCC;
we use objdir to refer to the toplevel build/object directory."

Is srcdir the place where I copied the uncompressed files into?
What files initially go into objdir?

b) It also states "If you obtained the sources via CVS, srcdir must refer to the
top gcc directory, the one where the MAINTAINERS can be found, and not its gcc
subdirectory, otherwise the build will fail. "

What does CVS stand for?
What does the MAINTAINERS mean?

c) Further it states "First, we highly recommend that GCC be built into a
separate directory than the sources which does not reside within the source
tree."

What does the sources mean? Is this just the set of uncompressed files I copied
over?
What does it mean by source tree?

d) If I just want a simple C compiler do I need to use the "options" and
"target" specifications mentioned below?

   % mkdir objdir
   % cd objdir
   % srcdir/configure [options] [target]

Many thanks
Kabir


*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.


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

* RE: Installing GCC: Some more elementary questions.
  2001-11-09 17:08 Installing GCC: Some more elementary questions kabir.patel
@ 2001-11-09 22:32 ` Rupert Wood
  0 siblings, 0 replies; 4+ messages in thread
From: Rupert Wood @ 2001-11-09 22:32 UTC (permalink / raw)
  To: kabir.patel; +Cc: gcc-help

Kabir Patel wrote:

*Beware* that you need an existing C compiler to build the GCC sources.
If you do not already have a C compiler on your system then you will
need a binary distribution of GCC. Follow the 'binaries' link on
http://gcc.gnu.org/.

> a) It states "We use srcdir to refer to the toplevel source
> directory for GCC; we use objdir to refer to the toplevel
> build/object directory."
> 
> Is srcdir the place where I copied the uncompressed files into?

Perhaps: it's the 'gcc-3.02' directory (or similar) that was generated
by the untar operation. (I'm not sure why you'd have to copy them -
unless you're doing a binutils / toolchain merge on a system without
hard links, and I doubt you are.)

> What files initially go into objdir?

Nothing; the configure step generates files here.

> b) It also states "If you obtained the sources via CVS, srcdir must
> refer to the top gcc directory, the one where the MAINTAINERS can
> be found, and not its gcc subdirectory, otherwise the build will
> fail. "

(If you don't understand this, this probably doesn't apply.)

> What does CVS stand for?

Concurrent Versions System. See http://www.cvshome.org/. It's the source
control system used for GCC development.

> What does the MAINTAINERS mean?

Perhaps "the MAINTAINERS" is unclear. MAINTAINERS is a file that
contains a list of people with permissions to make changes to the GCC
CVS source repository. You'll find it in srcdir.

> c) Further it states "First, we highly recommend that GCC be built
> into a separate directory than the sources which does not reside
> within the source tree."
> 
> What does the sources mean? Is this just the set of uncompressed
> files I copied over?

Yes - these are the source files for the compiler (which are compiled
into assembler files, which are assembled into binary object files,
which are linked to form a binary executable).

> What does it mean by source tree?

It means srcdir, its subdirectories, all of their subdirectories, etc.
I.e. you should not make 'objdir' a subdirectory of 'srcdir'.

> d) If I just want a simple C compiler do I need to use the "options"
> and "target" specifications mentioned below?
> 
>    % mkdir objdir
>    % cd objdir
>    % srcdir/configure [options] [target]

You're expected to substitute those with the relevant options and target
name for your own situation.

To see a list of available compile options, you would run
'srcdir/configure --help' in the above example. Unless you're going to
install the compiler as root, you at least want to specify '--prefix' to
point to somewhere in or beneath your own home directory. You may also
want to specify '--enable-threads'. If you just want a plain C compiler,
you can specify '--enable-languages=c' or '--enable-languages=c++' to
build C and C++. If you don't specify a language set, it will probably
attempt to build compilers for C, C++, Objective C, Java and Fortran 77.

If you're building a native compiler (i.e. to be run on and to compile
for the machine you're building it on) then you don't need to specify
target.

Hope that helps,
Rup.

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

* RE: Installing GCC: Some more elementary questions.
  2001-11-11 10:50 kabir.patel
@ 2001-11-11 16:02 ` Rupert Wood
  0 siblings, 0 replies; 4+ messages in thread
From: Rupert Wood @ 2001-11-11 16:02 UTC (permalink / raw)
  To: kabir.patel; +Cc: gcc-help

Kabir Patel wrote:

> >>*Beware* that you need an existing C compiler to build the GCC
> >>sources. If you do not already have a C compiler on your system
> >>then you will need a binary distribution of GCC. Follow the
> >>'binaries' link on http://gcc.gnu.org/.
> 
> I have never installed a gnu C compiler, but have installed a
> SUNWspro 3.0.1 C compiler. Do I still need the binary distribution?

No, you should be able to build it yourself with that.

> I navigated to the binaries section of the web site which took me to
> http://www.sunfreeware.com/. I saw "gcc-3.0.2-sol8-sparc-local.gz".
> Is this what I require?

You could install that package instead of building GCC yourself;
however, you get greater flexibility if you do build it yourself. (On
the other hand, it's more effort.)

Rup.

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

* RE: Installing GCC: Some more elementary questions.
@ 2001-11-11 10:50 kabir.patel
  2001-11-11 16:02 ` Rupert Wood
  0 siblings, 1 reply; 4+ messages in thread
From: kabir.patel @ 2001-11-11 10:50 UTC (permalink / raw)
  To: me; +Cc: gcc-help




>>*Beware* that you need an existing C compiler to build the GCC sources.
>>If you do not already have a C compiler on your system then you will
>>need a binary distribution of GCC. Follow the 'binaries' link on
>>http://gcc.gnu.org/.

I have never installed a gnu  C compiler, but have installed a SUNWspro 3.0.1 C
compiler. Do I still need the binary distribution?

I navigated to the binaries section of the web site which took me to
http://www.sunfreeware.com/. I saw "gcc-3.0.2-sol8-sparc-local.gz".
Is this what I require?

Please let me know.

Thanks
Kabir


*******************Internet Email Confidentiality Footer*******************


Privileged/Confidential Information may be contained in this message.  If you
are not the addressee indicated in this message (or responsible for delivery of
the message to such person), you may not copy or deliver this message to anyone.
In such case, you should destroy this message and kindly notify the sender by
reply email. Please advise immediately if you or your employer does not consent
to Internet email for messages of this kind.  Opinions, conclusions and other
information in this message that do not relate to the official business of my
firm shall be understood as neither given nor endorsed by it.


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

end of thread, other threads:[~2001-11-20 15:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-11-09 17:08 Installing GCC: Some more elementary questions kabir.patel
2001-11-09 22:32 ` Rupert Wood
2001-11-11 10:50 kabir.patel
2001-11-11 16:02 ` Rupert Wood

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