I got the source code through git, as follow:
$git clone https://github.com/bitcoin/bitcoin
and I have prepared the build environment for building according doc/build-osx.md. then I type instructions as follow:
$./autogen.sh export BDB_PREFIX='/Users/xxx/Code/bitcoin/db4' #xxx is user name $./configure BDB_LIBS="-L${BDB_PREFIX}/lib -ldb_cxx-4.8" BDB_CFLAGS="-I${BDB_PREFIX}/include" $make
I have not encountered error in all steps above
when I ran the instruction of 'make check', an error occurred as follow: Making check in src /Applications/Xcode.app/Contents/Developer/usr/bin/make check-TESTS check-local ../build-aux/test-driver: line 107: 80996 Abort trap: 6 "$@" > $log_file 2>&1 FAIL: qt/test/test_bitcoin-qt
Testsuite summary for Bitcoin Core 0.17.0
TOTAL: 1
PASS: 0
SKIP: 0
XFAIL: 0
FAIL: 1
XPASS: 0
ERROR: 0
============================================================================ See src/test-suite.log Please report to https://github.com/bitcoin/bitcoin/issues
make[4]: *** [test-suite.log] Error 1 make[3]: *** [check-TESTS] Error 2 make[2]: *** [check-am] Error 2 make[1]: *** [check-recursive] Error 1 make: *** [check-recursive] Error 1
############################################
the content in src/test-suite.log as follow:
############################################
============================================= Bitcoin Core 0.17.0: src/test-suite.log
TOTAL: 1
PASS: 0
SKIP: 0
XFAIL: 0
FAIL: 1
XPASS: 0
ERROR: 0
.. contents:: :depth: 2
FAIL: qt/test/test_bitcoin-qt
********* Start testing of URITests ********* Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.10.43.1) (Apple)) PASS : URITests::initTestCase() PASS : URITests::uriTests() PASS : URITests::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 2ms ********* Finished testing of URITests ********* ********* Start testing of PaymentServerTests ********* Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.10.43.1) (Apple)) PASS : PaymentServerTests::initTestCase() QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::initNetManager: No active proxy server found. QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Secure payment request from "testmerchant.org" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: Payment request: certificate expired or not yet active: QSslCertificate("3", "03", "LxHILx+N3qwVoAcCmQ5cyw==", (), ("Expired Test Merchant"), QMap(), QDateTime(2013-02-23 21:26:43.000 UTC Qt::TimeSpec(UTC)), QDateTime(2013-02-24 21:26:43.000 UTC Qt::TimeSpec(UTC))) QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Insecure payment request to "1EcqLEpyu3zY7T5QU7RLrHEQH134KeGPXR" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: Payment request: certificate expired or not yet active: QSslCertificate("3", "03", "LxHILx+N3qwVoAcCmQ5cyw==", (), ("Expired Test Merchant"), QMap(), QDateTime(2013-02-23 21:26:43.000 UTC Qt::TimeSpec(UTC)), QDateTime(2013-02-24 21:26:43.000 UTC Qt::TimeSpec(UTC))) QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Secure payment request from "testmerchant8.org" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: Payment request: certificate expired or not yet active: QSslCertificate("3", "06", "MiZaQ+g9lSHZGuHWkXZG+g==", (), ("Payment Request Intermediate 5"), QMap(), QDateTime(2013-02-23 22:59:51.000 UTC Qt::TimeSpec(UTC)), QDateTime(2013-02-24 22:59:51.000 UTC Qt::TimeSpec(UTC))) QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Insecure payment request to "1EcqLEpyu3zY7T5QU7RLrHEQH134KeGPXR" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: Payment request: certificate expired or not yet active: QSslCertificate("3", "06", "MiZaQ+g9lSHZGuHWkXZG+g==", (), ("Payment Request Intermediate 5"), QMap(), QDateTime(2013-02-23 22:59:51.000 UTC Qt::TimeSpec(UTC)), QDateTime(2013-02-24 22:59:51.000 UTC Qt::TimeSpec(UTC))) QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: SSL error: certificate signature failure QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Insecure payment request to "1EcqLEpyu3zY7T5QU7RLrHEQH134KeGPXR" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: SSL error: certificate signature failure QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: SSL error: unable to get local issuer certificate QDEBUG : PaymentServerTests::paymentServerTests() PaymentServer::processPaymentRequest: Insecure payment request to "1EcqLEpyu3zY7T5QU7RLrHEQH134KeGPXR" QWARN : PaymentServerTests::paymentServerTests() PaymentRequestPlus::getMerchant: SSL error: unable to get local issuer certificate QWARN : PaymentServerTests::paymentServerTests() "PaymentServer::verifyNetwork: Payment request network "test" doesn't match client network "main"." QWARN : PaymentServerTests::paymentServerTests() "PaymentServer::verifyExpired: Payment request expired "1970-01-01T00:00:01Z"." QWARN : PaymentServerTests::paymentServerTests() "PaymentServer::verifyExpired: Payment request expired "1900-01-8096T08:29:52Z"." QWARN : PaymentServerTests::paymentServerTests() "PaymentServer::verifySize: Payment request too large (50001 bytes, allowed 50000 bytes)." QWARN : PaymentServerTests::paymentServerTests() "PaymentServer::verifyAmount: Payment request amount out of allowed range (2100000100000000, allowed 0 - 2100000000000000)." PASS : PaymentServerTests::paymentServerTests() PASS : PaymentServerTests::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 535ms ********* Finished testing of PaymentServerTests ********* ********* Start testing of RPCNestedTests ********* Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.10.43.1) (Apple)) PASS : RPCNestedTests::initTestCase() PASS : RPCNestedTests::rpcNestedTests() PASS : RPCNestedTests::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 74ms ********* Finished testing of RPCNestedTests ********* ********* Start testing of CompatTests ********* Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.10.43.1) (Apple)) PASS : CompatTests::initTestCase() PASS : CompatTests::bswapTests() PASS : CompatTests::cleanupTestCase() Totals: 3 passed, 0 failed, 0 skipped, 0 blacklisted, 0ms ********* Finished testing of CompatTests ********* ********* Start testing of WalletTests ********* Config: Using QtTest library 5.11.2, Qt 5.11.2 (x86_64-little_endian-lp64 shared (dynamic) release build; by Clang 10.0.0 (clang-1000.10.43.1) (Apple)) PASS : WalletTests::initTestCase() QDEBUG : WalletTests::walletTests() TransactionTablePriv::refreshWallet QWARN : WalletTests::walletTests() This plugin does not support propagateSizeHints() QFATAL : WalletTests::walletTests() Received signal 11 Function time: 805ms Total time: 805ms FAIL! : WalletTests::walletTests() Received a fatal error. Loc: [Unknown file(0)] Totals: 1 passed, 1 failed, 0 skipped, 0 blacklisted, 805ms ********* Finished testing of WalletTests ********* FAIL qt/test/test_bitcoin-qt (exit status: 134)