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: Confused about build proceedure srcdir vs objdir


Florian Weimer <fw@deneb.enyo.de> writes:

> Harry Putnam <reader@newsguy.com> writes:
>
>>    We use srcdir to refer to the toplevel directory of GCC package.
>>    (Top level of unpacked GCC.tar.gz)
>> 
>>    We use `builddir' to refer to a user created sub-directory under
>>    the top level directory of GCC package.  We recommend running the
>>    compile from `builddir'.
>
> Certainly not! objdir/builddir may not be a directory under srcdir,
> otherwise the build process will fail in very obscure ways.  (Yes,
> I've made this mistake before.)

Yikes, I meant the other way round?  In the configure.html it
appears as if srcdir is a subdirectory of objdir:

   To configure GCC:
   % mkdir objdir
   % cd objdir
   % srcdir/configure [options] [target]

If one were to cd into objdir and call: `srcdir/configure' then srcdir
would need to be a subdir of objdir.  Is this correct? If so, can we put
this more clearly by just saying builddir is a level above gcc-3.0.2?
or:

mkdir working_dir
cd working_dir
tar xzvf /path/to/gcc-3.0.2.tar.gz
gcc-3.0.2/configure [options]
(same as what is now in configure.html but with concreteness added)

Or:
mkdir working_dir
tar zxvf /path/to/gcc-3.0.2.tar.gz
cd working_dir
../gcc-3.0.2/configure [options]

Where working_dir is side by side with gcc-3.0.2

> Any other suggestions for rewording this section?


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