bcosorg / bcos

BCOS平台(Be Credible, Open & Secure)
GNU General Public License v3.0
872 stars 286 forks source link

make -j2 运行卡死 #20

Closed constanine closed 7 years ago

constanine commented 7 years ago

运行 make -j2 第一次卡死,第二次卡死

/data/git_wokr/bcos/build# make -j2
[  4%] Built target cryptopp
[  7%] Built target jsoncpp
[ 11%] Built target secp256k1
[ 12%] Performing download step (download, verify and extract) for 'boost'
-- downloading...
     src='https://github.com/ethereum/cpp-dependencies/releases/download/cache/boost_1_63_0.tar.gz'
     dst='/data/git_wokr/bcos/deps/src/boost_1_63_0.tar.gz'
     timeout='none'
[ 12%] Built target BuildInfo.h
[ 16%] Built target scrypt
[ 18%] Built target paillier
[ 19%] Built target evmcore
[ 23%] Built target jsonrpccpp

取消后

^CCMakeFiles/boost.dir/build.make:89: recipe for target '../deps/src/boost-stamp/boost-download' failed
make[2]: *** [../deps/src/boost-stamp/boost-download] Interrupt
CMakeFiles/Makefile2:178: recipe for target 'CMakeFiles/boost.dir/all' failed
make[1]: *** [CMakeFiles/boost.dir/all] Interrupt
Makefile:127: recipe for target 'all' failed
make: *** [all] Interrupt
constanine commented 7 years ago

终于有结果了

  Issue another request to this URL:
  'https://github-production-release-asset-2e65be.s3.amazonaws.com/33814737/58bdaeba-0024-11e7-95dd-a3956a6eac36?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAIWNJYAX4CSVEH53A%2F20170808%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20170808T025822Z&X-Amz-Expires=300&X-Amz-Signature=16434cedf1d4a7acc04c0e646d82c0fe1f1d2e964e3e6b2445200b5ba5c365d5&X-Amz-SignedHeaders=host&actor_id=0&response-content-disposition=attachment%3B%20filename%3Dboost_1_63_0.tar.gz&response-content-type=application%2Foctet-stream'

    Trying 52.216.65.8...

  connect to 52.216.65.8 port 443 failed: Connection timed out

  Failed to connect to
  github-production-release-asset-2e65be.s3.amazonaws.com port 443:
  Connection timed out

  Closing connection 1

是不是这个亚马逊的地址不存在了?

toxotguo commented 7 years ago

@constanine 从输出的信息来看是网络原因无法下载依赖库的源码包 1)建议找个网络条件好点的机器搭建bcos 2)从其他渠道下载依赖库包或者直接拷贝到你的编译目标路径下,譬如可以将 boost_1_63_0.tar.gz 拷贝到 /data/git_wokr/bcos/deps/src/boost_1_63_0.tar.gz

constanine commented 7 years ago

boost_1_63_0.tar.gz已下载了,但是下载之后还有github,和amazonaws认证

toxotguo commented 7 years ago

@constanine 1)执行make 不加-j2 看看当前卡在哪一步 2)看看/data/git_wokr/bcos/deps/src/ 下当前有哪些文件

constanine commented 7 years ago
xialj@virtual2:~$ cd /data/git_wokr/bcos/deps/src/
xialj@virtual2:/data/git_wokr/bcos/deps/src$ ll
total 9748
drwxr-xr-x 16 root root    4096 Aug  8 10:12 ./
drwxr-xr-x  7 root root    4096 Aug  7 21:43 ../
drwxr-xr-x  2 root root    4096 Aug  7 21:43 boost/
-rw-r--r--  1 root root 2488905 Aug  8 13:04 boost_1_63_0.tar.gz
drwxr-xr-x  2 root root    4096 Aug  8 10:57 boost-stamp/
drwxr-xr-x  5 root root   12288 Aug  7 21:43 cryptopp/
-rw-r--r--  1 root root 6912102 Aug  7 21:43 cryptopp_bccc6443.tar.gz
drwxr-xr-x  3 root root    4096 Aug  7 21:44 cryptopp-build/
drwxr-xr-x  2 root root    4096 Aug  7 21:44 cryptopp-stamp/
drwxr-xr-x 10 root root    4096 Aug  7 21:43 jsoncpp/
-rw-r--r--  1 root root  206072 Aug  7 21:43 jsoncpp-1.7.7.tar.gz
drwxr-xr-x  5 root root    4096 Aug  7 21:43 jsoncpp-build/
drwxr-xr-x  2 root root    4096 Aug  7 21:43 jsoncpp-stamp/
-rw-r--r--  1 root root  141665 Aug  7 21:45 jsonrcpcpp-0.7.0.tar.gz
drwxr-xr-x  8 root root    4096 Aug  7 21:45 jsonrpccpp/
drwxr-xr-x  6 root root    4096 Aug  7 21:45 jsonrpccpp-build/
drwxr-xr-x  2 root root    4096 Aug  7 21:45 jsonrpccpp-stamp/
drwxr-xr-x  8 root root    4096 Aug  7 21:44 secp256k1/
-rw-r--r--  1 root root  149489 Aug  7 21:44 secp256k1-9d560f99.tar.gz
drwxr-xr-x  3 root root    4096 Aug  7 21:44 secp256k1-build/
drwxr-xr-x  2 root root    4096 Aug  7 21:44 secp256k1-stamp/

and 跳过make -j2,运行make install

root@virtual2:/data/git_wokr/bcos/build# make install
Install the project...
-- Install configuration: "RelWithDebInfo"
CMake Error at eth/cmake_install.cmake:42 (file):
  file INSTALL cannot find "/data/git_wokr/bcos/build/eth/bcoseth".
Call Stack (most recent call first):
  cmake_install.cmake:37 (include)

Makefile:61: recipe for target 'install' failed
make: *** [install] Error 1
root@virtual2:/data/git_wokr/bcos/build#
root@virtual2:/data/git_wokr/bcos/build/eth# ll
total 28
drwxr-xr-x  3 root root 4096 Aug  7 21:43 ./
drwxr-xr-x 21 root root 4096 Aug  7 21:44 ../
drwxr-xr-x  3 root root 4096 Aug  7 21:43 CMakeFiles/
-rw-r--r--  1 root root 1753 Aug  7 21:43 cmake_install.cmake
-rw-r--r--  1 root root 8801 Aug  7 21:43 Makefile
root@virtual2:/data/git_wokr/bcos/build/eth#
luotianwen commented 7 years ago

我也是这样 这个boost_1_63_0.tar.gz包90多M 建议手动下载放进去 就是这个卡的

constanine commented 7 years ago

感谢 @luotianwen 的确,自己下载下来就OK了

bcosdev commented 7 years ago

目前已经发布BCOS的lib工程,依赖包可以从如下工程路径下载: https://github.com/bcosorg/lib