chhylp123 / hifiasm

Hifiasm: a haplotype-resolved assembler for accurate Hifi reads
MIT License
544 stars 87 forks source link

ARM compiling error #288

Open jianshu93 opened 2 years ago

jianshu93 commented 2 years ago

Hello hifiasm team,

Compiling on macOS ARM has the following error:

g++ -c -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall CommandLines.cpp -o CommandLines.o g++ -c -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall Process_Read.cpp -o Process_Read.o g++ -c -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall Assembly.cpp -o Assembly.o g++ -c -g -O3 -msse4.2 -mpopcnt -fomit-frame-pointer -Wall Hash_Table.cpp -o Hash_Table.o g++: error: unrecognized command-line option '-msse4.2' g++: error: unrecognized command-line option '-msse4.2' g++: error: unrecognized command-line option '-msse4.2' g++: error: unrecognized command-line option '-msse4.2' g++: error: unrecognized command-line option '-mpopcnt' g++: error: unrecognized command-line option '-mpopcnt' g++: error: unrecognized command-line option '-mpopcnt' g++: error: unrecognized command-line option '-mpopcnt' make: [Assembly.o] Error 1 make: Waiting for unfinished jobs.... make: [Process_Read.o] Error 1 make: [Hash_Table.o] Error 1 make: *** [CommandLines.o] Error 1

Thanks,

Jianshu

chhylp123 commented 2 years ago

Can you have a try to disable -mpopcnt and -msse4.2 in the Makefile?

starskyzheng commented 1 year ago

Try https://github.com/DLTcollab/sse2neon

martin-g commented 6 months ago

Please see https://github.com/chhylp123/hifiasm/pull/641

chhylp123 commented 6 months ago

Thanks a lot!