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
Compile Error: missing section for relocation target type..FEeY9FdU #5486
Comments
I found the following commit introduced the issue. |
I think this is out of scope for us @csqshz. We'll continue to build for all platforms possible with Golang minus a few that are incompatible with various libraries we use, but can't go beyond that. Consul does build with 1.12.1 today, if that helps. |
Source: meta-cloud-services MR: 00000 Type: Integration Disposition: Merged from meta-cloud-services ChangeID: 394aee1 Description: We are currently seeing the following error: type..eUfRrckI: missing section for relocation target type..FEeY9FdU ... This is similar to the reported issues http://www.lyddzz.com/github_/golang/go/issues/30768 and hashicorp/consul#5486 (but this one appears to be a report of 'our' issue so isn't really valid) The go.bbclass currently completes 2 builds (if GO_DYNLINK is set), one without '-linkshared' and one with. The '--linkshared' option is marked as experimental (https://golang.org/cmd/link/ -- "-linkshared Link against installed Go shared libraries (experimental)"). By setting GO_LINKSHARED prior to inheriting go.bbclass we can overwrite the default compile behavior and only perform the build without the '-linkshared' option. This shouldn't change the functionality of consul and we can revert to the default behavior when the issues have been addressed. Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com> Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com> Signed-off-by: Jeremy Puhlman <jpuhlman@mvista.com>
Consu version
v1.4.3 and v0.7, I didn't try other releases.
Golang version
==go-1.12==. It is ok with other releases, but failed with go-1.12.
Error info
How to reproduce
Build consul by 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.
Extract main compile command from prject script:
Analysis
It failed at above code line:130 with -linkshared argument.
It will pass if delete -linkshared.
The error info come from:
I suspect it is relatd to my environment.
I have no enough knowledge about relocation. So anyone can give me some direction on how to trace or fix the issue?
Thanks.
The text was updated successfully, but these errors were encountered: