Skip to content

Instantly share code, notes, and snippets.

@keo
Last active November 12, 2016 09:38
Show Gist options
  • Save keo/79ebd0ad924025b3e880 to your computer and use it in GitHub Desktop.
Save keo/79ebd0ad924025b3e880 to your computer and use it in GitHub Desktop.
cpp-ethereum build fails on OSX 10.9.5
$ cmake .. -DGUI=1 -DJSCONSOLE=1 -DVMTRACE=1 -DNCURSES=1
-- ctest path: /usr/local/bin/ctest
- CryptoPP header: /usr/local/include/cryptopp
- CryptoPP lib : /usr/local/lib/libcryptopp.a
- LevelDB header: /usr/local/include
- LevelDB lib: /usr/local/lib/libleveldb.dylib
-- Could NOT find rocksdb (missing: ROCKSDB_INCLUDE_DIR ROCKSDB_LIBRARY)
- v8 header: /usr/local/opt/v8-315/include
- v8 lib : /usr/local/opt/v8-315/lib/libv8.dylib
- Jsoncpp header: /usr/local/include/jsoncpp
- Jsoncpp lib : /usr/local/lib/libjsoncpp.dylib
- json-rpc-cpp header: /usr/local/include
- json-rpc-cpp lib : /usr/local/lib/libjsonrpccpp-common.dylib;/usr/local/lib/libjsonrpccpp-server.dylib;/usr/local/lib/libjsonrpccpp-client.dylib
- microhttpd header: /usr/local/include
- microhttpd lib : /usr/local/lib/libmicrohttpd.dylib
- microhttpd dll :
- readline header: /usr/include
- readline lib : /usr/lib/libreadline.dylib
- miniupnpc header: /usr/local/include
- miniupnpc lib : /usr/local/lib/libminiupnpc.dylib
- gmp header: /usr/local/include
- gmp lib : /usr/local/lib/libgmp.dylib
- curl header: /usr/include
- curl lib : /usr/lib/libcurl.dylib
-- Could NOT find cpuid (missing: CPUID_INCLUDE_DIR CPUID_LIBRARY)
- opencl header: /System/Library/Frameworks/OpenCL.framework
- opencl lib : /System/Library/Frameworks/OpenCL.framework
- jsonrpcstub location : /usr/local/bin/jsonrpcstub
- macdeployqt path: /usr/local/opt/qt5/lib/cmake/Qt5Core/../../../bin/macdeployqt
- appdmg location : ETH_APP_DMG-NOTFOUND
-- Boost version: 1.58.0
-- Found the following Boost libraries:
-- thread
-- date_time
-- system
-- regex
-- chrono
-- filesystem
-- unit_test_framework
-- program_options
- boost header: /usr/local/include
- boost lib : /usr/local/lib/libboost_thread-mt.a;/usr/local/lib/libboost_date_time-mt.a;/usr/local/lib/libboost_system-mt.a;/usr/local/lib/libboost_regex-mt.a;/usr/local/lib/libboost_chrono-mt.a;/usr/local/lib/libboost_filesystem-mt.a;/usr/local/lib/libboost_unit_test_framework-mt.a;/usr/local/lib/libboost_program_options-mt.a
------------------------------------------------------------------------
-- CMake Version 3.2.3
-- CMAKE_BUILD_TYPE Build type Release
-- TARGET_PLATFORM Target platform Darwin
-- BUNDLE Build bundle none
--------------------------------------------------------------- features
-- Chromium support 1
-- Hardware identification support FALSE
-- HTTP Request support TRUE
-- VMTRACE VM execution tracing ON
-- PROFILING Profiling support OFF
-- NOBOOST No BOOST macros in test functions OFF
-- FATDB Full database exploring OFF
-- JSONRPC JSON-RPC support ON
-- USENPM Javascript source building OFF
-- ROCKSDB Prefer rocksdb to leveldb OFF
------------------------------------------------------------- components
-- MINER Build miner ON
-- ETHKEY Build wallet tools ON
-- TOOLS Build basic tools ON
-- SOLIDITY Build Solidity language components ON
-- SERPENT Build Serpent language components ON
-- GUI Build GUI components ON
-- NCURSES Build NCurses components ON
-- TESTS Build tests ON
-- ETHASHCL Build OpenCL components (experimental!) OFF
-- JSCONSOLE Build with javascript console ON
-- EVMJIT Build LLVM-based JIT EVM (experimental!) OFF
------------------------------------------------------------------------
-- CXXFLAGS: -std=c++11 -Wall -Wno-unknown-pragmas -Wextra -DSHAREDLIB -fPIC
-- test: ClientBase | --eth_testfile=BlockTests/bcJS_API_Test --eth_threads=1; --eth_testfile=BlockTests/bcJS_API_Test --eth_threads=3; --eth_testfile=BlockTests/bcJS_API_Test --eth_threads=10; --eth_testfile=BlockTests/bcValidBlockTest --eth_threads=1; --eth_testfile=BlockTests/bcValidBlockTest --eth_threads=3; --eth_testfile=BlockTests/bcValidBlockTest --eth_threads=10
-- test: JsonRpc | --eth_testfile=BlockTests/bcJS_API_Test; --eth_testfile=BlockTests/bcValidBlockTest
-- mix qmldir: -qmldir=/Users/keo/Code/OpenSource/Ethereum/cpp-ethereum/mix/qml
-- 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:
ethash
soljson
This warning is for project developers. Use -Wno-dev to suppress it.
-- Generating done
-- Build files have been written to: /Users/keo/Code/OpenSource/Ethereum/cpp-ethereum/build
$ make -j2
[ 0%] Built target BuildInfo.h
Scanning dependencies of target secp256k1
[ 1%] Building C object secp256k1/CMakeFiles/secp256k1.dir/secp256k1.c.o
[ 2%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Common.cpp.o
Linking C shared library libsecp256k1.dylib
[ 2%] Built target secp256k1
Scanning dependencies of target scrypt
[ 2%] Building C object libscrypt/CMakeFiles/scrypt.dir/b64.c.o
[ 3%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto-mcf.c.o
[ 3%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto-scrypt-saltgen.c.o
[ 3%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto_scrypt-check.c.o
[ 3%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto_scrypt-hash.c.o
[ 4%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto_scrypt-hexconvert.c.o
[ 4%] Building C object libscrypt/CMakeFiles/scrypt.dir/crypto_scrypt-nosse.c.o
[ 4%] Building C object libscrypt/CMakeFiles/scrypt.dir/sha256.c.o
[ 4%] Building C object libscrypt/CMakeFiles/scrypt.dir/slowequals.c.o
Linking C shared library libscrypt.dylib
[ 4%] Built target scrypt
[ 4%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonData.cpp.o
[ 4%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonIO.cpp.o
[ 4%] Building CXX object libdevcore/CMakeFiles/devcore.dir/CommonJS.cpp.o
[ 4%] Automatic moc for target sc
[ 4%] Built target sc_automoc
[ 5%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FileSystem.cpp.o
[ 5%] Building CXX object libdevcore/CMakeFiles/devcore.dir/FixedHash.cpp.o
[ 5%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Guards.cpp.o
[ 5%] Automatic moc for target ethash
[ 5%] Built target ethash_automoc
[ 6%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Hash.cpp.o
Scanning dependencies of target jsonrpcstub
[ 6%] Built target jsonrpcstub
[ 6%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Log.cpp.o
[ 6%] Building CXX object libdevcore/CMakeFiles/devcore.dir/MemoryDB.cpp.o
[ 6%] Building CXX object libdevcore/CMakeFiles/devcore.dir/RangeMask.cpp.o
[ 6%] Generating JSEngineResources.hpp
[ 7%] Building CXX object libdevcore/CMakeFiles/devcore.dir/RLP.cpp.o
Files "/Users/keo/Code/OpenSource/Ethereum/cpp-ethereum/build/libjsengine/JSEngineResources.hpp.tmp" to "/Users/keo/Code/OpenSource/Ethereum/cpp-ethereum/build/libjsengine/JSEngineResources.hpp" are different.
Scanning dependencies of target jsengine
[ 7%] Building CXX object libjsengine/CMakeFiles/jsengine.dir/JSEngine.cpp.o
[ 7%] Building CXX object libjsengine/CMakeFiles/jsengine.dir/JSPrinter.cpp.o
[ 8%] Building CXX object libjsengine/CMakeFiles/jsengine.dir/JSV8Engine.cpp.o
[ 8%] Building CXX object libjsengine/CMakeFiles/jsengine.dir/JSV8Printer.cpp.o
[ 8%] Building CXX object libjsengine/CMakeFiles/jsengine.dir/JSV8RPC.cpp.o
Linking CXX shared library libjsengine.dylib
[ 8%] Built target jsengine
[ 8%] Building CXX object libdevcore/CMakeFiles/devcore.dir/SHA3.cpp.o
[ 8%] Building CXX object libdevcore/CMakeFiles/devcore.dir/StructuredLogger.cpp.o
[ 8%] Building CXX object libdevcore/CMakeFiles/devcore.dir/TransientDirectory.cpp.o
[ 9%] Building CXX object libdevcore/CMakeFiles/devcore.dir/TrieCommon.cpp.o
Scanning dependencies of target testeth_automoc
[ 9%] Automatic moc for target testeth
[ 9%] Built target testeth_automoc
[ 9%] Building CXX object libdevcore/CMakeFiles/devcore.dir/TrieDB.cpp.o
[ 9%] Building CXX object libdevcore/CMakeFiles/devcore.dir/TrieHash.cpp.o
[ 10%] Building CXX object libdevcore/CMakeFiles/devcore.dir/Worker.cpp.o
[ 12%] Automatic moc for target checkRandomStateTest
[ 12%] Built target checkRandomStateTest_automoc
[ 12%] Automatic moc for target checkRandomVMTest
[ 12%] Built target checkRandomVMTest_automoc
[ 12%] Automatic moc for target createRandomStateTest
[ 12%] Built target createRandomStateTest_automoc
[ 13%] Automatic moc for target createRandomTest
[ 13%] Built target createRandomTest_automoc
[ 13%] Automatic moc for target createRandomVMTest
[ 13%] Built target createRandomVMTest_automoc
[ 14%] Generating qrc_js.cpp
Scanning dependencies of target jsqrc
[ 14%] Building CXX object libjsqrc/CMakeFiles/jsqrc.dir/qrc_js.cpp.o
Linking CXX static library libjsqrc.a
[ 14%] Built target jsqrc
[ 14%] Automatic moc for target AlethZero
Generating moc_Connect.cpp
Generating moc_DappLoader.cpp
Linking CXX shared library libdevcore.dylib
[ 14%] Built target devcore
[ 14%] Automatic moc for target mix
Generating moc_ClientModel.cpp
Generating moc_Debugger.cpp
Generating moc_Clipboard.cpp
Generating moc_CodeModel.cpp
Generating moc_DownloadView.cpp
Generating moc_ExportState.cpp
Generating moc_DebuggingStateWrapper.cpp
Generating moc_MainWin.cpp
Generating moc_FileIo.cpp
Generating moc_MiningView.cpp
Generating moc_OurWebThreeStubServer.cpp
Generating moc_HttpServer.cpp
Generating moc_InverseMouseArea.cpp
Generating moc_MixApplication.cpp
Generating moc_QBasicNodeDefinition.cpp
Generating moc_QBigInt.cpp
Generating moc_Transact.cpp
Generating moc_QContractDefinition.cpp
Generating moc_WebPage.cpp
[ 14%] Built target AlethZero_automoc
Scanning dependencies of target evmcore
[ 15%] Building CXX object libevmcore/CMakeFiles/evmcore.dir/Instruction.cpp.o
Generating moc_QEther.cpp
[ 15%] Building CXX object libevmcore/CMakeFiles/evmcore.dir/Params.cpp.o
Linking CXX shared library libevmcore.dylib
[ 15%] Built target evmcore
Generating moc_QFunctionDefinition.cpp
Scanning dependencies of target devcrypto
[ 15%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/AES.cpp.o
[ 15%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/Common.cpp.o
Generating moc_QVariableDeclaration.cpp
[ 15%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/CryptoPP.cpp.o
Generating moc_QVariableDefinition.cpp
Generating moc_SortFilterProxyModel.cpp
Generating moc_Web3Server.cpp
[ 16%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/ECDHE.cpp.o
[ 16%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/OverlayDB.cpp.o
[ 16%] Built target mix_automoc
[ 16%] Building CXX object libdevcrypto/CMakeFiles/devcrypto.dir/SecretStore.cpp.o
Scanning dependencies of target ethash
[ 17%] Building C object libethash/CMakeFiles/ethash.dir/io.c.o
[ 17%] Building C object libethash/CMakeFiles/ethash.dir/internal.c.o
[ 17%] Building C object libethash/CMakeFiles/ethash.dir/io_posix.c.o
[ 17%] Building CXX object libethash/CMakeFiles/ethash.dir/sha3_cryptopp.cpp.o
[ 18%] Building CXX object libethash/CMakeFiles/ethash.dir/ethash_automoc.cpp.o
Linking CXX shared library libethash.dylib
[ 18%] Built target ethash
Scanning dependencies of target jsconsole
[ 18%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/CURLRequest.cpp.o
[ 19%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/JSConsole.cpp.o
Linking CXX shared library libdevcrypto.dylib
[ 19%] Built target devcrypto
[ 19%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/JSLocalConsole.cpp.o
[ 19%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/JSRemoteConsole.cpp.o
[ 19%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/JSV8Connector.cpp.o
[ 19%] Generating qrc_natspec.cpp
Scanning dependencies of target natspec
[ 20%] Building CXX object libjsconsole/CMakeFiles/jsconsole.dir/JSV8RemoteConnector.cpp.o
[ 20%] Building CXX object libnatspec/CMakeFiles/natspec.dir/NatspecExpressionEvaluator.cpp.o
Linking CXX shared library libjsconsole.dylib
[ 20%] Built target jsconsole
Scanning dependencies of target rlp
[ 20%] Building CXX object rlp/CMakeFiles/rlp.dir/main.cpp.o
[ 20%] Building CXX object libnatspec/CMakeFiles/natspec.dir/qrc_natspec.cpp.o
Linking CXX shared library libnatspec.dylib
[ 20%] Built target natspec
Scanning dependencies of target evmasm
[ 20%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/Assembly.cpp.o
Linking CXX executable rlp
[ 20%] Built target rlp
[ 20%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/AssemblyItem.cpp.o
[ 20%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/BlockDeduplicator.cpp.o
[ 21%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/CommonSubexpressionEliminator.cpp.o
Scanning dependencies of target ethcore
[ 23%] Building CXX object libethcore/CMakeFiles/ethcore.dir/ABI.cpp.o
[ 23%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/ConstantOptimiser.cpp.o
[ 23%] Building CXX object libethcore/CMakeFiles/ethcore.dir/BlockInfo.cpp.o
[ 23%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/ControlFlowGraph.cpp.o
[ 23%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Common.cpp.o
[ 23%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/ExpressionClasses.cpp.o
[ 23%] Building CXX object libethcore/CMakeFiles/ethcore.dir/CommonJS.cpp.o
[ 24%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Ethash.cpp.o
[ 24%] Building CXX object libethcore/CMakeFiles/ethcore.dir/EthashAux.cpp.o
[ 24%] Building CXX object libethcore/CMakeFiles/ethcore.dir/ICAP.cpp.o
[ 24%] Building CXX object libethcore/CMakeFiles/ethcore.dir/KeyManager.cpp.o
[ 25%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/GasMeter.cpp.o
[ 26%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Miner.cpp.o
[ 26%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Params.cpp.o
[ 26%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/KnownState.cpp.o
[ 26%] Building CXX object libethcore/CMakeFiles/ethcore.dir/ProofOfWork.cpp.o
[ 27%] Building CXX object libethcore/CMakeFiles/ethcore.dir/Transaction.cpp.o
[ 27%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/PathGasMeter.cpp.o
[ 27%] Building CXX object libevmasm/CMakeFiles/evmasm.dir/SemanticInformation.cpp.o
Linking CXX shared library libethcore.dylib
[ 27%] Built target ethcore
Scanning dependencies of target p2p
[ 28%] Building CXX object libp2p/CMakeFiles/p2p.dir/Capability.cpp.o
Linking CXX shared library libevmasm.dylib
[ 28%] Built target evmasm
Scanning dependencies of target ethconsole
[ 28%] Building CXX object ethconsole/CMakeFiles/ethconsole.dir/main.cpp.o
Linking CXX executable ethconsole
[ 28%] Built target ethconsole
[ 28%] Building CXX object libp2p/CMakeFiles/p2p.dir/Common.cpp.o
[ 28%] Building CXX object libp2p/CMakeFiles/p2p.dir/Host.cpp.o
Scanning dependencies of target ethminer
[ 29%] Building CXX object ethminer/CMakeFiles/ethminer.dir/main.cpp.o
Linking CXX executable ethminer
[ 29%] Built target ethminer
[ 29%] Building CXX object libp2p/CMakeFiles/p2p.dir/HostCapability.cpp.o
[ 30%] Building CXX object libp2p/CMakeFiles/p2p.dir/Network.cpp.o
[ 30%] Building CXX object libp2p/CMakeFiles/p2p.dir/NodeTable.cpp.o
[ 30%] Building CXX object libp2p/CMakeFiles/p2p.dir/Peer.cpp.o
[ 31%] Building CXX object libp2p/CMakeFiles/p2p.dir/RLPXFrameCoder.cpp.o
[ 31%] Building CXX object libp2p/CMakeFiles/p2p.dir/RLPxHandshake.cpp.o
[ 31%] Building CXX object libp2p/CMakeFiles/p2p.dir/RLPXSocket.cpp.o
Scanning dependencies of target ethkey
[ 31%] Building CXX object ethkey/CMakeFiles/ethkey.dir/main.cpp.o
[ 31%] Building CXX object libp2p/CMakeFiles/p2p.dir/Session.cpp.o
Linking CXX executable ethkey
[ 31%] Built target ethkey
[ 32%] Building CXX object libp2p/CMakeFiles/p2p.dir/UDP.cpp.o
[ 32%] Building CXX object libp2p/CMakeFiles/p2p.dir/UPnP.cpp.o
Scanning dependencies of target lll
[ 32%] Building CXX object liblll/CMakeFiles/lll.dir/CodeFragment.cpp.o
Linking CXX shared library libp2p.dylib
[ 32%] Built target p2p
[ 32%] Building CXX object liblll/CMakeFiles/lll.dir/Compiler.cpp.o
Scanning dependencies of target solidity
[ 34%] [ 34%] Building CXX object libsolidity/CMakeFiles/solidity.dir/ArrayUtils.cpp.o
Building CXX object liblll/CMakeFiles/lll.dir/CompilerState.cpp.o
[ 34%] Building CXX object libsolidity/CMakeFiles/solidity.dir/AST.cpp.o
[ 34%] Building CXX object liblll/CMakeFiles/lll.dir/Parser.cpp.o
/Users/keo/Code/OpenSource/Ethereum/cpp-ethereum/libsolidity/AST.cpp:478:14: error: chosen constructor is explicit in copy-initialization
check(this, {});
^~
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/set:428:14: note: constructor declared here
explicit set(const value_compare& __comp = value_compare())
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../include/c++/v1/functional:1504:32: note: passing argument to parameter here
_Rp operator()(_ArgTypes...) const;
^
1 error generated.
make[2]: *** [libsolidity/CMakeFiles/solidity.dir/AST.cpp.o] Error 1
make[1]: *** [libsolidity/CMakeFiles/solidity.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
Linking CXX shared library liblll.dylib
[ 34%] Built target lll
make: *** [all] Error 2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment