compatibility issues with master branch cython
See original GitHub issueOn the cython master branch the generated c code has unused functions which fails the build with:
gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O3 -Wall -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fno-semantic-interposition -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -march=x86-64 -mtune=generic -O3 -pipe -fno-plt -fPIC -DNPY_NO_DEPRECATED_API=0 -I./pandas/_libs -Ipandas/_libs/src/klib -I/home/tcaswell/.virtualenvs/sys38/lib/python3.8/site-packages/numpy/core/include -I/home/tcaswell/.virtualenvs/sys38/include -I/usr/include/python3.8 -c pandas/_libs/algos.c -o build/temp.linux-x86_64-3.8/pandas/_libs/algos.o -Werror
pandas/_libs/algos.c:87270:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_762__defaults__’ defined but not used [-Werror=unused-function]
87270 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_762__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:78766:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_744__defaults__’ defined but not used [-Werror=unused-function]
78766 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_744__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:71391:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_726__defaults__’ defined but not used [-Werror=unused-function]
71391 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_726__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:62479:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_724__defaults__’ defined but not used [-Werror=unused-function]
62479 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_724__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:56193:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_678__defaults__’ defined but not used [-Werror=unused-function]
56193 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_678__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:50908:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_632__defaults__’ defined but not used [-Werror=unused-function]
50908 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_632__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:40806:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_586__defaults__’ defined but not used [-Werror=unused-function]
40806 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_586__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:34476:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_540__defaults__’ defined but not used [-Werror=unused-function]
34476 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_540__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:29147:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_494__defaults__’ defined but not used [-Werror=unused-function]
29147 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_494__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:19248:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_448__defaults__’ defined but not used [-Werror=unused-function]
19248 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_448__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
pandas/_libs/algos.c:12162:18: error: ‘__pyx_pf_6pandas_5_libs_5algos_446__defaults__’ defined but not used [-Werror=unused-function]
12162 | static PyObject *__pyx_pf_6pandas_5_libs_5algos_446__defaults__(CYTHON_UNUSED PyObject *__pyx_self) {
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
cc1: all warnings being treated as errors
error: command 'gcc' failed with exit status 1
and similar warnings from other modules (this just happens to be the first one).
If I remove the "-Werror"
it seems to build ok.
Not sure if this should be reported here at cython. I will likely try to bisect this to the cython change later today.
Issue Analytics
- State:
- Created 3 years ago
- Comments:13 (13 by maintainers)
Top Results From Across the Web
Interfacing with External C Code - Cython's Documentation
However, the Cython declarations don't always have to exactly match the C ones, and in some cases they shouldn't or can't. In particular:...
Read more >Proposal: rename _PyInterpreterFrame struct as _Py_framedata
When frame->f_frame->f_code is a valid thing to write, it indicates there is a problem with the local variable and struct field naming ...
Read more >Contributing — scikit-learn 1.2.0 documentation
In January 2021, the default branch name changed from master to main for the scikit-learn GitHub repository to use more inclusive terms.
Read more >Contributing to pandas — pandas 1.2.4 documentation
So, a good way to find an issue to start contributing to pandas is to check the list ... Trying the bug-producing code...
Read more >Kivy is not compatible with Cython? - Stack Overflow
Kivy's latest release is not compatible with cython 0.22. You can fix it by installing cython 0.21, or by using the master branch...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@tacaswell Github will only allow [GIF, JPEG, JPG, PNG, DOCX, GZ, LOG, PDF, PPTX, TXT, XLSX, ZIP] files.
One quick around is just to rename the file extension 😉
I have ran
So I’ll open a new issue.