profile
viewpoint

Ask questionsBuild failure on Apple Silicon arm64 Macs

How to reproduce

  1. Build ccache 4.1 with Xcode 12.2 on macOS 11.0.1 on an Apple Silicon (arm64) Mac

Actual behavior

Build failure. Here is the full log. The errors are all of this type:

In file included from src/third_party/blake3/blake3_sse41.c:3:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/immintrin.h:14:
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/mmintrin.h:50:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size
    return (__m64)__builtin_ia32_vec_init_v2si(__i, 0);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/mmintrin.h:129:12: error: invalid conversion between vector type '__m64' (vector of 1 'long long' value) and integer type 'int' of different size

Despite the fact that the error messages appear to refer to files that are part of the development environment, I do not believe that there is a problem with the development environment.

Expected behavior

<!-- What did you expect to happen? -->

Successful build.

Environment

<!-- Which ccache version did you use? -->

ccache version 4.1 macOS 11.0.1 Xcode 12.2 Apple Silicon Mac

ccache/ccache

Answer questions ryandesign

Thank you, that does work. Here is the successful build log.

useful!

Related questions

No questions were found.
source:https://uonfu.com/
Github User Rank List