-
-
Notifications
You must be signed in to change notification settings - Fork 11.7k
Closed
Labels
Description
Describe the issue:
The backtrace function is detected, but compilation fails with:
-c ../numpy/_core/src/multiarray/temp_elide.c
../numpy/_core/src/multiarray/temp_elide.c:150:13: error: call to undeclared function 'backtrace'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
150 | nptrs = backtrace(buffer, NPY_MAX_STACKSIZE);
| ^
optional_misc_funcs = [
'backtrace',
'madvise',
]
foreach func: optional_misc_funcs
if cc.has_function(func,
include_directories: inc_curdir,
prefix: '#include "feature_detection_misc.h"'
)
cdata.set10('HAVE_' + func.to_upper(), true)
endif
endforeach
So, first I thought that the problem lies with feature_detection_misc.h being included, but that's not it. The test passes without it too.
Compiler is clang 17.
Reproduce the code example:
N/AError message:
N/APython and NumPy Versions:
Python 3.11, meson 1.3.1, meson-python 0.15.0
Runtime Environment:
No response
Context for the issue:
No response