sgan81 / apfs-fuse

FUSE driver for APFS (Apple File System)
GNU General Public License v2.0
1.78k stars 164 forks source link

Invalid Opcode on AMD architecture #120

Closed arcticforensics closed 4 years ago

arcticforensics commented 4 years ago

Application crashes with "Invalid Opcode" when running on an AMD architecture. The problem appears to be in libapfs.so, according to dmesg (possibly Util.cpp, Unicode.cpp or Crc32.cpp).

sgan81 commented 4 years ago

Odd ... can you try removing the -march=native build option from the CMakeLists.txt (lines 13 and 14) and try again? If this solves the problem, it might be an issue in the compiler ...

arcticforensics commented 4 years ago

Removing the -march=native build option from the CMakeLists.txt fixes this as the compiler does not use optimisations specific to the processor used to compile the code.

RJVB commented 4 years ago

Correct, -march=native should be avoided when building distributable binaries. It does make sense on local builds though.

sgan81 commented 4 years ago

I have now pushed a makefile change and removed the -march=native.