[pylucene-dev] building JCC on an x86_64 platform

Bill Janssen janssen at parc.com
Sat Jan 19 13:03:07 PST 2008


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?

Bill


More information about the pylucene-dev mailing list