privacy-scaling-explorations / zkevm-circuits

https://privacy-scaling-explorations.github.io/zkevm-circuits/
Other
821 stars 841 forks source link

Running make tests #1804

Open hridambasu opened 3 months ago

hridambasu commented 3 months ago

What command(s) is the bug in?

make test-all

Describe the bug

I am unable to run the library tests using make test-all. I get the following error: warning: geth-utils@0.1.0: gethutil/mpt/trie/stacktrie.go:27:2: package slices is not in GOROOT (/usr/local/Cellar/go/1.17.2/libexec/src/slices)

error: failed to run custom build command for geth-utils v0.1.0 (/Users/hridambasu/Downloads/giro labs/zkevm-circuits/geth-utils)

Caused by: process didn't exit successfully: /Users/hridambasu/Downloads/giro labs/zkevm-circuits/target/debug/build/geth-utils-0089910310de80d4/build-script-build (exit status: 1) --- stdout cargo:rerun-if-changed=./lib/lib.go OPT_LEVEL = Some("0") TARGET = Some("x86_64-apple-darwin") HOST = Some("x86_64-apple-darwin") cargo:rerun-if-env-changed=CC_x86_64-apple-darwin CC_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CC_x86_64_apple_darwin CC_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CC HOST_CC = None cargo:rerun-if-env-changed=CC CC = None cargo:rerun-if-env-changed=CRATE_CC_NO_DEFAULTS CRATE_CC_NO_DEFAULTS = None DEBUG = Some("true") CARGO_CFG_TARGET_FEATURE = Some("cmpxchg16b,fxsr,lahfsahf,sse,sse2,sse3,sse4.1,ssse3") cargo:rerun-if-env-changed=CFLAGS_x86_64-apple-darwin CFLAGS_x86_64-apple-darwin = None cargo:rerun-if-env-changed=CFLAGS_x86_64_apple_darwin CFLAGS_x86_64_apple_darwin = None cargo:rerun-if-env-changed=HOST_CFLAGS HOST_CFLAGS = None cargo:rerun-if-env-changed=CFLAGS CFLAGS = None cargo:warning=gethutil/mpt/trie/stacktrie.go:27:2: package slices is not in GOROOT (/usr/local/Cellar/go/1.17.2/libexec/src/slices) exit status: 1

--- stderr

Error while building geth-utils: Command CC="cc" CGO_ENABLED="1" GOARCH="amd64" GOOS="darwin" "go" "build" "-buildmode" "c-archive" "-o" "/Users/hridambasu/Downloads/giro labs/zkevm-circuits/target/debug/build/geth-utils-ab43ec9b9b59400d/out/libgo-geth-utils.a" "./lib/lib.go" with args "go-geth-utils" did not execute successfully (status code exit status: 1).

warning: build failed, waiting for other jobs to finish... make: *** [fmt] Error 101

Concrete steps to reproduce the bug. If it's able reproduce via testool, please share test_id from jenkins report

No response

zemse commented 3 months ago

I was recently getting a similar error while building geth-utils and I tried a lot to fix that. But it started building successfully after a restart.

Your go version should be 1.21 (or 1.22 should also work).