Problems compiling steem

in steem •  9 years ago 

Fails to compile at 67% on both Arch and Ubuntu. Am I the only one with problems?

[ 67%] Building CXX object libraries/chain/CMakeFiles/steemit_chain.dir/database.cpp.o
/home/marko/steem/steem/libraries/chain/database.cpp: In member function ‘steemit::chain::signed_block steemit::chain::database::_generate_block(fc::time_point_sec, const string&, const fc::ecc::private_key&)’:
/home/marko/steem/steem/libraries/chain/database.cpp:719:26: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       if( new_total_size >= maximum_block_size )
                          ^
/home/marko/steem/steem/libraries/chain/database.cpp: In member function ‘void steemit::chain::database::set_hardfork(uint32_t, bool)’:
/home/marko/steem/steem/libraries/chain/database.cpp:2991:48: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
    for( int i = hardforks.last_hardfork + 1; i <= hardfork && i <= STEEMIT_NUM_HARDFORKS; i++ )
                                                ^
In file included from /home/marko/steem/steem/libraries/db/include/graphene/db/object_id.hpp:25:0,
                 from /home/marko/steem/steem/libraries/chain/include/steemit/chain/protocol/types.hpp:4,
                 from /home/marko/steem/steem/libraries/chain/include/steemit/chain/protocol/base.hpp:3,
                 from /home/marko/steem/steem/libraries/chain/include/steemit/chain/protocol/steem_operations.hpp:2,
                 from /home/marko/steem/steem/libraries/chain/database.cpp:2:
/home/marko/steem/steem/libraries/chain/database.cpp: In lambda function:
/home/marko/steem/steem/libraries/chain/database.cpp:3058:27: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
       FC_ASSERT( hardfork == hfp.last_hardfork + 1, "Hardfork being applied out of order", ("hardfork",hardfork)("hfp.last_hardfork",hfp.last_hardfork) );
                           ^
/home/marko/steem/steem/libraries/fc/include/fc/exception/exception.hpp:325:30: note: in definition of macro ‘FC_EXPAND_MACRO’
 #define FC_EXPAND_MACRO( x ) x
                              ^
/home/marko/steem/steem/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro ‘UNLIKELY’
       if( UNLIKELY(!(TEST)) ) \
           ^
/home/marko/steem/steem/libraries/chain/database.cpp:3058:7: note: in expansion of macro ‘FC_ASSERT’
       FC_ASSERT( hardfork == hfp.last_hardfork + 1, "Hardfork being applied out of order", ("hardfork",hardfork)("hfp.last_hardfork",hfp.last_hardfork) );
       ^
c++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
libraries/chain/CMakeFiles/steemit_chain.dir/build.make:62: recipe for target 'libraries/chain/CMakeFiles/steemit_chain.dir/database.cpp.o' failed
make[2]: *** [libraries/chain/CMakeFiles/steemit_chain.dir/database.cpp.o] Error 4
CMakeFiles/Makefile2:985: recipe for target 'libraries/chain/CMakeFiles/steemit_chain.dir/all' failed
make[1]: *** [libraries/chain/CMakeFiles/steemit_chain.dir/all] Error 2
Makefile:127: recipe for target 'all' failed
make: *** [all] Error 2

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!
Sort Order:  

UPDATE: It seems to me it is a problem with boost-1.60.0, which will be fixed in the next update for boost. Compiling on Ubuntu with boost-1.58.0 works, so better use Ubuntu 15.10 and not 16.04

Probably you don't have enough memory for compiling Steem, try to add more memory or add swap space.

16G on Arch and 2G on Ubuntu VPS. Same problem. I changed the build directory to tmpfs on arch, but it made no difference.

Loading...