This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Re: Trying to compile Xerces's jar
Andrew Cowie wrote:
> On Tue, 2005-22-02 at 11:21 +0000, Andrew Haley wrote:
>
>
>>Use -findirect-dispatch -Bsymbolic when compiling your jarfiles. Use
>>gcj 4.0 prerelease.
>
>
> Is there a HOWTO guide floating around about how to best bring in,
> build, and use bleeding edge GCJ as you suggest (without mashing the
> rest of the system?)
Yes:
http://gcc.gnu.org/install/
Quick Summary (Linux):
======================
1. Get latest GCC sources from CVS or from a recent snapshot
into a folder, say $GCC_SRC. (See http://gcc.gnu.org/cvs.html.)
2. Create a *separate* build folder, say $GCC_BLD.
3. Inside $GCC_BLD configure GCC with GCJ like so:
$GCC_SRC/configure --prefix=$HOME/mygcc --enable-languages=c,c++,java \
--disable-checking --enable-__cxa_atexit
(Assuming you want to install GCC/GCJ into "mygcc" within
your home folder.)
4. In the same folder, run "make bootstrap" and then
"make install" when that finishes. On a 2.4GHz P4 with
1GB of RAM for example, this process takes just around
an hour.
5. Add $HOME/mygcc/bin to your $PATH (before everything
else) or explicitly specify the path to the executables
to use this new, shiny, all-improved GCC.
For using the new Binary Compatibility ABI, see the
included docs as well as:
http://gcc.gnu.org/wiki/How%20to%20BC%20compile%20with%20GCJ
> [I ask in no small measure because today someone else was blasted for
> asking about 4.0, and told it wasn't even pre-release quality yet]
??? Well, for GCJ at least, it is a good idea to try
with the latest sources from CVS as there are all sorts
of fixes and features compared to 3.4.x.
Ranjit.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.hostingzero.com/