BSHA3 / bsha3

The first SHA3d PoW blockchain. Full Node + Wallet + CPU Miner. Experimental.
https://github.com/bsha3/bsha3/releases
MIT License
17 stars 16 forks source link

tests: Build failure #11

Closed fafrd closed 5 years ago

fafrd commented 5 years ago

I'm unable to build with tests; the following output is printed when I try to build: https://pastebin.com/raw/nrWTd6dL

As a workaround, I'm able to build if I configure like

./configure --disable-bench --disable-tests
fafrd commented 5 years ago

https://github.com/BSHA3/bsha3/pull/18 fixes this for me

ch4ot1c commented 5 years ago

bench still gets stuck for me on MacOS:

3 warnings generated.
  CXX      bench/bench_bitcoin-ccoins_caching.o
  CXX      bench/bench_bitcoin-gcs_filter.o
  CXX      bench/bench_bitcoin-merkle_root.o
  CXX      bench/bench_bitcoin-mempool_eviction.o
  CXX      bench/bench_bitcoin-verify_script.o
  CXX      bench/bench_bitcoin-base58.o
  CXX      bench/bench_bitcoin-bech32.o
  CXX      bench/bench_bitcoin-lockedpool.o
  CXX      bench/bench_bitcoin-prevector.o
  CXX      bench/bench_bitcoin-coin_selection.o
  CXXLD    bench/bench_bitcoin
Undefined symbols for architecture x86_64:
  "_evhttp_uridecode", referenced from:
      urlDecode(std::__1::basic_string<char, std::__1::char_traits<char>, std::__1::allocator<char> > const&) in libbitcoin_server.a(libbitcoin_server_a-httpserver.o)
  "_event_enable_debug_logging", referenced from:
      UpdateHTTPServerLogging(bool) in libbitcoin_server.a(libbitcoin_server_a-httpserver.o)
ld: symbol(s) not found for architecture x86_64

I seem to have latest libevent though...

➜  bsha3 git:(b0208b90f) ls -al /usr/local/lib/libevent*
lrwxr-xr-x  1 Jon   admin      49 Oct 31 17:52 /usr/local/lib/libevent-2.1.6.dylib -> ../Cellar/libevent/2.1.8/lib/libevent-2.1.6.dylib
-rwxr-xr-x  1 root  admin  361284 Oct 31 17:10 /usr/local/lib/libevent-2.2.1.dylib
lrwxr-xr-x  1 Jon   admin      39 Oct 31 17:52 /usr/local/lib/libevent.a -> ../Cellar/libevent/2.1.8/lib/libevent.a
lrwxr-xr-x  1 Jon   admin      43 Oct 31 17:52 /usr/local/lib/libevent.dylib -> ../Cellar/libevent/2.1.8/lib/libevent.dylib
-rwxr-xr-x  1 root  admin     923 Oct 31 17:10 /usr/local/lib/libevent.la
lrwxr-xr-x  1 Jon   admin      54 Oct 31 17:52 /usr/local/lib/libevent_core-2.1.6.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_core-2.1.6.dylib
-rwxr-xr-x  1 root  admin  221028 Oct 31 17:10 /usr/local/lib/libevent_core-2.2.1.dylib
lrwxr-xr-x  1 Jon   admin      44 Oct 31 17:52 /usr/local/lib/libevent_core.a -> ../Cellar/libevent/2.1.8/lib/libevent_core.a
lrwxr-xr-x  1 Jon   admin      48 Oct 31 17:52 /usr/local/lib/libevent_core.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_core.dylib
-rwxr-xr-x  1 root  admin     953 Oct 31 17:10 /usr/local/lib/libevent_core.la
lrwxr-xr-x  1 Jon   admin      55 Oct 31 17:52 /usr/local/lib/libevent_extra-2.1.6.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_extra-2.1.6.dylib
-rwxr-xr-x  1 root  admin  156520 Oct 31 17:10 /usr/local/lib/libevent_extra-2.2.1.dylib
lrwxr-xr-x  1 Jon   admin      45 Oct 31 17:52 /usr/local/lib/libevent_extra.a -> ../Cellar/libevent/2.1.8/lib/libevent_extra.a
lrwxr-xr-x  1 Jon   admin      49 Oct 31 17:52 /usr/local/lib/libevent_extra.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_extra.dylib
-rwxr-xr-x  1 root  admin     959 Oct 31 17:10 /usr/local/lib/libevent_extra.la
lrwxr-xr-x  1 Jon   admin      57 Oct 31 17:52 /usr/local/lib/libevent_openssl-2.1.6.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_openssl-2.1.6.dylib
lrwxr-xr-x  1 Jon   admin      47 Oct 31 17:52 /usr/local/lib/libevent_openssl.a -> ../Cellar/libevent/2.1.8/lib/libevent_openssl.a
lrwxr-xr-x  1 Jon   admin      51 Oct 31 17:52 /usr/local/lib/libevent_openssl.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_openssl.dylib
lrwxr-xr-x  1 Jon   admin      58 Oct 31 17:52 /usr/local/lib/libevent_pthreads-2.1.6.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_pthreads-2.1.6.dylib
-rwxr-xr-x  1 root  admin   11392 Oct 31 17:10 /usr/local/lib/libevent_pthreads-2.2.1.dylib
lrwxr-xr-x  1 Jon   admin      48 Oct 31 17:52 /usr/local/lib/libevent_pthreads.a -> ../Cellar/libevent/2.1.8/lib/libevent_pthreads.a
lrwxr-xr-x  1 Jon   admin      52 Oct 31 17:52 /usr/local/lib/libevent_pthreads.dylib -> ../Cellar/libevent/2.1.8/lib/libevent_pthreads.dylib
-rwxr-xr-x  1 root  admin     977 Oct 31 17:10 /usr/local/lib/libevent_pthreads.la                                     

brew install libevent:

Warning: libevent 2.1.8 is already installed and up-to-date
To reinstall 2.1.8, run `brew reinstall libevent`

I've tried uninstalling and reinstalling with homebrew, but no luck. Does it want me to downgrade?

ch4ot1c commented 5 years ago

Resolved; bench-tests are the remaining trouble