Skip to content

BLD: ERROR: features.test takes at least 1 arguments, but got 0 with new CPU dispatcher #24731

Description

@matoro

Describe the issue:

With numpy-1.26.0, which contains the new CPU dispatcher, when -mcpu=native is set in CFLAGS for platforms not in the list with explicit support (tested on alpha), configure fails with the below messages:

Message: Appending option "detect" to "cpu-baseline" due to detecting global architecture c_arg "-mcpu=native"
 
../numpy-1.26.0/meson_cpu/meson.build:163:35: ERROR: features.test takes at least 1 arguments, but got 0.

In this case, CFLAGS were set to -mieee -O3 -pipe -mcpu=native -mtune=native. Works fine on 1.25.2. Complete log: build.log

I offer FREE shell access to test machines for all of the architectures I validate on. If testing on the hardware I used to reproduce this is helpful, just include a desired username.

Reproduce the code example:

N/A

Error message:

No response

Runtime information:

N/A

Context for the issue:

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions