区块链中文技术社区

recipe for target 'all' failed appbase_version

详细错误如下

[  6%] Built target chainbase
fatal: No names found, cannot describe anything.
CMake Error at version.cmake:11 (message):
  git describe failed


libraries/appbase/CMakeFiles/appbase_version.dir/build.make:57: recipe for target 'libraries/appbase/CMakeFiles/appbase_version' failed
make[2]: *** [libraries/appbase/CMakeFiles/appbase_version] Error 1
CMakeFiles/Makefile2:1746: recipe for target 'libraries/appbase/CMakeFiles/appbase_version.dir/all' failed
make[1]: *** [libraries/appbase/CMakeFiles/appbase_version.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 29%] Built target softfloat
[ 31%] Built target libc++
[ 35%] Built target fc
Makefile:162: recipe for target 'all' failed
make: *** [all] Error 2

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

解决方案
由于当时是直接复制的项目,所以没有tag。(CMakeLists.txt)编译时至少需要有一个tag,appbase会以最新的tag作为版本信息。
最终会写入 buildlibrariesappbaseversion.cpp 中
所以新建一个tag就好了
参考:https://github.com/EOSIO/eos/issues/5345

当前页面是本站的「Google AMP」版。查看和发表评论请点击:完整版 »