iqbal-lab-org / cobs

COBS - Compact Bit-Sliced Signature Index (for Genomic k-Mer Data or q-Grams)
https://panthema.net/cobs
MIT License
16 stars 2 forks source link

Error compiling on Apple Silicon/ARM64 #24

Open aromberg opened 7 months ago

aromberg commented 7 months ago

Hello,

while trying to install cobs on an Apple Silicon machine, I ran into the following error:

In file included from /Users/adrian/Desktop/cobs/cobs/query/classic_index/mmap_search_file.cpp:9:
In file included from /Users/adrian/Desktop/cobs/cobs/query/classic_index/mmap_search_file.hpp:12:
In file included from /Users/adrian/Desktop/cobs/cobs/query/classic_index/search_file.hpp:13:
In file included from /Users/adrian/Desktop/cobs/cobs/query/index_file.hpp:15:
/Library/Developer/CommandLineTools/usr/lib/clang/15.0.0/include/immintrin.h:14:2: error: "This header is only meant to be used on x86 and x64 architecture"
#error "This header is only meant to be used on x86 and x64 architecture"

Would really appreciate your help with this! It looks like this could be fixed by using something like SIMDe, however I haven't been able to figure it out just yet.