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

Error while building on MACOS #14

Closed
chorfa007 opened this issue Jun 8, 2024 · 3 comments
Closed

Error while building on MACOS #14

chorfa007 opened this issue Jun 8, 2024 · 3 comments

Comments

@chorfa007
Copy link

Hello,

I cant build the library on
Darwin MacBook-Pro.local 23.5.0 Darwin Kernel Version 23.5.0: Wed May 1 20:19:05 PDT 2024; root:xnu-10063.121.3~5/RELEASE_ARM64_T8112 arm64
below steps to replicate the issue 👍
Make a git clone
go to project folder
cmake .
make

You will end with error

make
[ 25%] Building CXX object example/CMakeFiles/jsonrpcpp_example.dir/jsonrpcpp_example.cpp.o
[ 50%] Linking CXX executable jsonrpcpp_example
[ 50%] Built target jsonrpcpp_example
[ 75%] Building CXX object test/CMakeFiles/jsonrpcpp_test.dir/test_main.cpp.o
In file included from /Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/test_main.cpp:10:
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:8122:13: error: unrecognized instruction mnemonic, did you mean: bit, cnt, hint, ins, not?
CATCH_BREAK_INTO_DEBUGGER();
^
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:7834:79: note: expanded from macro 'CATCH_BREAK_INTO_DEBUGGER'
#define CATCH_BREAK_INTO_DEBUGGER() []{ if( Catch::isDebuggerActive() ) { CATCH_TRAP(); } }()
^
/Users/issamchorfa/jsonrpcpp/jsonrpcpp/test/catch.hpp:7813:34: note: expanded from macro 'CATCH_TRAP'
#define CATCH_TRAP() asm("int $3\n" : : ) /* NOLINT */
^
:1:2: note: instantiated into assembly here
int $3
^
1 error generated.
make[2]: *** [test/CMakeFiles/jsonrpcpp_test.dir/test_main.cpp.o] Error 1
make[1]: *** [test/CMakeFiles/jsonrpcpp_test.dir/all] Error 2
make: *** [all] Error 2

@chorfa007
Copy link
Author

including @badaix

@chorfa007 chorfa007 reopened this Jun 8, 2024
@chorfa007
Copy link
Author

Below is the link where you can find the solution. It still needs to be verified on Windows and Linux builds
CoatiSoftware/Sourcetrail#1185

@badaix
Copy link
Owner

badaix commented Jun 12, 2024

I've updated Catch2 to v3.6 in jsonrpc++ 1.4.0 and added tests for 29 more compilers to the CI, including Linux, Mac and Windows, see the action run

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

2 participants