Thanks, that's helpful.
The ant target uses gcj to compile from both .java and .class files. It
also seems to specify particular compiler options which implies that it
*should* compile out of the box.
I'm keen to have this target working, so I'll hack on the Makefile for a
bit.
B.
p.s. I'm using the latest from HEAD.
Andi Vajda wrote:
Lucene can be built with gcj but some patching is required. It is also a
lot easier to build Lucene with gcj from .class files than from .java
sources.
See the PyLucene project at http://pylucene.osafoundation.org for more
information. PyLucene is a gcj-compiled Lucene wrapped by SWIG in order
to integrate it with Python.
The http://svn.osafoundation.org/pylucene/trunk/INSTALL and
http://svn.osafoundation.org/pylucene/trunk/Makefile files should
provide useful information.
Andi..
On Tue, 21 Jun 2005, Robert Newson wrote:
Hi,
I'm having some problems building Lucene using GCJ.
I've appended some compiler output (there's lot more undefined
references).
Does the gcj target work for anyone else?
I'm using Debian sarge with GCJ-3.4 with the following build command;
GCJ=gcj-3.4 GCJH=gcjh-3.4 GPLUSPLUS=g++-3.4 ant clean gcj
I have the following gcj related packages:
ii gcj-3.4 3.4.3-13 The GNU compiler for Java(TM)
ii libgcj-common 4.0.0-9 Java runtime library (common files)
ii libgcj5 3.4.3-13 Java runtime library for use with gcj
ii libgcj5-awt 3.4.3-13 AWT peer runtime libraries for use
with gcj
ii libgcj5-common 3.4.3-13 Java runtime library for use with
gcj (jar f
ii libgcj5-dev 3.4.3-13 Java development headers and static
library
ii classpath 0.14-2 clean room standard Java libraries
ii classpath-comm 0.14-2 architecture independent files
Errors below:
[exec] gcj-3.4 -O3 -ffast-math -fno-bounds-check -fno-store-check
-Dorg.apache.lucene.FSDirectory.class=org.apache.lucene.store.GCJDirectory
-Dorg.apache.lucene.SegmentReader.class=org.apache.lucene.index.GCJSegmentReader
-lstdc++ ../../build/lucene-demos-1.9-rc1-dev.a
../../build/gcj/lucene-gcj.a
../../build/gcj/org/apache/lucene/index/GCJTermDocs.o
../../build/gcj/org/apache/lucene/store/GCJIndexInput.o -o
../../build/indexFiles \
[exec] --main=org.apache.lucene.demo.IndexFiles
[exec] ../../build/lucene-demos-1.9-rc1-dev.a(.text+0xde): In
function
`org::apache::lucene::demo::DeleteFiles::main(JArray<java::lang::String*>*)':
[exec] : undefined reference to
`org::apache::lucene::store::FSDirectory::getDirectory(java::lang::String*,
bool)'
[exec] ../../build/lucene-demos-1.9-rc1-dev.a(.text+0xe8): In
function
`org::apache::lucene::demo::DeleteFiles::main(JArray<java::lang::String*>*)':
[exec] : undefined reference to
`org::apache::lucene::index::IndexReader::open(org::apache::lucene::store::Directory*)'
[exec] ../../build/lucene-demos-1.9-rc1-dev.a(.text+0xf6): In
function
`org::apache::lucene::demo::DeleteFiles::main(JArray<java::lang::String*>*)':
[exec] : undefined reference to
`org::apache::lucene::index::Term::class$'
[exec] ../../build/lucene-demos-1.9-rc1-dev.a(.text+0x116): In
function
`org::apache::lucene::demo::DeleteFiles::main(JArray<java::lang::String*>*)':
[exec] : undefined reference to
`org::apache::lucene::index::Term::Term(java::lang::String*,
java::lang::String*)'
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]