-
Notifications
You must be signed in to change notification settings - Fork 17.7k
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: missing section for relocation target #30768
Comments
Please cut and paste text. Please do not post screenshots, as they are read and harder to work with. Thanks. Can you tell us exactly how to recreate the problem? Thanks. |
Thanks for your reply. I have remedied my content that adding attachment and appending how to reproduce the issue. |
I found the following commit introduced the issue. |
I encountered this issue when I debugged yunabe/lgo#82. https://github.com/yunabe/gobug30768 How to reproduce the issue
Expected
Actual
|
@andybons This appears to be a regression -- see https://github.com/yunabe/lgo#disclaimer. Would it make sense to add a 'Soon' label? (Looking at it, that label says it's the one for regressions.) I'm one of the people hitting this bug -- Jupyter Notebook is stuck on Go 1.9 or so due to multiple regressions including this one. Jupyter's not a huge user base, but it does seem to exercise things pretty well. |
Change https://golang.org/cl/185539 mentions this issue: |
@gopherbot please open backport to 1.12 |
Backport issue(s) opened: #33040 (for 1.12). Remember to create the cherry-pick CL(s) as soon as the patch is submitted to master, according to https://golang.org/wiki/MinorReleases. |
Change https://golang.org/cl/186077 mentions this issue: |
Change https://golang.org/cl/186183 mentions this issue: |
Change https://golang.org/cl/186278 mentions this issue: |
…rnal ABI These functions are compiler generated, and as such are only available in the internal ABI. Doing this avoids generating an alias symbol. Doing that avoids confusion between unmangled and mangled type symbols. Updates #30768 Fixes #33040 Change-Id: I8aba3934ffa994b1a19fc442cfe3e05642792a25 Reviewed-on: https://go-review.googlesource.com/c/go/+/186278 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Austin Clements <austin@google.com>
What version of Go are you using (
go version
)?What operating system and processor architecture are you using (
go env
)?My host is ubuntu 1404.
go env
OutputWhat did you do?
I use Yocto-project to build consul.
It works with go-1.11 but compile failed with go-1.12.
I found that If I remove -linkshared argument, it also works with go-1.12
The error info is as following:
# github.com/hashicorp/consul/connect/certgen
type..eUfRrckI: missing section for relocation target type..FEeY9FdU
type..eUfRrckI: reloc 8 (R_CALL) to non-elf symbol type..FEeY9FdU (outer=type..FEeY9FdU) 49 (SABIALIAS)
# github.com/hashicorp/consul
type..eUfRrckI: missing section for relocation target type..FEeY9FdU
type..K6Uq9NPs: missing section for relocation target type..tBBUxeDj
The above prompts are from /usr/lib/go-1.12/src/cmd/link/internal/ld/data.go
Attachment is my bash script which contains go install command.
It failed at line:130(-linkshared):
run.do_compile.txt
Could someone give me some direction to fix or locate the issue? Maybe the issue is related with my environment.
Thanks.
How to reproduce.
We should build a Yocto Project.
~/poky: git clone git://git.yoctoproject.org/meta-virtualization
~/poky: git clone git://git.openembedded.org/meta-openembedded
Add six paths to BBLAYERS:
BBLAYERS ?= " \
/ala-lpggp22/hsong/poky-qcon/meta
/ala-lpggp22/hsong/poky-qcon/meta-poky
/ala-lpggp22/hsong/poky-qcon/meta-yocto-bsp
/ala-lpggp22/hsong/poky-qcon/meta-virtualization
/ala-lpggp22/hsong/poky-qcon/meta-cloud-services
/ala-lpggp22/hsong/poky-qcon/meta-openembedded/meta-python
/ala-lpggp22/hsong/poky-qcon/meta-openembedded/meta-networking
/ala-lpggp22/hsong/poky-qcon/meta-openembedded/meta-filesystems
/ala-lpggp22/hsong/poky-qcon/meta-openembedded/meta-oe
"
This command will build consul and its dependencies.
Then the issue will prompt when doing do_compile of consul.
If you have any question about Yocto Project with please contact me.
The text was updated successfully, but these errors were encountered: