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 Luc Bastiaenssen <lu...@ua.ac.be> on 2009/02/10 10:45:57 UTC
JCC compile error on solaris - JArray.cpp
Hi,
I can't compile JCC anymore on Solaris since the introduction of JCC 2.x
Platform: Solaris 10 on Intel with Sun Studio C++ 12, Java 1.6 and
Python 2.5.
Command: CC=CC /usr/bin/python2.5 setup.py build
running build
running build_py
copying jcc/config.py -> build/lib.solaris-2.10-i86pc-2.5/jcc
running build_ext
building 'jcc._jcc' extension
/usr/lib/python2.5/pycc -DNDEBUG -I/usr/jdk/instances/jdk1.6.0/include
-I/usr/jdk/instances/jdk1.6.0/include/solaris -I_jcc -Ijcc/sources
-I/usr/include/python2.5 -c jcc/sources/JArray.cpp -o
build/temp.solaris-2.10-i86pc-2.5/jcc/sources/JArray.o -DPYTHON
-features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
"jcc/sources/JArray.cpp", line 1044: Warning: String literal converted
to char* in assignment.
"jcc/sources/JArray.cpp", line 165: Error: Could not find a match for
_format<U>(_t_jarray<short>*, extern "C" _object*(_object*)) needed in
repr<_t_jarray<short>>(_t_jarray<short>*).
"jcc/sources/JArray.cpp", line 596: Where: While instantiating
"repr<_t_jarray<short>>(_t_jarray<short>*)".
"jcc/sources/JArray.cpp", line 596: Where: Instantiated from
non-template code.
1 Error(s) and 1 Warning(s) detected.
error: command '/usr/lib/python2.5/pycc' failed with exit status 1
Kind regards,
--
Re: JCC compile error on solaris - JArray.cpp
Posted by Luc Bastiaenssen <lu...@ua.ac.be>.
Thanks, it works !
Luc
Andi Vajda wrote:
>
> On Tue, 10 Feb 2009, Luc Bastiaenssen wrote:
>
>> I can't compile JCC anymore on Solaris since the introduction of JCC 2.x
>>
>> Platform: Solaris 10 on Intel with Sun Studio C++ 12, Java 1.6 and
>> Python 2.5.
>>
>> Command: CC=CC /usr/bin/python2.5 setup.py build
>>
>> running build
>> running build_py
>> copying jcc/config.py -> build/lib.solaris-2.10-i86pc-2.5/jcc
>> running build_ext
>> building 'jcc._jcc' extension
>> /usr/lib/python2.5/pycc -DNDEBUG
>> -I/usr/jdk/instances/jdk1.6.0/include
>> -I/usr/jdk/instances/jdk1.6.0/include/solaris -I_jcc -Ijcc/sources
>> -I/usr/include/python2.5 -c jcc/sources/JArray.cpp -o
>> build/temp.solaris-2.10-i86pc-2.5/jcc/sources/JArray.o -DPYTHON
>> -features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
>> "jcc/sources/JArray.cpp", line 1044: Warning: String literal
>> converted to char* in assignment.
>> "jcc/sources/JArray.cpp", line 165: Error: Could not find a match for
>> _format<U>(_t_jarray<short>*, extern "C" _object*(_object*)) needed
>> in repr<_t_jarray<short>>(_t_jarray<short>*).
>> "jcc/sources/JArray.cpp", line 596: Where: While instantiating
>> "repr<_t_jarray<short>>(_t_jarray<short>*)".
>> "jcc/sources/JArray.cpp", line 596: Where: Instantiated from
>> non-template code.
>> 1 Error(s) and 1 Warning(s) detected.
>> error: command '/usr/lib/python2.5/pycc' failed with exit status 1
>
> The Solaris compiler needed an extra cast.
> Fixed in rev 743062.
>
> Andi..
--
Re: JCC compile error on solaris - JArray.cpp
Posted by Andi Vajda <va...@apache.org>.
On Tue, 10 Feb 2009, Luc Bastiaenssen wrote:
> I can't compile JCC anymore on Solaris since the introduction of JCC 2.x
>
> Platform: Solaris 10 on Intel with Sun Studio C++ 12, Java 1.6 and Python
> 2.5.
>
> Command: CC=CC /usr/bin/python2.5 setup.py build
>
> running build
> running build_py
> copying jcc/config.py -> build/lib.solaris-2.10-i86pc-2.5/jcc
> running build_ext
> building 'jcc._jcc' extension
> /usr/lib/python2.5/pycc -DNDEBUG -I/usr/jdk/instances/jdk1.6.0/include
> -I/usr/jdk/instances/jdk1.6.0/include/solaris -I_jcc -Ijcc/sources
> -I/usr/include/python2.5 -c jcc/sources/JArray.cpp -o
> build/temp.solaris-2.10-i86pc-2.5/jcc/sources/JArray.o -DPYTHON
> -features=iddollar -erroff=badargtypel2w,wbadinitl,wvarhidemem
> "jcc/sources/JArray.cpp", line 1044: Warning: String literal converted to
> char* in assignment.
> "jcc/sources/JArray.cpp", line 165: Error: Could not find a match for
> _format<U>(_t_jarray<short>*, extern "C" _object*(_object*)) needed in
> repr<_t_jarray<short>>(_t_jarray<short>*).
> "jcc/sources/JArray.cpp", line 596: Where: While instantiating
> "repr<_t_jarray<short>>(_t_jarray<short>*)".
> "jcc/sources/JArray.cpp", line 596: Where: Instantiated from non-template
> code.
> 1 Error(s) and 1 Warning(s) detected.
> error: command '/usr/lib/python2.5/pycc' failed with exit status 1
The Solaris compiler needed an extra cast.
Fixed in rev 743062.
Andi..