Skip to content

Commit

Permalink
build: gather info to investigate why builds fail on ARM (ethereum#20281
Browse files Browse the repository at this point in the history
)
  • Loading branch information
gballet authored and fjl committed Nov 14, 2019
1 parent 765fe44 commit 49d1a03
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ jobs:
dist: xenial
go: 1.13.x
script:
- cat /proc/cpuinfo
- free -h
- go run build/ci.go install
- go run build/ci.go test -coverage $TEST_PACKAGES

Expand Down
4 changes: 4 additions & 0 deletions build/ci.go
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,9 @@ func doInstall(cmdline []string) {

if *arch == "" || *arch == runtime.GOARCH {
goinstall := goTool("install", buildFlags(env)...)
if runtime.GOARCH == "arm64" {
goinstall.Args = append(goinstall.Args, "-p", "1")
}
goinstall.Args = append(goinstall.Args, "-v")
goinstall.Args = append(goinstall.Args, packages...)
build.MustRun(goinstall)
Expand All @@ -241,6 +244,7 @@ func doInstall(cmdline []string) {
os.RemoveAll(filepath.Join(path, "pkg", runtime.GOOS+"_arm"))
}
}

// Seems we are cross compiling, work around forbidden GOBIN
goinstall := goToolArch(*arch, *cc, "install", buildFlags(env)...)
goinstall.Args = append(goinstall.Args, "-v")
Expand Down

0 comments on commit 49d1a03

Please sign in to comment.