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: catch2 too old #1114

Closed
KoNekoD opened this issue Dec 24, 2022 · 3 comments · Fixed by #1121
Closed

Compile error: catch2 too old #1114

KoNekoD opened this issue Dec 24, 2022 · 3 comments · Fixed by #1121

Comments

@KoNekoD
Copy link

KoNekoD commented Dec 24, 2022

ERROR:
In file included from /home/autumn/Downloads/sqlite_orm-1.8/tests/tests.cpp:5:
/home/autumn/Downloads/sqlite_orm-1.8/build/_deps/catch2-src/single_include/catch2/catch.hpp:10877:45: ошибка: размер массива «altStackMem» не является целочисленным константным выражением
10877 | char FatalConditionHandler::altStackMem[sigStackSize] = {};
| ^~~~~~~~~~~~
gmake[2]: *** [tests/CMakeFiles/unit_tests.dir/build.make:494: tests/CMakeFiles/unit_tests.dir/tests.cpp.o] Ошибка 1
gmake[2]: выход из каталога «/home/autumn/Downloads/sqlite_orm-1.8/build»
gmake[1]: *** [CMakeFiles/Makefile2:941: tests/CMakeFiles/unit_tests.dir/all] Ошибка 2
gmake[1]: выход из каталога «/home/autumn/Downloads/sqlite_orm-1.8/build»
gmake: *** [Makefile:149: all] Ошибка 2

HOW I FIXRD:

sqlite_orm/dependencies/CMakeLists.txt

`catch2
GIT_REPOSITORY https://github.com/catchorg/Catch2.git

  •    GIT_TAG v2.13.2
    
  •   GIT_TAG v2.13.5
    
    )`

Please fix this problem

@fnc12
Copy link
Owner

fnc12 commented Dec 24, 2022

I'll do it soon. Thanks

@trueqbit
Copy link
Collaborator

trueqbit commented Jan 15, 2023

@fnc12 I am in the process of updating to Catch2 v3 as part of the vcpkg port update.

@trueqbit
Copy link
Collaborator

@KoNekoD Does PR #1121 (into dev) and the v1.8.1 release solve your problem?

@trueqbit trueqbit linked a pull request Feb 13, 2023 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants