[ 
https://issues.apache.org/jira/browse/CASSANDRA-18028?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17631587#comment-17631587
 ] 

Berenguer Blasi edited comment on CASSANDRA-18028 at 11/10/22 11:10 AM:
------------------------------------------------------------------------

Local repro is possible by setting env variable {{cython=true}}

Updating cython passes the first compile error but will fail on

{noformat}
      creating build/temp.linux-x86_64-cpython-38
      creating build/temp.linux-x86_64-cpython-38/tmp
      creating build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG 
-g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
-Werror=format-security -g -fwrapv -O2 -fPIC 
-I/home/bereng/work/repos/bdpWS/cython/pylib/venv/include 
-I/usr/include/python3.8 -c 
/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.c
 -o 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.o
      
/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.c:19:10:
 fatal error: Python.h: No such file or directory
         19 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
{noformat}

for diff


{noformat}
diff --git a/pylib/cassandra-cqlsh-tests.sh b/pylib/cassandra-cqlsh-tests.sh
index d0448fabd0..498e5c760e 100755
--- a/pylib/cassandra-cqlsh-tests.sh
+++ b/pylib/cassandra-cqlsh-tests.sh
@@ -78,7 +78,7 @@ pip freeze
 
 if [ "$cython" = "yes" ]; then
     TESTSUITE_NAME="${TESTSUITE_NAME}.cython"
-    pip install "Cython>=0.20,<0.25"
+    pip install "Cython>=0.20,<=0.29"
     cd pylib/; python setup.py build_ext --inplace
     cd ${WORKSPACE}
 else

{noformat}




was (Author: bereng):
Local repro is possible by setting env variable {{cython=true}}

Updating cython passes the first compile error but will fail on

{noformat}
      creating build/temp.linux-x86_64-cpython-38
      creating build/temp.linux-x86_64-cpython-38/tmp
      creating build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython
      creating 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex
      x86_64-linux-gnu-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG 
-g -fwrapv -O2 -Wall -g -fstack-protector-strong -Wformat 
-Werror=format-security -g -fwrapv -O2 -fPIC 
-I/home/bereng/work/repos/bdpWS/cython/pylib/venv/include 
-I/usr/include/python3.8 -c 
/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.c
 -o 
build/temp.linux-x86_64-cpython-38/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.o
      
/tmp/pip-install-hanwn85r/cython_ab93e879789241a999b84482cf72a4ac/Cython/Plex/Scanners.c:19:10:
 fatal error: Python.h: No such file or directory
         19 | #include "Python.h"
            |          ^~~~~~~~~~
      compilation terminated.
      error: command '/usr/bin/x86_64-linux-gnu-gcc' failed with exit code 1
      [end of output]
{noformat}


> pylib cqlsh tests fail on cython
> --------------------------------
>
>                 Key: CASSANDRA-18028
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-18028
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Berenguer Blasi
>            Priority: Normal
>
> Currently pylib/cqlsh tests _with_ cython where not being ran in 
> [jenkins|https://ci-cassandra.apache.org/job/Cassandra-4.1-cqlsh-tests/181/]. 
> Notice how cython yes and no run the same.
> [~mck] managed to find where the flag was being dropped 
> https://github.com/apache/cassandra-builds/pull/83
> But cython compile failures arise where an updated is 
> [suggested|https://github.com/cython/cython/issues/1943]



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to