You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Obsolete:GCJ

From Wikitech-static
Jump to navigation Jump to search

Vincent and Avicenna have a snapshot build of GCC 4.0 to compile and run the Java-based LuceneSearch with.

Since the Java build is broken in GCC CVS at the moment, pull with -D 2005-04-07 to get a known working version.

To pull:

cvs -qz9 -d:ext:anoncvs@savannah.gnu.org:/cvsroot/gcc co -D 2005-04-07 gcc wwwdocs

To build:

cd gcc
./configure --prefix=/usr/local/gcj --program-suffix=-4.0 --enable-languages=c,c++,java
make
su
make install

A finished build for FC2 is in /h/w/src/gcc-cvs

Put /usr/local/gcj/bin and /usr/local/gcj/lib in PATH and LD_LIBRARY_PATH where necessary...