[pylucene-dev] Re: Issue Compiling Trunk

Andi Vajda vajda at osafoundation.org
Tue Jan 30 12:07:00 PST 2007


On Tue, 30 Jan 2007, Yura Smolsky wrote:

> # java --version
> java version "1.4.2"
> gij (GNU libgcj) version 4.1.1 20070105 (Red Hat 4.1.1-51)
>
> Copyright (C) 2006 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions.  There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
>
> does this version of java compatible with PyLucene?
>
> AV> In any case, this questions are best directed at java-dev at lucene.apache.org as
> AV> they are apparent Java Lucene build issues.
>
> i think these warnings appear b/c something is wrong with javac
> compiler.. we are trying sun java..

You cannot use gcj/gij to compile Java Lucene sources. You have to use a 
proper, less buggy JDK such as Blackdown's, Sun's or Apple's.
gcj's front-end has too many bugs to compile Lucene from .java sources.

I sure hope this is changing with the new gcj 4.3 in the works that has a 
received a new front-end compiler supporting Java 1.5. But until then, gcj is 
not fit for compiling Java Lucene from .java sources. This is why I'm 
including the pre-compiled Lucene .jar files in the PyLucene source tarballs.

See [1] for more information about compiling PyLucene from trunk with a gcj 
4.x compiler. When you use a gcj 4.x compiler, you cannot use the .jar files 
I produced and uploaded. Why, I don't know, hat's all I know so far. Any 
solution to this mystery is welcome but as it stands, 'make test' fails when 
compiling with these .jar files and gcj 4.x. You must instead produce the jar 
files yourself on that platform, using ant a proper JDK.

If you want this to remain easy, stick with the PyLucene source tarballs and 
with gcj 3.4.6. Otherwise follow the steps in [1] carefully adapting them to 
your platform specifics.

Andi..

[1] http://lists.osafoundation.org/pipermail/pylucene-dev/2006-November/001404.html


More information about the pylucene-dev mailing list