Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not compiling on MacOS ARM #31

Open
jianshu93 opened this issue Mar 14, 2022 · 2 comments
Open

Not compiling on MacOS ARM #31

jianshu93 opened this issue Mar 14, 2022 · 2 comments

Comments

@jianshu93
Copy link

Hello Chirag,

I noticed there are sse2neon folder there in the src but I still have the error on macOS ARM:

c++ -c -msse2 -g -Wall -O2 -DHAVE_KALLOC -fopenmp -std=c++11 -Wno-sign-compare -Wno-write-strings -Wno-unused-but-set-variable -fno-tree-vectorize ksw2_ll_sse.c -o ksw2_ll_sse.o
c++ -c -msse4.1 -g -Wall -O2 -DHAVE_KALLOC -fopenmp -std=c++11 -Wno-sign-compare -Wno-write-strings -Wno-unused-but-set-variable -fno-tree-vectorize -DKSW_CPU_DISPATCH ksw2_extz2_sse.c -o ksw2_extz2_sse41.o
c++ -c -msse4.1 -g -Wall -O2 -DHAVE_KALLOC -fopenmp -std=c++11 -Wno-sign-compare -Wno-write-strings -Wno-unused-but-set-variable -fno-tree-vectorize -DKSW_CPU_DISPATCH ksw2_extd2_sse.c -o ksw2_extd2_sse41.o
c++ -c -msse4.1 -g -Wall -O2 -DHAVE_KALLOC -fopenmp -std=c++11 -Wno-sign-compare -Wno-write-strings -Wno-unused-but-set-variable -fno-tree-vectorize -DKSW_CPU_DISPATCH ksw2_exts2_sse.c -o ksw2_exts2_sse41.o
c++: error: unrecognized command-line option '-msse2'
make[1]: *** [ksw2_ll_sse.o] Error 1
make[1]: *** Waiting for unfinished jobs....
c++: error: unrecognized command-line option '-msse4.1'
c++: error: unrecognized command-line option '-msse4.1'
make[1]: *** [ksw2_extd2_sse41.o] Error 1
make[1]: *** [ksw2_exts2_sse41.o] Error 1
c++: error: unrecognized command-line option '-msse4.1'
make[1]: *** [ksw2_extz2_sse41.o] Error 1
make: *** [winnowmap] Error 2

Any idea why?

Thanks,

Jianshu

@AyanoClarke
Copy link

Hi, Jianshu

I'm using M1 ARM Mac.

And after setting the environment variable "arm_neon", it's successfully compiled.

@jianshu93
Copy link
Author

can you please be more specific -msse3 is always there?

thanks,

Jianshu

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

No branches or pull requests

2 participants