I try to git clone and compile hptt on apple silicon.
If I use cmake
export CC=/opt/homebrew/bin/gcc-14
export CXX=/opt/homebrew/bin/g++-14
cmake -S . -B build
cmake --build build
then I got this error
[ 20%] Building CXX object CMakeFiles/hptt.dir/src/hptt.cpp.o
cc1plus: error: unknown value 'apple-m2' for '-march'
cc1plus: note: valid arguments are: armv8-a armv8.1-a armv8.2-a armv8.3-a armv8.4-a armv8.5-a armv8.6-a armv8.7-a armv8.8-a armv8.9-a armv8-r armv9-a armv9.1-a armv9.2-a armv9.3-a armv9.4-a native
cc1plus: note: did you mean '-mcpu=apple-m2'?
make[2]: *** [CMakeFiles/hptt.dir/src/hptt.cpp.o] Error 1
make[1]: *** [CMakeFiles/hptt.dir/all] Error 2
make: *** [all] Error 2
I try to git clone and compile hptt on apple silicon.
If I use cmake
then I got this error