This is the mail archive of the
java-patches@sources.redhat.com
mailing list for the Java project.
[PATCH] Merged tree updates in web pages.
- To: java-patches at sources dot redhat dot com
- Subject: [PATCH] Merged tree updates in web pages.
- From: Alexandre Petit-Bianco <apbianco at cygnus dot com>
- Date: Tue, 12 Dec 2000 19:18:46 -0800
- Reply-to: apbianco at cygnus dot com
Here's a patch to update the web page with references to the merged
tree. I reorganized in build-snapshot.html to only bit of information
we have on how to build things, since libgcj2.html and gcj2.html are
terribly outdated (and should probably be removed?)
I also removed mention of our home made snapshots since the gcc ones
are already picking libgcj.
What do you think?
./A
2000-12-12 Alexandre Petit-Bianco <apbianco@cygnus.com>
* build-snapshot.html: Reorganized to account for the unified tree.
* download.html: Mention unified tree. Snapshots, cvs and cvs web
access info modified.
* faq.html: 1_4: Libgcj is part of gcc. 4_7: mention unified tree.
* index.html: Fastjar replaces zip.
Index: build-snapshot.html
===================================================================
RCS file: /cvs/java/htdocs/build-snapshot.html,v
retrieving revision 1.6
diff -u -p -r1.6 build-snapshot.html
--- build-snapshot.html 2000/10/17 19:42:06 1.6
+++ build-snapshot.html 2000/12/13 02:09:15
@@ -17,29 +17,31 @@
<tr bgcolor="cccccc">
<td>
<pre>
-1a. Get a GCC snapshots from
+General gcj download information can be found <A HREF="download.html">here</A>.
-<a href="ftp://gcc.cygnus.com/pub/egcs/snapshots/index.html">ftp://gcc.cygnus.com/pub/egcs/snapshots/index.html</a>
+1a. Get a GCC snapshots from:
+ <a href="http://gcc.gnu.org/snapshots.html">ftp://ftp.freesoftware.com/pub/sourceware/gcc/snapshots/</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>
-<a href="http://gcc.gnu.org/cvs.html">http://gcc.gnu.org/cvs.html</a>
+Where ever you get GCC from, you also get Libgcj. There is no need for
+you get Libgc from an other cvs or snapshot repository.
</pre>
+
</td>
</tr>
<tr bgcolor="dddddd">
<td>
<pre>
-2a. Get a Libgcj snapshots from
+2. Make a compile directory
-<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>
+ $ mkdir compile
</pre>
</td>
</tr>
@@ -47,9 +49,13 @@ They are made nightly.
<tr bgcolor="cccccc">
<td>
<pre>
-3. Make a compile directory
+3. Move the snapshot into the compile dir, e.g.
- $ mkdir compile
+ $ cd compile
+ $ mv ../egcs-20001211.tar.gz .
+ $ gunzip *.gz
+ $ tar xfv *.tar
+ $ ln -s egcs-20001211 egcs
</pre>
</td>
</tr>
@@ -57,52 +63,47 @@ They are made nightly.
<tr bgcolor="dddddd">
<td>
<pre>
-4. Move the snapshots into the compile dir, e.g.
+4. Tell the build system you want to build libgcj
- $ cd compile
- $ mv ../egcs-19991110.tar.gz .
- $ mv ../libgcj-snapshot-1999-11-12.tar.gz .
- $ gunzip *.gz
- $ tar xfv *.tar
- $ ln -s egcs-19991102 egcs
- $ ln -s libgcj-snapshot-1999-11-12 libgcj
-</pre>
-</td>
-</tr>
+ Have a look at the toplevel configure.in (egcs/configure.in) and
+ make sure that the variable `noconfigdirs' isn't assigned to
+ something (like target-libjava or ${libgcj}.)
+</pre></td></tr>
<tr bgcolor="cccccc">
<td>
<pre>
-5. Compile and install egcs/gcj
+5. Compile and install egcs/gcj/libgcj
$ cd egcs
$ mkdir objdir
$ cd objdir
$ ../configure --enable-threads=posix --prefix=/home/joerg/gcc \
- --enable-libstdcxx-v3 --with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld
+ --enable-shared --enable-java-gc=boehm --disable-new-gxx-abi \
+ --with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld
$ make bootstrap
+ $ make
$ make install
-The "--enable-libstdcxx-v3" is now required to build libgcj, because
-otherwise you wont get a libsupc++.
+The "--disable-new-gxx-abi" is still required to build libgcj, until
+Java gets compatible with the new C++ ABI.
If you compile under Linux you could omit the last two options. Under
-Solaris you'll need them. If you omit '--prefix' the compiled source will
-be installed under /usr/local. For more information about installing
-egcs and/or configuration options see:
+Solaris you'll need them. If you omit '--prefix' the compiled source
+will be installed under /usr/local. For more information about
+installing egcs and/or configuration options see:
-<a href="http://gcc.gnu.org/install/index.html">
-http://gcc.gnu.org/install/index.html</a>
+ <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.
+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>
@@ -110,61 +111,12 @@ See <a href=faq.html#5_7>the FAQ</a> for
<tr bgcolor="dddddd">
<td>
<pre>
-6. Set the Path to the newly installed gcc
-
- $ setenv PATH /home/joerg/gcc/bin:$PATH
-
-Be sure to use the path with you gave the configure script
-with '--prefix'.
+6. Adjust your environment
-Test the existence with
+Reflect your choice of --prefix value to your environment. It depends
+on which shell you're running. For csh compatible shells, edit a file
+env.csh:
- $ gcj -v
-</pre>
-</td>
-</tr>
-
-<tr bgcolor="cccccc">
-<td>
-<pre>
-7. Compile and install libgcj
-
- $ cd ../libgcj
- $ mkdir objdir
- $ cd objdir
- $ ../configure --enable-threads=posix --prefix=/home/joerg/gcc \
- --enable-java-gc=boehm --with-as=/opt/gnu/bin/as --with-ld=/opt/gnu/bin/ld
-
-Again, the last two options are needed for Solaris.
-
-Be sure to use the same prefix option as you did for gcc, otherwise
-gcj won't be able to find the special files it needs from libgcj.
-
- $ make
- $ make install
-
-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>
-</tr>
-
-<tr bgcolor="dddddd">
-<td>
-<pre>
-8. Adjust your environment
-
-Edit a file env.csh:
-
setenv PATH /home/joerg/gcc/bin:$PATH
setenv LD_LIBRARY_PATH /home/joerg/gcc/lib
@@ -173,10 +125,10 @@ setenv LD_LIBRARY_PATH /home/joerg/gcc/l
</td>
</tr>
-<tr bgcolor="dddddd">
+<tr bgcolor="cccccc">
<td>
<pre>
-9. Edit a file HelloWorld.java
+7. Edit a file HelloWorld.java
public class HelloWorld {
public static void main(String [] args) {
@@ -187,10 +139,10 @@ setenv LD_LIBRARY_PATH /home/joerg/gcc/l
</td>
</tr>
-<tr bgcolor="cccccc">
+<tr bgcolor="dddddd">
<td>
<pre>
-10. Compile and run HelloWorld
+8. Compile and run HelloWorld
$ gcj --main=HelloWorld -o HelloWorld HelloWorld.java
$ ./HelloWorld
Index: download.html
===================================================================
RCS file: /cvs/java/htdocs/download.html,v
retrieving revision 1.14
diff -u -p -r1.14 download.html
--- download.html 2000/11/30 04:05:19 1.14
+++ download.html 2000/12/13 02:09:16
@@ -54,24 +54,19 @@ i
</table>
<br>
-The source distribution is provided in two parts: the compiler, gcj, and the
-runtime, libgcj.
+The current source release is <b>still</b> provided in two parts: the
+compiler, gcj, and the runtime, libgcj. Some time in the future, a
+single source release of gcc will contain everything you need.
<p>
Gcj is part of the Gnu Compiler Collection, GCC. Follow the links on
-<a
-href="http://gcc.gnu.org/releases.html">http://gcc.gnu.org/releases.html</a>
+<a href="http://gcc.gnu.org/releases.html">http://gcc.gnu.org/releases.html</a>
to download the compiler. You will need either the full distribution,
or each of the Core Compiler, C++ and Java distributions.
-
<p>
-
-The most current official release of libgcj is 2.95.1. Libgcj 2.95.1 is available
-from
+The most current official release of libgcj is 2.95.1. Libgcj 2.95.1
+is available from
<a href="ftp://sources.redhat.com/pub/java/libgcj-2.95.1.tar.gz">
-ftp://sources.redhat.com/pub/java/libgcj-2.95.1.tar.gz
-</a>
-
-
+ ftp://sources.redhat.com/pub/java/libgcj-2.95.1.tar.gz </a>
<p>
<table border="0" cellpadding="4" width="95%">
@@ -99,11 +94,11 @@ If you are going to build from source yo
<p>
<h3>Snapshots</h3>
-GCC snapshots are made about once a week. They are available from
-<a href="http://gcc.gnu.org/snapshots.html">http://gcc.gnu.org/snapshots.html</a>.
+Snapshots are made about once a week. They are available from
+<a href="http://gcc.gnu.org/snapshots.html">
+http://gcc.gnu.org/snapshots.html</a>. Starting from 12/11/2000, they
+contain everything you need (compiler + java runtime.)
<p>
-Libgcj snapshots are made nightly, and are available from
-<a href="ftp://sources.redhat.com/pub/java/snapshot">ftp://sources.redhat.com/pub/java/snapshot</a>.
<h3>RPM</h3>
<UL>
@@ -129,24 +124,39 @@ and add <code>/usr/local/ag/lib</code> t
<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:
+
+The easiest way to get libgcj is to check it out from the gcc cvs
+repository. Here's how perform an anonymous <A
+HREF="http://gcc.gnu.org/cvs.html">read-only</A> CVS access:
+
<small>
<pre>
-cvs -d:pserver:anoncvs@anoncvs.cygnus.com:/cvs/java login
+cvs -d:pserver:anoncvs@gcc.gnu.org:/cvs/gcc login
(password is ``anoncvs'')
-cvs -z9 -d:pserver:anoncvs@anoncvs.cygnus.com:/cvs/java co libgcj
+cvs -z9 -d:pserver:anoncvs@gcc.gnu.org:/cvs/gcc co gcc
</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>.
+Here's how to perform a <A HREF="http://gcc.gnu.org/cvswrite.html">
+read-write</A> CVS access, provided that you're were givin a account
+on <tt>gcc.gnu.org</tt>:
+
+<small>
+<pre>
+cvs -z 9 -d :ext:username@gcc.gnu.org:/cvs/gcc co gcc
+</pre>
+</small>
+
<h3>cvsweb</h3>
-You can also view the libgcj <a
-href="/cgi-bin/cvsweb.cgi/libgcj/?cvsroot=java">cvs
-archive</a> and the Java front end <a
+You can also view the libgcj component cvs archive: the
+<A HREF="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/boehm-gc/">boehm-gc</A>,
+<A HREF="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/libffi/">libffi</A>,
+<A HREF="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/libjava/">libjava</A>,
+and <A HREF="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/fastjar/">fastjar</A>.
+<p>
+Here's the Java front end <a
href="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/gcc/java">cvs
archive</a> (the entire compiler is also
<a href="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs">available</a>.)
Index: faq.html
===================================================================
RCS file: /cvs/java/htdocs/faq.html,v
retrieving revision 1.32
diff -u -p -r1.32 faq.html
--- faq.html 2000/11/30 04:26:41 1.32
+++ faq.html 2000/12/13 02:09:19
@@ -53,7 +53,7 @@
<li><a href="#1_1">What license is used for libgcj?</a>
<li><a href="#1_2">How can I report a bug in libgcj?</a>
<li><a href="#1_3">How can I contribute to libgcj?</a>
- <li><a href="#1_4">Why isn't libgcj part of GCC?</a>
+ <li><a href="#1_4">Is libgcj part of GCC?</a>
<li><a href="#1_5">Will gcj and libgcj work on my machine?</a>
<li><a href="#1_6">How can I debug my Java program?</a>
<li><a href="#1_7">Can I interface byte-compiled and native java code?</a>
@@ -156,11 +156,11 @@
<p></p>
<dt>
<hr>
- <h3><a name="1_4">1.4 Why isn't libgcj part of GCC?</a></h3>
+ <h3><a name="1_4">1.4 Is libgcj part of GCC?</a></h3>
</dt>
<p>
- <dd>Various minor reasons. It's likely that libgcj will end up in GCC
- at some point in the future.</dd>
+ <dd>Yes, libgcj is now part of GCC. It can be downloaded,
+ configured and built as one single tree.</dd>
<p></p>
<dt>
<hr>
@@ -613,7 +613,8 @@ $ ../configure [...]
</dt>
<blockquote>
<p>Make sure you configure both libgcj and gcj with the
- same "--prefix" directory.
+ same "--prefix" directory. Note, this shouldn't be a problem anymore if
+ you use new and current unified tree.
</blockquote>
</dl>
Index: index.html
===================================================================
RCS file: /cvs/java/htdocs/index.html,v
retrieving revision 1.57
diff -u -p -r1.57 index.html
--- index.html 2000/12/10 20:07:33 1.57
+++ index.html 2000/12/13 02:09:19
@@ -81,8 +81,10 @@ Thanks to Richard Henderson's recent lib
<b>December 9, 2000</b>
</td><td>
The libgcj sources have <A HREF="/ml/java-discuss/2000-12/msg00102.html">
-migrated</A> to the gcc repository.
-</td></tr>
+migrated</A> to the gcc repository. We've imported
+<A HREF="http://sourceforge.net/projects/fastjar">fastjar</A> in our
+<A HREF="http://gcc.gnu.org/cgi-bin/cvsweb.cgi/egcs/fastjar/">tree</A>
+and use it as a replacement to zip. </td></tr>
<tr><td valign="top">
<b>December 8, 2000</b>