Skip to content
This repository has been archived by the owner on Mar 19, 2024. It is now read-only.

compilation error on Apple M1 #1174

Open
messense opened this issue Jan 14, 2021 · 1 comment · May be fixed by #1176
Open

compilation error on Apple M1 #1174

messense opened this issue Jan 14, 2021 · 1 comment · May be fixed by #1176

Comments

@messense
Copy link

[  2%] Building CXX object CMakeFiles/fasttext-static.dir/src/args.cc.o
clang: error: the clang compiler does not support '-march=native'
make[2]: *** [CMakeFiles/fasttext-static.dir/src/args.cc.o] Error 1
make[1]: *** [CMakeFiles/fasttext-static.dir/all] Error 2
make: *** [all] Error 2
@messense messense linked a pull request Jan 15, 2021 that will close this issue
@vhpoet
Copy link

vhpoet commented Feb 23, 2022

  1. Open makefile
  2. Replace -march=native on line 10 with -mcpu=apple-a12
  3. Profit

See https://stackoverflow.com/questions/65966969/why-does-march-native-not-work-on-apple-m1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants