[EOSIO/eos] eos build fail (#3903)

I had a similar error, and temporarily fixed by this patch:
«`diff
diff —git a/programs/eosio-abigen/CMakeLists.txt b/programs/eosio-abigen/CMakeLists.txt
index 93df3c8..a2da9f3 100644
— a/programs/eosio-abigen/CMakeLists.txt
+++ b/programs/eosio-abigen/CMakeLists.txt
@@ -17,8 +17,14 @@ if( GPERFTOOLS_FOUND )
list( APPEND PLATFORM_SPECIFIC_LIBS tcmalloc )
endif()

-target_link_libraries(eosio-abigen abi_generator)
+execute_process(
+ COMMAND llvm-config-4.0 —ldflags
+ OUTPUT_VARIABLE LLVM_LDFLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+)
+set(CMAKE_EXE_LINKER_FLAGS «${CMAKE_EXE_LINKER_FLAGS} ${LLVM_LDFLAGS}»)

+target_link_libraries(eosio-abigen abi_generator)

install( TARGETS
eosio-abigen
diff —git a/unittests/CMakeLists.txt b/unittests/CMakeLists.txt
index 7442b00..649eb0a 100644
— a/unittests/CMakeLists.txt
+++ b/unittests/CMakeLists.txt
@@ -19,6 +19,13 @@ configure_file(${CMAKE_CURRENT_SOURCE_DIR}/include/config.hpp.in ${CMAKE_CURRENT
file(GLOB UNIT_TESTS «*.cpp»)

add_executable( unit_test ${UNIT_TESTS} ${WASM_UNIT_TESTS} )
+execute_process(
+ COMMAND llvm-config-4.0 —ldflags
+ OUTPUT_VARIABLE LLVM_LDFLAGS
+ OUTPUT_STRIP_TRAILING_WHITESPACE
+)
+set(CMAKE_EXE_LINKER_FLAGS «${CMAKE_EXE_LINKER_FLAGS} ${LLVM_LDFLAGS}»)
+
target_link_libraries( unit_test eosio_chain chainbase eosio_testing eos_utilities abi_generator fc ${PLATFORM_SPECIFIC_LIBS} )

target_include_directories( unit_test PUBLIC
«`

Добавить комментарий