eos icon indicating copy to clipboard operation
eos copied to clipboard

Build error

Open marcinch18 opened this issue 9 years ago • 6 comments

Hi,

I am quite new to programming but i came accross EOS and I wanted to how it work etc. I am trying to build the code using the instructions in README file:

Using the WASM compiler to perform a full build of the project

The WASM_LLVM_CONFIG environment variable is used to find our recently built WASM compiler. This is needed to compile the example contracts insde eos/contracts folder and their respective tests.

git clone https://github.com/eosio/eos --recursive
mkdir -p eos/build && cd eos/build
WASM_LLVM_CONFIG=~/wasm-compiler/llvm/bin/llvm-config cmake ..
make -j4

But I am getting following error:


In file included from /home/marcin/eos/libraries/fc/include/fc/safe.hpp:2:0,
                 from /home/marcin/eos/libraries/fc/include/fc/io/raw_fwd.hpp:6,
                 from /home/marcin/eos/libraries/fc/include/fc/crypto/sha256.hpp:5,
                 from /home/marcin/eos/libraries/fc/include/fc/crypto/elliptic.hpp:4,
                 from /home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:2:
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp: In function ‘fc::ecc::private_key_secret fc::ecc::detail::_get_curve_order()’:
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:88:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             FC_ASSERT( BN_num_bytes( order ) == bin.data_size() );
                                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:325:30: note: in definition of macro ‘FC_EXPAND_MACRO’
 #define FC_EXPAND_MACRO( x ) x
                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro ‘UNLIKELY’
       if( UNLIKELY(!(TEST)) ) \
           ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:88:13: note: in expansion of macro ‘FC_ASSERT’
             FC_ASSERT( BN_num_bytes( order ) == bin.data_size() );
             ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:89:72: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             FC_ASSERT( BN_bn2bin( order, (unsigned char*) bin.data() ) == bin.data_size() );
                                                                        ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:325:30: note: in definition of macro ‘FC_EXPAND_MACRO’
 #define FC_EXPAND_MACRO( x ) x
                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro ‘UNLIKELY’
       if( UNLIKELY(!(TEST)) ) \
           ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:89:13: note: in expansion of macro ‘FC_ASSERT’
             FC_ASSERT( BN_bn2bin( order, (unsigned char*) bin.data() ) == bin.data_size() );
             ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp: In function ‘fc::ecc::private_key_secret fc::ecc::detail::_get_half_curve_order()’:
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:107:46: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             FC_ASSERT( BN_num_bytes( order ) == bin.data_size() );
                                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:325:30: note: in definition of macro ‘FC_EXPAND_MACRO’
 #define FC_EXPAND_MACRO( x ) x
                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro ‘UNLIKELY’
       if( UNLIKELY(!(TEST)) ) \
           ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:107:13: note: in expansion of macro ‘FC_ASSERT’
             FC_ASSERT( BN_num_bytes( order ) == bin.data_size() );
             ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:108:72: warning: comparison between signed and unsigned integer expressions [-Wsign-compare]
             FC_ASSERT( BN_bn2bin( order, (unsigned char*) bin.data() ) == bin.data_size() );
                                                                        ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:325:30: note: in definition of macro ‘FC_EXPAND_MACRO’
 #define FC_EXPAND_MACRO( x ) x
                              ^
/home/marcin/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro ‘UNLIKELY’
       if( UNLIKELY(!(TEST)) ) \
           ^
/home/marcin/eos/libraries/fc/src/crypto/elliptic_common.cpp:108:13: note: in expansion of macro ‘FC_ASSERT’
             FC_ASSERT( BN_bn2bin( order, (unsigned char*) bin.data() ) == bin.data_size() );
             ^
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/network/ip.cpp.o
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/network/url.cpp.o
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/compress/smaz.cpp.o
[ 54%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/compress/zlib.cpp.o
[ 54%] Linking CXX static library libfc.a
[ 54%] Built target fc
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

I think i installed the dependencies correctly. Any idea what could be wrong?

marcinch18 avatar Jul 28 '17 20:07 marcinch18

@marcinch18 which OS are you using?

Here is an issue, similar to your problem. https://steemit.com/steem/@markopaasila/problems-compiling-steem

skenan avatar Jul 29 '17 00:07 skenan

Linux Mint 18.1.

marcinch18 avatar Jul 29 '17 08:07 marcinch18

What is the best os to use Ubuntu 15.10 ?

marcinch18 avatar Jul 29 '17 08:07 marcinch18

@marcinch18 Here is a guid to install on Ubuntu: https://steemit.com/eoskorea/@clayop/eos-build-guide-on-ubunbu

skenan avatar Jul 29 '17 18:07 skenan

Cheers mate. I will give it a go.

marcinch18 avatar Jul 29 '17 20:07 marcinch18

Guide is spot on. It build successfully now i need to figure out how to execute my first contract. Thanks

marcinch18 avatar Jul 31 '17 06:07 marcinch18