DNS-OARC / flamethrower

a DNS performance and functional testing utility supporting UDP, TCP, DoT and DoH
Apache License 2.0
318 stars 37 forks source link

Darwin is not just x86 #83

Closed marka63 closed 3 years ago

marka63 commented 3 years ago

Darwin ant-1707.local 20.6.0 Darwin Kernel Version 20.6.0: Mon Aug 30 06:12:20 PDT 2021; root:xnu-7195.141.6~3/RELEASE_ARM64_T8101 arm64

/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++  -I/Users/marka/git/flamethrower/tests -I/Users/marka/git/flamethrower/flame -I/opt/local/include -I/opt/local/include/p11-kit-1 -I/Users/marka/git/flamethrower/3rd/url-parser -I/Users/marka/git/flamethrower/3rd/json -I/Users/marka/git/flamethrower/3rd/uvw -isystem /Users/marka/git/flamethrower/3rd/catch -g -arch arm64 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.3.sdk -Wall -std=c++17 -MD -MT CMakeFiles/tests.dir/tests/main.cpp.o -MF CMakeFiles/tests.dir/tests/main.cpp.o.d -o CMakeFiles/tests.dir/tests/main.cpp.o -c /Users/marka/git/flamethrower/tests/main.cpp
In file included from /Users/marka/git/flamethrower/tests/main.cpp:2:
/Users/marka/git/flamethrower/3rd/catch/catch2/catch.hpp:5123:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
            CATCH_BREAK_INTO_DEBUGGER();
            ^
/Users/marka/git/flamethrower/3rd/catch/catch2/catch.hpp:4843:75: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
    #define CATCH_BREAK_INTO_DEBUGGER() if( Catch::isDebuggerActive() ) { CATCH_TRAP(); }
                                                                          ^
/Users/marka/git/flamethrower/3rd/catch/catch2/catch.hpp:4822: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.
make[2]: *** [CMakeFiles/tests.dir/tests/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/tests.dir/all] Error 2
make: *** [all] Error 2
weyrick commented 3 years ago

Thanks for the fix!