You are viewing a plain text version of this content. The canonical link for it is here.
Posted to pylucene-dev@lucene.apache.org by "Andi Vajda (JIRA)" <ji...@apache.org> on 2010/04/08 23:14:36 UTC

[jira] Resolved: (PYLUCENE-4) pylucene not linking on Mac

     [ https://issues.apache.org/jira/browse/PYLUCENE-4?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andi Vajda resolved PYLUCENE-4.
-------------------------------

    Resolution: Cannot Reproduce

Same as PYLUCENE-3.
Resolving this as "can't reproduce". The error you're seeing is probably due to differences in how your environment is setup. Edits of PyLucene's Makefile and JCC's setup.py are expected.

> pylucene not linking on Mac
> ---------------------------
>
>                 Key: PYLUCENE-4
>                 URL: https://issues.apache.org/jira/browse/PYLUCENE-4
>             Project: PyLucene
>          Issue Type: Bug
>         Environment: A recent MacBook running Snow Leopard
> Darwin jcab.local 10.3.0 Darwin Kernel Version 10.3.0: Fri Feb 26 11:58:09 PST 2010; root:xnu-1504.3.12~1/RELEASE_I386 i386 i386
>            Reporter: Jim Carroll
>
> running make on Snow Leopard after jcc is installed gives:
> gcc -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -D_java_generics -DPYTHON=1 -D_jcc_shared=1 -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -Ibuild/_lucene -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg/jcc/sources -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c build/_lucene/lucene.cpp -o build/temp.macosx-10.3-i386-2.6/build/_lucene/lucene.o -fno-strict-aliasing -Wno-write-strings -isysroot /Developer/SDKs/MacOSX10.5.sdk
> g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.6/build/_lucene/__init__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap01__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap02__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap03__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/functions.o build/temp.macosx-10.3-i386-2.6/build/_lucene/JArray.o build/temp.macosx-10.3-i386-2.6/build/_lucene/JObject.o build/temp.macosx-10.3-i386-2.6/build/_lucene/lucene.o build/temp.macosx-10.3-i386-2.6/build/_lucene/types.o -L/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg -ljcc -o build/lib.macosx-10.3-i386-2.6/lucene/_lucene.so -framework JavaVM -Wl,-S -Wl,-rpath /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
> collect2: ld returned 1 exit status
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/4P/4P8qHS-vEcGOf6lB9MJ94++++TI/-Tmp-//cco25NHE.out (No such file or directory)
> error: command 'g++' failed with exit status 1
> make: *** [compile] Error 1
> I also tried 32 bit python, and got:
> gcc -arch i386 -fno-strict-aliasing -fno-common -dynamic -DNDEBUG -g -O3 -D_java_generics -DPYTHON=1 -D_jcc_shared=1 -I/System/Library/Frameworks/JavaVM.framework/Versions/Current/Headers -Ibuild/_lucene -I/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg/jcc/sources -I/Library/Frameworks/Python.framework/Versions/2.6/include/python2.6 -c build/_lucene/types.cpp -o build/temp.macosx-10.3-i386-2.6/build/_lucene/types.o -fno-strict-aliasing -Wno-write-strings -isysroot /Developer/SDKs/MacOSX10.5.sdk
> creating build/lib.macosx-10.3-i386-2.6
> creating build/lib.macosx-10.3-i386-2.6/lucene
> g++ -arch ppc -arch i386 -isysroot /Developer/SDKs/MacOSX10.4u.sdk -g -bundle -undefined dynamic_lookup build/temp.macosx-10.3-i386-2.6/build/_lucene/__init__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap01__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap02__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/__wrap03__.o build/temp.macosx-10.3-i386-2.6/build/_lucene/functions.o build/temp.macosx-10.3-i386-2.6/build/_lucene/JArray.o build/temp.macosx-10.3-i386-2.6/build/_lucene/JObject.o build/temp.macosx-10.3-i386-2.6/build/_lucene/lucene.o build/temp.macosx-10.3-i386-2.6/build/_lucene/types.o -L/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg -ljcc -o build/lib.macosx-10.3-i386-2.6/lucene/_lucene.so -framework JavaVM -Wl,-S -Wl,-rpath /Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/JCC-2.5-py2.6-macosx-10.3-i386.egg
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
> collect2: ld returned 1 exit status
> ld: -rpath can only be used when targeting Mac OS X 10.5 or later
> collect2: ld returned 1 exit status
> lipo: can't open input file: /var/folders/4P/4P8qHS-vEcGOf6lB9MJ94++++TI/-Tmp-//ccbYkpiz.out (No such file or directory)
> error: command 'g++' failed with exit status 1

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.