← All tasks
cppcdcseacave/openMVS #921Not a task: not reproduced

Error building in MacOS

envgap__cdcseacave__openMVS-921

01 / FAILURE SIGNATURE

As reported upstream

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
Not a benchmark task.
  • In a clean container the reported failure did not reproduce, or the known fix did not make the project run.

02 / ENVIRONMENT RECIPE

Base commit
b58a6874bf3d044e1b7f885f4474f13d2b7c249e
Manifest
CMakeLists.txt
Reproduce
Awaiting issue-specific recipe
Run under trace
Awaiting a meaningful runtime command

03 / ORIGINAL ISSUE TEXT

cdcseacave/openMVS #921 · read the original issue
**Describe the bug**

I was following the build instructions, everything was working perfectly until the building step. It stopped because of too many errors.



`error: "This header is only meant to be used on x86 and x64 architecture"`

`error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?`

`error: too few arguments to function call, expected 2, have 0`

`error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'`

`error: use of undeclared identifier '__builtin_ia32_packsswb'`

`error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?`

`error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)`

`fatal error: too many errors emitted, stopping now [-ferror-limit=]`



I had no idea what was going on. 







```

kuokchonweng@guojunyingdeMacBook-Pro make % cmake --build . -j4

[  1%] Building CXX object libs/Common/CMakeFiles/Common.dir/cmake_pch_arm64.hxx.pch

In file included from <built-in>:1:

In file included from /Users/kuokchonweng/openMVS/make/libs/Common/CMakeFiles/Common.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Common.h:176:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Types.h:161:

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/xmmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

#error "This header is only meant to be used on x86 and x64 architecture"

 ^

In file included from <built-in>:1:

In file included from /Users/kuokchonweng/openMVS/make/libs/Common/CMakeFiles/Common.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Common.h:176:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Types.h:161:

In file included from /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/xmmintrin.h:17:

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"

#error "This header is only meant to be used on x86 and x64 architecture"

 ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:37:5: error: use of undeclared identifier '__builtin_ia32_emms'; did you mean '__builtin_isless'?

    __builtin_ia32_emms();

    ^

/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/c++/v1/math.h:670:12: note: '__builtin_isless' declared here

    return isless(__lcpp_x, __lcpp_y);

           ^

/Library/Developer/CommandLineTools/SDKs/MacOSX13.1.sdk/usr/include/math.h:545:22: note: expanded from macro 'isless'

#define isless(x, y) __builtin_isless((x),(y))

                     ^

In file included from <built-in>:1:

In file included from /Users/kuokchonweng/openMVS/make/libs/Common/CMakeFiles/Common.dir/cmake_pch_arm64.hxx:5:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Common.h:176:

In file included from /Users/kuokchonweng/openMVS/libs/Common/Types.h:161:

In file included from /Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/xmmintrin.h:17:

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:37:25: error: too few arguments to function call, expected 2, have 0

    __builtin_ia32_emms();

    ~~~~~~~~~~~~~~~~~~~~^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:54:19: error: use of undeclared identifier '__builtin_ia32_vec_init_v2si'

    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:71:12: error: use of undeclared identifier '__builtin_ia32_vec_ext_v2si'

    return __builtin_ia32_vec_ext_v2si((__v2si)__m, 0);

           ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:133:19: error: use of undeclared identifier '__builtin_ia32_packsswb'

    return (__m64)__builtin_ia32_packsswb((__v4hi)__m1, (__v4hi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:163:19: error: use of undeclared identifier '__builtin_ia32_packssdw'

    return (__m64)__builtin_ia32_packssdw((__v2si)__m1, (__v2si)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:193:19: error: use of undeclared identifier '__builtin_ia32_packuswb'

    return (__m64)__builtin_ia32_packuswb((__v4hi)__m1, (__v4hi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:220:19: error: use of undeclared identifier '__builtin_ia32_punpckhbw'

    return (__m64)__builtin_ia32_punpckhbw((__v8qi)__m1, (__v8qi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:243:19: error: use of undeclared identifier '__builtin_ia32_punpckhwd'

    return (__m64)__builtin_ia32_punpckhwd((__v4hi)__m1, (__v4hi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:264:19: error: use of undeclared identifier '__builtin_ia32_punpckhdq'

    return (__m64)__builtin_ia32_punpckhdq((__v2si)__m1, (__v2si)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:291:19: error: use of undeclared identifier '__builtin_ia32_punpcklbw'

    return (__m64)__builtin_ia32_punpcklbw((__v8qi)__m1, (__v8qi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:314:19: error: use of undeclared identifier '__builtin_ia32_punpcklwd'

    return (__m64)__builtin_ia32_punpcklwd((__v4hi)__m1, (__v4hi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:335:19: error: use of undeclared identifier '__builtin_ia32_punpckldq'

    return (__m64)__builtin_ia32_punpckldq((__v2si)__m1, (__v2si)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:356:19: error: use of undeclared identifier '__builtin_ia32_paddb'; did you mean '__builtin_arm_addg'?

    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:356:19: note: '__builtin_arm_addg' declared here

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:356:19: error: first argument of MTE builtin function must be a pointer ('__v8qi' (vector of 8 'char' values) invalid)

    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);

                  ^                    ~~~~~~~~~~~~

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:377:19: error: use of undeclared identifier '__builtin_ia32_paddw'; did you mean '__builtin_arm_addg'?

    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:356:19: note: '__builtin_arm_addg' declared here

    return (__m64)__builtin_ia32_paddb((__v8qi)__m1, (__v8qi)__m2);

                  ^

/Library/Developer/CommandLineTools/usr/lib/clang/14.0.0/include/mmintrin.h:377:19: error: first argument of MTE builtin function must be a pointer ('__v4hi' (vector of 4 'short' values) invalid)

    return (__m64)__builtin_ia32_paddw((__v4hi)__m1, (__v4hi)__m2);

                  ^                    ~~~~~~~~~~~~

fatal error: too many errors emitted, stopping now [-ferror-limit=]

20 errors generated.

make[2]: *** [libs/Common/CMakeFiles/Common.dir/cmake_pch_arm64.hxx.pch] Error 1

make[1]: *** [libs/Common/CMakeFiles/Common.dir/all] Error 2

make: *** [all] Error 2

```



**Desktop (please complete the following information):**

 - OS: macOS 13.1 (22C65)

 - Chip: Apple M1 Max







Continue on GitHub ↗

04 / LABELS

Labels from the report text only; not yet run

No supported category has been assigned.

Label rules and the text that matched
[]