luntergroup / octopus

Bayesian haplotype-based mutation calling

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Install fails on Apple M1

jdidion opened this issue · comments

I am trying to build the docker image on a MacBook Pro with M1 Max Pro chip. I try using both arm64 and native for the --architecture option. In either case I get a failure due to SIMD compiler flags:

#0 58.37 c++: error: unrecognized command line option ‘-mfpmath=both’
#0 58.37 c++: error: unrecognized command line option ‘-mfpmath=both’
#0 58.37 c++: error: unrecognized command line option ‘-mfpmath=both’
#0 58.37 make[2]: *** [src/CMakeFiles/octopus.dir/build.make:89: src/CMakeFiles/octopus.dir/config/common.cpp.o] Error 1
#0 58.37 make[2]: *** Waiting for unfinished jobs....
#0 58.37 make[2]: *** [src/CMakeFiles/octopus.dir/build.make:102: src/CMakeFiles/octopus.dir/config/option_parser.cpp.o] Error 1
#0 58.37 make[2]: *** [src/CMakeFiles/octopus.dir/build.make:76: src/CMakeFiles/octopus.dir/config/config.cpp.o] Error 1
#0 58.37 c++: error: unrecognized command line option ‘-mfpmath=both’
#0 58.37 make[2]: *** [src/CMakeFiles/octopus.dir/build.make:63: src/CMakeFiles/octopus.dir/main.cpp.o] Error 1
#0 58.37 c++: error: unrecognized command line option ‘-msse2’
#0 58.37 c++: error: unrecognized command line option ‘-mfpmath=both’
#0 58.37 make[2]: *** [src/CMakeFiles/octopus.dir/build.make:115: src/CMakeFiles/octopus.dir/config/option_collation.cpp.o] Error 1
#0 58.38 make[1]: *** [CMakeFiles/Makefile2:306: src/CMakeFiles/octopus.dir/all] Error 2
#0 58.38 make: *** [Makefile:130: all] Error 2

Hey John @jdidion,

I ran into a similar issue when trying to build a docker image with the v0.7.4 release. I ended up having to patch the Cmake file so it did not add those extra options (in my case, it was -mavx2) when compiling octopus. I ran into a similar issue where setting -DCOMPILER_ARCHITECTURE=sandybridge or -DCOMPILER_ARCHITECTURE=ivybridge did not make a difference. You may need to take a similar approach.

Here is the issue I am referencing if you want to take a peek at my Dockerfile:
#241

I hope this helps,
@skchronicles