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

Build fails on macOS aarch64 using Apple Clang: catch.hpp: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not? #99

Closed
barracuda156 opened this issue Jan 10, 2023 · 2 comments

Comments

@barracuda156
Copy link

In file included from /opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/main.cc:26:
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/catch.hpp:8205:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
            CATCH_BREAK_INTO_DEBUGGER();
            ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/catch.hpp:7916:83: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
        #define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }()
                                                                                  ^
/opt/local/var/macports/build/_opt_bblocal_var_buildworker_ports_build_ports_math_clingcon/clingcon/work/clingcon-5.2.0/libclingcon/tests/catch.hpp:7881: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]: *** [libclingcon/tests/CMakeFiles/test_clingcon.dir/main.cc.o] Error 1

Complete log: https://build.macports.org/builders/ports-11_arm64-builder/builds/79019

@barracuda156
Copy link
Author

Perhaps related: CoatiSoftware/Sourcetrail#1185

barracuda156 added a commit to barracuda156/clingcon that referenced this issue Jan 10, 2023
@barracuda156
Copy link
Author

PR with the fix (plus PPC fix): #100

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

Successfully merging a pull request may close this issue.

2 participants