This is the mail archive of the java-patches@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]

PATCH: Documentation for downloading and building [lib]gcj


Hi,

Here is an update to the dowloading and snapshot building instructions
that I wrote a while ago.

2000-08-27  Mark Wielaard  <mark@klomp.org>

    * build-snapshot.html: Add instructions for building from CVS.
	Add reminder to build c++ compiler. Mention __dso_handle problem.
	* download.html: Mention prebuild RPMs more prominently. Add pointers
	for building from source and to gcc cvs access instructions. Add an
	entry describing the gcj/libgcj combination that worked for me.

OK to commit?

Cheers,

Mark
Index: build-snapshot.html
===================================================================
RCS file: /cvs/java/htdocs/build-snapshot.html,v
retrieving revision 1.4
diff -u -r1.4 build-snapshot.html
--- build-snapshot.html	2000/07/05 06:07:50	1.4
+++ build-snapshot.html	2000/08/27 21:00:31
@@ -1,6 +1,6 @@
 <html>
 <head>
-<title>How to build GCJ/LIBGCJ snapshots</title>
+<title>How to build GCJ/LIBGCJ from snapshots or cvs</title>
 </head>
 <body bgcolor="white" text="black" link="#0000EE" VLINK="#551A8B" ALINK="red">
 
@@ -9,7 +9,7 @@
 <table border="0" cellpadding="4" width="95%">
         <tr bgcolor="#b0d0ff"> 
           <th align="center"> 
-            <h2>Howto build and run libgcj/gcj snapshots</a>
+            <h2>Howto build and run libgcj/gcj snapshots or cvs</a>
           </th>
         </tr>
 
@@ -17,11 +17,15 @@
 <tr bgcolor="cccccc">
 <td>
 <pre>
-1. Get a GCC snapshots from 
+1a. Get a GCC snapshots from 
 
 <a href="ftp://gcc.cygnus.com/pub/egcs/snapshots/index.html">ftp://gcc.cygnus.com/pub/egcs/snapshots/index.html</a>
 
 They are made about once a week. 
+
+1b. Or get GCC from cvs, see
+
+<a href="http://gcc.gnu.org/cvs.html">http://gcc.gnu.org/cvs.html</a>
 </pre>
 </td>
 </tr>
@@ -29,11 +33,13 @@
 <tr bgcolor="dddddd">
 <td>
 <pre>
-2. Get a Libgcj snapshots from
+2a. Get a Libgcj snapshots from
 
 <a href="ftp://sources.redhat.com/pub/java/snapshot">ftp://sources.redhat.com/pub/java/snapshot</a>
 
 They are made nightly.
+
+2b. Or get Libgcj from cvs, see <a href=download.html#cvs>the download page</a>
 </pre>
 </td>
 </tr>
@@ -84,6 +90,16 @@
 
 <a href="http://gcc.gnu.org/install/index.html">
 http://gcc.gnu.org/install/index.html</a>
+
+Remember that you have to also make a new c++ compiler for gcj to work.
+So if you are not compiling all the supported languages you have to add 
+  --enable-languages=c++,java
+to configure.
+
+If you have a broken gas/bin-utils (such as Debian potato) then you want to
+edit the auto-host.h file and remove the definition of HAVE_GAS_HIDDEN
+after configuring, but before typeing make.
+See <a href=faq.html#5_7>the FAQ</a> for more information.
 </pre>
 </td>
 </tr>
@@ -126,6 +142,14 @@
 
 Make sure you configured both gcj and libgjc with the same thread
 package.
+
+Test if gcj is reading the correct spec files with
+
+ $ gcj -v
+
+The first two lines should indicate that gcj is reading the specs for the
+newly installed gcc and libgcj. If you report a bug, please report the last
+line which gives the exact version of the gcc compiler you just made.
 
 </pre>
 </td>
Index: download.html
===================================================================
RCS file: /cvs/java/htdocs/download.html,v
retrieving revision 1.11
diff -u -r1.11 download.html
--- download.html	2000/07/05 06:07:19	1.11
+++ download.html	2000/08/27 21:00:31
@@ -89,8 +89,8 @@
 </table>
 <br>
 
-The latest development sources are available in two forms: periodic
-snapshots, and directly from the cvs source repository.
+The latest development sources are available in three forms: periodic
+snapshots, prebuild RPMs and directly from the cvs source repository.
 
 <p>
 Note that the current development sources are generally for
@@ -100,6 +100,8 @@
 however, these things should be fixed immediately. Please
 <a href="/cgi-bin/gnatsweb.pl?user=guest&password=guest&database=java&cmd=login">submit a problem report</a> if you are
 using the development sources and run into such a problem.
+If you are going to build from source you want to read the
+<a href=faq.html#3_0>Build Issues FAQ</a>.
 
 <p>
 <h3>Snapshots</h3>
@@ -110,10 +112,20 @@
 <a href="ftp://sources.redhat.com/pub/java/snapshot">ftp://sources.redhat.com/pub/java/snapshot</a>.
 
 <h3>RPM</h3>
-RPMs are made available occasionally.  The are available from
+RPMs are made available occasionally by Anthony Green.  The are available from
 <a href="ftp://sources.redhat.com/pub/java/rpm/">ftp://sources.redhat.com/pub/java/rpm/</a>.
 <p>
+Everything will install under /usr/local/ag.  The source RPM unpacks
+as a checked out anonymous source tree  with GCC and libgcj unified
+under a single root.    ftp access to sources is pretty tight, so
+you'll probably want to wait 'til it has propagated to the various
+<a href=http://sources.redhat.com/mirrors.html>Mirror Sites</a>.
+Debian users can use <code>alien --to-deb</code> to convert the rpms.
+<p>
+You have to add <code>/usr/local/ag/bin</code> to your <code>PATH</code>
+and add <code>/usr/local/ag/lib</code> to your <code>LD_LIBRARY_PATH</code>.
 
+<a name=cvs>
 <h3>cvs</h3> 
 The easiest way to get libgcj is to check it out from the
 anonymous cvs repository.  Here's how:
@@ -124,6 +136,9 @@
 cvs -z9 -d:pserver:anoncvs@anoncvs.cygnus.com:/cvs/java co libgcj
 </pre>
 </small>
+<p>
+More information on anonymous read-only cvs access for gcc can be found on
+<a href=http://gcc.gnu.org/cvs.html>http://gcc.gnu.org/cvs.html</a>.
 
 <h3>cvsweb</h3>
 
@@ -175,7 +190,7 @@
 <tr valign=top>
 <td>gcc-2.95.2 with <a href="http://waitaki.otago.ac.nz/~bryce/gcj/">patches from Bryce McKinlay</a></td>
 <td>libgcj from CVS from March 02, 2000 00:00:00
-(Newer versions may not work with gcc-2.95.2 due to later
+(Newer versions do not work with gcc-2.95.2 due to later
 changes to libgcj to support throw/catch in CNI.)
 </td>
 <td>Trying to use this to get gij/interpreter support with stable gcj.
@@ -197,6 +212,15 @@
 for more details on downloading and using this release.</td>
 <td><a href="mailto:mdw@cs.berkeley.edu">Matt Welsh</a></td>
 <td>March 21, 2000</td>
+</tr>
+
+<tr valign=top>
+<td>gcj from CVS from June 6, 2000</td>
+<td>libgcj from CVS from June 6, 2000</td>
+</td>
+<td>This combination supports compiling inner classes from java source.</td>
+<td><a href="mailto:mark@klomp.org">Mark Wielaard</a></td>
+<td>June 12, 2000</td>
 </tr>
 
 </table>

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