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 fail #573

Closed
pfeatherstone opened this issue May 27, 2019 · 3 comments
Closed

Build fail #573

pfeatherstone opened this issue May 27, 2019 · 3 comments

Comments

@pfeatherstone
Copy link

The build fails with the following output

:/Downloads/cereal$ mkdir release
:
/Downloads/cereal$ cd release/
:/Downloads/cereal/release$ cmake ..
-- The C compiler identification is GNU 7.4.0
-- The CXX compiler identification is GNU 7.4.0
-- Check for working C compiler: /usr/bin/cc
-- Check for working C compiler: /usr/bin/cc -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /usr/bin/c++
-- Check for working CXX compiler: /usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Boost version: 1.65.1
-- Found the following Boost libraries:
-- serialization
-- Found Doxygen: /usr/bin/doxygen (found version "1.8.13") found components: doxygen missing components: dot
-- Configuring done
-- Generating done
-- Build files have been written to: /Downloads/cereal/release
:
/Downloads/cereal/release$ make
Scanning dependencies of target test_pair
[ 1%] Building CXX object unittests/CMakeFiles/test_pair.dir/pair.cpp.o
In file included from /Downloads/cereal/unittests/common.hpp:54:0,
from /Downloads/cereal/unittests/pair.hpp:29,
from/Downloads/cereal/unittests/pair.cpp:28:
/Downloads/cereal/./include/cereal/archives/json.hpp: In member function ‘void cereal::JSONOutputArchive::finishNode()’:
/Downloads/cereal/./include/cereal/archives/json.hpp:211:33: error: this statement may fall through [-Werror=implicit-fallthrough=]
itsWriter.StartArray();
~~~~~~~~~~~~~~~~~~~~^~
/Downloads/cereal/./include/cereal/archives/json.hpp:212:11: note: here
case NodeType::InArray:
^~~~
/Downloads/cereal/./include/cereal/archives/json.hpp:216:34: error: this statement may fall through [-Werror=implicit-fallthrough=]
itsWriter.StartObject();
~~~~~~~~~~~~~~~~~~~~~^~
/Downloads/cereal/./include/cereal/archives/json.hpp:217:11: note: here
case NodeType::InObject:
^~~~
cc1plus: all warnings being treated as errors
unittests/CMakeFiles/test_pair.dir/build.make:62: recipe for target 'unittests/CMakeFiles/test_pair.dir/pair.cpp.o' failed
make[2]: *** [unittests/CMakeFiles/test_pair.dir/pair.cpp.o] Error 1
CMakeFiles/Makefile2:909: recipe for target 'unittests/CMakeFiles/test_pair.dir/all' failed
make[1]: *** [unittests/CMakeFiles/test_pair.dir/all] Error 2
Makefile:140: recipe for target 'all' failed
make: *** [all] Error 2

@furkanusta
Copy link
Contributor

This seems to be duplicate of #550 and #464

@pfeatherstone
Copy link
Author

Thank you

@AzothAmmo
Copy link
Contributor

There's actually quite a few compilers we are currently failing to build on, mostly due to new(ish) warnings. I updated CI about a week ago to highlight all of these so they can be fixed: https://travis-ci.com/USCiLab/cereal

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

No branches or pull requests

3 participants