Skip to content

golang: disable host PIE on linux/ppc64le#30057

Open
rany2 wants to merge 1 commit into
openwrt:masterfrom
rany2:go-ppc64le-fix
Open

golang: disable host PIE on linux/ppc64le#30057
rany2 wants to merge 1 commit into
openwrt:masterfrom
rany2:go-ppc64le-fix

Conversation

@rany2

@rany2 rany2 commented Jul 20, 2026

Copy link
Copy Markdown
Contributor

📦 Package Details

Maintainer: @GeorgeSapkin

Description:
Disable host PIE on linux/ppc64le. Fixes the following compile error when building Go 1.26.5 on that architecture:

Building Go toolchain3 using go_bootstrap and Go toolchain2.
go: error obtaining buildID for go tool compile: signal: segmentation fault (core dumped)
go tool dist: FAILED: .../build_dir/hostpkg/go-1.26.5/pkg/tool/linux_ppc64le/go_bootstrap install -ldflags=all=-buildmode pie -v -a cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile: exit status 1
make[2]: *** [Makefile:100: .../build_dir/hostpkg/go-1.26.5/.built] Error 2
make[2]: Leaving directory '.../feeds/packages/lang/golang/golang1.26'
time: package/feeds/packages/golang1.26/host-compile#355.86#31.73#55.16
    ERROR: package/feeds/packages/golang1.26 [host] failed to build.
make[1]: *** [package/Makefile:196: package/feeds/packages/golang1.26/host/compile] Error 1
make[1]: Leaving directory '...'
make: *** [.../include/toplevel.mk:233: package/feeds/packages/golang1.26/host/compile] Error 2

The failure occurs with bootstrap compiler versions Go 1.24.13, Go 1.26.1, and Go 1.26.5.


🧪 Run Testing Details

  • OpenWrt Version: SNAPSHOT
  • OpenWrt Target/Subtarget: x86/64
  • OpenWrt Device: Generic

✅ Formalities

  • I have reviewed the CONTRIBUTING.md file for detailed contributing guidelines.

If your PR contains a patch:

  • It can be applied using git am
  • It has been refreshed to avoid offsets, fuzzes, etc., using
    make package/<your-package>/refresh V=s
  • It is structured in a way that it is potentially upstreamable
    (e.g., subject line, commit description, etc.)
    We must try to upstream patches to reduce maintenance burden.

@openwrt

openwrt Bot commented Jul 20, 2026

Copy link
Copy Markdown

Formality Check: Suggestions Available

We completed the verification flow. Please review the formatting overview logs below.

⚠️ STYLISTIC WARNINGS & SUGGESTIONS

Package Release Audit:

  • ⚠️ Package lang/golang content changed without a PKG_RELEASE or version bump
  • Do not increment release for minor changes. Cosmetic edits (e.g., typos in comments, copyright updates, formatting/whitespace), changing the package maintainer (PKG_MAINTAINER), or updating source download info (PKG_SOURCE_URL / PKG_HASH) do not require incrementing PKG_RELEASE.

Something broken? Consider reporting an issue.
Running version c46a507 deployed on 2026-07-20 13:23:59 CEST

Disable host PIE on linux/ppc64le. Fixes the following compile error
when building Go 1.26.5 on that architecture:

Building Go toolchain3 using go_bootstrap and Go toolchain2.
go: error obtaining buildID for go tool compile: signal: segmentation fault (core dumped)
go tool dist: FAILED: .../build_dir/hostpkg/go-1.26.5/pkg/tool/linux_ppc64le/go_bootstrap install -
ldflags=all=-buildmode pie -v -a cmd/asm cmd/cgo cmd/compile cmd/link cmd/preprofile: exit status 1
make[2]: *** [Makefile:100: .../build_dir/hostpkg/go-1.26.5/.built] Error 2
make[2]: Leaving directory '.../feeds/packages/lang/golang/golang1.26'
time: package/feeds/packages/golang1.26/host-compile#355.86#31.73#55.16
    ERROR: package/feeds/packages/golang1.26 [host] failed to build.
make[1]: *** [package/Makefile:196: package/feeds/packages/golang1.26/host/compile] Error 1
make[1]: Leaving directory '...'
make: *** [.../include/toplevel.mk:233: package/feeds/packages/golang1.26/host/compile] Error 2

The failure occurs with bootstrap compiler versions Go 1.24.13,
Go 1.26.1, and Go 1.26.5.

Signed-off-by: Rany Hany <rany_hany@riseup.net>

@openwrt-ai openwrt-ai left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed 1 new commit; no new issues found.


Generated by Claude Code

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.

2 participants