Odd warnings with cython

asked 0 years ago

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

Preview: (hide)

Comments

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

tolga gravatar imagetolga ( 0 years ago )

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 ( 0 years ago )

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 ( 0 years ago )