Odd warnings with cython

asked 2024-08-04 17:02:00 +0200

mn124700 gravatar image

I'm using Sagemath in Jupyter lab. Some of my cells contain cython code, and I keep getting the following warnings:

ld: warning: duplicate -rpath '/private/var/tmp/sage-10.3-current/local/lib' ignored
ld: warning: duplicate -rpath '/private/var/tmp/sage-10.3-current/local/lib' ignored
ld: warning: duplicate -rpath '/private/var/tmp/sage-10.3-current/local/lib' ignored
ld: warning: duplicate -rpath '/private/var/tmp/sage-10.3-current/local/lib' ignored
ld: warning: passed two min versions (10.9, 10.9) for platform macOS. Using 10.9.
ld: warning: passed two min versions (10.9, 10.9) for platform macOS. Using 10.9.

I'm a bit new to this, and I'm not sure what these warnings mean or what I'm supposed to do.

Any advice would be appreciated. Thanks. Eric

edit retag flag offensive close merge delete

Comments

Dear Eric, is it possible for you to add a minimal code that would allow us to reproduce the warnings?

tolga gravatar imagetolga ( 2024-08-04 20:56:30 +0200 )edit

Here is a simple code that triggers the warnings. I should have added that these are compile-time errors, not runtime ones.

%%cython
from libc.math cimport cos, sin, acos, sqrt, abs, atan2
cimport cython

cpdef tuple intersection2(list curve):

    cdef float x, y, z
    return 0
mn124700 gravatar imagemn124700 ( 2024-08-05 17:00:37 +0200 )edit

I could not reproduce the warnings as I didn't compile the code but maybe you can try with a SageMath installation on its own environment using conda/mamba.

tolga gravatar imagetolga ( 2024-08-06 06:41:39 +0200 )edit