Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

build error on Linux #111

Closed
ilzc opened this issue Jul 31, 2017 · 1 comment
Closed

build error on Linux #111

ilzc opened this issue Jul 31, 2017 · 1 comment

Comments

@ilzc
Copy link

ilzc commented Jul 31, 2017

I followed the guide to build eos on Linux.
Using:
CMake 3.9.0
Boost 1.64
clang-4.0
llvm release_40

It comes out some error messages.
It looks like the llvm methods not found in the llvm library.But I confirm that the llvm is clone from https://github.com/llvm-mirror/llvm.git release_40.

[ 49%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/base36.cpp.o
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN7LLVMJIT12NullResolverE[_ZTIN7LLVMJIT12NullResolverE]+0x10): undefined reference to typeinfo for llvm::JITSymbolResolver' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN7LLVMJIT17UnitMemoryManagerE[_ZTIN7LLVMJIT17UnitMemoryManagerE]+0x10): undefined reference to typeinfo for llvm::RTDyldMemoryManager'
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm18ObjectMemoryBufferE[_ZTIN4llvm18ObjectMemoryBufferE]+0x10): undefined reference to typeinfo for llvm::MemoryBuffer' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm18MCJITMemoryManagerE[_ZTIN4llvm18MCJITMemoryManagerE]+0x10): undefined reference to typeinfo for llvm::RuntimeDyld::MemoryManager'
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE[_ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE]+0x10): undefined reference to typeinfo for llvm::ErrorInfoBase' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm17raw_pwrite_streamE[_ZTIN4llvm17raw_pwrite_streamE]+0x10): undefined reference to typeinfo for llvm::raw_ostream'
../Runtime/libRuntime.a(LLVMEmitIR.cpp.o):(.rodata._ZTIN4llvm10SelectInstE[_ZTIN4llvm10SelectInstE]+0x10): undefined reference to typeinfo for llvm::Instruction' ../Runtime/libRuntime.a(LLVMEmitIR.cpp.o):(.rodata._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10): undefined reference to typeinfo for llvm::CmpInst'
collect2: error: ld returned 1 exit status
libraries/wasm-jit/Source/Programs/CMakeFiles/Test.dir/build.make:128: recipe for target 'libraries/wasm-jit/Source/Programs/Test' failed
make[2]: *** [libraries/wasm-jit/Source/Programs/Test] Error 1
CMakeFiles/Makefile2:957: recipe for target 'libraries/wasm-jit/Source/Programs/CMakeFiles/Test.dir/all' failed
make[1]: *** [libraries/wasm-jit/Source/Programs/CMakeFiles/Test.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 50%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/base58.cpp.o
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN7LLVMJIT12NullResolverE[_ZTIN7LLVMJIT12NullResolverE]+0x10): undefined reference to typeinfo for llvm::JITSymbolResolver' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN7LLVMJIT17UnitMemoryManagerE[_ZTIN7LLVMJIT17UnitMemoryManagerE]+0x10): undefined reference to typeinfo for llvm::RTDyldMemoryManager'
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm18ObjectMemoryBufferE[_ZTIN4llvm18ObjectMemoryBufferE]+0x10): undefined reference to typeinfo for llvm::MemoryBuffer' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm18MCJITMemoryManagerE[_ZTIN4llvm18MCJITMemoryManagerE]+0x10): undefined reference to typeinfo for llvm::RuntimeDyld::MemoryManager'
../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE[_ZTIN4llvm9ErrorInfoINS_9ErrorListENS_13ErrorInfoBaseEEE]+0x10): undefined reference to typeinfo for llvm::ErrorInfoBase' ../Runtime/libRuntime.a(LLVMJIT.cpp.o):(.rodata._ZTIN4llvm17raw_pwrite_streamE[_ZTIN4llvm17raw_pwrite_streamE]+0x10): undefined reference to typeinfo for llvm::raw_ostream'
../Runtime/libRuntime.a(LLVMEmitIR.cpp.o):(.rodata._ZTIN4llvm10SelectInstE[_ZTIN4llvm10SelectInstE]+0x10): undefined reference to typeinfo for llvm::Instruction' ../Runtime/libRuntime.a(LLVMEmitIR.cpp.o):(.rodata._ZTIN4llvm8FCmpInstE[_ZTIN4llvm8FCmpInstE]+0x10): undefined reference to typeinfo for llvm::CmpInst'
collect2: error: ld returned 1 exit status
libraries/wasm-jit/Source/Programs/CMakeFiles/wavm.dir/build.make:130: recipe for target 'libraries/wasm-jit/Source/Programs/wavm' failed
make[2]: *** [libraries/wasm-jit/Source/Programs/wavm] Error 1
CMakeFiles/Makefile2:1000: recipe for target 'libraries/wasm-jit/Source/Programs/CMakeFiles/wavm.dir/all' failed
make[1]: *** [libraries/wasm-jit/Source/Programs/CMakeFiles/wavm.dir/all] Error 2
[ 50%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/base64.cpp.o
[ 51%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/bigint.cpp.o
[ 52%] Linking CXX executable bin/wasm-merge
[ 52%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/hex.cpp.o
[ 52%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/sha1.cpp.o
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/ripemd160.cpp.o
[ 53%] Built target wasm-merge
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/sha256.cpp.o
[ 53%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/sha224.cpp.o
[ 54%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/sha512.cpp.o
[ 54%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/dh.cpp.o
[ 54%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/blowfish.cpp.o
[ 55%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/elliptic_common.cpp.o
[ 55%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/elliptic_impl_priv.cpp.o
[ 55%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/elliptic_secp256k1.cpp.o
[ 56%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/crypto/rand.cpp.o
In file included from /home/ubuntu/eos/libraries/fc/include/fc/safe.hpp:2:0,
from /home/ubuntu/eos/libraries/fc/include/fc/io/raw_fwd.hpp:6,
from /home/ubuntu/eos/libraries/fc/include/fc/crypto/sha256.hpp:5,
from /home/ubuntu/eos/libraries/fc/include/fc/crypto/elliptic.hpp:4,
from /home/ubuntu/eos/libraries/fc/src/crypto/elliptic_common.cpp:2:
/home/ubuntu/eos/libraries/fc/src/crypto/elliptic_common.cpp: In function 'fc::ecc::private_key_secret fc::ecc::detail::_get_curve_order()':
/home/ubuntu/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/ubuntu/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/ubuntu/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro 'UNLIKELY'
if( UNLIKELY(!(TEST)) )
^
/home/ubuntu/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/ubuntu/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/ubuntu/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/ubuntu/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro 'UNLIKELY'
if( UNLIKELY(!(TEST)) )
^
/home/ubuntu/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/ubuntu/eos/libraries/fc/src/crypto/elliptic_common.cpp: In function 'fc::ecc::private_key_secret fc::ecc::detail::_get_half_curve_order()':
/home/ubuntu/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/ubuntu/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/ubuntu/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro 'UNLIKELY'
if( UNLIKELY(!(TEST)) )
^
/home/ubuntu/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/ubuntu/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/ubuntu/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/ubuntu/eos/libraries/fc/include/fc/exception/exception.hpp:332:11: note: in expansion of macro 'UNLIKELY'
if( UNLIKELY(!(TEST)) )
^
/home/ubuntu/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() );
^
[ 56%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/network/ip.cpp.o
[ 56%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/network/url.cpp.o
[ 57%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/compress/smaz.cpp.o
[ 57%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/compress/zlib.cpp.o
[ 57%] Linking CXX static library libfc_debug.a
[ 57%] Built target fc
Makefile:129: recipe for target 'all' failed
make: *** [all] Error 2

@ilzc
Copy link
Author

ilzc commented Aug 1, 2017

Follow this article (https://steemit.com/eoskorea/@clayop/eos-build-guide-on-ubunbu) to build on Linux.
Built successfully.

@ilzc ilzc closed this as completed Aug 1, 2017
ljrprocc pushed a commit to bithacks-tech/myeosio that referenced this issue Jul 4, 2018
taokayan pushed a commit to taokayan/eos that referenced this issue May 15, 2019
add EOSIO_CHECK_VERSION function to generated eosio.cdt-config.cmake
NorseGaud pushed a commit that referenced this issue Jul 30, 2019
# This is the 1st commit message:

various improvements

# This is the commit message #2:

new hash

# This is the commit message #3:

fix for script path

# This is the commit message #4:

fixes

# This is the commit message #5:

fixes

# This is the commit message #6:

fixes

# This is the commit message #7:

fixes

# This is the commit message #8:

fixes

# This is the commit message #9:

fixes

# This is the commit message #10:

fixes

# This is the commit message #11:

fixes

# This is the commit message #12:

fixes

# This is the commit message #13:

fixes

# This is the commit message #14:

fixes

# This is the commit message #15:

fixes

# This is the commit message #16:

fixes

# This is the commit message #17:

fixes

# This is the commit message #18:

fixes

# This is the commit message #19:

fixes

# This is the commit message #20:

fixes

# This is the commit message #21:

fixes

# This is the commit message #22:

fixes

# This is the commit message #23:

fixes

# This is the commit message #24:

fixes

# This is the commit message #25:

fixes

# This is the commit message #26:

testing

# This is the commit message #27:

testing

# This is the commit message #28:

testing

# This is the commit message #29:

testing

# This is the commit message #30:

testing

# This is the commit message #31:

testing

# This is the commit message #32:

testing

# This is the commit message #33:

testing

# This is the commit message #34:

testing

# This is the commit message #35:

testing

# This is the commit message #36:

testing

# This is the commit message #37:

testing

# This is the commit message #38:

testing

# This is the commit message #39:

testing

# This is the commit message #40:

testing

# This is the commit message #41:

testing

# This is the commit message #42:

testing

# This is the commit message #43:

testing

# This is the commit message #44:

fixes

# This is the commit message #45:

fixes

# This is the commit message #46:

fixes

# This is the commit message #47:

fixes

# This is the commit message #48:

fixes

# This is the commit message #49:

fixes

# This is the commit message #50:

fixes

# This is the commit message #51:

fixes

# This is the commit message #52:

fixes

# This is the commit message #53:

fixes

# This is the commit message #54:

fixes

# This is the commit message #55:

fixes

# This is the commit message #56:

fixes

# This is the commit message #57:

fixes

# This is the commit message #58:

fixes

# This is the commit message #59:

fixes

# This is the commit message #60:

fixes

# This is the commit message #61:

fixes

# This is the commit message #62:

fixes

# This is the commit message #63:

fixes

# This is the commit message #64:

fixes

# This is the commit message #65:

fixes

# This is the commit message #66:

fixes

# This is the commit message #67:

fixes

# This is the commit message #68:

fixes

# This is the commit message #69:

fixes

# This is the commit message #70:

fixes

# This is the commit message #71:

fixes

# This is the commit message #72:

fixes

# This is the commit message #73:

fixes

# This is the commit message #74:

fixes

# This is the commit message #75:

fixes

# This is the commit message #76:

fixes

# This is the commit message #77:

fixes

# This is the commit message #78:

fixes

# This is the commit message #79:

more testing

# This is the commit message #80:

testing

# This is the commit message #81:

fixes

# This is the commit message #82:

fixes

# This is the commit message #83:

fixes

# This is the commit message #84:

fixes

# This is the commit message #85:

fixes

# This is the commit message #86:

fixes

# This is the commit message #87:

fixes

# This is the commit message #88:

fixes

# This is the commit message #89:

fixes

# This is the commit message #90:

fixes

# This is the commit message #91:

fixes

# This is the commit message #92:

fixes

# This is the commit message #93:

propagate-environment for buildkite-agent

# This is the commit message #94:

propagate-environment for buildkite-agent

# This is the commit message #95:

propagate-environment for buildkite-agent

# This is the commit message #96:

propagate-environment for buildkite-agent

# This is the commit message #97:

fixes

# This is the commit message #98:

fixes

# This is the commit message #99:

fixes

# This is the commit message #100:

fixes

# This is the commit message #101:

fixes

# This is the commit message #102:

fixes

# This is the commit message #103:

fixes

# This is the commit message #104:

fixes

# This is the commit message #105:

fixes

# This is the commit message #106:

fixes

# This is the commit message #107:

fixes

# This is the commit message #108:

fixes

# This is the commit message #109:

fixes

# This is the commit message #110:

fixes

# This is the commit message #111:

fixes

# This is the commit message #112:

fixes

# This is the commit message #113:

fixes

# This is the commit message #114:

fixes

# This is the commit message #115:

fixes

# This is the commit message #116:

fixes

# This is the commit message #117:

fixes

# This is the commit message #118:

fixes

# This is the commit message #119:

fixes

# This is the commit message #120:

fixes

# This is the commit message #121:

fixes

# This is the commit message #122:

fixes

# This is the commit message #123:

fixes

# This is the commit message #124:

fixes

# This is the commit message #125:

fixes

# This is the commit message #126:

fixes

# This is the commit message #127:

fixes

# This is the commit message #128:

fixes

# This is the commit message #129:

fixes

# This is the commit message #130:

fixes

# This is the commit message #131:

fixes

# This is the commit message #132:

fixes

# This is the commit message #133:

fixes

# This is the commit message #134:

fixes

# This is the commit message #135:

fixes

# This is the commit message #136:

fixes

# This is the commit message #137:

fixes

# This is the commit message #138:

fixes

# This is the commit message #139:

fixes

# This is the commit message #140:

fixes

# This is the commit message #141:

fixes

# This is the commit message #142:

fixes

# This is the commit message #143:

fixes

# This is the commit message #144:

fixes

# This is the commit message #145:

fixes

# This is the commit message #146:

fixes

# This is the commit message #147:

fixes

# This is the commit message #148:

fixes

# This is the commit message #149:

fixes

# This is the commit message #150:

fixes

# This is the commit message #151:

fixes

# This is the commit message #152:

fixes

# This is the commit message #153:

testing

# This is the commit message #154:

fixes

# This is the commit message #155:

fixes

# This is the commit message #156:

fixes

# This is the commit message #157:

fixes

# This is the commit message #158:

fixes

# This is the commit message #159:

fixes

# This is the commit message #160:

fixes

# This is the commit message #161:

fixes

# This is the commit message #162:

fixes

# This is the commit message #163:

fixes

# This is the commit message #164:

fixes

# This is the commit message #165:

fixes

# This is the commit message #166:

fixes

# This is the commit message #167:

fixes

# This is the commit message #168:

fixes

# This is the commit message #169:

fixes

# This is the commit message #170:

fixes

# This is the commit message #171:

fixes

# This is the commit message #172:

fixes

# This is the commit message #173:

fixes

# This is the commit message #174:

fixes

# This is the commit message #175:

fixes

# This is the commit message #176:

fixes

# This is the commit message #177:

fixes

# This is the commit message #178:

fixes

# This is the commit message #179:

fixes

# This is the commit message #180:

fixes

# This is the commit message #181:

fixes

# This is the commit message #182:

fixes

# This is the commit message #183:

fixes

# This is the commit message #184:

fixes

# This is the commit message #185:

fixes

# This is the commit message #186:

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

No branches or pull requests

1 participant