What version of Go are you using (go version)?
$ go version
branch tip
Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (go env)?
go env Output
$ go env
arm64 platform
What did you do?
Add an arch-specific file, say nat_arm64.go, but it's not built during bootstrapping, leading to unexpected build error.
Command line of building the math/big packge:
/usr/lib/go-1.10/pkg/tool/linux_arm64/compile -o $WORK/b089/pkg.a -trimpath $WORK/b089 -p bootstrap/math/big -complete -buildid A-inRWtP3l76bAqzsiqn/A-inRWtP3l76bAqzsiqn -goversion go1.10.4 -D "" -importcfg $WORK/b089/importcfg -pack -c=4 ./accuracy_string.go ./arith.go ./arith_decl_pure.go ./decimal.go ./doc.go ./float.go ./floatconv.go ./floatmarsh.go ./ftoa.go ./int.go ./intconv.go ./intmarsh.go ./nat.go ./natconv.go ./prime.go ./rat.go ./ratconv.go ./ratmarsh.go ./roundingmode_string.go ./sqrt.go
Seems that build constraint for arm64 is not supported by go-1.10?
Tried with amd64 (nat_amd64.go), it works fine.
What did you expect to see?
bootstrapping build support arm64 build constraint, or any workaround solution.
What did you see instead?
build error in "Building Go toolchain1 using /usr/lib/go-1.10." as the arch-specific file is not included.
What version of Go are you using (
go version)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env)?go envOutputarm64 platform
What did you do?
Add an arch-specific file, say nat_arm64.go, but it's not built during bootstrapping, leading to unexpected build error.
Command line of building the math/big packge:
/usr/lib/go-1.10/pkg/tool/linux_arm64/compile -o $WORK/b089/pkg.a -trimpath $WORK/b089 -p bootstrap/math/big -complete -buildid A-inRWtP3l76bAqzsiqn/A-inRWtP3l76bAqzsiqn -goversion go1.10.4 -D "" -importcfg $WORK/b089/importcfg -pack -c=4 ./accuracy_string.go ./arith.go ./arith_decl_pure.go ./decimal.go ./doc.go ./float.go ./floatconv.go ./floatmarsh.go ./ftoa.go ./int.go ./intconv.go ./intmarsh.go ./nat.go ./natconv.go ./prime.go ./rat.go ./ratconv.go ./ratmarsh.go ./roundingmode_string.go ./sqrt.go
Seems that build constraint for arm64 is not supported by go-1.10?
Tried with amd64 (nat_amd64.go), it works fine.
What did you expect to see?
bootstrapping build support arm64 build constraint, or any workaround solution.
What did you see instead?
build error in "Building Go toolchain1 using /usr/lib/go-1.10." as the arch-specific file is not included.