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 "Mithun Paul (JIRA)" <ji...@apache.org> on 2018/05/25 21:53:00 UTC
[jira] [Comment Edited] (PYLUCENE-38) JCC build error under recents
versions of clang.
[ https://issues.apache.org/jira/browse/PYLUCENE-38?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16491306#comment-16491306 ]
Mithun Paul edited comment on PYLUCENE-38 at 5/25/18 9:52 PM:
--------------------------------------------------------------
[~vajda] Thank You. Using PyLucene 7.2.0 helped me clear that bug. However, when I do `make` after pointing to the correct Python version in my machine, it tells me I have't compiled jcc with --shared flag (stack trace pasted below). However, I go back to my make file and I see that it does have jcc --shared uncommented (pasted below). After reading [this|http://grokbase.com/p/lucene/pylucene-dev/112stp1b0y/test-failures-with-pylucene-2-4-1-1] bug report am wondering if there is a problem of mismatch between my setuptools, python version and pylucene version. The documentation [page|http://lucene.apache.org/pylucene/jcc/install.html] doesn't mention anything specific though.
Python: Python 3.6.1
Setuptools: 39.2.0
Ant:1.10.3
Can you think of anything else I might be doing wrong? Should I do the patching thing for s_etuptools 0.6c7_ mentioned in the [install|http://lucene.apache.org/pylucene/jcc/install.html] page? I thought that was for an older version of Setuptools
Stack Trace:
```
{quote}{{File "/Users/mithun/miniconda3/lib/python3.6/site-packages/JCC-3.1-py3.6-macosx-10.7-x86_64.egg/jcc/python.py", line 1601, in compile}}{{ raise NotImplementedError("JCC was not built with --shared mode support, see JCC's INSTALL file for more information")}}{{NotImplementedError: JCC was not built with --shared mode support, see JCC's INSTALL file for more information}}{{make: *** [compile] Error 1}}
{quote}
```
Make File entry:
```
# Mac OS X 10.12 (64-bit Python 3.6, Java 1.8)
PREFIX_PYTHON=/Users/mithun/miniconda3/
ANT=/usr/local/bin/Ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared --arch x86_64
NUM_FILES=8```
was (Author: mpaul588):
[~vajda] Thank You. Using PyLucene 7.2.0 helped me clear that bug. However, when I do `make` after pointing to the correct Python version in my machine, it tells me I have't compiled jcc with --shared flag (stack trace pasted below). However, I go back to my make file and I see that it does have jcc --shared uncommented (pasted below). After reading [this|http://grokbase.com/p/lucene/pylucene-dev/112stp1b0y/test-failures-with-pylucene-2-4-1-1] bug report am wondering if there is a problem of mismatch between my setuptools, python version and pylucene version. The documentation [page|http://lucene.apache.org/pylucene/jcc/install.html] doesn't mention anything specific though.
Python: Python 3.6.1
Setuptools: 39.2.0
Ant:1.10.3
Can you think of anything else I might be doing wrong? Should I do the patching thing for s_etuptools 0.6c7_ mentioned in the [install|http://lucene.apache.org/pylucene/jcc/install.html] page? I thought that was for an older version of Setuptools
Stack Trace:
```
File "/Users/mithun/miniconda3/lib/python3.6/site-packages/JCC-3.1-py3.6-macosx-10.7-x86_64.egg/jcc/python.py", line 1601, in compile
raise NotImplementedError("JCC was not built with --shared mode support, see JCC's INSTALL file for more information")
NotImplementedError: JCC was not built with --shared mode support, see JCC's INSTALL file for more information
make: *** [compile] Error 1
```
Make File entry:
```
# Mac OS X 10.12 (64-bit Python 3.6, Java 1.8)
PREFIX_PYTHON=/Users/mithun/miniconda3/
ANT=/usr/local/bin/Ant
PYTHON=$(PREFIX_PYTHON)/bin/python
JCC=$(PYTHON) -m jcc --shared --arch x86_64
NUM_FILES=8```
> JCC build error under recents versions of clang.
> ------------------------------------------------
>
> Key: PYLUCENE-38
> URL: https://issues.apache.org/jira/browse/PYLUCENE-38
> Project: PyLucene
> Issue Type: Bug
> Environment: macOS
> Reporter: A. Coady
> Priority: Major
>
> {code:none}
> jcc3/sources/JArray.cpp:315:66: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int')
> PyList_Type.tp_as_sequence->sq_inplace_concat(list, arg) < 0)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
> jcc3/sources/JArray.cpp:330:64: error: ordered comparison between pointer and zero ('PyObject *' (aka '_object *') and 'int')
> PyList_Type.tp_as_sequence->sq_inplace_repeat(list, n) < 0)
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~
> {code}
> Comparisons between NULL and integers have been elevated from a warning to an error in recent versions of clang. And presumably the error handling wasn't working anyway.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)