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 "A. Coady (JIRA)" <ji...@apache.org> on 2018/06/07 02:40:00 UTC
[jira] [Commented] (PYLUCENE-42) JCC build fails with Python 3.7
(release candidate).
[ https://issues.apache.org/jira/browse/PYLUCENE-42?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16504169#comment-16504169 ]
A. Coady commented on PYLUCENE-42:
----------------------------------
Adding {{const}} fixes issue.
> JCC build fails with Python 3.7 (release candidate).
> ----------------------------------------------------
>
> Key: PYLUCENE-42
> URL: https://issues.apache.org/jira/browse/PYLUCENE-42
> Project: PyLucene
> Issue Type: Bug
> Reporter: A. Coady
> Priority: Major
> Labels: build
> Attachments: patch.txt
>
>
> Using PyLucene 7.2.0-rc1 and the official docker image {{python:rc}}.
> {code}
> gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -fPIC -D_java_generics -DJCC_VER="3.1" -I/usr/lib/jvm/default-java/include -I/usr/lib/jvm/default-java/include/linux -I_jcc3 -Ijcc3/sources -I/usr/local/include/python3.7m -c jcc3/sources/jcc.cpp -o build/temp.linux-x86_64-3.7/jcc3/sources/jcc.o -DPYTHON -fno-strict-aliasing -Wno-write-strings
> cc1plus: warning: command line option ‘-Wstrict-prototypes’ is valid for C/ObjC but not for C++
> jcc3/sources/jcc.cpp: In function ‘PyObject* initVM(PyObject*, PyObject*, PyObject*)’:
> jcc3/sources/jcc.cpp:486:52: error: invalid conversion from ‘const char*’ to ‘char*’ [-fpermissive]
> char *option = PyUnicode_AsUTF8(arg);
> ~~~~~~~~~~~~~~~~^~~~~
> error: command 'gcc' failed with exit status 1
> The command '/bin/sh -c cd jcc && JCC_JDK=/usr/lib/jvm/default-java python setup.py install' returned a non-zero code: 1
> make: *** [rc] Error 1
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)