weixin_39774808
weixin_39774808
2020-12-08 19:25

Error when building Trinity

Hi, I'm trying to build Trinity with the help of wiki. When I run make, I get this error make -C Switch/ext_snappy/ make[1]: Entering directory '/trinity-test/Trinity/Switch/ext_snappy' ar rc libsnappy.a snappy.o snappy-sinksource.o snappy-stubs-internal.o make[1]: Leaving directory '/vnazzaro/trinity-test/Trinity/Switch/ext_snappy' make -C Switch/ext/FastPFor/ make[1]: Entering directory '/vnazzaro/trinity-test/Trinity/Switch/ext/FastPFor' CMake Error: The source directory "/db/storage/Development/Projects/Trinity/Switch/ext/FastPFor" does not exist. Specify --help for usage, or press the help button on the CMake GUI. Makefile:830: recipe for target 'cmake_check_build_system' failed make[1]: *** [cmake_check_build_system] Error 1 make[1]: Leaving directory '/vnazzaro/trinity-test/Trinity/Switch/ext/FastPFor' Makefile:63: recipe for target 'switch' failed make: *** [switch] Error 2

该提问来源于开源项目:phaistos-networks/Trinity

  • 点赞
  • 写回答
  • 关注问题
  • 收藏
  • 复制链接分享
  • 邀请回答

4条回答

  • weixin_39890452 weixin_39890452 5月前

    Thank you for the report.

    The new build process (please see this wiki page) now relies on git submodules, and it should work fine. If it doesn't, please re-open this issue and I 'll look into it.

    点赞 评论 复制链接分享
  • weixin_39774808 weixin_39774808 5月前

    Thanks for the quick response! It solved that particular issue. However, I'm running into another problem when I run make with the updated instructions: Switch/ext_snappy/snappy.h:45:10: fatal error: 'snappy-stubs-public.h' file not found It looks like the file isn't found in that submodule, have you encountered something similar?

    EDIT: Turns out the file is located in /ext_snappy/build, I just had to copy it one level up.

    EDIT2: Another error: ar: =/ext/FastPFor/build/libFastPFor.a: No such file or directory, I think the problem in line 47 of the Makefile, where there is an extra '='. It worked after I removed that.

    点赞 评论 复制链接分享
  • weixin_39890452 weixin_39890452 5月前

    Please pull and try building again.

    点赞 评论 复制链接分享
  • weixin_39774808 weixin_39774808 5月前

    I just tried it and it built successfully without error, thanks for the help!

    点赞 评论 复制链接分享

相关推荐