ethereum / aleth

Aleth – Ethereum C++ client, tools and libraries
GNU General Public License v3.0
3.96k stars 2.18k forks source link

cmake .. ERROR #5901

Open sowson opened 4 years ago

sowson commented 4 years ago

PLEASE HELP

...failed darwin.compile.c++ bin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden/split.o... ...skipped <pbin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden>libboost_program_options-mt-d.a(clean) for lack of <pbin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden>cmdline.o... ...skipped <pbin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden>libboost_program_options-mt-d.a for lack of <pbin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden>cmdline.o... ...skipped <p/Users/piotr/.hunter/_Base/c022f0c/9ff6f2e/6201cae/Build/Boost/__program_options/Source/stage/lib>libboost_program_options-mt-d.a for lack of <pbin.v2/libs/program_options/build/darwin-11.0.3/debug/link-static/threading-multi/visibility-hidden>libboost_program_options-mt-d.a... ...failed updating 22 targets... ...skipped 6 targets... ...updated 15 targets... make[2]: [Boost-program_options-prefix/src/Boost-program_options-stamp/Boost-program_options-build] Error 1 make[1]: [CMakeFiles/Boost-program_options.dir/all] Error 2 make: *** [all] Error 2

[hunter FATAL ERROR ] Build step failed (dir: /Users/piotr/.hunter/_Base/c022f0c/9ff6f2e/6201cae/Build/Boost/__program_options [hunter FATAL ERROR ] [Directory:/Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/projects/Boost/program_options]

------------------------------ ERROR ----------------------------- https://docs.hunter.sh/en/latest/reference/errors/error.external.build.failed.html

CMake Error at /Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_error_page.cmake:12 (message): Call Stack (most recent call first): /Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_fatal_error.cmake:20 (hunter_error_page) /Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_download.cmake:617 (hunter_fatal_error) /Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/projects/Boost/program_options/hunter.cmake:16 (hunter_download) /Users/piotr/.hunter/_Base/Download/Hunter/0.23.211/c022f0c/Unpacked/cmake/modules/hunter_add_package.cmake:62 (include) CMakeLists.txt:65 (hunter_add_package)

-- Configuring incomplete, errors occurred! See also "/Users/piotr/github/ethereum/aleth/build/CMakeFiles/CMakeOutput.log".

qwy16 commented 3 years ago

I guess the error is due to unsuccessful of Boost build managed by hunter too. Make sure you have the boost package download by hunter as: hunter download Boost from -- Using src='https://github.com/hunter-packages/boost/archive/v1.70.0-p0.tar.gz'

which v1.70.0-p0.tar.gz for my case is the latest boost package. What i am hitting on Mac in my case is that after building program_options, hitting: clang ---> error: unknown argument: '-fcoalesce-templates'