All of lore.kernel.org
 help / color / mirror / Atom feed
* Recipe specific sysroots: New failure to compile Go
@ 2017-01-24  9:36 Kristian Amlie
  2017-01-24 10:17 ` Jussi Kukkonen
  0 siblings, 1 reply; 5+ messages in thread
From: Kristian Amlie @ 2017-01-24  9:36 UTC (permalink / raw)
  To: OE-core

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recipe specific sysroots: New failure to compile Go
  2017-01-24  9:36 Recipe specific sysroots: New failure to compile Go Kristian Amlie
@ 2017-01-24 10:17 ` Jussi Kukkonen
  2017-01-24 10:34   ` Kristian Amlie
  0 siblings, 1 reply; 5+ messages in thread
From: Jussi Kukkonen @ 2017-01-24 10:17 UTC (permalink / raw)
  To: Kristian Amlie; +Cc: OE-core

[-- Attachment #1: Type: text/plain, Size: 1468 bytes --]

On 24 January 2017 at 11:36, Kristian Amlie <kristian.amlie@mender.io>
wrote:
[snip]

> /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?
>

This could be a symptom of a missing dependency in the go (or go-bootstrap)
recipe: the recipe specific sysroot only contains the specified build
dependencies unlike the previous system where the sysroot typically
contained loads of other things as well.

I'm afraid I don't have any more specific suggestions.

 Jussi

[-- Attachment #2: Type: text/html, Size: 1983 bytes --]

^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recipe specific sysroots: New failure to compile Go
  2017-01-24 10:17 ` Jussi Kukkonen
@ 2017-01-24 10:34   ` Kristian Amlie
  2017-02-28 18:59     ` Khem Raj
  0 siblings, 1 reply; 5+ messages in thread
From: Kristian Amlie @ 2017-01-24 10:34 UTC (permalink / raw)
  To: Jussi Kukkonen; +Cc: OE-core

On 24/01/17 11:17, Jussi Kukkonen wrote:
> On 24 January 2017 at 11:36, Kristian Amlie <kristian.amlie@mender.io
> <mailto:kristian.amlie@mender.io>> wrote:
> [snip]
> 
>     /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?
> 
> 
> This could be a symptom of a missing dependency in the go (or
> go-bootstrap) recipe: the recipe specific sysroot only contains the
> specified build dependencies unlike the previous system where the
> sysroot typically contained loads of other things as well.

Probably. I've been looking at the dependencies for gcc-cross, which
should be similar, but no luck so far.

-- 
Kristian


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recipe specific sysroots: New failure to compile Go
  2017-01-24 10:34   ` Kristian Amlie
@ 2017-02-28 18:59     ` Khem Raj
  2017-03-07 15:58       ` Kristian Amlie
  0 siblings, 1 reply; 5+ messages in thread
From: Khem Raj @ 2017-02-28 18:59 UTC (permalink / raw)
  To: Kristian Amlie; +Cc: OE-core

On Tue, Jan 24, 2017 at 3:34 AM, Kristian Amlie
<kristian.amlie@mender.io> wrote:
> On 24/01/17 11:17, Jussi Kukkonen wrote:
>> On 24 January 2017 at 11:36, Kristian Amlie <kristian.amlie@mender.io
>> <mailto:kristian.amlie@mender.io>> wrote:
>> [snip]
>>
>>     /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?
>>
>>
>> This could be a symptom of a missing dependency in the go (or
>> go-bootstrap) recipe: the recipe specific sysroot only contains the
>> specified build dependencies unlike the previous system where the
>> sysroot typically contained loads of other things as well.
>
> Probably. I've been looking at the dependencies for gcc-cross, which
> should be similar, but no luck so far.
>
did you get to bottom of this issue ?

> --
> Kristian
> --
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.openembedded.org/mailman/listinfo/openembedded-core


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: Recipe specific sysroots: New failure to compile Go
  2017-02-28 18:59     ` Khem Raj
@ 2017-03-07 15:58       ` Kristian Amlie
  0 siblings, 0 replies; 5+ messages in thread
From: Kristian Amlie @ 2017-03-07 15:58 UTC (permalink / raw)
  To: Khem Raj; +Cc: OE-core

On 28/02/17 19:59, Khem Raj wrote:
> On Tue, Jan 24, 2017 at 3:34 AM, Kristian Amlie
> <kristian.amlie@mender.io> wrote:
>> On 24/01/17 11:17, Jussi Kukkonen wrote:
>>> On 24 January 2017 at 11:36, Kristian Amlie <kristian.amlie@mender.io
>>> <mailto:kristian.amlie@mender.io>> wrote:
>>> [snip]
>>>
>>>     /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?
>>>
>>>
>>> This could be a symptom of a missing dependency in the go (or
>>> go-bootstrap) recipe: the recipe specific sysroot only contains the
>>> specified build dependencies unlike the previous system where the
>>> sysroot typically contained loads of other things as well.
>>
>> Probably. I've been looking at the dependencies for gcc-cross, which
>> should be similar, but no luck so far.
>>
> did you get to bottom of this issue ?

Yes, it was fixed by these two commits in poky and oe-meta-go, respectively:

http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=2313a77d8474c742e1cd8cee246f6c05847dd3c6

https://github.com/mem/oe-meta-go/commit/fc6d8ac2951aa4548c2e1c67d1f3437eb2a8981f

-- 
Kristian


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-03-07 15:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-01-24  9:36 Recipe specific sysroots: New failure to compile Go Kristian Amlie
2017-01-24 10:17 ` Jussi Kukkonen
2017-01-24 10:34   ` Kristian Amlie
2017-02-28 18:59     ` Khem Raj
2017-03-07 15:58       ` Kristian Amlie

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.