[Bug 262910] immintrin.h fails on arm64: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 29 Mar 2022 19:17:55 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262910

            Bug ID: 262910
           Summary: immintrin.h fails on arm64: error: use of undeclared
                    identifier '__builtin_ia32_emms'; did you mean
                    '__builtin_isless'?
           Product: Base System
           Version: 13.0-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: arm
          Assignee: freebsd-arm@FreeBSD.org
          Reporter: yuri@freebsd.org

The science/opensph port fails on arm64:

> In file included from /usr/lib/clang/11.0.1/include/immintrin.h:15:
> /usr/lib/clang/11.0.1/include/mmintrin.h:33:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?
>     __builtin_ia32_emms();
>     ^
> /usr/include/c++/v1/math.h:649:12: note: '__builtin_isless' declared here
>     return isless(__lcpp_x, __lcpp_y);
           ^
> /usr/include/math.h:120:23: note: expanded from macro 'isless'
> #define isless(x, y)            __builtin_isless((x), (y))
>                                 ^

It seems that just include of immintrin.h causes the problem.

Log:
http://ampere3.nyi.freebsd.org/data/130arm64-default/60ab72786154/logs/OpenSPH-0.3.8_4.log

-- 
You are receiving this mail because:
You are the assignee for the bug.