Build error on M1 (arm) macOS: unrecognized instruction mnemonic
I'm trying to build nds2-client on osx-arm64 (M1) with conda, and I get this error
[ 1%] Building CXX object src/common/CMakeFiles/test_nds_impl_cxx.dir/tests/test_main.cc.o
cd $SRC_DIR/_build/src/common && $BUILD_PREFIX/bin/arm64-apple-darwin20.0.0-clang++ -I$SRC_DIR/src/common -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem $PREFIX/include -fdebug-prefix-map=$SRC_DIR=/usr/local/src/conda/nds2-client-0.16.7 -fdebug-prefix-map=$PREFIX=/usr/local/src/conda-prefix -O2 -g -DNDEBUG -arch arm64 -isysroot /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk -mmacosx-version-min=11.0 -MD -MT src/common/CMakeFiles/test_nds_impl_cxx.dir/tests/test_main.cc.o -MF CMakeFiles/test_nds_impl_cxx.dir/tests/test_main.cc.o.d -o CMakeFiles/test_nds_impl_cxx.dir/tests/test_main.cc.o -c $SRC_DIR/src/common/tests/test_main.cc
In file included from /Users/duncan.macleod/opt/miniforge3/conda-bld/nds2-client_1631806194996/work/src/common/tests/test_main.cc:5:
/Users/duncan.macleod/opt/miniforge3/conda-bld/nds2-client_1631806194996/work/src/common/catch.hpp:5025:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
CATCH_BREAK_INTO_DEBUGGER();
^
/Users/duncan.macleod/opt/miniforge3/conda-bld/nds2-client_1631806194996/work/src/common/catch.hpp:4747:75: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
#define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { CATCH_TRAP(); }
^
/Users/duncan.macleod/opt/miniforge3/conda-bld/nds2-client_1631806194996/work/src/common/catch.hpp:4726:34: note: expanded from macro 'CATCH_TRAP'
#define CATCH_TRAP() __asm__("int $3\n" : : ) /* NOLINT */
^
<inline asm>:1:2: note: instantiated into assembly here
int $3
^
1 error generated.