Skip to content
This repository was archived by the owner on May 21, 2024. It is now read-only.

Commit 0e3e967

Browse files
gballetelizabethengelman
authored andcommitted
build: gather info to investigate why builds fail on ARM (ethereum#20281)
1 parent a747953 commit 0e3e967

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

.travis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,8 @@ jobs:
4747
dist: xenial
4848
go: 1.13.x
4949
script:
50+
- cat /proc/cpuinfo
51+
- free -h
5052
- go run build/ci.go install
5153
- go run build/ci.go test -coverage $TEST_PACKAGES
5254

build/ci.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,6 +229,9 @@ func doInstall(cmdline []string) {
229229

230230
if *arch == "" || *arch == runtime.GOARCH {
231231
goinstall := goTool("install", buildFlags(env)...)
232+
if runtime.GOARCH == "arm64" {
233+
goinstall.Args = append(goinstall.Args, "-p", "1")
234+
}
232235
goinstall.Args = append(goinstall.Args, "-v")
233236
goinstall.Args = append(goinstall.Args, packages...)
234237
build.MustRun(goinstall)
@@ -241,6 +244,7 @@ func doInstall(cmdline []string) {
241244
os.RemoveAll(filepath.Join(path, "pkg", runtime.GOOS+"_arm"))
242245
}
243246
}
247+
244248
// Seems we are cross compiling, work around forbidden GOBIN
245249
goinstall := goToolArch(*arch, *cc, "install", buildFlags(env)...)
246250
goinstall.Args = append(goinstall.Args, "-v")

0 commit comments

Comments
 (0)