Bug 1233

Summary: gcc can not work due to missing liblto_plugin.so with 20110708 build
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Yi Zhao <yi.zhao>
Component: coreAssignee: Saul Wold <sgw>
Status: VERIFIED FIXED QA Contact:
Severity: major    
Priority: High CC: jiajun.xu, liang.li2, liangliang.wang, meta.mr.watcher, meta.watcher, wenhuax.fan, yi.zhao
Version: unspecified   
Target Milestone: 1.1 M2   
Hardware: All   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: ---

Description Yi Zhao 2011-07-11 01:29:38 UTC
Testing Env:    
Host: Ubuntu 10.10 x86_64
Kernel: 2.6.35-30-generic

Image location:
http://autobuilder.yoctoproject.org/nightly/20110708-1/
Tree/Branch: Poky/1.1_M2
Poky Commit: 9f4eaeef33da5595748253d59d95c7ca548e28fa

With 20110708 build, gcc can not work on all platforms.

For example, when using gcc to compile a test file:

#############
root@qemuarm:~/# gcc -o test test.c -lm
gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
compilation terminated.
#############
Comment 1 Yi Zhao 2011-07-11 02:07:25 UTC
I found a commit to fix this issue 2 months ago, but it does not work now.

commit 021e79298848a89beb34f5a387d830ae8454bf82
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Wed May 11 16:55:04 2011 -0700

    gcc: fix target gcc runtime issue
    
    The liblto_plugin.so file is not packages for the target recipe causing this
    gcc failure on the target.
    
    gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
    
    (From OE-Core rev: a121494f9bdebb940e3f2f121040988be6dca592)
    
    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 2 Saul Wold 2011-07-11 15:33:07 UTC
Reviewing the packaging that Richard did recently.
Comment 4 Yi Zhao 2011-07-19 00:00:09 UTC
Verified it with 20110715 build


Image location:
http://autobuilder.pokylinux.org/nightly/20110715-1/
Tree/Branch: Poky/1.1_M2
Poky Commit: 93a2ca70482f09e93469481936302e7b6847156e