Uploaded image for project: 'PyLucene'
  1. PyLucene
  2. PYLUCENE-42

JCC build fails with Python 3.7 (release candidate).

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Labels:

      Description

      Using PyLucene 7.2.0-rc1 and the official docker image python:rc.

      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
      

        Attachments

        1. patch.txt
          0.5 kB
          A. Coady

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              coady A. Coady
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: