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

Cannot build with catch versions 3 and up. #29

Open
PawelWMS opened this issue Feb 21, 2024 · 0 comments
Open

Cannot build with catch versions 3 and up. #29

PawelWMS opened this issue Feb 21, 2024 · 0 comments

Comments

@PawelWMS
Copy link

PawelWMS commented Feb 21, 2024

While trying to build jsonbuilder, I've hit the following errors:

time="2024-02-20T12:00:04Z" level=debug msg="/usr/bin/make  -f test/CMakeFiles/jsonbuilderTest.dir/build.make test/CMakeFiles/jsonbuilderTest.dir/build"
time="2024-02-20T12:00:04Z" level=debug msg="/usr/src/mariner/BUILD/jsonbuilder-0.2.1/test/CatchMain.cpp:5:10: fatal error: catch2/catch.hpp: No such file or directory"
time="2024-02-20T12:00:04Z" level=debug msg="    5 | #include <catch2/catch.hpp>"
time="2024-02-20T12:00:04Z" level=debug msg="      |          ^~~~~~~~~~~~~~~~~~"
time="2024-02-20T12:00:04Z" level=debug msg="compilation terminated."
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: *** [test/CMakeFiles/jsonbuilderTest.dir/build.make:79: test/CMakeFiles/jsonbuilderTest.dir/CatchMain.cpp.o] Error 1"
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: Entering directory '/usr/src/mariner/BUILD/jsonbuilder-0.2.1/build'"
time="2024-02-20T12:00:04Z" level=debug msg="[ 62%] Building CXX object test/CMakeFiles/jsonbuilderTest.dir/CatchMain.cpp.o"
time="2024-02-20T12:00:04Z" level=debug msg="cd /usr/src/mariner/BUILD/jsonbuilder-0.2.1/build/test && /usr/lib/ccache/c++  -I/usr/src/mariner/BUILD/jsonbuilder-0.2.1/include -isystem /usr/include/uuid -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/mariner/default-hardened-cc1   -fcommon -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -Wextra -MD -MT test/CMakeFiles/jsonbuilderTest.dir/CatchMain.cpp.o -MF CMakeFiles/jsonbuilderTest.dir/CatchMain.cpp.o.d -o CMakeFiles/jsonbuilderTest.dir/CatchMain.cpp.o -c /usr/src/mariner/BUILD/jsonbuilder-0.2.1/test/CatchMain.cpp"
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: Leaving directory '/usr/src/mariner/BUILD/jsonbuilder-0.2.1/build'"
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: *** Waiting for unfinished jobs...."
time="2024-02-20T12:00:04Z" level=debug msg="/usr/src/mariner/BUILD/jsonbuilder-0.2.1/test/TestBuilder.cpp:4:10: fatal error: catch2/catch.hpp: No such file or directory"
time="2024-02-20T12:00:04Z" level=debug msg="    4 | #include <catch2/catch.hpp>"
time="2024-02-20T12:00:04Z" level=debug msg="      |          ^~~~~~~~~~~~~~~~~~"
time="2024-02-20T12:00:04Z" level=debug msg="compilation terminated."
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: *** [test/CMakeFiles/jsonbuilderTest.dir/build.make:93: test/CMakeFiles/jsonbuilderTest.dir/TestBuilder.cpp.o] Error 1"
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: Entering directory '/usr/src/mariner/BUILD/jsonbuilder-0.2.1/build'"
time="2024-02-20T12:00:04Z" level=debug msg="[ 75%] Building CXX object test/CMakeFiles/jsonbuilderTest.dir/TestBuilder.cpp.o"
time="2024-02-20T12:00:04Z" level=debug msg="cd /usr/src/mariner/BUILD/jsonbuilder-0.2.1/build/test && /usr/lib/ccache/c++  -I/usr/src/mariner/BUILD/jsonbuilder-0.2.1/include -isystem /usr/include/uuid -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -fexceptions -fstack-protector-strong -grecord-gcc-switches -specs=/usr/lib/rpm/mariner/default-hardened-cc1   -fcommon -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -Wall -Wextra -MD -MT test/CMakeFiles/jsonbuilderTest.dir/TestBuilder.cpp.o -MF CMakeFiles/jsonbuilderTest.dir/TestBuilder.cpp.o.d -o CMakeFiles/jsonbuilderTest.dir/TestBuilder.cpp.o -c /usr/src/mariner/BUILD/jsonbuilder-0.2.1/test/TestBuilder.cpp"
time="2024-02-20T12:00:04Z" level=debug msg="make[2]: Leaving directory '/usr/src/mariner/BUILD/jsonbuilder-0.2.1/build'"
time="2024-02-20T12:00:05Z" level=debug msg="/usr/src/mariner/BUILD/jsonbuilder-0.2.1/test/TestRenderer.cpp:8:10: fatal error: catch2/catch.hpp: No such file or directory"
time="2024-02-20T12:00:05Z" level=debug msg="    8 | #include <catch2/catch.hpp>"
time="2024-02-20T12:00:05Z" level=debug msg="      |          ^~~~~~~~~~~~~~~~~~"
time="2024-02-20T12:00:05Z" level=debug msg="compilation terminated."

It looks like catch has removed the catch2/catch.hpp header and split it into smaller chunks (see: 3.0.0-preview4 release notes).

I've tried to summarize the changes, which allowed me to build jsonbuilder with the 3+ version of catch in #30.

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