Comments (7)
Did anyone get it building on mac? (high sierra)
I installed all dependencies except build-essential
, using brew
.
However, when I try runnning ./build.sh
I get fatal error 'boost/algorithm/hex.hpp'
file not found.
This is using Boost 1.66 (installed via brew).
from zilliqa.
@sharwell @sidutta did you get it to work on mac? Did you get the same errors I got?
from zilliqa.
@Sajjon, here is a temporary solution for "boost/algorithm/hex.hpp file not found."
Modify CMakeCache.txt with
CMAKE_CXX_FLAGS:STRING=-I/usr/local/include
Please have a try.
from zilliqa.
@ckyang Thanks for your suggestion and sorry for my late response, I tried your solution but I got new errors.
I got this without your suggestion
-- We are on a Darwin system
-- Boost version: 1.66.0
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- unit_test_framework
-- system
-- filesystem
-- boost header: /usr/local/include
-- boost libs : /usr/local/lib/libboost_unit_test_framework-mt.a;/usr/local/lib/libboost_system-mt.a;/usr/local/lib/libboost_filesystem-mt.a
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
Common
Overlay
Trie
ethash
json_spirit
minilzo
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/sajjon/Developer/Blockchain/Zilliqa
[ 1%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/DataConversion.cpp.o
[ 2%] Building CXX object src/depends/common/CMakeFiles/Common.dir/Common.cpp.o
[ 2%] Building CXX object src/depends/libDatabase/CMakeFiles/Overlay.dir/MemoryDB.cpp.o
[ 4%] Built target json_spirit
[ 5%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/Logger.cpp.o
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/DataConversion.cpp:18:
/Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/DataConversion.h:24:10: fatal error: 'boost/algorithm/hex.hpp' file not found
#include <boost/algorithm/hex.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/libDatabase/MemoryDB.cpp:20:
/Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/Common.h:31:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
#include <boost/multiprecision/cpp_int.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/Common.cpp:6:
/Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/Common.h:31:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
#include <boost/multiprecision/cpp_int.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/libUtils/CMakeFiles/Utils.dir/DataConversion.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
[ 6%] Building CXX object src/depends/common/CMakeFiles/Common.dir/CommonData.cpp.o
1 error generated.
make[2]: *** [src/depends/common/CMakeFiles/Common.dir/Common.cpp.o] Error 1
make[2]: *** Waiting for unfinished jobs....
Scanning dependencies of target ethash
1 error generated.
[ 7%] Building C object src/depends/libethash/CMakeFiles/ethash.dir/io.c.o
make[2]: *** [src/depends/libDatabase/CMakeFiles/Overlay.dir/MemoryDB.cpp.o] Error 1
make[1]: *** [src/depends/libDatabase/CMakeFiles/Overlay.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 8%] Building C object src/depends/libethash/CMakeFiles/ethash.dir/internal.c.o
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/Logger.cpp:17:
/Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/Logger.h:25:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
#include <boost/multiprecision/cpp_int.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/libUtils/CMakeFiles/Utils.dir/Logger.cpp.o] Error 1
make[1]: *** [src/libUtils/CMakeFiles/Utils.dir/all] Error 2
[ 8%] Building C object src/depends/libethash/CMakeFiles/ethash.dir/io_posix.c.o
[ 9%] Building C object src/depends/libethash/CMakeFiles/ethash.dir/sha3.c.o
[ 10%] Linking C shared library libethash.dylib
[ 10%] Built target ethash
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/CommonData.cpp:21:
In file included from /Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/CommonData.h:32:
/Users/sajjon/Developer/Blockchain/Zilliqa/src/depends/common/Common.h:31:10: fatal error: 'boost/multiprecision/cpp_int.hpp' file not found
#include <boost/multiprecision/cpp_int.hpp>
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
make[2]: *** [src/depends/common/CMakeFiles/Common.dir/CommonData.cpp.o] Error 1
make[1]: *** [src/depends/common/CMakeFiles/Common.dir/all] Error 2
make: *** [all] Error 2
When I changed the value of CMAKE_CXX_FLAGS:STRING
to -I/usr/local/include
like so:
See entire CMakeCache.txt file
# This is the CMakeCache file.
# For build in directory: /Users/sajjon/Developer/Blockchain/Zilliqa
# It was generated by CMake: /usr/local/Cellar/cmake/3.10.1/bin/cmake
# You can edit this file to change values found and used by cmake.
# If you do not want to change any of the values, simply exit the editor.
# If you do want to change a value, simply edit, save, and exit the editor.
# The syntax for the file is as follows:
# KEY:TYPE=VALUE
# KEY is the name of a variable in the cache.
# TYPE is a hint to GUIs for the type of VALUE, DO NOT EDIT TYPE!.
# VALUE is the current value for the KEY.
########################
# EXTERNAL cache entries
########################
//Dependencies for the target
AccountData_LIB_DEPENDS:STATIC=general;Block;general;BlockHeader;general;Crypto;general;Trie;
//Dependencies for the target
BlockChainData_LIB_DEPENDS:STATIC=general;Block;general;BlockHeader;general;Crypto;general;Trie;
//Dependencies for the target
BlockHeader_LIB_DEPENDS:STATIC=general;Crypto;general;Trie;
//Dependencies for the target
Block_LIB_DEPENDS:STATIC=general;Crypto;general;Trie;
//The directory containing a CMake configuration file for Boost.
Boost_DIR:PATH=Boost_DIR-NOTFOUND
//Boost filesystem library (debug)
Boost_FILESYSTEM_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libboost_filesystem-mt.a
//Boost filesystem library (release)
Boost_FILESYSTEM_LIBRARY_RELEASE:FILEPATH=/usr/local/lib/libboost_filesystem-mt.a
//Path to a file.
Boost_INCLUDE_DIR:PATH=/usr/local/include
//Boost library directory DEBUG
Boost_LIBRARY_DIR_DEBUG:PATH=/usr/local/lib
//Boost library directory RELEASE
Boost_LIBRARY_DIR_RELEASE:PATH=/usr/local/lib
//Boost system library (debug)
Boost_SYSTEM_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libboost_system-mt.a
//Boost system library (release)
Boost_SYSTEM_LIBRARY_RELEASE:FILEPATH=/usr/local/lib/libboost_system-mt.a
//Boost unit_test_framework library (debug)
Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG:FILEPATH=/usr/local/lib/libboost_unit_test_framework-mt.a
//Boost unit_test_framework library (release)
Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE:FILEPATH=/usr/local/lib/libboost_unit_test_framework-mt.a
//Path to a program.
CMAKE_AR:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar
//Choose the type of build, options are: None(CMAKE_CXX_FLAGS or
// CMAKE_C_FLAGS used) Debug Release RelWithDebInfo MinSizeRel.
CMAKE_BUILD_TYPE:STRING=Debug
//Enable/Disable color output during build.
CMAKE_COLOR_MAKEFILE:BOOL=ON
//CXX compiler
CMAKE_CXX_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/c++
//Flags used by the compiler during all build types.
CMAKE_CXX_FLAGS:STRING=-I/usr/local/include
//Flags used by the compiler during debug builds.
CMAKE_CXX_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release builds for minimum
// size.
CMAKE_CXX_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds.
CMAKE_CXX_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during release builds with debug info.
CMAKE_CXX_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//C compiler
CMAKE_C_COMPILER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/cc
//Flags used by the compiler during all build types.
CMAKE_C_FLAGS:STRING=
//Flags used by the compiler during debug builds.
CMAKE_C_FLAGS_DEBUG:STRING=-g
//Flags used by the compiler during release builds for minimum
// size.
CMAKE_C_FLAGS_MINSIZEREL:STRING=-Os -DNDEBUG
//Flags used by the compiler during release builds.
CMAKE_C_FLAGS_RELEASE:STRING=-O3 -DNDEBUG
//Flags used by the compiler during release builds with debug info.
CMAKE_C_FLAGS_RELWITHDEBINFO:STRING=-O2 -g -DNDEBUG
//Flags used by the linker.
CMAKE_EXE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_EXE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_EXE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Enable/Disable output of compile commands during generation.
CMAKE_EXPORT_COMPILE_COMMANDS:BOOL=OFF
//Path to a program.
CMAKE_INSTALL_NAME_TOOL:FILEPATH=/usr/bin/install_name_tool
//Install path prefix, prepended onto install directories.
CMAKE_INSTALL_PREFIX:PATH=/usr/local
//Path to a program.
CMAKE_LINKER:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
//Path to a program.
CMAKE_MAKE_PROGRAM:FILEPATH=/usr/bin/make
//Flags used by the linker during the creation of modules.
CMAKE_MODULE_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_MODULE_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_MODULE_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_NM:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm
//Path to a program.
CMAKE_OBJCOPY:FILEPATH=CMAKE_OBJCOPY-NOTFOUND
//Path to a program.
CMAKE_OBJDUMP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/objdump
//Build architectures for OSX
CMAKE_OSX_ARCHITECTURES:STRING=
//Minimum OS X version to target for deployment (at runtime); newer
// APIs weak linked. Set to empty string for default value.
CMAKE_OSX_DEPLOYMENT_TARGET:STRING=
//The product will be built against the headers and libraries located
// inside the indicated SDK.
CMAKE_OSX_SYSROOT:PATH=/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk
//Value Computed by CMake
CMAKE_PROJECT_NAME:STATIC=nuQoin
//Path to a program.
CMAKE_RANLIB:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib
//Flags used by the linker during the creation of dll's.
CMAKE_SHARED_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_SHARED_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_SHARED_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//If set, runtime paths are not added when installing shared libraries,
// but are added when building.
CMAKE_SKIP_INSTALL_RPATH:BOOL=NO
//If set, runtime paths are not added when using shared libraries.
CMAKE_SKIP_RPATH:BOOL=NO
//Flags used by the linker during the creation of static libraries.
CMAKE_STATIC_LINKER_FLAGS:STRING=
//Flags used by the linker during debug builds.
CMAKE_STATIC_LINKER_FLAGS_DEBUG:STRING=
//Flags used by the linker during release minsize builds.
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL:STRING=
//Flags used by the linker during release builds.
CMAKE_STATIC_LINKER_FLAGS_RELEASE:STRING=
//Flags used by the linker during Release with Debug Info builds.
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO:STRING=
//Path to a program.
CMAKE_STRIP:FILEPATH=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip
//If this value is on, makefiles will be generated without the
// .SILENT directive, and all commands will be echoed to the console
// during the make. This is useful for debugging only. With Visual
// Studio IDE projects all commands are done without /nologo.
CMAKE_VERBOSE_MAKEFILE:BOOL=FALSE
//Dependencies for the target
Common_LIB_DEPENDS:STATIC=general;boost_filesystem;general;boost_system;
//Dependencies for target
Consensus_LIB_DEPENDS:STATIC=
//Dependencies for the target
Crypto_LIB_DEPENDS:STATIC=general;Utils;general;crypto;
//Dependencies for the target
Database_LIB_DEPENDS:STATIC=general;Common;general;leveldb;general;Utils;general;Overlay;
//Dependencies for the target
DirectoryService_LIB_DEPENDS:STATIC=general;AccountData;general;BlockChainData;general;Mediator;general;Node;general;Persistence;general;Trie;general;Utils;
//Dependencies for the target
Lookup_LIB_DEPENDS:STATIC=general;AccountData;general;BlockChainData;general;Network;
//Dependencies for the target
Mediator_LIB_DEPENDS:STATIC=general;DirectoryService;general;Node;
//Dependencies for the target
Network_LIB_DEPENDS:STATIC=general;Crypto;
//Dependencies for the target
Node_LIB_DEPENDS:STATIC=general;Mediator;general;POW;general;Trie;general;Utils;
//Dependencies for target
Overlay_LIB_DEPENDS:STATIC=
//Dependencies for the target
POW_LIB_DEPENDS:STATIC=general;ethash;
//Dependencies for the target
Persistence_LIB_DEPENDS:STATIC=general;AccountData;general;Crypto;general;leveldb;general;minilzo;general;Trie;general;Utils;
//Dependencies for target
Sha3_LIB_DEPENDS:STATIC=
//Dependencies for the target
Trie_LIB_DEPENDS:STATIC=general;Common;general;Database;general;leveldb;general;Utils;
//Dependencies for target
Utils_LIB_DEPENDS:STATIC=
//Dependencies for the target
Zilliqa_LIB_DEPENDS:STATIC=general;Consensus;general;Crypto;general;Lookup;general;Mediator;general;Network;general;Node;
//Dependencies for target
ethash_LIB_DEPENDS:STATIC=
//Dependencies for target
json_spirit_LIB_DEPENDS:STATIC=
//Dependencies for target
minilzo_LIB_DEPENDS:STATIC=
//Value Computed by CMake
nuQoin_BINARY_DIR:STATIC=/Users/sajjon/Developer/Blockchain/Zilliqa
//Value Computed by CMake
nuQoin_SOURCE_DIR:STATIC=/Users/sajjon/Developer/Blockchain/Zilliqa
########################
# INTERNAL cache entries
########################
//ADVANCED property for variable: Boost_DIR
Boost_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_FILESYSTEM_LIBRARY_DEBUG
Boost_FILESYSTEM_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_FILESYSTEM_LIBRARY_RELEASE
Boost_FILESYSTEM_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_INCLUDE_DIR
Boost_INCLUDE_DIR-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_LIBRARY_DIR_DEBUG
Boost_LIBRARY_DIR_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_LIBRARY_DIR_RELEASE
Boost_LIBRARY_DIR_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_SYSTEM_LIBRARY_DEBUG
Boost_SYSTEM_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_SYSTEM_LIBRARY_RELEASE
Boost_SYSTEM_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG
Boost_UNIT_TEST_FRAMEWORK_LIBRARY_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE
Boost_UNIT_TEST_FRAMEWORK_LIBRARY_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_AR
CMAKE_AR-ADVANCED:INTERNAL=1
//This is the directory where this CMakeCache.txt was created
CMAKE_CACHEFILE_DIR:INTERNAL=/Users/sajjon/Developer/Blockchain/Zilliqa
//Major version of cmake used to create the current loaded cache
CMAKE_CACHE_MAJOR_VERSION:INTERNAL=3
//Minor version of cmake used to create the current loaded cache
CMAKE_CACHE_MINOR_VERSION:INTERNAL=10
//Patch version of cmake used to create the current loaded cache
CMAKE_CACHE_PATCH_VERSION:INTERNAL=1
//ADVANCED property for variable: CMAKE_COLOR_MAKEFILE
CMAKE_COLOR_MAKEFILE-ADVANCED:INTERNAL=1
//Path to CMake executable.
CMAKE_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.10.1/bin/cmake
//Path to cpack program executable.
CMAKE_CPACK_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.10.1/bin/cpack
//Path to ctest program executable.
CMAKE_CTEST_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.10.1/bin/ctest
//ADVANCED property for variable: CMAKE_CXX_COMPILER
CMAKE_CXX_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS
CMAKE_CXX_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_DEBUG
CMAKE_CXX_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_MINSIZEREL
CMAKE_CXX_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELEASE
CMAKE_CXX_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_CXX_FLAGS_RELWITHDEBINFO
CMAKE_CXX_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_COMPILER
CMAKE_C_COMPILER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS
CMAKE_C_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_DEBUG
CMAKE_C_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_MINSIZEREL
CMAKE_C_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELEASE
CMAKE_C_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_C_FLAGS_RELWITHDEBINFO
CMAKE_C_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//Path to cache edit program executable.
CMAKE_EDIT_COMMAND:INTERNAL=/usr/local/Cellar/cmake/3.10.1/bin/ccmake
//Executable file format
CMAKE_EXECUTABLE_FORMAT:INTERNAL=Unknown
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS
CMAKE_EXE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_DEBUG
CMAKE_EXE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_MINSIZEREL
CMAKE_EXE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELEASE
CMAKE_EXE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_EXE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_EXPORT_COMPILE_COMMANDS
CMAKE_EXPORT_COMPILE_COMMANDS-ADVANCED:INTERNAL=1
//Name of external makefile project generator.
CMAKE_EXTRA_GENERATOR:INTERNAL=
//Name of generator.
CMAKE_GENERATOR:INTERNAL=Unix Makefiles
//Name of generator platform.
CMAKE_GENERATOR_PLATFORM:INTERNAL=
//Name of generator toolset.
CMAKE_GENERATOR_TOOLSET:INTERNAL=
//Source directory with the top level CMakeLists.txt file for this
// project
CMAKE_HOME_DIRECTORY:INTERNAL=/Users/sajjon/Developer/Blockchain/Zilliqa
//ADVANCED property for variable: CMAKE_INSTALL_NAME_TOOL
CMAKE_INSTALL_NAME_TOOL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_LINKER
CMAKE_LINKER-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MAKE_PROGRAM
CMAKE_MAKE_PROGRAM-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS
CMAKE_MODULE_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_DEBUG
CMAKE_MODULE_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL
CMAKE_MODULE_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELEASE
CMAKE_MODULE_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_MODULE_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_NM
CMAKE_NM-ADVANCED:INTERNAL=1
//number of local generators
CMAKE_NUMBER_OF_MAKEFILES:INTERNAL=37
//ADVANCED property for variable: CMAKE_OBJCOPY
CMAKE_OBJCOPY-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_OBJDUMP
CMAKE_OBJDUMP-ADVANCED:INTERNAL=1
//Platform information initialized
CMAKE_PLATFORM_INFO_INITIALIZED:INTERNAL=1
//ADVANCED property for variable: CMAKE_RANLIB
CMAKE_RANLIB-ADVANCED:INTERNAL=1
//Path to CMake installation.
CMAKE_ROOT:INTERNAL=/usr/local/Cellar/cmake/3.10.1/share/cmake
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS
CMAKE_SHARED_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_DEBUG
CMAKE_SHARED_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL
CMAKE_SHARED_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELEASE
CMAKE_SHARED_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_SHARED_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_INSTALL_RPATH
CMAKE_SKIP_INSTALL_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_SKIP_RPATH
CMAKE_SKIP_RPATH-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS
CMAKE_STATIC_LINKER_FLAGS-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_DEBUG
CMAKE_STATIC_LINKER_FLAGS_DEBUG-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL
CMAKE_STATIC_LINKER_FLAGS_MINSIZEREL-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELEASE
CMAKE_STATIC_LINKER_FLAGS_RELEASE-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO
CMAKE_STATIC_LINKER_FLAGS_RELWITHDEBINFO-ADVANCED:INTERNAL=1
//ADVANCED property for variable: CMAKE_STRIP
CMAKE_STRIP-ADVANCED:INTERNAL=1
//uname command
CMAKE_UNAME:INTERNAL=/usr/bin/uname
//ADVANCED property for variable: CMAKE_VERBOSE_MAKEFILE
CMAKE_VERBOSE_MAKEFILE-ADVANCED:INTERNAL=1
//Components requested for this build tree.
_Boost_COMPONENTS_SEARCHED:INTERNAL=filesystem;system;unit_test_framework
//Last used Boost_INCLUDE_DIR value.
_Boost_INCLUDE_DIR_LAST:INTERNAL=/usr/local/include
//Last used Boost_LIBRARY_DIR_DEBUG value.
_Boost_LIBRARY_DIR_DEBUG_LAST:INTERNAL=/usr/local/lib
//Last used Boost_LIBRARY_DIR_RELEASE value.
_Boost_LIBRARY_DIR_RELEASE_LAST:INTERNAL=/usr/local/lib
//Last used Boost_NAMESPACE value.
_Boost_NAMESPACE_LAST:INTERNAL=boost
//Last used Boost_USE_MULTITHREADED value.
_Boost_USE_MULTITHREADED_LAST:INTERNAL=ON
//Last used Boost_USE_STATIC_LIBS value.
_Boost_USE_STATIC_LIBS_LAST:INTERNAL=ON
I got a new error, something about Undefined symbols for architecture x86_64
.
Click here to see entire output using `CMAKE_CXX_FLAGS:STRING=-I/usr/local/include`
-- We are on a Darwin system
-- Boost version: 1.66.0
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
CMake Warning at /usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:801 (message):
New Boost version may have incorrect or missing dependencies and imported
targets
Call Stack (most recent call first):
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:907 (_Boost_COMPONENT_DEPENDENCIES)
/usr/local/Cellar/cmake/3.10.1/share/cmake/Modules/FindBoost.cmake:1542 (_Boost_MISSING_DEPENDENCIES)
tests/Crypto/CMakeLists.txt:28 (find_package)
-- Boost version: 1.66.0
-- Found the following Boost libraries:
-- unit_test_framework
-- system
-- filesystem
-- boost header: /usr/local/include
-- boost libs : /usr/local/lib/libboost_unit_test_framework-mt.a;/usr/local/lib/libboost_system-mt.a;/usr/local/lib/libboost_filesystem-mt.a
-- Configuring done
CMake Warning (dev):
Policy CMP0042 is not set: MACOSX_RPATH is enabled by default. Run "cmake
--help-policy CMP0042" for policy details. Use the cmake_policy command to
set the policy and suppress this warning.
MACOSX_RPATH is not specified for the following targets:
Common
Overlay
Trie
ethash
json_spirit
minilzo
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/sajjon/Developer/Blockchain/Zilliqa
[ 2%] Building CXX object src/depends/common/CMakeFiles/Common.dir/Common.cpp.o
[ 2%] Building CXX object src/depends/libDatabase/CMakeFiles/Overlay.dir/MemoryDB.cpp.o
[ 2%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/DataConversion.cpp.o
[ 2%] Building CXX object src/depends/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_reader.cpp.o
[ 3%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/Logger.cpp.o
[ 4%] Building CXX object src/depends/common/CMakeFiles/Common.dir/CommonData.cpp.o
/Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/Logger.cpp:95:17: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
pid_t tid = syscall(SYS_gettid);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
/Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/Logger.cpp:112:17: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
pid_t tid = syscall(SYS_gettid);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
/Users/sajjon/Developer/Blockchain/Zilliqa/src/libUtils/Logger.cpp:148:17: warning: 'syscall' is deprecated: first deprecated in macOS 10.12 - syscall(2) is unsupported; please switch to a supported interface. For SYS_kdebug_trace use kdebug_signpost(). [-Wdeprecated-declarations]
pid_t tid = syscall(SYS_gettid);
^
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.13.sdk/usr/include/unistd.h:745:6: note: 'syscall' has been explicitly marked deprecated here
int syscall(int, ...);
^
3 warnings generated.
[ 5%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/SanityChecks.cpp.o
[ 5%] Building CXX object src/depends/libDatabase/CMakeFiles/Overlay.dir/OverlayDB.cpp.o
[ 5%] Building CXX object src/depends/common/CMakeFiles/Common.dir/CommonIO.cpp.o
[ 5%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/Scheduler.cpp.o
[ 6%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/TimeUtils.cpp.o
[ 7%] Linking CXX shared library libOverlay.dylib
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
[ 8%] Building CXX object src/depends/common/CMakeFiles/Common.dir/FileSystem.cpp.o
Undefined symbols for architecture x86_64:
"dev::sha3(vector_ref<unsigned char const>, vector_ref<unsigned char>)", referenced from:
dev::sha3(vector_ref<unsigned char const>) in OverlayDB.cpp.o
"dev::RLPStream::append(vector_ref<unsigned char const>, bool)", referenced from:
dev::RLPStream::append(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in OverlayDB.cpp.o
"Logger::LogMessage(char const*, char const*)", referenced from:
dev::MemoryDB::lookup(dev::FixedHash<32u> const&) const in MemoryDB.cpp.o
"Logger::MAX_FILE_SIZE", referenced from:
dev::MemoryDB::lookup(dev::FixedHash<32u> const&) const in MemoryDB.cpp.o
"Logger::GetLogger(char const*, bool, std::__1::fpos<__mbstate_t>)", referenced from:
dev::MemoryDB::lookup(dev::FixedHash<32u> const&) const in MemoryDB.cpp.o
"LevelDB::BatchInsert(std::__1::unordered_map<dev::FixedHash<32u>, std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned int>, std::__1::hash<dev::FixedHash<32u> >, std::__1::equal_to<dev::FixedHash<32u> >, std::__1::allocator<std::__1::pair<dev::FixedHash<32u> const, std::__1::pair<std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> >, unsigned int> > > >&, std::__1::unordered_map<dev::FixedHash<32u>, std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, bool>, std::__1::hash<dev::FixedHash<32u> >, std::__1::equal_to<dev::FixedHash<32u> >, std::__1::allocator<std::__1::pair<dev::FixedHash<32u> const, std::__1::pair<std::__1::vector<unsigned char, std::__1::allocator<unsigned char> >, bool> > > >&)", referenced from:
dev::OverlayDB::commit() in OverlayDB.cpp.o
"LevelDB::Exists(dev::FixedHash<32u> const&) const", referenced from:
dev::OverlayDB::exists(dev::FixedHash<32u> const&) const in OverlayDB.cpp.o
"LevelDB::Lookup(vector_ref<unsigned char const> const&) const", referenced from:
dev::OverlayDB::lookupAux(dev::FixedHash<32u> const&) const in OverlayDB.cpp.o
"LevelDB::Lookup(dev::FixedHash<32u> const&) const", referenced from:
dev::OverlayDB::lookup(dev::FixedHash<32u> const&) const in OverlayDB.cpp.o
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/depends/libDatabase/libOverlay.dylib] Error 1
make[1]: *** [src/depends/libDatabase/CMakeFiles/Overlay.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 9%] Building CXX object src/depends/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_value.cpp.o
[ 9%] Building CXX object src/libUtils/CMakeFiles/Utils.dir/TxnRootComputation.cpp.o
[ 10%] Building CXX object src/depends/common/CMakeFiles/Common.dir/FixedHash.cpp.o
[ 11%] Building CXX object src/depends/json_spirit/CMakeFiles/json_spirit.dir/json_spirit_writer.cpp.o
[ 11%] Building CXX object src/depends/common/CMakeFiles/Common.dir/RLP.cpp.o
[ 12%] Linking CXX static library libUtils.a
[ 12%] Built target Utils
[ 13%] Building CXX object src/depends/common/CMakeFiles/Common.dir/SHA3.cpp.o
[ 13%] Linking CXX shared library libjson_spirit.dylib
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
[ 13%] Built target json_spirit
[ 13%] Linking CXX shared library libCommon.dylib
clang: warning: argument unused during compilation: '-pthread' [-Wunused-command-line-argument]
ld: library not found for -lboost_filesystem
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make[2]: *** [src/depends/common/libCommon.dylib] Error 1
make[1]: *** [src/depends/common/CMakeFiles/Common.dir/all] Error 2
make: *** [all] Error 2
Any suggestions on how to proceed?
Should I also set the CMAKE_C_FLAGS:STRING
apart from the CMAKE_CXX_FLAGS:STRING=
?
from zilliqa.
I think we can add a default vagrant file to solve this problem.
from zilliqa.
Since the #10 (comment) issue was being closed and we are now using this to track macOS issues, I will just copy the potential problem from there to here.
Line 22 in ba2d15d
Installed openssl
from homebrew
at time of this issue has the version at 1.0.2n
and thus the build is failing to compile.
from zilliqa.
Currently on experimental support. Closed as this issue should be obsolete by now.
from zilliqa.
Related Issues (20)
- [BUG] zilliqa9.2.0: Why can't download persistent data HOT 2
- [BUG] can't transfer() fungible token through ERC20-bridge using Metamask HOT 6
- [BUG] incorrect encoding of Scilla event to EVM, logs.data should be hex, 0x missed HOT 2
- [question]Why can't I finish mining ds diff?
- Zilliqa node didn't start successfully HOT 1
- Twitter logo HOT 1
- [BUG] Links in README incorrect
- The node cannot be synchronized after being upgraded to v9.3.0 HOT 8
- [BUG] Can't deploy contracts, compiled by solc 0.8.20 and upper
- [FEATURE REQUEST] Allow eth_call to accept either the "input" field or the legacy "data" field
- [BUG] &BLOCKNUMBER is zero in scilla contract, when call is performed from the EVM-side
- [FEATURE REQUEST] add Scilla transitions to the EVM transaction receipt
- [FEATURE REQUEST] API for retrieving token amount (e.g. stZil) HOT 1
- [BUG] Gas estimation seems to return a low result, causing transactions to revert when they shouldn't (we think they run out of gas)
- [BUG] EVM logs are sometimes duplicated
- [BUG] eth_getTransactionCount() doesn't support pending block number. HOT 2
- [BUG] eth_getLogs() will eventually stop giving logs for a transaction
- [BUG] eth_call() can't execute contract transfer calls
- [BUG] Incorrect gas estimation of evm -> scilla interop calls
- [BUG] persistence management scripts doesn't backup/restore traces leveldb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zilliqa.