marbl / Winnowmap

Long read / genome alignment software
Other
235 stars 22 forks source link

Not compiling on MacOS ARM #31

Open jianshu93 opened 2 years ago

jianshu93 commented 2 years ago

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 commented 2 years ago

Hi, Jianshu

I'm using M1 ARM Mac.

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

jianshu93 commented 2 years ago

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

thanks,

Jianshu