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

Web pages: building snapshots or cvs


Hi,

I have added everything that I learned from building gcj and libgcj to
the download and build-snapshot pages. I hope this makes it easier for
new people to build from source.

Cheers,

Mark

2000-06-12  Mark Wielaard <mark@klomp.org>
	* build-snapshot.html: also explain cvs, use of --enable-languages,
	and warn for broken gas/bin-utils
	* download.html: add more info for rpms, info for gcc cvs
	and add my working configuration

? webpages.diff
Index: build-snapshot.html
===================================================================
RCS file: /cvs/java/htdocs/build-snapshot.html,v
retrieving revision 1.3
diff -u -u -r1.3 build-snapshot.html
--- build-snapshot.html	2000/03/13 17:23:06	1.3
+++ build-snapshot.html	2000/06/12 19:51:06
@@ -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://sourceware.cygnus.com/pub/java/snapshot">ftp://sourceware.cygnus.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.8
diff -u -u -r1.8 download.html
--- download.html	2000/04/23 05:00:31	1.8
+++ download.html	2000/06/12 19:51:06
@@ -87,8 +87,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
@@ -98,6 +98,8 @@
 however, these things should be fixed immediately. Please
 <a href="http://sourceware.cygnus.com/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>
@@ -108,10 +110,20 @@
 <a href="ftp://sourceware.cygnus.com/pub/java/snapshot">ftp://sourceware.cygnus.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://sourceware.cygnus.com/pub/java/rpm/">ftp://sourceware.cygnus.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 sourceware is pretty tight, so
+you'll probably want to wait 'til it has propagated to the various
+<a href=http://sourceware.cygnus.com/mirrors.html>sourceware mirrors</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:
@@ -122,6 +134,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>
 
@@ -173,7 +188,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.
@@ -195,6 +210,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]