EOS 編譯 FAQ

build 失敗

$ ./eosio_build.sh

    Beginning build version: 1.2
    Mon Oct 21 00:03:42 UTC 2018
    User: bitson
    git head id: f9a3d023c05d6b7984cbd7263a5a39e650c87e90
    Current branch: master

    ARCHITECTURE: Darwin

    OS name: Darwin
    OS Version: 10.13.6
    CPU speed: 2.20Ghz
    CPU cores: 4
    Physical Memory: 16 Gbytes
    Disk install: /dev/disk1s1
    Disk space total: 233G
    Disk space available: 106G
      
    Checking xcode-select installation
    xcode-select installation found @ 
    /usr/bin/xcode-select 

    Checking Ruby installation.
    Ruby installation found @ 
    /usr/bin/ruby 

    Checking Home Brew installation
    Home Brew installation found @
    /usr/local/bin/brew

    Checking dependencies.
    Checking automake ...        automake found
    Checking Libtool ...         Libtool found
    Checking OpenSSL ...         OpenSSL found
    Checking llvm ...        llvm found
    Checking wget ...        wget found
    Checking CMake ...       CMake found
    Checking GMP ...         GMP found
    Checking gettext ...         gettext found
    Checking MongoDB ...         MongoDB found
    Checking Doxygen ...         Doxygen found
    Checking Graphviz ...        Graphviz found
    Checking LCOV ...        LCOV found
    Checking Python3 ...         Python3 found

    No required Home Brew dependencies to install.

    Checking boost library installation.
    Boost 1.67.0 found at /usr/local.

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

    Checking LLVM with WASM support.
    WASM found at /usr/local/wasm/bin/.


>>>>>>>> ALL dependencies sucessfully found or installed . Installing EOSIO

>>>>>>>> CMAKE_BUILD_TYPE=Release
>>>>>>>> ENABLE_COVERAGE_TESTING=false
>>>>>>>> DOXYGEN=false

-- The C compiler identification is Clang 4.0.1
-- The CXX compiler identification is Clang 4.0.1
-- Check for working C compiler: /usr/local/opt/llvm@4/bin/clang
-- Check for working C compiler: /usr/local/opt/llvm@4/bin/clang -- works
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
...
...
Scanning dependencies of target cfg
Scanning dependencies of target asmjs
Scanning dependencies of target wasm
Scanning dependencies of target ast
[  0%] Building CXX object externals/binaryen/src/asmjs/CMakeFiles/asmjs.dir/asm_v_wasm.cpp.o
[  0%] Building CXX object externals/binaryen/src/cfg/CMakeFiles/cfg.dir/Relooper.cpp.o
[  0%] Building CXX object externals/binaryen/src/ast/CMakeFiles/ast.dir/ExpressionAnalyzer.cpp.o
[  0%] Building CXX object externals/binaryen/src/wasm/CMakeFiles/wasm.dir/literal.cpp.o
[  0%] Building CXX object externals/binaryen/src/wasm/CMakeFiles/wasm.dir/wasm.cpp.o
[  0%] Building CXX object externals/binaryen/src/asmjs/CMakeFiles/asmjs.dir/shared-constants.cpp.o
...
...
[ 98%] Building CXX object unittests/CMakeFiles/unit_test.dir/tic_tac_toe_tests.cpp.o
[ 98%] Linking CXX static library libnet_api_plugin.a
[ 98%] Built target net_api_plugin
[ 98%] Building CXX object unittests/CMakeFiles/unit_test.dir/wasm_tests.cpp.o
Scanning dependencies of target nodeos
make[2]: *** No rule to make target `/usr/local/lib/libsnappy.dylib', needed by `programs/nodeos/nodeos'.  Stop.
make[2]: *** Waiting for unfinished jobs....
[ 98%] Building CXX object programs/nodeos/CMakeFiles/nodeos.dir/main.cpp.o
[100%] Building CXX object unittests/CMakeFiles/unit_test.dir/whitelist_blacklist_tests.cpp.o
make[1]: *** [programs/nodeos/CMakeFiles/nodeos.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[100%] Linking CXX executable unit_test
ld: warning: text-based stub file /System/Library/Frameworks//Security.framework/Security.tbd and library file /System/Library/Frameworks//Security.framework/Security are out of sync. Falling back to library file for linking.
ld: warning: text-based stub file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation.tbd and library file /System/Library/Frameworks//CoreFoundation.framework/CoreFoundation are out of sync. Falling back to library file for linking.
[100%] Built target unit_test
make: *** [all]  2

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

原因:本地 MongoDB C++ 驅(qū)動與 EOSIO 不兼容

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

解決辦法:

刪除 /usr/local/lib/ 下的 mongoDB 相關(guān)文件(libbson*、libmongoc*),重新執(zhí)行 build 腳本

$ ./eosio_build.sh
        ...
        ...
        No required Home Brew dependencies to install.
    
        Checking boost library installation.
        Boost 1.67.0 found at /usr/local.
    
        Checking MongoDB C++ driver installation.
    ==> Downloading https://homebrew.bintray.com/bottles/pkg-config-0.29.2.high_sierra.bottle.tar.gz
    ######################################################################## 100.0%
    ==> Pouring pkg-config-0.29.2.high_sierra.bottle.tar.gz
    ??  /usr/local/Cellar/pkg-config/0.29.2: 11 files, 627.2KB
    Unlinking /usr/local/Cellar/pkg-config/0.29.2... 4 symlinks removed
      % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                     Dload  Upload   Total   Spent    Left  Speed
    100   617    0   617    0     0    544      0 --:--:--  0:00:01 --:--:--   544
    100 6193k  100 6193k    0     0  1138k      0  0:00:05  0:00:05 --:--:-- 1645k
    -- The C compiler identification is ;AppleClang 10.0.0.10001145
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
    -- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc -- works
    -- Detecting C compiler ABI info
    -- Detecting C compiler ABI info - done
    ...
    ...
[100%] Built target nodeos
    
    
         _______  _______  _______ _________ _______
        (  ____ \(  ___  )(  ____ \\__   __/(  ___  )
        | (    \/| (   ) || (    \/   ) (   | (   ) |
        | (__    | |   | || (_____    | |   | |   | |
        |  __)   | |   | |(_____  )   | |   | |   | |
        | (      | |   | |      ) |   | |   | |   | |
        | (____/\| (___) |/\____) |___) (___| (___) |
        (_______/(_______)\_______)\_______/(_______)
    
        EOSIO has been successfully built. 00:04:07
    
        To verify your installation run the following commands:
    
        /usr/local/bin/mongod -f /usr/local/etc/mongod.conf &
        cd /Users/bitson/eos/build; make test
    
        For more information:
        EOSIO website: https://eos.io
        EOSIO Telegram channel @ https://t.me/EOSProject
        EOSIO resources: https://eos.io/resources/
        EOSIO Stack Exchange: https://eosio.stackexchange.com
        EOSIO wiki: https://github.com/EOSIO/eos/wiki

Reference
https://github.com/EOSIO/eos/issues/5606


相關(guān)鏈接
EOS 源碼編譯

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
  • 序言:七十年代末陵像,一起剝皮案震驚了整個濱河市暮蹂,隨后出現(xiàn)的幾起案子匀谣,更是在濱河造成了極大的恐慌构回,老刑警劉巖,帶你破解...
    沈念sama閱讀 221,548評論 6 515
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件胸懈,死亡現(xiàn)場離奇詭異交汤,居然都是意外死亡雏赦,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 94,497評論 3 399
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來星岗,“玉大人填大,你說我怎么就攤上這事∏伍伲” “怎么了允华?”我有些...
    開封第一講書人閱讀 167,990評論 0 360
  • 文/不壞的土叔 我叫張陵,是天一觀的道長寥掐。 經(jīng)常有香客問我靴寂,道長,這世上最難降的妖魔是什么曹仗? 我笑而不...
    開封第一講書人閱讀 59,618評論 1 296
  • 正文 為了忘掉前任榨汤,我火速辦了婚禮蠕搜,結(jié)果婚禮上怎茫,老公的妹妹穿的比我還像新娘。我一直安慰自己妓灌,他們只是感情好轨蛤,可當我...
    茶點故事閱讀 68,618評論 6 397
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著虫埂,像睡著了一般祥山。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上掉伏,一...
    開封第一講書人閱讀 52,246評論 1 308
  • 那天缝呕,我揣著相機與錄音,去河邊找鬼斧散。 笑死供常,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的鸡捐。 我是一名探鬼主播栈暇,決...
    沈念sama閱讀 40,819評論 3 421
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼箍镜!你這毒婦竟也來了源祈?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 39,725評論 0 276
  • 序言:老撾萬榮一對情侶失蹤色迂,失蹤者是張志新(化名)和其女友劉穎香缺,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體歇僧,經(jīng)...
    沈念sama閱讀 46,268評論 1 320
  • 正文 獨居荒郊野嶺守林人離奇死亡赫悄,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 38,356評論 3 340
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學(xué)時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片埂淮。...
    茶點故事閱讀 40,488評論 1 352
  • 序言:一個原本活蹦亂跳的男人離奇死亡姑隅,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出倔撞,到底是詐尸還是另有隱情讲仰,我是刑警寧澤,帶...
    沈念sama閱讀 36,181評論 5 350
  • 正文 年R本政府宣布痪蝇,位于F島的核電站鄙陡,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏躏啰。R本人自食惡果不足惜趁矾,卻給世界環(huán)境...
    茶點故事閱讀 41,862評論 3 333
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望给僵。 院中可真熱鬧毫捣,春花似錦、人聲如沸帝际。這莊子的主人今日做“春日...
    開封第一講書人閱讀 32,331評論 0 24
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽蹲诀。三九已至斑粱,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間脯爪,已是汗流浹背则北。 一陣腳步聲響...
    開封第一講書人閱讀 33,445評論 1 272
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留痕慢,地道東北人尚揣。 一個月前我還...
    沈念sama閱讀 48,897評論 3 376
  • 正文 我出身青樓,卻偏偏與公主長得像守屉,于是被迫代替她去往敵國和親惑艇。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 45,500評論 2 359

推薦閱讀更多精彩內(nèi)容