Bug 2651

Summary: Hob stopped when use the external CSL toolchain--Sourcery CodeBench Lite
Product: [Build System, Metadata & Runtime] Hob Reporter: scanli <scanli>
Component: hobAssignee: Paul Eggleton <bluelightning>
Status: RESOLVED FIXED QA Contact:
Severity: minor    
Priority: Medium CC: bluelightning, hongnax.xu, jessica.zhang, jiajun.xu, poky.bs.watcher, poky.watcher, sstncr
Version: 1.2.1   
Target Milestone: 1.3 M5   
Hardware: Other   
OS: arm   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---
Attachments:
Description Flags
freenze hob window when parsing
none
launch hob in a clean directory none

Description scanli 2012-06-22 21:32:18 UTC
config:
1.  in /home/ljc/poky-denzil/meta-yocto/conf/distro/poky.conf.
         added the fellow lines:
           TCMODE = "external-csl"
           CSL_VER_MAIN  = "2011.09-70"
           EXTERNAL_TOOLCHAIN = "/home/ljc/arm-2011.09/arm"
           TARGET_PREFIX = "arm-none-linux-gnueabi-"
2.  in /home/ljc/poky-denzil/meta/conf/distro/include/tcmode-external-csl.inc
           modified from
             TARGET_PREFIX = "${CSL_TARGET_SYS}-"
           to
             TARGET_PREFIX ?= "${CSL_TARGET_SYS}-"


the HOB stopped and the hob window show like this:
          Building packages...
             Running task 1147 of 1148:do_build
             Recipe:task-core-boot 
             -----------------------------------------------------
             |               Build completed:90%          |      |    Stop
             -----------------------------------------------------
           ......
and the HOB can't be closed with the GUI window's "Stop" botton or X icon.
When run hob the next time,It stopped 99% parsing recipes like this:
  --------------------------------------------------
 |                     Parsing recipes:99%        | |   stop
  --------------------------------------------------
Comment 1 Hongna Xu 2012-06-26 03:39:31 UTC
Created attachment 607 [details]
freenze hob window when parsing
Comment 2 Hongna Xu 2012-06-26 03:40:40 UTC
I reproduce it on 1.2 release, poky/denzil: d20a24310eb43fed9a3f3e75752c9ad45a18cbe4, which Li Jincheng used, i can build core-image-minimal successfully, and then launch hob in the same build directory, the hob GUI window freezed and can't be closed, almost the same situation as Li's second launch it, please reference to the attachment.
Comment 3 Hongna Xu 2012-06-26 03:48:29 UTC
(In reply to comment #2)
> I reproduce it on 1.2 release, poky/denzil:
> d20a24310eb43fed9a3f3e75752c9ad45a18cbe4, which Li Jincheng used, i can
> build core-image-minimal successfully, and then launch hob in the same build
> directory, the hob GUI window freezed and can't be closed, almost the same
> situation as Li's second launch it, please reference to the attachment.

There is no error log print in the terminal which launched hob. and now i am building a minimal image in a clean build directory....it will ready soon.
Comment 4 Hongna Xu 2012-06-26 06:09:41 UTC
Created attachment 609 [details]
launch hob in a clean directory

as Li Jincheng described, launch hob in a clean directory, then build qemuarm core-image-minimal, it stopped at 90% as the attachment, all letters in "Build Configuration" tab changed to gray and hob GUI window gave no response if users click [Stop] button or close it, it seemed freeze.
Comment 5 Paul Eggleton 2012-09-11 09:56:35 UTC
I have made two fixes that should address the direct cause of this issue:
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=a4e36563d9441eb878a64d4728d30f7fce740384
http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=4ec3d7207261d12ff4859982989be7e142e7611d

Before marking this bug resolved however we need to track down why an exception within the event handler in packageinfo.bbclass is not reported to the user in any way.
Comment 6 Paul Eggleton 2012-09-19 10:27:24 UTC
I have now posted a fix for the general case of event handler failure:

http://lists.linuxtogo.org/pipermail/bitbake-devel/2012-September/003656.html
Comment 8 Stefan Stanacar 2012-11-09 10:56:45 UTC
Unfortunately, when I tried to verify this bug (on danny release and master branch) I've hit #3393 (which isn't related to Hob, it's about the Sourcery CodeBench toolchain). So I'll verify this one when #3393 is fixed or there is an workaround.