Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

compile error building tests on apple M1 machine #13

Open
springmeyer opened this issue Aug 4, 2022 · 0 comments
Open

compile error building tests on apple M1 machine #13

springmeyer opened this issue Aug 4, 2022 · 0 comments

Comments

@springmeyer
Copy link

Seeing:

In file included from /Users/sehome/projects/selene/test/selene/Catch.cpp:6:
/Users/sehome/projects/selene/external/Catch2/single_include/catch2/catch.hpp:7937:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
            CATCH_BREAK_INTO_DEBUGGER();
            ^
/Users/sehome/projects/selene/external/Catch2/single_include/catch2/catch.hpp:7651:79: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
    #define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }()
                                                                              ^
./projects/selene/external/Catch2/single_include/catch2/catch.hpp:7630: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.

It looks like this is a bug in Catch2, which can be fixed by upgrading the library submodule: catchorg/Catch2#1127

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant