Skip to content

Fails to build with Python 3.7 #322

Description

@dbermond

I'm getting the following compile error when trying to build screencloud git master with Python 3.7:

[ 65%] Building CXX object CMakeFiles/screencloud.dir/src/uploaders/pythonuploader.cpp.o
In file included from /usr/include/python3.7m/pystate.h:11,
                 from /usr/include/python3.7m/traceback.h:8,
                 from /usr/include/python3.7m/Python.h:100,
                 from /usr/include/PythonQt/PythonQtPythonInclude.h:59,
                 from /usr/include/PythonQt/PythonQtUtils.h:45,
                 from /usr/include/PythonQt/PythonQt.h:45,
                 from /storage/linux/aur/screencloud-git/src/screencloud/src/plugin/pluginmanager.h:32,
                 from /storage/linux/aur/screencloud-git/src/screencloud/src/uploaders/pythonuploader.h:20,
                 from /storage/linux/aur/screencloud-git/src/screencloud/src/uploaders/pythonuploader.cpp:15:
/usr/include/python3.7m/pythread.h:122:5: error: #error "Require native threads. See https://bugs.python.org/issue31370"
 #   error "Require native threads. See https://bugs.python.org/issue31370"
     ^~~~~
/usr/include/python3.7m/pythread.h:131:5: error: ‘NATIVE_TSS_KEY_T’ does not name a type; did you mean ‘HAVE_SSIZE_T’?
     NATIVE_TSS_KEY_T _key;
     ^~~~~~~~~~~~~~~~
     HAVE_SSIZE_T
make[2]: *** [CMakeFiles/screencloud.dir/build.make:618: CMakeFiles/screencloud.dir/src/uploaders/pythonuploader.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:100: CMakeFiles/screencloud.dir/all] Error 2
make: *** [Makefile:130: all] Error 2

It was building fine with Python 3.6.6.

  • Using Arch Linux x86_64, currently with:
    • gcc 8.2.0
    • Python 3.7.0
    • Qt 5.11.1
    • PythonQt 3.2

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions