Compile mha from source on M1 Macbook - error clang: error: the clang compiler does not support '-mcpu=cortex-a8'
Posted: Wed Sep 15, 2021 9:34 am
Hi,
I tried to compile mha from source on macOS 11. I installed the required software and packages.
When I try make I get the following error:
Could the reason behind this be that this is an M1 MacBook Air, which does not use an Intel processor or could the reason be something different? Do I need to set the variable COMPILEPREFIX in this case?
Best regards,
Steffen
I tried to compile mha from source on macOS 11. I installed the required software and packages.
When I try make I get the following error:
Code: Select all
felinemalin@MacBook-Air-von-Malin openMHA % make
/Applications/Xcode.app/Contents/Developer/usr/bin/make -C external_libs
cd libemx/. && /Applications/Xcode.app/Contents/Developer/usr/bin/make -j 1
clang -Wall -Wextra -std=gnu11 -fPIC -O3 -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon -ffast-math -fomit-frame-pointer -fno-finite-math-only -isystem/opt/local/include -Wno-error=unused-command-line-argument -g -isystem /Users/felinemalin/Desktop/steffens_kram/openMHA/external_libs/arm64-Darwin-clang/include -Wall -Wextra -Werror -std=gnu11 -fPIC -O3 -mcpu=cortex-a8 -mfloat-abi=hard -mfpu=neon -ffast-math -fomit-frame-pointer -fno-finite-math-only -isystem/opt/local/include -Wno-error=unused-command-line-argument -g -isystem /Users/felinemalin/Desktop/steffens_kram/openMHA/external_libs/arm64-Darwin-clang/include -c -o arm64-Darwin-clang/emxAPI.o src/emxAPI.c
clang: error: the clang compiler does not support '-mcpu=cortex-a8'
make[2]: *** [arm64-Darwin-clang/emxAPI.o] Error 1
make[1]: *** [arm64-Darwin-clang/libemx.is_installed] Error 2
make: *** [external_libs] Error 2
Best regards,
Steffen