lucene-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh Singh <harsh...@gmail.com>
Subject Re: Error Installing JCC
Date Sun, 26 Oct 2014 06:16:47 GMT
The JCC version is 4.10.1

And yes I have Yosemite with the latest XCode tools, but I tried this on the Mavericks also
last week and it hadn’t work that time also.

For python I used homebrew to install and its version is 2.7.8
Best Regards,
Harsh Singh



> On Oct 25, 2014, at 11:04 PM, Andi Vajda <vajda@apache.org> wrote:
> 
> 
>> On Oct 26, 2014, at 03:45, Harsh Singh <harshs08@gmail.com> wrote:
>> 
>> Hi,
>> 
>> I am trying to install JCC to use it with solar.
>> 
>> But while installing JCC using the command: python setup.py build, I am getting the
following error:
> 
> What version of JCC ?
> 
>> clang: warning: argument unused during compilation: '-dynamiclib'
>> jcc/sources/jcc.cpp:197:16: warning: implicit conversion loses integer precision:
'long' to 'int'
>>     [-Wshorten-64-to-32]
>>   int hash = PyObject_Hash(arg);
>>       ~~~~   ^~~~~~~~~~~~~~~~~~
>> 1 warning generated.
>> cc -fno-strict-aliasing -fno-common -dynamic -arch x86_64 -arch i386 -g -Os -pipe
-fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX -DNDEBUG -Wall -Wstrict-prototypes
-Wshorten-64-to-32 -DNDEBUG -g -fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -dynamiclib
-D_jcc_lib -DJCC_VER="2.21" -I/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/include
-I/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/include/darwin -I_jcc -Ijcc/sources
-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7 -c jcc/sources/JCCEnv.cpp
-o build/temp.macosx-10.10-intel-2.7/jcc/sources/JCCEnv.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
>> clang: warning: argument unused during compilation: '-dynamiclib'
>> c++ -Wl,-x -dynamiclib -undefined dynamic_lookup build/temp.macosx-10.10-intel-2.7/jcc/sources/jcc.o
build/temp.macosx-10.10-intel-2.7/jcc/sources/JCCEnv.o -o build/lib.macosx-10.10-intel-2.7/libjcc.dylib
-L/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib -ljava -L/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/server
-ljvm -Wl,-rpath -Wl,/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib
-Wl,-rpath -Wl,/Library/Java/JavaVirtualMachines/jdk1.7.0_45.jdk/Contents/Home/jre/lib/server
-Wl,-S -install_name @rpath/libjcc.dylib -current_version 2.21 -compatibility_version 2.21
>> ld: internal error: atom not found in symbolIndex(__ZN7JNIEnv_13CallIntMethodEP8_jobjectP10_jmethodIDz)
for architecture x86_64
>> clang: error: linker command failed with exit code 1 (use -v to see invocation)
>> error: command 'c++' failed with exit status 1
>> 
>> Environment:
>> Mac OS X 10.10 (14A389)
> 
> That's on Yosemite with the latest XCode tools, right ? (I've not yet upgraded my env
to that so it's not tested or supported yet, but is expected to work).
> 
>> GCC version:
>> Apple LLVM version 6.0 (clang-600.0.54) (based on LLVM 3.5svn)
>> Target: x86_64-apple-darwin14.0.0
>> 
>> Any help about how to resolve this issue will be really helpful.
> 
> It looks like Python was built with gcc and you're using clang now (you must use the
same compiler that was used to build Python for building JCC) or you're attempting to link
32 bit and 64 bit code together.
> 
> Andi..
> 
>> 
>> Thanks,
>> Harsh Singh
>> 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message