Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cmd/dist: use gohostarch for ssa rewrite check #52362

Closed
wants to merge 1 commit into from

Conversation

paralin
Copy link
Contributor

@paralin paralin commented Apr 14, 2022

Fix a build failure when bootstrapping the Go compiler with go-bootstrap 1.4
while the environment contains GOARCH=riscv64.

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

This is because:

  • buildtool.go:198: calls bootstrapRewriteFile(src)
  • bootstrapRewriteFile: buildtool.go:283 calls:
  • isUnneededSSARewriteFile: checks os.Getenv("GOARCH")
  • isUnneededSSARewriteFile: returns "", false
  • bootstrapRewriteFile: calls bootstrapFixImports
  • boostrapFixImports: generates code go1.4 cannot compile

Instead of checking "GOARCH" in the environment, use the gohostarch variable.

@gopherbot
Copy link

This PR (HEAD: d8ecc86) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/400376 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

paralin added a commit to skiffos/buildroot that referenced this pull request Apr 14, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 14, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 14, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 15, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 16, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 19, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request Apr 22, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
@paralin
Copy link
Contributor Author

paralin commented Apr 27, 2022

Fixes #52583

paralin added a commit to skiffos/buildroot that referenced this pull request Apr 28, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request May 1, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request May 5, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request May 5, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
paralin added a commit to skiffos/buildroot that referenced this pull request May 10, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - go: does not support riscv-32bit
@gopherbot
Copy link

This PR (HEAD: 5069feb) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/400376 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 1:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

paralin added a commit to skiffos/buildroot that referenced this pull request May 11, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - patch: add a signed-off-by and upstream link
 - go: does not support riscv-32bit
 - go: check for required riscv ISA extensions

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/go that referenced this pull request May 11, 2022
The GOOS and GOARCH environment variables should be unset before calling
mkbuildcfg. This change fixes a build failure when GOARCH=riscv64.

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

There is a build issue with go1.4 with the riscv64 code: however, why is the
riscv64 code being compiled at all?

GOARCH is set when calling mkbuildcfg, so go1.4 is trying to compile riscv64.

[Buildroot]: submitted to upstream:

 - golang#52583
 - https://go-review.googlesource.com/c/go/+/400376
 - GitHub-Pull-Request: golang#52362

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to skiffos/buildroot that referenced this pull request May 11, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - patch: add a signed-off-by and upstream link
 - go: does not support riscv-32bit
 - go: check for required riscv ISA extensions

Signed-off-by: Christian Stewart <christian@paral.in>
@gopherbot
Copy link

Message from Ian Lance Taylor:

Patch Set 2:

(4 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

This PR (HEAD: 5fb713f) has been imported to Gerrit for code review.

Please visit https://go-review.googlesource.com/c/go/+/400376 to see it.

Tip: You can toggle comments from me using the comments slash command (e.g. /comments off)
See the Wiki page for more info

paralin added a commit to paralin/go that referenced this pull request May 13, 2022
The GOOS and GOARCH environment variables should be unset before calling
mkbuildcfg, as the target GOOS and GOARCH is not relevant while compiling the
bootstrap Go compiler using the C-based go-bootstrap go1.4 compiler.

This change fixes a build failure when GOARCH=riscv64:

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

This is because:

 - buildtool.go:198: calls bootstrapRewriteFile(src)
 - bootstrapRewriteFile: buildtool.go:283 calls:
 - isUnneededSSARewriteFile: checks os.Getenv("GOARCH")
 - isUnneededSSARewriteFile: returns "", false
 - bootstrapRewriteFile: calls bootstrapFixImports
 - boostrapFixImports: generates code go1.4 cannot compile

By unsetting GOARCH here we are causing isUnneededSSARewriteFile to return true
instead of false which generates stub functions bypassing the incompatible code.

buildtool.go:272 in isUnneededSSARewriteFile is the only place the GOARCH
environment variable is checked apart from the xinit function.

This patch simply moves the os.Setenv("GOARCH", "") to before the block of code
where bootstrapRewriteFile is called.

[Buildroot]: submitted to upstream:

- golang#52583
- https://go-review.googlesource.com/c/go/+/400376
- GitHub-Pull-Request: golang#52362

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/go that referenced this pull request May 13, 2022
The GOOS and GOARCH environment variables should be unset before calling
mkbuildcfg, as the target GOOS and GOARCH is not relevant while compiling the
bootstrap Go compiler using the C-based go-bootstrap go1.4 compiler.

This change fixes a build failure when GOARCH=riscv64:

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

This is because:

 - buildtool.go:198: calls bootstrapRewriteFile(src)
 - bootstrapRewriteFile: buildtool.go:283 calls:
 - isUnneededSSARewriteFile: checks os.Getenv("GOARCH")
 - isUnneededSSARewriteFile: returns "", false
 - bootstrapRewriteFile: calls bootstrapFixImports
 - boostrapFixImports: generates code go1.4 cannot compile

By unsetting GOARCH here we are causing isUnneededSSARewriteFile to return true
instead of false which generates stub functions bypassing the incompatible code.

buildtool.go:272 in isUnneededSSARewriteFile is the only place the GOARCH
environment variable is checked apart from the xinit function.

This patch simply moves the os.Setenv("GOARCH", "") to before the block of code
where bootstrapRewriteFile is called.

[Buildroot]: submitted to upstream:

- golang#52583
- https://go-review.googlesource.com/c/go/+/400376
- GitHub-Pull-Request: golang#52362

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to paralin/go that referenced this pull request May 13, 2022
The GOOS and GOARCH environment variables should be unset before calling
mkbuildcfg, as the target GOOS and GOARCH is not relevant while compiling the
bootstrap Go compiler using the C-based go-bootstrap go1.4 compiler.

This change fixes a build failure when GOARCH=riscv64:

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

This is because:

 - buildtool.go:198: calls bootstrapRewriteFile(src)
 - bootstrapRewriteFile: buildtool.go:283 calls:
 - isUnneededSSARewriteFile: checks os.Getenv("GOARCH")
 - isUnneededSSARewriteFile: returns "", false
 - bootstrapRewriteFile: calls bootstrapFixImports
 - boostrapFixImports: generates code go1.4 cannot compile

By unsetting GOARCH here we are causing isUnneededSSARewriteFile to return true
instead of false which generates stub functions bypassing the incompatible code.

buildtool.go:272 in isUnneededSSARewriteFile is the only place the GOARCH
environment variable is checked apart from the xinit function.

This patch simply moves the os.Setenv("GOARCH", "") to before the block of code
where bootstrapRewriteFile is called.

[Buildroot]: submitted to upstream:

- golang#52583
- https://go-review.googlesource.com/c/go/+/400376
- GitHub-Pull-Request: golang#52362

Signed-off-by: Christian Stewart <christian@paral.in>
paralin added a commit to skiffos/buildroot that referenced this pull request May 13, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - patch: add a signed-off-by and upstream link
 - go: does not support riscv-32bit
 - go: check for required riscv ISA extensions

v3 -> v4:

 - patch: simplify & add comments describing fixes

Signed-off-by: Christian Stewart <christian@paral.in>
@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 3:

(5 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

paralin added a commit to skiffos/buildroot that referenced this pull request May 14, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - fixed build error with go-bootstrap

v2 -> v3:

 - patch: add a signed-off-by and upstream link
 - go: does not support riscv-32bit
 - go: check for required riscv ISA extensions

v3 -> v4:

 - patch: simplify & add comments describing fixes

Signed-off-by: Christian Stewart <christian@paral.in>
woodsts pushed a commit to woodsts/buildroot that referenced this pull request May 14, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
paralin added a commit to skiffos/buildroot that referenced this pull request Jun 1, 2022
Add a patch to fix a build failure due to the target GOARCH being used while
bootstrapping the Go compiler with the go-bootstrap compiler.

Uses the host architecture variable instead.

This commit updates the patch with improvements from the upstream PR.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - simplify patch according to upstream comments
 - update commit message in patch
@gopherbot
Copy link

Message from Joel Sing:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Joel Sing:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Bryan Mills:

Patch Set 4: Run-TryBot+1 Code-Review+2

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 4:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 4: TryBot-Result+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Bryan Mills:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Bryan Mills:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@paralin paralin changed the title build: bootstrap: set environment before generating buildcfg cmd/dist: use gohostarch for ssa rewrite check Jun 1, 2022
@paralin
Copy link
Contributor Author

paralin commented Jun 1, 2022

Edited PR title & body to match commit message.

@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 4:

(8 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 4:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 5:

(2 comments)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Bryan Mills:

Patch Set 5: Run-TryBot+1 Auto-Submit+1 Code-Review+2


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 5: TryBot-Result-1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Christian Stewart:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Joel Sing:

Patch Set 5: Run-TryBot+1 Code-Review+1


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Gopher Robot:

Patch Set 5: TryBot-Result+1

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

@gopherbot
Copy link

Message from Bryan Mills:

Patch Set 5:

(1 comment)


Please don’t reply on this GitHub thread. Visit golang.org/cl/400376.
After addressing review feedback, remember to publish your drafts!

gopherbot pushed a commit that referenced this pull request Jun 2, 2022
Fix a build failure when bootstrapping the Go compiler with go-bootstrap 1.4
while the environment contains GOARCH=riscv64.

Building Go toolchain1 using go-1.4-bootstrap-20171003.
src/cmd/compile/internal/ssa/rewriteRISCV64.go:4814
invalid operation: y << x (shift count type int64, must be unsigned integer)

This is because:

 - buildtool.go:198: calls bootstrapRewriteFile(src)
 - bootstrapRewriteFile: buildtool.go:283 calls:
 - isUnneededSSARewriteFile: checks os.Getenv("GOARCH")
 - isUnneededSSARewriteFile: returns "", false
 - bootstrapRewriteFile: calls bootstrapFixImports
 - boostrapFixImports: generates code go1.4 cannot compile

Instead of checking "GOARCH" in the environment, use the gohostarch variable.

Change-Id: Ie9c190498555c4068461fead6278a62e924062c6
GitHub-Last-Rev: 300d7a7
GitHub-Pull-Request: #52362
Reviewed-on: https://go-review.googlesource.com/c/go/+/400376
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
Auto-Submit: Bryan Mills <bcmills@google.com>
Run-TryBot: Bryan Mills <bcmills@google.com>
Reviewed-by: Joel Sing <joel@sing.id.au>
Run-TryBot: Joel Sing <joel@sing.id.au>
@gopherbot
Copy link

This PR is being closed because golang.org/cl/400376 has been merged.

@gopherbot gopherbot closed this Jun 2, 2022
paralin added a commit to skiffos/buildroot that referenced this pull request Jun 3, 2022
Add a patch to fix a build failure due to the target GOARCH being used while
bootstrapping the Go compiler with the go-bootstrap compiler.

Uses the host architecture variable instead.

This commit updates the patch with improvements from the upstream PR.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>

---

v1 -> v2:

 - simplify patch according to upstream comments
 - update commit message in patch

v2 -> v3:

 - upstream has accepted & merged patch
 - update commit with upstream patch information
woodsts pushed a commit to woodsts/buildroot that referenced this pull request Jun 4, 2022
Add a patch to fix a build failure due to the target GOARCH being used while
bootstrapping the Go compiler with the go-bootstrap compiler.

Uses the host architecture variable instead.

This commit updates the patch with improvements from the upstream PR.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Nov 5, 2022
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 8a1158f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
arnout pushed a commit to buildroot/buildroot that referenced this pull request Nov 5, 2022
Add a patch to fix a build failure due to the target GOARCH being used while
bootstrapping the Go compiler with the go-bootstrap compiler.

Uses the host architecture variable instead.

This commit updates the patch with improvements from the upstream PR.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit bc3de65)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
AdamOlech pushed a commit to antmicro/buildroot that referenced this pull request Feb 13, 2023
Enable the supported "riscv64" GOARCH.

Add a patch to fix a build failure due to GOARCH leaking into the calls to the
go-bootstrap compiler. Unsets the GOARCH before calling go-bootstrap.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
(cherry picked from commit 8a1158f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
AdamOlech pushed a commit to antmicro/buildroot that referenced this pull request Feb 13, 2023
Add a patch to fix a build failure due to the target GOARCH being used while
bootstrapping the Go compiler with the go-bootstrap compiler.

Uses the host architecture variable instead.

This commit updates the patch with improvements from the upstream PR.

PR: golang/go#52362

Signed-off-by: Christian Stewart <christian@paral.in>
Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
(cherry picked from commit bc3de65)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants