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 error #1

Open
feiaiyue opened this issue Nov 9, 2024 · 1 comment
Open

build error #1

feiaiyue opened this issue Nov 9, 2024 · 1 comment

Comments

@feiaiyue
Copy link

feiaiyue commented Nov 9, 2024

I download this project and try to make it but failed on the macbook(M1 air)
The detailed error message is as follows:
^
/Users/feiaiyue/euro-meets-neurips-2022/pchgs/build/_deps/nlohmann_json-src/test/thirdparty/doctest/doctest.h:2069:58: note: expanded from macro 'DOCTEST_CHECK_THROWS_WITH_AS'
#define DOCTEST_CHECK_THROWS_WITH_AS(expr, message, ...) DOCTEST_ASSERT_THROWS_AS(expr, DT_CHECK_THROWS_WITH_AS, message, VA_ARGS)
^
/Users/feiaiyue/euro-meets-neurips-2022/pchgs/build/_deps/nlohmann_json-src/test/thirdparty/doctest/doctest.h:2029:13: note: expanded from macro 'DOCTEST_ASSERT_THROWS_AS'
DOCTEST_ASSERT_LOG_AND_REACT(_DOCTEST_RB);
^
/Users/feiaiyue/euro-meets-neurips-2022/pchgs/build/_deps/nlohmann_json-src/test/thirdparty/doctest/doctest.h:1727:9: note: expanded from macro 'DOCTEST_ASSERT_LOG_AND_REACT'
DOCTEST_BREAK_INTO_DEBUGGER();
^
/Users/feiaiyue/euro-meets-neurips-2022/pchgs/build/_deps/nlohmann_json-src/test/thirdparty/doctest/doctest.h:351:47: note: expanded from macro 'DOCTEST_BREAK_INTO_DEBUGGER'
#define DOCTEST_BREAK_INTO_DEBUGGER() asm("int $3\n" : :)
^
:1:2: note: instantiated into assembly here
int $3
^
3 errors generated.
make[2]: *** [_deps/nlohmann_json-build/test/CMakeFiles/test-udt_macro.dir/src/unit-udt_macro.cpp.o] Error 1
make[1]: *** [_deps/nlohmann_json-build/test/CMakeFiles/test-udt_macro.dir/all] Error 2
make: *** [all] Error 2

@SmilingWayne
Copy link

Maybe caused by different version of cmake dependency nlohmann/json, in pchgs/lib/CMakeLists.txt, change nlohmann_json from 3.9.1 to 3.11.3. It works for my machine (macOS 14.5, M3) :).

Similar problems: nlohmann/json#4228

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