eos icon indicating copy to clipboard operation
eos copied to clipboard

build eos failed

Open adige-cao opened this issue 8 years ago • 3 comments

[BEGIN] 2018/4/25 13:02:13
./eosio_build.sh

	Beginning build version: 1.2
	2018年 04月 25日 星期三 05:02:25 UTC
	git head id: 10d922c571f9fc62992170845e1d757225a6c6fe
	Current branch: * master

	ARCHITECTURE: Linux

	OS name: CentOS Linux
	OS Version: 7
	CPU speed: 3201
MHz:
MHz:Mhz
	CPU cores: 4
	Physical Memory: 7805 Mgb
	Disk install: /dev/mapper/centos-root
	Disk space total: 49G
	Disk space available: 39G

	Checking Yum installation
	Yum installation found at /usr/bin/yum.

	Checking installation of Centos Software Collections Repository.

	Centos Software Collections Repository found.

	Enabling Centos devtoolset-7.
	Centos devtoolset-7 successfully enabled.

	Updating YUM repository.
已加载插件:fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
No packages marked for update

	YUM repository successfully updated.

	Checking YUM for installed dependencies.

	Package git  NOT  found.
	Package autoconf  NOT  found.
	Package automake  NOT  found.
	Package libtool  NOT  found.
	Package ocaml.x86_64  NOT  found.
	Package doxygen  NOT  found.
	Package graphviz-devel.x86_64  NOT  found.
	Package libicu-devel.x86_64  NOT  found.
	Package bzip2-devel.x86_64  NOT  found.
	Package openssl-devel.x86_64  NOT  found.
	Package gmp-devel.x86_64  NOT  found.
	Package python-devel.x86_64  NOT  found.
	Package gettext-devel.x86_64  NOT  found.

	The following dependencies are required to install EOSIO.

	1. git
	2. autoconf
	3. automake
	4. libtool
	5. ocaml.x86_64
	6. doxygen
	7. graphviz-devel.x86_64
	8. libicu-devel.x86_64
	9. bzip2-devel.x86_64
	10. openssl-devel.x86_64
	11. gmp-devel.x86_64
	12. python-devel.x86_64
	13. gettext-devel.x86_64
	

	Do you wish to install these dependencies?
1) Yes
2) No
#? 1


	Installing dependencies

已加载插件:fastestmirror, langpacks
Repository base is listed more than once in the configuration
Repository updates is listed more than once in the configuration
Repository extras is listed more than once in the configuration
Repository centosplus is listed more than once in the configuration
Loading mirror speeds from cached hostfile
 * base: mirrors.aliyun.com
 * extras: mirrors.aliyun.com
 * updates: mirrors.aliyun.com
软件包 git-1.8.3.1-12.el7_4.x86_64 已安装并且是最新版本
软件包 autoconf-2.69-11.el7.noarch 已安装并且是最新版本
软件包 automake-1.13.4-3.el7.noarch 已安装并且是最新版本
软件包 libtool-2.4.2-22.el7_3.x86_64 已安装并且是最新版本
软件包 ocaml-4.01.0-22.7.el7_2.x86_64 已安装并且是最新版本
软件包 1:doxygen-1.8.5-3.el7.x86_64 已安装并且是最新版本
软件包 graphviz-devel-2.30.1-19.el7.x86_64 已安装并且是最新版本
软件包 libicu-devel-50.1.2-15.el7.x86_64 已安装并且是最新版本
软件包 bzip2-devel-1.0.6-13.el7.x86_64 已安装并且是最新版本
软件包 1:openssl-devel-1.0.2k-8.el7.x86_64 已安装并且是最新版本
软件包 1:gmp-devel-6.0.0-15.el7.x86_64 已安装并且是最新版本
软件包 python-devel-2.7.5-58.el7.x86_64 已安装并且是最新版本
软件包 gettext-devel-0.19.8.1-2.el7.x86_64 已安装并且是最新版本
无须任何处理

	YUM dependencies installed successfully.

	Checking CMAKE installation.
	CMAKE found

	Checking boost library installation.
	Boost 1.66.0 found at /root/opt/boost_1_66_0.

	Checking MongoDB installation.
	MongoDB config found at /root/opt/mongodb/mongod.conf.

	Checking MongoDB C++ driver installation.
	Mongo C++ driver found at /usr/local/lib/libmongocxx-static.a.

	Checking secp256k1-zkp installation.
	secp256k1 found

	Checking LLVM with WASM support installation.
	WASM found at /root/opt/wasm


>>>>>>>> ALL dependencies sucessfully found or installed . Installing EOS.IO

-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   program_options
--   signals
--   serialization
--   chrono
--   unit_test_framework
--   context
--   locale
--   iostreams
-- Configuring Eos on Linux
-- binaryen building with -std=c++11
-- binaryen building for platform x86-64
-- binaryen building with -Wall
-- binaryen building with -Werror
-- binaryen building with -Wextra
-- binaryen building with -Wno-unused-parameter
-- binaryen building with -fno-omit-frame-pointer
-- binaryen building with -fPIC
-- binaryen building with -O2
-- binaryen building with -UNDEBUG
-- Using WASM clang => /root/opt/wasm/bin/clang
-- Using WASM llc => /root/opt/wasm/bin/llc
-- Using WASM llvm-link => /root/opt/wasm/bin/llvm-link
-- Found Secp256k1: /usr/local/lib/libsecp256k1.a
-- Configuring fc to build on Unix/Apple
-- Setting up OpenSSL root and include vars to /usr/include/openssl, /usr/include/openssl/include
-- zlib found
-- bzip2 found
-- Configuring SoftFloat
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   unit_test_framework
--   locale
-- Configuring ChainBase on Linux
-- Using custom FindBoost.cmake
-- Boost version: 1.66.0
-- Found the following Boost libraries:
--   thread
--   date_time
--   filesystem
--   system
--   chrono
--   program_options
--   unit_test_framework
--   locale
-- Configuring AppBase on Linux
-- Found bsoncxx headers: /usr/local/include/bsoncxx/v_noabi
-- Found bsoncxx library: /usr/local/lib/libbsoncxx-static.a;/usr/local/lib/libbson-static-1.0.a;-lm;-pthread
-- Found mongocxx headers: /usr/local/include/mongocxx/v_noabi;/usr/local/include/bsoncxx/v_noabi
-- Found mongocxx library: /usr/local/lib/libmongocxx-static.a;/usr/local/lib/libbsoncxx-static.a;/usr/local/lib/libbson-static-1.0.a;-lm;-pthread;/usr/local/lib/libmongoc-static-1.0.a;/usr/local/lib/libbson-static-1.0.a;-lm;-pthread;-lssl;-lcrypto;-lrt;-lz;-lresolv
-- Git commit revision: 10d922c5
-- Git commit revision: 10d922c5
-- Git commit revision: 10d922c5
-- Configuring done
-- Generating done
-- Build files have been written to: /eos/build
[  1%] Built target binaryen
[  1%] Built target ast
[  1%] Built target wasm
[  2%] Built target asmjs
[  2%] Built target cfg
[  3%] Built target support
[  3%] Built target emscripten-optimizer
[  6%] Built target passes
[  7%] Built target Platform
[  7%] Built target chainbase
[ 30%] Built target softfloat
[ 32%] Built target libc++
[ 32%] Built target eosiolib
[ 32%] Building CXX object libraries/appbase/CMakeFiles/appbase.dir/application.cpp.o
g++: 错误:unrecognized command line option ‘-std=c++14’
make[2]: *** [libraries/appbase/CMakeFiles/appbase.dir/application.cpp.o] 错误 1
make[1]: *** [libraries/appbase/CMakeFiles/appbase.dir/all] 错误 2
make[1]: *** 正在等待未完成的任务....
[ 32%] contract...
[ 32%] Built target copy_skeleton_contract
[ 72%] Built target libc
[ 72%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/uint128.cpp.o
[ 72%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/real128.cpp.o
[ 72%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/variant.cpp.o
[ 72%] Building CXX object libraries/fc/CMakeFiles/fc.dir/src/exception.cpp.o
In file included from /eos/libraries/fc/include/fc/string.hpp:2:0,
                 from /eos/libraries/fc/include/fc/log/logger.hpp:2,
                 from /eos/libraries/fc/include/fc/exception/exception.hpp:6,
                 from /eos/libraries/fc/include/fc/uint128.hpp:6,
                 from /eos/libraries/fc/src/uint128.cpp:1:
/eos/libraries/fc/include/fc/utility.hpp: 在函数‘constexpr std::size_t fc::const_strlen(const char*)’中:
/eos/libraries/fc/include/fc/utility.hpp:61:3: 错误:body of constexpr function ‘constexpr std::size_t fc::const_strlen(const char*)’ not a return-statement
   }
   ^
In file included from /eos/libraries/fc/include/fc/string.hpp:2:0,
                 from /eos/libraries/fc/include/fc/log/logger.hpp:2,
                 from /eos/libraries/fc/include/fc/exception/exception.hpp:6,
                 from /eos/libraries/fc/src/exception.cpp:1:
/eos/libraries/fc/include/fc/utility.hpp: 在函数‘constexpr std::size_t fc::const_strlen(const char*)’中:
/eos/libraries/fc/include/fc/utility.hpp:61:3: 错误:body of constexpr function ‘constexpr std::size_t fc::const_strlen(const char*)’ not a return-statement
   }
   ^
In file included from /eos/libraries/fc/include/fc/string.hpp:2:0,
                 from /eos/libraries/fc/include/fc/log/logger.hpp:2,
                 from /eos/libraries/fc/include/fc/exception/exception.hpp:6,
                 from /eos/libraries/fc/include/fc/uint128.hpp:6,
                 from /eos/libraries/fc/include/fc/real128.hpp:2,
                 from /eos/libraries/fc/src/real128.cpp:1:
/eos/libraries/fc/include/fc/utility.hpp: 在函数‘constexpr std::size_t fc::const_strlen(const char*)’中:
/eos/libraries/fc/include/fc/utility.hpp:61:3: 错误:body of constexpr function ‘constexpr std::size_t fc::const_strlen(const char*)’ not a return-statement
   }
   ^
In file included from /eos/libraries/fc/include/fc/optional.hpp:2:0,
                 from /eos/libraries/fc/include/fc/variant.hpp:13,
                 from /eos/libraries/fc/src/variant.cpp:1:
/eos/libraries/fc/include/fc/utility.hpp: 在函数‘constexpr std::size_t fc::const_strlen(const char*)’中:
/eos/libraries/fc/include/fc/utility.hpp:61:3: 错误:body of constexpr function ‘constexpr std::size_t fc::const_strlen(const char*)’ not a return-statement
   }
   ^
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/real128.cpp.o] 错误 1
make[2]: *** 正在等待未完成的任务....
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/uint128.cpp.o] 错误 1
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/variant.cpp.o] 错误 1
In file included from /eos/libraries/fc/src/exception.cpp:1:0:
/eos/libraries/fc/src/exception.cpp: 在全局域:
/eos/libraries/fc/include/fc/exception/exception.hpp:226:16: 警告:‘fc::exception_init’定义后未使用 [-Wunused-variable]
    static bool exception_init = []()->bool{ \
                ^
/eos/libraries/fc/src/exception.cpp:10:4: 附注:in expansion of macro ‘FC_REGISTER_EXCEPTIONS’
    FC_REGISTER_EXCEPTIONS( (timeout_exception)
    ^
make[2]: *** [libraries/fc/CMakeFiles/fc.dir/src/exception.cpp.o] 错误 1
make[1]: *** [libraries/fc/CMakeFiles/fc.dir/all] 错误 2
make: *** [all] 错误 2

	>>>>>>>>>>>>>>>>>>>> MAKE building EOSIO has exited with the above error.

[root@eos eos]# 
[END] 2018/4/25 13:02:44



adige-cao avatar Apr 25 '18 05:04 adige-cao

@hljchz Your head ID is a couple of days old. Run the following commands and you should be ok. cd /path/to/eos git pull git submodule update --init --recursive ./eosio_build.sh

pacificcode avatar Apr 25 '18 19:04 pacificcode

same error after "git pull" OS: CentOS 7 compile: 4.8.5 20150623 (Red Hat 4.8.5-16) (GCC)

from /home/parallels/Documents/git/eos/libraries/fc/src/uint128.cpp:1: /home/parallels/Documents/git/eos/libraries/fc/include/fc/utility.hpp: 在函数‘constexpr std::size_t fc::const_strlen(const char*)’中: /home/parallels/Documents/git/eos/libraries/fc/include/fc/utility.hpp:61:3: 错误:body of constexpr function ‘constexpr std::size_t fc::const_strlen(const char*)’ not a return-statement }

pranksteess avatar Apr 26 '18 02:04 pranksteess

@pranksteess @hljchz We do not recommend installing EOS.IO as root. Clone the repo into your home directory and try again. cd $HOME git clone https://github.com/EOSIO/eos.git --recursive git submodule update --init --recursive ./eosio_build.sh

If you run into any issues send me the full output of the eosio_build.sh script.

pacificcode avatar Apr 27 '18 17:04 pacificcode