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/link: fail to build when using time/tzdata on ARM [1.15 backport] #44748

cherrymui opened this issue Mar 2, 2021 · 3 comments

cmd/link: fail to build when using time/tzdata on ARM [1.15 backport] #44748

cherrymui opened this issue Mar 2, 2021 · 3 comments


Copy link

@cherrymui cherrymui commented Mar 2, 2021

(Creating manually as I don't think gopherbot would do this after it already created one.)

Please consider #44639 (fixed in 098504c for Go 1.17) for backport to the next 1.15 minor release.

This causes programs fail to build without easy workaround. It applies to 1.15 as well.

@gopherbot gopherbot added this to the Go1.15.9 milestone Mar 2, 2021
Copy link

@gopherbot gopherbot commented Mar 2, 2021

Change mentions this issue: [release-branch.go1.15] cmd/link: generate trampoline for inter-dependent packages

Copy link

@toothrot toothrot commented Mar 18, 2021

Approved. This is a serious issue with no workaround.

Copy link

@gopherbot gopherbot commented Mar 25, 2021

Closed by merging 7c88ae4 to release-branch.go1.15.

@gopherbot gopherbot closed this Mar 25, 2021
gopherbot pushed a commit that referenced this issue Mar 25, 2021
…dent packages

Currently, in the trampoline generation pass we expect packages
are laid out in dependency order, so a cross-package jump always
has a known target address so we can check if a trampoline is
needed. With linknames, there can be cycles in the package
dependency graph, making this algorithm no longer work. For them,
as the target address is unkown we conservatively generate a
trampoline. This may generate unnecessary trampolines (if the
packages turn out laid together), but package cycles are extremely
rare so this is fine.

Updates #44639.
Fixes #44748.

Change-Id: I2dc2998edacbda27d726fc79452313a21d07787a
Trust: Cherry Zhang <>
Reviewed-by: Than McIntosh <>
(cherry picked from commit 098504c)
Run-TryBot: Cherry Zhang <>
TryBot-Result: Go Bot <>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
4 participants