Skip to content

Build failure #66

Description

@ndearns

Building on omarchy/linux laptop using the build.sh script.
Here's the tail end of the output:

...
[ 63%] Building CXX object tests/CMakeFiles/unit-tests.dir/json-struct-fail.cpp.o
[ 64%] Building CXX object tests/CMakeFiles/unit-tests.dir/json-struct-float.cpp.o
In file included from /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_assertion_handler.hpp:12,
                 from /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_test_macro_impl.hpp:12,
                 from /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/catch_test_macros.hpp:11,
                 from /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/catch_template_test_macros.hpp:20,
                 from /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/catch_all.hpp:37,
                 from /home/nde/Downloads/json_struct/tests/json-struct-float.cpp:25:
In constructor ‘constexpr Catch::BinaryExpr<LhsT, RhsT>::BinaryExpr(bool, LhsT, Catch::StringRef, RhsT) [with LhsT = float; RhsT = float]’,
    inlined from ‘constexpr std::enable_if_t<((bool)Catch::Detail::conjunction<Catch::Detail::is_eq_comparable<LhsT, RhsT, void>, Catch::capture_by_value<RhsT> >::value), Catch::BinaryExpr<LhsT, RhsT> > Catch::operator==(ExprLhs<LhsT>&&, RhsT) [with RhsT = float; LhsT = float]’ at /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_decomposer.hpp:341:9,
    inlined from ‘void {anonymous}::CATCH2_INTERNAL_TEST_0()’ at /home/nde/Downloads/json_struct/tests/json-struct-float.cpp:50:3:
/home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_decomposer.hpp:209:13: error: ‘json.<unnamed>::Json1::num1’ may be used uninitialized [-Werror=maybe-uninitialized]
  209 |             m_lhs( lhs ),
      |             ^~~~~~~~~~~~
/home/nde/Downloads/json_struct/tests/json-struct-float.cpp: In function ‘void {anonymous}::CATCH2_INTERNAL_TEST_0()’:
/home/nde/Downloads/json_struct/tests/json-struct-float.cpp:47:9: note: ‘json.<unnamed>::Json1::num1’ was declared here
   47 |   Json1 json;
      |         ^~~~
In constructor ‘constexpr Catch::BinaryExpr<LhsT, RhsT>::BinaryExpr(bool, LhsT, Catch::StringRef, RhsT) [with LhsT = double; RhsT = double]’,
    inlined from ‘constexpr std::enable_if_t<((bool)Catch::Detail::conjunction<Catch::Detail::is_eq_comparable<LhsT, RhsT, void>, Catch::capture_by_value<RhsT> >::value), Catch::BinaryExpr<LhsT, RhsT> > Catch::operator==(ExprLhs<LhsT>&&, RhsT) [with RhsT = double; LhsT = double]’ at /home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_decomposer.hpp:341:9,
    inlined from ‘void {anonymous}::CATCH2_INTERNAL_TEST_0()’ at /home/nde/Downloads/json_struct/tests/json-struct-float.cpp:51:3:
/home/nde/Downloads/json_struct/build/_deps/catch2-src/src/catch2/internal/catch_decomposer.hpp:209:13: error: ‘json.<unnamed>::Json1::num2’ may be used uninitialized [-Werror=maybe-uninitialized]
  209 |             m_lhs( lhs ),
      |             ^~~~~~~~~~~~
/home/nde/Downloads/json_struct/tests/json-struct-float.cpp: In function ‘void {anonymous}::CATCH2_INTERNAL_TEST_0()’:
/home/nde/Downloads/json_struct/tests/json-struct-float.cpp:47:9: note: ‘json.<unnamed>::Json1::num2’ was declared here
   47 |   Json1 json;
      |         ^~~~
cc1plus: all warnings being treated as errors
make[2]: *** [tests/CMakeFiles/unit-tests.dir/build.make:256: tests/CMakeFiles/unit-tests.dir/json-struct-float.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:806: tests/CMakeFiles/unit-tests.dir/all] Error 2
make: *** [Makefile:166: all] Error 2

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions