mit-dci / opencbdc-tx

A transaction processor for a hypothetical, general-purpose, central bank digital currency
Other
891 stars 200 forks source link

EVMONE Fails to Build (Hunter 0.24.5 install gets stuck) -- Mac M3 #275

Open eolesinski opened 2 weeks ago

eolesinski commented 2 weeks ago

Affected Branch

trunk

Basic Diagnostics

Description

In order to reproduce the issue, follow these steps:

  1. Using M3 Mac running Sonoma 14.3
  2. Follow setup build environment instructions on opencbdc-tx repo
  3. Run step 2: $ ./scripts/setup-dependencies.sh

Note: install dependencies get hung on Hunter 0.24.5 installation step

behavior also replicated by @maurermi

Code of Conduct

maurermi commented 2 weeks ago

The following is an intermittent solution that resolves this issue. We would likely prefer to tie this installation to a specific version instead of using the most up-to-date version every install.

diff --git a/scripts/setup-dependencies.sh b/scripts/setup-dependencies.sh
index 1e20e13..cd76c00 100755
--- a/scripts/setup-dependencies.sh
+++ b/scripts/setup-dependencies.sh
@@ -121,15 +121,8 @@ make install
 cd ../..

 # NOTE: updating evmone to v0.10.0 requires c++20
-EVMONE_VER=0.9.1
-wget https://github.com/ethereum/evmone/archive/refs/tags/v${EVMONE_VER}.zip
-rm -rf evmone-${EVMONE_VER}
-unzip v${EVMONE_VER}.zip
-rm v${EVMONE_VER}.zip
-cd evmone-${EVMONE_VER}
-rm -rf evmc
-mv ../evmc-${EVMC_VER} ./evmc
-mkdir ./evmc/.git
+git clone --recursive https://github.com/ethereum/evmone
+cd evmone
 if [[ "$OSTYPE" == "darwin"* ]]; then
   # Mac Silicon: clang 'ar' does not allow empty member list, fails w/ -DBUILD_SHARED_LIBS=OFF
   cmake -S . -B build -DCMAKE_INSTALL_PREFIX="${PREFIX}"
@@ -140,7 +133,7 @@ cmake --build build --parallel
 cd build
 make install
 cd ../..
-rm -rf evmone-${EVMONE_VER}
+rm -rf evmone