lucene-pylucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andi Vajda <va...@apache.org>
Subject Re: Build problems
Date Thu, 13 Oct 2011 21:18:02 GMT

On Thu, 13 Oct 2011, Joe Cabrera wrote:

> I am trying to install PyLucene 3.4.0-1 on Ubuntu 11.04 with Python
> 2.7.1+ and JCC 2.11 and setuptools 0.6c9 egg
>
> I have installed JCC with shared module. My makefile looks like this:
>
> VERSION=3.4.0-1
> LUCENE_SVN_VER=HEAD
> LUCENE_VER=3.4.0-1
> LUCENE_SVN=http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_4_0
> PYLUCENE:=$(shell pwd)
> LUCENE_SRC=lucene-java-$(LUCENE_VER)
> LUCENE=$(LUCENE_SRC)/lucene
>
> # Linux     (Ubuntu 8.10 64-bit, Python 2.5.2, OpenJDK 1.6, setuptools
> 0.6c9)
> PREFIX_PYTHON=/usr
> ANT=ant
> PYTHON=$(PREFIX_PYTHON)/bin/python
> JCC=$(PYTHON) -m jcc --shared
> NUM_FILES=3
>
> And then the rest of the makefile was left as provided.
>
> I followed the steps here to install.
> http://lucene.apache.org/pylucene/documentation/install.html
>
> But at step 7, where you build from source. I run into an infinite make
> loop.

Unless I'm missing something, I don't see any makefile loop or errors, only 
a few warnings due to the _POSIX_C_SOURCE redefinition.
What am I missing ? The string "error" doesn't occur in the output you sent
except for the TokenMgrError class being excluded.

Andi..

>
> ICU not installed
> /usr/bin/python -m jcc --shared --jar
> lucene-java-3.4.0/lucene/build/lucene-core-3.4.0.jar --jar
> lucene-java-3.4.0/lucene/build/contrib/analyzers/common/lucene-analyzers-3.4.0.jar --jar
lucene-java-3.4.0/lucene/build/contrib/memory/lucene-memory-3.4.0.jar --jar lucene-java-3.4.0/lucene/build/contrib/highlighter/lucene-highlighter-3.4.0.jar
--jar build/jar/extensions.jar --jar lucene-java-3.4.0/lucene/build/contrib/queries/lucene-queries-3.4.0.jar
--jar lucene-java-3.4.0/lucene/build/contrib/grouping/lucene-grouping-3.4.0.jar --jar lucene-java-3.4.0/lucene/build/contrib/join/lucene-join-3.4.0.jar
 --package java.lang java.lang.System java.lang.Runtime --package java.util java.util.Arrays
java.util.HashMap java.util.HashSet java.text.SimpleDateFormat java.text.DecimalFormat java.text.Collator
--package java.util.regex --package java.io java.io.StringReader java.io.InputStreamReader
java.io.FileInputStream --exclude org.apache.lucene.queryParser.Token --exclude org.apache.lucene.queryParser.TokenMgrError
--exclude org.apache.lucene.queryParser.QueryParserTokenManager --e!
 xclude org.apache.lucene.queryParser.ParseException --exclude org.apache.lucene.search.regex.JakartaRegexpCapabilities
--exclude org.apache.regexp.RegexpTunnel --exclude org.apache.lucene.analysis.cn.smart.AnalyzerProfile
--python lucene --mapping org.apache.lucene.document.Document 'get:(Ljava/lang/String;)Ljava/lang/String;'
--mapping java.util.Properties 'getProperty:(Ljava/lang/String;)Ljava/lang/String;' --sequence
java.util.AbstractList 'size:()I' 'get:(I)Ljava/lang/Object;' --rename org.apache.lucene.search.highlight.SpanScorer=HighlighterSpanScorer
--version 3.4.0 --module python/collections.py --module python/ICUNormalizer2Filter.py --module
python/ICUFoldingFilter.py --module python/ICUTransformFilter.py  --files 3 --build
>  Warning: renaming static method 'toString' on class java.lang.Short to
> 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Long to
> 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Integer
> to 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class
> java.lang.Character to 'toString_' since it is shadowed by non-static
> method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Byte to
> 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'isInfinite' on class java.lang.Float
> to 'isInfinite_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'isNaN' on class java.lang.Float to
> 'isNaN_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Float to
> 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Boolean
> to 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'copy' on class
> org.apache.lucene.store.Directory to 'copy_' since it is shadowed by
> non-static method of same name.
>  Warning: renaming static method 'fileModified' on class
> org.apache.lucene.store.FSDirectory to 'fileModified_' since it is
> shadowed by non-static method of same name.
>  Warning: renaming static method 'listAll' on class
> org.apache.lucene.store.FSDirectory to 'listAll_' since it is shadowed
> by non-static method of same name.
>  Warning: renaming static method 'getCommitUserData' on class
> org.apache.lucene.index.IndexReader to 'getCommitUserData_' since it is
> shadowed by non-static method of same name.
>  Warning: renaming static method 'foldToASCII' on class
> org.apache.lucene.analysis.ASCIIFoldingFilter to 'foldToASCII_' since it
> is shadowed by non-static method of same name.
>  Warning: renaming static method 'isInfinite' on class java.lang.Double
> to 'isInfinite_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'isNaN' on class java.lang.Double to
> 'isNaN_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'toString' on class java.lang.Double
> to 'toString_' since it is shadowed by non-static method of same name.
>  Warning: renaming static method 'getCurrentSegmentFileName' on class
> org.apache.lucene.index.SegmentInfos to 'getCurrentSegmentFileName_'
> since it is shadowed by non-static method of same name.
> running build_ext
> building 'lucene._lucene' extension
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -DPYTHON -DJCC_VER="2.11" -D_jcc_shared
> -D_java_generics -I/usr/lib/jvm/java-6-openjdk/include
> -I/usr/lib/jvm/java-6-openjdk/include/linux -Ibuild/_lucene
> -I/usr/local/lib/python2.7/dist-packages/JCC-2.11-py2.7-linux-i686.egg/jcc/sources -I/usr/include/python2.7
-c build/_lucene/__wrap96__.cpp -o build/temp.linux-i686-2.7/build/_lucene/__wrap96__.o -fno-strict-aliasing
-Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> In file included from /usr/include/python2.7/Python.h:8:0,
>
> from /usr/local/lib/python2.7/dist-packages/JCC-2.11-py2.7-linux-i686.egg/jcc/sources/JCCEnv.h:47,
>                 from build/_lucene/__wrap96__.cpp:2:
> /usr/include/python2.7/pyconfig.h:1155:0: warning: "_POSIX_C_SOURCE"
> redefined
> /usr/include/features.h:163:0: note: this is the location of the
> previous definition
> /usr/include/python2.7/pyconfig.h:1177:0: warning: "_XOPEN_SOURCE"
> redefined
> /usr/include/features.h:165:0: note: this is the location of the
> previous definition
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -DPYTHON -DJCC_VER="2.11" -D_jcc_shared
> -D_java_generics -I/usr/lib/jvm/java-6-openjdk/include
> -I/usr/lib/jvm/java-6-openjdk/include/linux -Ibuild/_lucene
> -I/usr/local/lib/python2.7/dist-packages/JCC-2.11-py2.7-linux-i686.egg/jcc/sources -I/usr/include/python2.7
-c build/_lucene/__wrap209__.cpp -o build/temp.linux-i686-2.7/build/_lucene/__wrap209__.o
-fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option "-Wstrict-prototypes" is valid for
> Ada/C/ObjC but not for C++
> In file included from /usr/include/python2.7/Python.h:8:0,
>
> from /usr/local/lib/python2.7/dist-packages/JCC-2.11-py2.7-linux-i686.egg/jcc/sources/JCCEnv.h:47,
>                 from build/_lucene/__wrap209__.cpp:2:
> /usr/include/python2.7/pyconfig.h:1155:0: warning: "_POSIX_C_SOURCE"
> redefined
> /usr/include/features.h:163:0: note: this is the location of the
> previous definition
> /usr/include/python2.7/pyconfig.h:1177:0: warning: "_XOPEN_SOURCE"
> redefined
> /usr/include/features.h:165:0: note: this is the location of the
> previous definition
> gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall
> -Wstrict-prototypes -fPIC -DPYTHON -DJCC_VER="2.11" -D_jcc_shared
> -D_java_generics -I/usr/lib/jvm/java-6-openjdk/include
> -I/usr/lib/jvm/java-6-openjdk/include/linux -Ibuild/_lucene
> -I/usr/local/lib/python2.7/dist-packages/JCC-2.11-py2.7-linux-i686.egg
>
> I'm not sure what I am doing wrong?
>
>
> -- 
> Joe Cabrera
>
Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message