Closed sjashwin closed 6 years ago
@sjashwin could you please explain your situation more? If you are planning to build Iroha, you need to install boost library (for example with homebrew) as stated in docs: http://iroha.readthedocs.io/en/latest/guides/build.html#macos
Im looking to contribute to the project. Iroha runs fine. When I make changes to the code and compile it again I get a Fatal error 'boost/filesystem.hpp' file not found.
I've searched for work arounds. But couldn't find any.
Please make sure that you have all the required dependencies. Please specify your version of Cmake and Boost libraries, if you have them installed.
Boost version is 1.67.0 and cmake version is 3.11.1
@sjashwin could you also specify which version of Iroha you are building (master/develop branch) and send us all output of the build phase?
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
-- Detecting C compile features
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- -DCMAKE_BUILD_TYPE=Debug
-- -DTESTING=ON
-- -DBENCHMARKING=OFF
-- -DFUZZING=OFF
-- -DCOVERAGE=OFF
-- -DPACKAGE_ZIP=OFF
-- -DPACKAGE_TGZ=OFF
-- -DPACKAGE_RPM=OFF
-- -DPACKAGE_DEB=OFF
-- -DENABLE_LIBS_PACKAGING=ON
-- -DSWIG_PYTHON=OFF
-- -DSWIG_JAVA=OFF
-- -DSUPPORT_PYTHON2=OFF
-- -DSWIG_CSHARP=OFF
-- -DSWIG_NODE=OFF
-- -DSHARED_MODEL_DISABLE_COMPATIBILITY=OFF
-- Looking for pthread.h
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Could NOT find gtest (missing: gtest_INCLUDE_DIR gtest_LIBRARY gtest_MAIN_LIBRARY gmock_INCLUDE_DIR gmock_LIBRARY gmock_MAIN_LIBRARY)
-- Could NOT find spdlog (missing: spdlog_INCLUDE_DIR)
-- Found protobuf: /usr/local/include
-- Found grpc: /usr/local/lib/libgrpc.dylib
-- Could NOT find rapidjson (missing: rapidjson_INCLUDE_DIR)
-- Found pq: /usr/local/include
-- Found pqxx: /usr/local/include
-- Found gflags: /usr/local/include
-- Could NOT find rxcpp (missing: rxcpp_INCLUDE_DIR)
-- Could NOT find tbb (missing: tbb_INCLUDE_DIR tbb_LIBRARY)
-- Boost version: 1.67.0
-- Found the following Boost libraries:
-- filesystem
-- system
-- Could NOT find ed25519 (missing: ed25519_INCLUDE_DIR ed25519_LIBRARY)
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ashwin/CLionProjects/iroha/build
-MacBook-Pro:build $ make -j4
Scanning dependencies of target gabime_spdlog
Scanning dependencies of target 01org_tbb
Scanning dependencies of target miloyip_rapidjson
Scanning dependencies of target hyperledger_ed25519
[ 0%] Creating directories for 'hyperledger_ed25519'
[ 0%] Creating directories for '01org_tbb'
[ 0%] Creating directories for 'miloyip_rapidjson'
[ 0%] Creating directories for 'gabime_spdlog'
[ 0%] Performing download step (git clone) for '01org_tbb'
[ 0%] Performing download step (git clone) for 'miloyip_rapidjson'
[ 0%] Performing download step (git clone) for 'gabime_spdlog'
[ 0%] Performing download step (git clone) for 'hyperledger_ed25519'
Cloning into '01org_tbb'...
Cloning into 'miloyip_rapidjson'...
Cloning into 'gabime_spdlog'...
Cloning into 'hyperledger_ed25519'...
Note: checking out 'e7188b8393dbe5ac54378610d53630bd4a180038'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at e7188b8... Merge pull request #3 from laSinteZ/patch-1
[ 0%] No patch step for 'hyperledger_ed25519'
[ 0%] No update step for 'hyperledger_ed25519'
[ 1%] Performing configure step for 'hyperledger_ed25519'
-- The C compiler identification is AppleClang 9.1.0.9020039
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- 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
-- Detecting C compile features
Note: checking out 'ccd675a286f457068ee8c823f8207f13c2325b26'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at ccd675a... version 0.16.3
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
[ 1%] No patch step for 'gabime_spdlog'
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
[ 2%] No update step for 'gabime_spdlog'
[ 2%] No configure step for 'gabime_spdlog'
[ 2%] No build step for 'gabime_spdlog'
[ 2%] No install step for 'gabime_spdlog'
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
[ 3%] No test step for 'gabime_spdlog'
[ 3%] Completed 'gabime_spdlog'
[ 3%] Built target gabime_spdlog
Scanning dependencies of target reactive_extensions_rxcpp
[ 3%] Creating directories for 'reactive_extensions_rxcpp'
[ 3%] Performing download step (git clone) for 'reactive_extensions_rxcpp'
Cloning into 'reactive_extensions_rxcpp'...
-- Detecting CXX compile features - done
-- EDIMPL=ref10 is selected (Ed25519 implementation)
-- HASH=sha3_brainhub is selected (SHA implementation)
-- RANDOM=dev_urandom is selected (RNG implementation)
-- BUILD=STATIC is selected (library build type)
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_VISIBILITY - Success
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY
-- Performing Test COMPILER_HAS_HIDDEN_INLINE_VISIBILITY - Success
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR
-- Performing Test COMPILER_HAS_DEPRECATED_ATTR - Success
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ashwin/CLionProjects/iroha/external/src/hyperledger_ed25519-build
[ 3%] Performing build step for 'hyperledger_ed25519'
Scanning dependencies of target dev_urandom
[ 2%] Building C object lib/randombytes/urandom/CMakeFiles/dev_urandom.dir/urandom.c.o
[ 2%] Built target dev_urandom
Scanning dependencies of target sha3_brainhub
[ 4%] Building C object lib/hash/sha3_brainhub/CMakeFiles/sha3_brainhub.dir/sha3.c.o
[ 6%] Building C object lib/hash/sha3_brainhub/CMakeFiles/sha3_brainhub.dir/sha3_256.c.o
[ 9%] Building C object lib/hash/sha3_brainhub/CMakeFiles/sha3_brainhub.dir/sha3_512.c.o
[ 9%] Built target sha3_brainhub
Scanning dependencies of target ref10
[ 11%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ed25519.c.o
[ 13%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_0.c.o
[ 16%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_1.c.o
[ 18%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_add.c.o
[ 20%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_cmov.c.o
[ 23%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_copy.c.o
[ 25%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_frombytes.c.o
[ 27%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_invert.c.o
[ 30%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_isnegative.c.o
[ 32%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_isnonzero.c.o
[ 34%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_mul.c.o
[ 37%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_neg.c.o
[ 39%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_pow22523.c.o
[ 41%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_sq.c.o
[ 44%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_sq2.c.o
[ 46%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_sub.c.o
[ 48%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/fe_tobytes.c.o
[ 51%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_add.c.o
[ 53%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_double_scalarmult.c.o
[ 55%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_frombytes.c.o
[ 58%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_madd.c.o
[ 60%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_msub.c.o
[ 62%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p1p1_to_p2.c.o
[ 65%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p1p1_to_p3.c.o
[ 67%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p2_0.c.o
[ 69%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p2_dbl.c.o
[ 72%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p3_0.c.o
[ 74%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p3_dbl.c.o
[ 76%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p3_to_cached.c.o
Note: checking out 'eb6336ad29450f2a64af5123ca1b9429ff6bc11d'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at eb6336a... Committing Intel(R) TBB 2017 Update 7 source code
[ 79%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p3_to_p2.c.o
[ 81%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_p3_tobytes.c.o
[ 83%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_precomp_0.c.o
[ 86%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_scalarmult_base.c.o
[ 88%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_sub.c.o
[ 90%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/ge_tobytes.c.o
[ 3%] No patch step for '01org_tbb'
[ 93%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/sc_muladd.c.o
[ 4%] No update step for '01org_tbb'
[ 95%] Building C object lib/ed25519/ref10/CMakeFiles/ref10.dir/sc_reduce.c.o
[ 4%] No configure step for '01org_tbb'
[ 95%] Built target ref10
[ 4%] Performing build step for '01org_tbb'
Scanning dependencies of target ed25519
[ 97%] Building C object CMakeFiles/ed25519.dir/src/ed25519.c.o
[100%] Linking C static library libed25519.a
Created ./build/build_release and ..._debug directories
[100%] Built target ed25519
../../build/Makefile.tbb:32: CONFIG: cfg=debug arch=intel64 compiler=clang target=macos runtime=cc9.1.0_os10.13.4
[ 5%] No install step for 'hyperledger_ed25519'
[ 5%] No test step for 'hyperledger_ed25519'
[ 5%] Completed 'hyperledger_ed25519'
[ 5%] Built target hyperledger_ed25519
Scanning dependencies of target google_test
[ 5%] Creating directories for 'google_test'
[ 5%] Performing download step (git clone) for 'google_test'
Cloning into 'google_test'...
Note: checking out 'f54b0e47a08782a6131cc3d60f94d038fa6e0a51'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at f54b0e47... Merge pull request #714 from miloyip/version1.1.0
Submodule 'thirdparty/gtest' (https://github.com/google/googletest.git) registered for path 'thirdparty/gtest'
Cloning into '/Users/ashwin/CLionProjects/iroha/external/src/miloyip_rapidjson/thirdparty/gtest'...
Note: checking out 'ec44c6c1675c25b9827aacd08c02433cccde7780'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at ec44c6c... Merge pull request #821 from mazong1123/master
[ 6%] No patch step for 'google_test'
[ 6%] No update step for 'google_test'
Submodule path 'thirdparty/gtest': checked out '0a439623f75c029912728d80cb7f1b8b48739ca4'
[ 6%] Performing configure step for 'google_test'
[ 7%] No patch step for 'miloyip_rapidjson'
[ 7%] No update step for 'miloyip_rapidjson'
[ 7%] No configure step for 'miloyip_rapidjson'
-- The C compiler identification is AppleClang 9.1.0.9020039
[ 7%] No build step for 'miloyip_rapidjson'
-- The CXX compiler identification is AppleClang 9.1.0.9020039
-- Check for working C compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
[ 8%] No install step for 'miloyip_rapidjson'
[ 8%] No test step for 'miloyip_rapidjson'
[ 8%] Completed 'miloyip_rapidjson'
[ 8%] Built target miloyip_rapidjson
-- 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
-- Detecting C compile features
[ 9%] Generating ../../schema/proposal.pb.h, ../../schema/proposal.pb.cc
[ 9%] Generating ../../schema/block.pb.h, ../../schema/block.pb.cc
[ 10%] Generating ../../schema/commands.pb.h, ../../schema/commands.pb.cc
[ 10%] Generating ../../schema/primitive.pb.h, ../../schema/primitive.pb.cc
[ 10%] Generating ../../schema/queries.pb.h, ../../schema/queries.pb.cc
[ 10%] Generating ../../schema/responses.pb.h, ../../schema/responses.pb.cc
[ 10%] Generating ../../schema/endpoint.pb.h, ../../schema/endpoint.pb.cc
-- Detecting C compile features - done
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
Scanning dependencies of target schema
[ 10%] Building CXX object schema/CMakeFiles/schema.dir/block.pb.o
-- Check for working CXX compiler: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++ -- works
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Detecting CXX compile features
Note: checking out '1b2e0589f19cb34d8cd58803677701dcf2161876'.
You are in 'detached HEAD' state. You can look around, make experimental
changes and commit them, and you can discard any commits you make in this
state without impacting any branches by performing another checkout.
If you want to create a new branch to retain commits you create, you may
do so (now or later) by using -b with the checkout command again. Example:
git checkout -b <new-branch-name>
HEAD is now at 1b2e058... Fix rxcpp::observable<>::range<T>() when T is unsigned type
Submodule 'ext/catch' (https://github.com/philsquared/Catch.git) registered for path 'ext/catch'
Cloning into '/Users/ashwin/CLionProjects/iroha/external/src/reactive_extensions_rxcpp/ext/catch'...
-- Detecting CXX compile features - done
-- Found PythonInterp: /usr/bin/python (found version "2.7.10")
-- Looking for pthread.h
[ 10%] Building CXX object schema/CMakeFiles/schema.dir/commands.pb.o
-- Looking for pthread.h - found
-- Looking for pthread_create
-- Looking for pthread_create - found
-- Found Threads: TRUE
-- Configuring done
-- Generating done
-- Build files have been written to: /Users/ashwin/CLionProjects/iroha/external/src/google_test-build
[ 10%] Performing build step for 'google_test'
Scanning dependencies of target gmock
[ 9%] Building CXX object googlemock/CMakeFiles/gmock.dir/__/googletest/src/gtest-all.cc.o
Submodule path 'ext/catch': checked out 'ad942885ceab72d421fc6b07aedf0c012ef90e41'
[ 10%] No patch step for 'reactive_extensions_rxcpp'
[ 10%] Building CXX object schema/CMakeFiles/schema.dir/primitive.pb.o
[ 11%] No update step for 'reactive_extensions_rxcpp'
[ 11%] No configure step for 'reactive_extensions_rxcpp'
[ 11%] No build step for 'reactive_extensions_rxcpp'
[ 11%] No install step for 'reactive_extensions_rxcpp'
[ 11%] No test step for 'reactive_extensions_rxcpp'
[ 11%] Completed 'reactive_extensions_rxcpp'
[ 11%] Built target reactive_extensions_rxcpp
Scanning dependencies of target gmock_main
[ 18%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/__/googletest/src/gtest-all.cc.o
[ 27%] Building CXX object googlemock/CMakeFiles/gmock.dir/src/gmock-all.cc.o
[ 12%] Building CXX object schema/CMakeFiles/schema.dir/queries.pb.o
[ 12%] Building CXX object schema/CMakeFiles/schema.dir/responses.pb.o
[ 36%] Linking CXX static library libgmock.a
[ 36%] Built target gmock
[ 12%] Generating ../../schema/yac.grpc.pb.h, ../../schema/yac.grpc.pb.cc
[ 12%] Generating ../../schema/yac.pb.h, ../../schema/yac.pb.cc
Scanning dependencies of target yac_grpc
[ 13%] Building CXX object schema/CMakeFiles/yac_grpc.dir/yac.pb.o
[ 45%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock-all.cc.o
[ 13%] Building CXX object schema/CMakeFiles/yac_grpc.dir/yac.grpc.pb.o
[ 13%] Building CXX object schema/CMakeFiles/schema.dir/endpoint.pb.o
[ 54%] Building CXX object googlemock/CMakeFiles/gmock_main.dir/src/gmock_main.cc.o
[ 63%] Linking CXX static library libgmock_main.a
[ 13%] Building CXX object schema/CMakeFiles/schema.dir/proposal.pb.o
[ 63%] Built target gmock_main
Scanning dependencies of target gtest
[ 72%] Building CXX object googlemock/gtest/CMakeFiles/gtest.dir/src/gtest-all.cc.o
[ 13%] Linking CXX static library libyac_grpc.a
[ 13%] Built target yac_grpc
Scanning dependencies of target iroha_amount
[ 13%] Linking CXX static library libschema.a
[ 13%] Built target schema
[ 14%] Building CXX object libs/amount/CMakeFiles/iroha_amount.dir/amount.o
Scanning dependencies of target logger
[ 15%] Building CXX object libs/logger/CMakeFiles/logger.dir/logger.o
[ 81%] Linking CXX static library libgtest.a
[ 81%] Built target gtest
Scanning dependencies of target gtest_main
[ 90%] Building CXX object googlemock/gtest/CMakeFiles/gtest_main.dir/src/gtest_main.cc.o
[100%] Linking CXX static library libgtest_main.a
[100%] Built target gtest_main
[ 15%] No install step for 'google_test'
[ 15%] No test step for 'google_test'
[ 16%] Completed 'google_test'
[ 16%] Built target google_test
Scanning dependencies of target hash
[ 16%] Building CXX object shared_model/cryptography/ed25519_sha3_impl/internal/CMakeFiles/hash.dir/sha3_hash.o
[ 17%] Linking CXX static library libhash.a
[ 17%] Built target hash
Scanning dependencies of target shared_model_cryptography_model
[ 17%] Linking CXX static library liblogger.a
[ 17%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/blob.o
[ 17%] Built target logger
Scanning dependencies of target ed25519_crypto
[ 17%] Building CXX object shared_model/cryptography/ed25519_sha3_impl/internal/CMakeFiles/ed25519_crypto.dir/ed25519_impl.o
../../build/Makefile.tbb:32: CONFIG: cfg=release arch=intel64 compiler=clang target=macos runtime=cc9.1.0_os10.13.4
[ 18%] Linking CXX static library libed25519_crypto.a
[ 18%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/hash.o
[ 18%] Built target ed25519_crypto
[ 18%] Linking CXX static library libiroha_amount.a
[ 18%] Built target iroha_amount
Scanning dependencies of target generator
[ 18%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/keypair.o
Scanning dependencies of target parser
[ 18%] Building CXX object libs/generator/CMakeFiles/generator.dir/generator.o
[ 19%] Building CXX object libs/parser/CMakeFiles/parser.dir/parser.o
In file included from /Users/ashwin/CLionProjects/iroha/libs/parser/parser.cpp:18:
/Users/ashwin/CLionProjects/iroha/libs/parser/parser.hpp:20:10: fatal error: 'boost/optional.hpp' file not found
#include <boost/optional.hpp>
^~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [libs/parser/CMakeFiles/parser.dir/parser.o] Error 1
make[1]: *** [libs/parser/CMakeFiles/parser.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 19%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/private_key.o
[ 19%] Linking CXX static library libgenerator.a
[ 19%] Built target generator
[ 20%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/public_key.o
[ 20%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/seed.o
[ 20%] Building CXX object shared_model/cryptography/model_impl/CMakeFiles/shared_model_cryptography_model.dir/signed.o
[ 20%] Linking CXX static library libshared_model_cryptography_model.a
[ 20%] Built target shared_model_cryptography_model
[ 20%] No install step for '01org_tbb'
[ 20%] No test step for '01org_tbb'
[ 20%] Completed '01org_tbb'
[ 20%] Built target 01org_tbb
make: *** [all] Error 2
This is the output. I have been trying to build from develop branch.
cmake
has found two boost libraries filesystem and system. But while make
the boost include file hasn't been found.
@sjashwin Could you specify how did you install boost in the system, and how you run configure step before build?
You have found bugs in our build scripts, and it would be great if you fix them. We had the idea for such kind of bugs, but did not introduce a CI test for it yet.
The idea is that compiler should know about include paths for .cpp
files.
Problem with parser.cpp
:
https://github.com/hyperledger/iroha/blob/9e0e19035308c6ebaf706f709c5b7b3ac46e708b/libs/parser/parser.hpp#L20
But it is not linked to boost in build script:
https://github.com/hyperledger/iroha/blob/9e0e19035308c6ebaf706f709c5b7b3ac46e708b/libs/parser/CMakeLists.txt#L1
To fix such error, the target has to be linked with boost:
target_link_libraries(parser
boost
)
Similar step has to be done with libs_common
, which has files.cpp
, and common_execution
, which has common_executor.cpp
. Since target_link_libraries
for these two targets is already done for other libraries, please append boost
to their lists.
@laSinteZ I've made a pull request fixing all the bugs associated with the boost header files. The build is successful locally. Pull request number #1308 . Please review the pull request.
Running MacOs, not able to find the boost library.