Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Running make tests #1804

Open
hridambasu opened this issue Apr 11, 2024 · 1 comment
Open

Running make tests #1804

hridambasu opened this issue Apr 11, 2024 · 1 comment
Labels
T-bug Type: bug

Comments

@hridambasu
Copy link

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: [email protected]: 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

@hridambasu hridambasu added the T-bug Type: bug label Apr 11, 2024
@zemse
Copy link
Member

zemse commented Apr 15, 2024

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).

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
T-bug Type: bug
Projects
None yet
Development

No branches or pull requests

2 participants