Skip to content

Build failure with GCC 16.0.1 and LTO (NumPy) #224

@stratakis

Description

@stratakis

Hello,

On the development version of Fedora we just updated GCC to 16.0.1 and did a mass rebuild. NumPy fails to build with and the error originates in x86-simd-sort:

  ../numpy/_core/src/npysort/x86-simd-sort/src/xss-common-comparators.hpp:43:32: error: inlining failed in call to ‘always_inline’ ‘STDSortComparator’: target specific option mismatch
     43 |     X86_SIMD_SORT_FINLINE bool STDSortComparator(const type_t &a,
        |                                ^
  /usr/include/c++/16/bits/stl_algo.h:1757:20: note: called from here
   1757 |       while (__comp(__val, *__next))
        |                    ^

Full build log is attached.

build.log

LTO is enabled by default and the standalone x86-simd-sort builds fine with the same compiler and flags.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions