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

cannot find section .rela.dyn on clean build #8

Closed
ernstp opened this issue Oct 21, 2016 · 2 comments
Closed

cannot find section .rela.dyn on clean build #8

ernstp opened this issue Oct 21, 2016 · 2 comments

Comments

@ernstp
Copy link
Contributor

ernstp commented Oct 21, 2016

Hi,

I get the following errors on a clean build. However if you just build again this seems to be ignored and all is well.

ERROR: golang-cross-arm-1.6.3-r0 do_populate_sysroot_setscene: '('patchelf-uninative', '--set-interpreter', '/home/builder/workspace/project/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2', '/home/builder/workspace/project/tmp/work/x86_64-linux/golang-cross-arm/1.6.3-r0/sstate-install-populate_sysroot/x86_64-linux/usr/lib/arm-poky-linux-gnueabi/go/bin/go')' failed with exit code 1 and the following output:
cannot find section .rela.dyn

WARNING: Logfile for failed setscene task is /home/builder/workspace/project/tmp/work/x86_64-linux/golang-cross-arm/1.6.3-r0/temp/log.do_populate_sysroot_setscene.7291
WARNING: Setscene task 673 (/home/builder/workspace/sources/meta-golang/recipes-devtools/golang/golang-cross_1.6.bb, do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead
ERROR: golang-native-1.6.3-r0 do_populate_sysroot_setscene: '('patchelf-uninative', '--set-interpreter', '/home/builder/workspace/project/tmp/sysroots-uninative/x86_64-linux/lib/ld-linux-x86-64.so.2', '/home/builder/workspace/project/tmp/work/x86_64-linux/golang-native/1.6.3-r0/sstate-install-populate_sysroot/x86_64-linux/usr/lib/go/bin/go')' failed with exit code 1 and the following output:
cannot find section .rela.dyn

WARNING: Logfile for failed setscene task is /home/builder/workspace/project/tmp/work/x86_64-linux/golang-native/1.6.3-r0/temp/log.do_populate_sysroot_setscene.12631
WARNING: Setscene task 1383 (/home/builder/workspace/sources/meta-golang/recipes-devtools/golang/golang-native_1.6.bb, do_populate_sysroot_setscene) failed with exit code '1' - real task will be run instead

@madisongh
Copy link
Owner

From what I can find, this is due to an incompatibility between patchelf and go-generated binaries. This was fixed in oe-core morty with the update to patchelf 0.9 and the addition of a patch for the issue.

You can address this in krogoth by either disabling uninative builds or back-porting the patchelf update and re-generating your uninative tarball.

@ernstp
Copy link
Contributor Author

ernstp commented Oct 24, 2016

Right, seems like a more generic problem. Backporting is a fine workaround,
cherry-picking d03439e0db02a0b6d165ca7da2d648add83d8649 in poky seems to do the trick.

@ernstp ernstp closed this as completed Oct 24, 2016
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

No branches or pull requests

2 participants