Skip to content
This repository was archived by the owner on Feb 21, 2019. It is now read-only.

bitshares/libraries/fc/src/io/sstream.cpp cannot be build with gcc-5.1 #1540

@alexxy

Description

@alexxy

Hi all!

Seems like bitshares/libraries/fc/src/io/sstream.cpp cannot be compiled with gcc-5.1

[ 26%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/io/sstream.cpp.o
In file included from /home/alexxy/Src/bitshares/libraries/fc/src/io/sstream.cpp:2:0:
/home/alexxy/Src/bitshares/libraries/fc/include/fc/fwd_impl.hpp: In instantiation of 'void fc::check_size() [with long unsigned int RequiredSize = 392ul; long unsigned int ProvidedSize = 368ul]':
/home/alexxy/Src/bitshares/libraries/fc/include/fc/fwd_impl.hpp:63:43: required from 'fc::fwd<T, S, Align>::fwd(U&&) [with U = std::__cxx11::basic_string&; T = fc::stringstream::impl; unsigned int S = 368u; Align = double]'
/home/alexxy/Src/bitshares/libraries/fc/src/io/sstream.cpp:24:8: required from here
/home/alexxy/Src/bitshares/libraries/fc/include/fc/fwd_impl.hpp:58:25: error: static assertion failed: Failed to reserve enough space in fc::fwd<T,S>
void check_size() { static_assert( (ProvidedSize >= RequiredSize), "Failed to reserve enough space in fc::fwd<T,S>" ); }
^
libraries/fc/CMakeFiles/fc.dir/build.make:583: recipe for target 'libraries/fc/CMakeFiles/fc.dir/src/io/sstream.cpp.o' failed
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/io/sstream.cpp.o] Error 1
CMakeFiles/Makefile2:263: recipe for target 'libraries/fc/CMakeFiles/fc.dir/all' failed
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] Error 2
Makefile:117: recipe for target 'all' failed
make: *** [all] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions