[OE-core] Recipe specific sysroots: New failure to compile Go

Kristian Amlie kristian.amlie at mender.io
Tue Jan 24 09:36:03 UTC 2017


After the new feature, recipe specific sysroots, was added, I'm facing
the following compile error when compiling Go:

-------------------------------------------
ERROR: go-native-1.7.4-r0 do_compile: Function failed: do_compile (log
file is located at
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/temp/log.do_compile.10566)
ERROR: Logfile of failure stored in:
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/temp/log.do_compile.10566
Log data follows:
| DEBUG: Executing shell function do_compile
| + set -e
| + unset GOBIN
| + '[' '!' -f run.bash ']'
| + case "$(uname)" in
| ++ uname
| + ld --version
| + grep 'gold.* 2\.20'
| + for se_mount in /selinux /sys/fs/selinux
| + '[' -d /selinux -a -f /selinux/booleans/allow_execstack -a -x
/usr/sbin/selinuxenabled ']'
| + for se_mount in /selinux /sys/fs/selinux
| + '[' -d /sys/fs/selinux -a -f
/sys/fs/selinux/booleans/allow_execstack -a -x /usr/sbin/selinuxenabled ']'
| ++ uname -s
| + '[' Linux == GNU/kFreeBSD ']'
| + rm -f ./runtime/runtime_defs.go
| + echo '##### Building Go bootstrap tool.'
| ##### Building Go bootstrap tool.
| + echo cmd/dist
| cmd/dist
| ++ cd ..
| ++ pwd
| + export
GOROOT=/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/go-1.7.4/go
| +
GOROOT=/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/go-1.7.4/go
| +
GOROOT_BOOTSTRAP=/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3
| + '[' '!' -x
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3/bin/go
']'
| + '['
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3
==
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/go-1.7.4/go
']'
| + rm -f cmd/dist/dist
| +
GOROOT=/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3
| + GOOS=
| + GOARCH=
| +
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3/bin/go
build -o cmd/dist/dist ./cmd/dist
| #
_/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/go-1.7.4/go/src/cmd/dist
|
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/recipe-sysroot-native/usr/lib/go-bootstrap-native-1.4.3/pkg/tool/linux_amd64/6l:
readsym out of sync
| WARNING: exit code 2 from a shell command.
| ERROR: Function failed: do_compile (log file is located at
/home/jenkins/workspace/yoctobuild/build-qemu/tmp/work/x86_64-linux/go-native/1.7.4-r0/temp/log.do_compile.10566)
ERROR: Task
(virtual:native:/home/jenkins/workspace/yoctobuild/oe-meta-go/recipes-devtools/go/go_1.7.4.bb:do_compile)
failed with exit code '1'
-----------------------------------------------

Note in particular the "readsym out of sync", which appears to be the
heart of the problem.

Using git bisect I have verified that it is the commit
9107d6ca144ac1f6169830dee25dae2dad775333, the introduction of recipe
specific sysroots, that breaks the build. However, I cannot see an
obvious link between the two, the error looks very internal to Go. Any
clue what's going on?

-- 
Kristian



More information about the Openembedded-core mailing list