Skip to content

OpenBLAS on LoongArch64: openblas_config.h: error: '_Float16' is not supported on this target #5714

@wegank

Description

@wegank

I encountered the same error as in #5700 when building FLINT on LoongArch64:

configure:15030: checking for cblas.h
configure:15030: gcc -c   -I/nix/store/s3qryikb131hghk6qnakyhrvhwn2v5vp-gmp-with-cxx-6.3.0/include -I/nix/store/29b1k4wdvn1ig9rwnrhjvgp8k5n4njw5-mpfr-4.2.2/include -I/nix/store/lmzx27k35xrg1rdpwc3m>
In file included from /nix/store/h52mz21p1k513nyfvxv40gsllqw29dqi-openblas-0.3.31-dev/include/cblas.h:33,
                 from conftest.c:58:
/nix/store/h52mz21p1k513nyfvxv40gsllqw29dqi-openblas-0.3.31-dev/include/openblas_config.h:63:9: error: '_Float16' is not supported on this target
   63 | typedef _Float16 hfloat16;
      |         ^~~~~~~~
configure:15030: $? = 1

This issue didn't happen before NixOS/nixpkgs#450106 where OpenBLAS was updated to 0.3.31.
@martin-frbg Could you help me, please?

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