[pylucene-dev] building JCC on an x86_64 platform

Andi Vajda vajda at osafoundation.org
Sat Jan 19 14:21:21 PST 2008


On Sat, 19 Jan 2008, Bill Janssen wrote:

> I'm trying to build JCC on a new machine, against Java 5.
>
> It identifies as a "linux2" platform.  I modified setup.py to point to
> the installed location (basically, changing "/usr/lib/jvm/java-6-sun/"
> to "/usr/java/default/" everywhere), and tried a build.  The link
> stage fails:
>
> c++ -pthread -shared build/temp.linux-x86_64-2.4/jcc/sources/jcc.o build/temp.linux-x86_64-2.4/jcc/sources/JCCEnv.o build/temp.linux-x86_64-2.4/jcc/sources/JObject.o build/temp.linux-x86_64-2.4/jcc/sources/functions.o build/temp.linux-x86_64-2.4/_jcc/boot.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Long.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Throwable.o build/temp.linux-x86_64-2.4/_jcc/java/lang/__init__.o build/temp.linux-x86_64-2.4/_jcc/java/lang/String.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Object.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Boolean.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Exception.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Double.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Integer.o build/temp.linux-x86_64-2.4/_jcc/java/lang/RuntimeException.o build/temp.linux-x86_64-2.4/_jcc/java/lang/Class.o build/temp.linux-x86_64-2.4/_jcc/java/lang/reflect/Modifier.o build/temp.linux-x86_64-2.4/_jcc/java/lang/reflect/__init__.o build/temp.linux-x86_64-2.4/_jcc/java/lang/reflect/Constructor.o build/temp.linux-x86_64-2.4/_jcc/java/lang/reflect/Method.o build/temp.linux-x86_64-2.4/_jcc/java/lang/reflect/Field.o build/temp.linux-x86_64-2.4/_jcc/java/util/Iterator.o build/temp.linux-x86_64-2.4/_jcc/java/util/Enumeration.o -o build/lib.linux-x86_64-2.4/jcc/_jcc.so -L/usr/java/default/jre/lib/i386 -ljava -Wl,-rpath=/usr/java/default/jre/lib/i386:/usr/java/default/jre/lib/i386/client -Wl,-S
> /usr/bin/ld: skipping incompatible /usr/java/default/jre/lib/i386/libjava.so when searching for -ljava
> /usr/bin/ld: cannot find -ljava
> collect2: ld returned 1 exit status
>
> This a 32-bit vs. 64-bit problem?

Indeed, look at setup.py [1], there is a commented out settings for 'linux2' 
on 64-bit. The i386 piece should be something like amd64 instead.

Andi..

[1] http://svn.osafoundation.org/pylucene/trunk/jcc/jcc/setup.py


More information about the pylucene-dev mailing list