Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
2 of 3 tasks
eolesinski opened this issue Jun 28, 2024 · 1 comment
Open
2 of 3 tasks
Assignees
Labels
fix/bug Fixes errant behavior

Comments

@eolesinski
Copy link
Contributor

Affected Branch

trunk

Basic Diagnostics

  • I've pulled the latest changes on the affected branch and the issue is still present.

  • The issue is reproducible in docker

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

  • I agree to follow this project's Code of Conduct
@eolesinski eolesinski added the fix/bug Fixes errant behavior label Jun 28, 2024
@maurermi maurermi self-assigned this Jun 28, 2024
@maurermi
Copy link
Collaborator

maurermi commented Jun 28, 2024

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
+git reset --hard 18357149ee6d24bb4f5c780044cee1ddd452af8e
 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
fix/bug Fixes errant behavior
Projects
None yet
Development

No branches or pull requests

3 participants