This is the mail archive of the java-discuss@sources.redhat.com mailing list for the Java project.


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

gcj and gcc build instructions inconsistent


The Gcj build instruction
(http://sources.redhat.com/java/build-snapshot.html) say that the
build directory should be a sub-directory of the source directory:

   $ cd egcs
   $ mkdir objdir
   $ cd objdir
   $ ../configure --enable-threads=posix ...

The Gcc build instructions (http://gcc.gnu.org/install/configure.html)
say the following:

  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.

Notice the last sentence - the recommended Gcj build procedure is
unsupported!

I suggest renaming "compile" by "gcc-src" or something similar,
and changing "objdir" to "gcc-build".  Change part 5 to:

   $ GCCSRCDIR=`cd gcc-src; pwd`
   $ mkdir gcc-build
   $ cd gcc-build
   $ ${GCCSRCDIR}/configure --enable-threads=posix ... etc

Also,  http://sources.redhat.com/java/build-snapshot.html
needs to have "egcs" replaced by "gcc" (many places).
-- 
	--Per Bothner
per@bothner.com   http://www.bothner.com/~per/

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