TadaoYamaoka / creversi

高速なPythonのリバーシライブラリ
GNU General Public License v3.0
25 stars 4 forks source link

Compile Error to install(Mac M1, Python 3.9.8) #8

Open ueno-masayuki opened 2 years ago

ueno-masayuki commented 2 years ago

M1Macでインストールしようとすると (省略)

  creversi_cpp/move_generator.cpp:66:63: error: use of overloaded operator '+' is ambiguous (with operand types '__m256i' (vector of 4 'long long' values) and 'state::u64_4')
                  return _mm256_cmpeq_epi64(lhs.data, _mm256_setzero_si256()) + u64_4(1);
                         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^ ~~~~~~~~
  creversi_cpp/move_generator.cpp:39:15: note: candidate function
          inline u64_4 operator+(const u64_4 lhs, const u64_4 rhs) {
                       ^
  creversi_cpp/move_generator.cpp:66:63: note: built-in candidate operator+(__attribute__((__vector_size__(4 * sizeof(long long)))) long long, __attribute__((__vector_size__(4 * sizeof(long long)))) long long)
                  return _mm256_cmpeq_epi64(lhs.data, _mm256_setzero_si256()) + u64_4(1);
                                                                              ^
  1 error generated.
  error: command '/usr/bin/clang' failed with exit code 1
  [end of output]

note: This error originates from a subprocess, and is likely not a problem with pip. error: legacy-install-failure

というメッセージが出力されて,失敗してしまいます.M1のせいかも?