On Aug 18, 2013, at 21:48, Taka Epsilon <taka.epsi...@gmail.com> wrote:

> I'm new to PyLucene and trying to build JCC 2.17 on Mac OS X 10.8.4 with
> Python 2.7 and Java 1.6. But the 'python setup.py build' command is failing
> with the following error with the default setup.py. Any idea?
> 
> 
> xcrun clang -fno-strict-aliasing -fno-common -dynamic -I/usr/local/include
> -I/usr/local/opt/sqlite/include -isysroot
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk

What is 'xcrun clang' ?

I suspect that you need to adapt the compiler and linker flags in setup.py to 
this compiler and linker combination.

If you figure it out and send in a patch I'll merge it in. You should add a new 
darwin/clang variant in the CFLAGS and LFLAGS dicts in setup.py, or use gcc 
instead when compiling Python itself as you seem to have done.

Andi..

> -I/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers
> -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -dynamiclib -D_jcc_lib
> -DJCC_VER="2.17"
> -I/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/include
> -I/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/include/darwin
> -I_jcc -Ijcc/sources
> -I/usr/local/Cellar/python/2.7.3/Frameworks/Python.framework/Versions/2.7/include/python2.7
> -c jcc/sources/JCCEnv.cpp -o
> build/temp.macosx-10.8-x86_64-2.7/jcc/sources/JCCEnv.o -DPYTHON
> -fno-strict-aliasing -Wno-write-strings
> clang: warning: argument unused during compilation: '-dynamiclib'
> xcrun -Wl,-x -dynamiclib -undefined dynamic_lookup
> build/temp.macosx-10.8-x86_64-2.7/jcc/sources/jcc.o
> build/temp.macosx-10.8-x86_64-2.7/jcc/sources/JCCEnv.o -o
> build/lib.macosx-10.8-x86_64-2.7/libjcc.dylib
> -L/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib
> -ljava
> -L/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib/server
> -ljvm -Wl,-rpath
> -Wl,/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib
> -Wl,-rpath
> -Wl,/Library/Java/JavaVirtualMachines/1.6.0_29-b11-402.jdk/Contents/Home/jre/lib/server
> -Wl,-S -install_name @rpath/libjcc.dylib -current_version 2.17
> -compatibility_version 2.17
> xcrun: error: unrecognized option: -Wl,-x
> 
> 
> 
> On Sun, Aug 18, 2013 at 12:28 PM, Thomas Koch <k...@orbiteam.de> wrote:
> 
>> I could build JCC 2.17 and PyLucene 4.4.0 und  Mac OS X 10.8.4 (64-bit
>> only -  Python 2.7, Java 1.6). All tests did pass and samples work like
>> expected.
>> 
>> +1
>> 
>> 
>> regards
>> Thomas
>> --
>> Am 17.08.2013 um 16:52 schrieb Andi Vajda <va...@apache.org>:
>> 
>>> 
>>> The PyLucene 4.4.0-1 release tracking the recent release of Apache
>> Lucene 4.4.0 is ready.
>>> 
>>> A release candidate is available from:
>>> http://people.apache.org/~vajda/staging_area/
>>> 
>>> A list of changes in this release can be seen at:
>> http://svn.apache.org/repos/asf/lucene/pylucene/branches/pylucene_4_4/CHANGES
>>> 
>>> PyLucene 4.4.0 is built with JCC 2.17 included in these release
>> artifacts:
>>> http://svn.apache.org/repos/asf/lucene/pylucene/trunk/jcc/CHANGES
>>> 
>>> A list of Lucene Java changes can be seen at:
>> http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_4_0/lucene/CHANGES.txt
>>> 
>>> Please vote to release these artifacts as PyLucene 4.4.0-1.
>>> 
>>> Thanks !
>>> 
>>> Andi..
>>> 
>>> ps: the KEYS file for PyLucene release signing is at:
>>> http://svn.apache.org/repos/asf/lucene/pylucene/dist/KEYS
>>> http://people.apache.org/~vajda/staging_area/KEYS
>>> 
>>> pps: here is my +1
>> 
>> 

Reply via email to