8000 BUG: backtrace function detected but not present (aarch64) · Issue #25696 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

BUG: backtrace function detected but not present (aarch64) #25696

@stefanv

Description

@stefanv

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);
      |             ^
In the meson build file we have:
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/A

Error message:

N/A

Python 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0