1

私は最近 Windows から Mac に切り替え、macOS BigSur と M1 チップを搭載した新しい MacBook を勇気を持って手に入れました。プログラムのインストール ガイドに従ってBPP ( https://github.com/bpp/bpp ) をインストールしようとしていますが、実行可能ファイルをコンパイルしようとすると問題が発生します。

git clone https://github.com/bpp/bpp.git
cd bpp/src
make

これにより、次のような複数のエラーが発生しました。

cc -D_GNU_SOURCE -DHAVE_SSE3 -DHAVE_AVX -DHAVE_AVX2 -g -msse3 -O3 -Wall -Wsign-compare  -c -o bpp.o bpp.c
clang: warning: argument unused during compilation: '-msse3' [-Wunused-command-line-argument]
In file included from bpp.c:22:
In file included from ./bpp.h:43:
In file included from /Library/Developer/CommandLineTools/usr/lib/clang/12.0.0/include/x86intrin.h:15:
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:373: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_paddw((__v4hi)__m1, (__v4hi)__m2);
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

だから私はおそらく問題は、デフォルトのコンパイラがClang 12であり、gcc-11(M1に適しているはず)をインストールした後に実行することだと思いました:

make CC=/opt/homebrew/bin/gcc-11

しかし、それもエラーを出しました:

gcc-11: error: unrecognized command-line option '-msse3'
make: *** [bpp.o] Error 1

私は経験豊富なコーダーではなく、M1 が非常に新しいため、フォーラムから解決策を見つけるのは簡単ではないため、行き詰まっています。この問題を解決する方法について何か提案はありますか?

SSE3 が x86 の機能であることが原因でしょうか?

4

0 に答える 0