Bug 7721

Summary: dbus fails with PowerPC GCC 5.1
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Armin Kuster <akuster>
Component: devtools / tool chainAssignee: Khem Raj <raj.khem>
Status: VERIFIED FIXED QA Contact: Bogdan Alexandru Voiculescu <bogdanx.a.voiculescu>
Severity: normal    
Priority: Medium CC: bogdanx.a.voiculescu, meta.mr.watcher, meta.watcher, raj.khem
Version: 1.4.5   
Target Milestone: 1.9 M1   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)

Description Armin Kuster 2015-05-06 04:49:39 UTC
When test building GCC 5.1 using qemuppc dbus build fails.

powerpc-poky-linux-libtool: link: powerpc-poky-linux-gcc -m32 -mhard-float -mcpu=7400 --sysroot=/home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc -Wall -Wextra -Wchar-subscripts -Wmissing-declarations -Wmissing-prototypes -Wnested-externs -Wpointer-arith -Wcast-align -Wno-address -Wfloat-equal -Wdeclaration-after-statement -Wno-unused-label -Wno-missing-field-initializers -Wno-unused-parameter -Wno-sign-compare -Wno-pointer-sign -Wno-type-limits -fno-common -fno-strict-aliasing -O2 -pipe -g -feliminate-unused-debug-types -Wl,-O1 -Wl,--hash-style=gnu -Wl,--as-needed -o dbus-launch dbus-launch.o dbus-launch-x11.o  -L/home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libSM.so /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libICE.so /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libX11.so /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libxcb.so /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libXau.so /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libXdmcp.so -ldl
| /home/akuster/oss/mylayers/poky/build/tmp/sysroots/qemuppc/usr/lib/libX11.so: undefined reference to `.LCL2'
Comment 1 Armin Kuster 2015-05-06 04:50:20 UTC
This seems to be related to a gcc bug 65779

https://gcc.gnu.org/bugzilla/show_bug.cgi?id=65779
Comment 2 Armin Kuster 2015-05-06 04:55:15 UTC
Build Configuration:
BB_VERSION        = "1.27.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-14.04"
TARGET_SYS        = "powerpc-poky-linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8+snapshot-20150506"
TUNE_FEATURES     = "m32 fpu-hard ppc7400 altivec"
TARGET_FPU        = ""
meta              
meta-yocto        = "gcc5xx:0838b58a1762a4a80d3b583e03a96f151f1f2f05"
meta-oe           
meta-python       
meta-perl         
meta-networking   
meta-gnome        
meta-xfce         
meta-ruby         = "master:3c20f2a1147720c81e3dd09c0a959dccda66c10b"
meta-security     = "master:c5dce443eedd22f5621b80d00ea5dbfbaa01c2c8"



local.conf
MACHINE = "qemuppc"
IMAGE_INSTALL_append = " packagegroup-core-security clamav suricata sleuthkit"
IMAGE_INSTALL_append = " ruby ruby-dev bundler"

GCCVERSION = "5.1%"
SDKGCCVERSION = "5.1%"


core-image-minimal
Comment 4 Armin Kuster 2015-05-06 05:09:15 UTC
additional info
https://www.marc.info/?l=gcc-patches&m=143053726226538&w=2
Comment 5 Saul Wold 2015-05-07 15:01:22 UTC
Can you please provide a patch for 5.1
Comment 6 Khem Raj 2015-05-07 16:10:19 UTC
(In reply to comment #5)
> Can you please provide a patch for 5.1
Comment 8 Armin Kuster 2015-05-09 15:36:45 UTC
(In reply to comment #7)
> Can you testout the patch posted here
> 
> http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/
> master&id=741d3bf91144973d26de647039fa60b87a09edf1

will do. later today or tomorrow.
Comment 9 Armin Kuster 2015-05-10 14:05:02 UTC
(In reply to comment #7)
> Can you testout the patch posted here
> 
> http://git.openembedded.org/openembedded-core-contrib/commit/?h=kraj/
> master&id=741d3bf91144973d26de647039fa60b87a09edf1

yep. that fixed Libx11.


those changes also cleaned up a few other packages too.
thanks.
Comment 10 Khem Raj 2015-06-28 17:13:31 UTC
See previous comment
Comment 11 Bogdan Alexandru Voiculescu 2015-10-14 11:01:05 UTC
Successful build with gcc5.2

Build Configuration:
BB_VERSION        = "1.27.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Ubuntu-15.04"
TARGET_SYS        = "powerpc-poky-linux"
MACHINE           = "qemuppc"
DISTRO            = "poky"
DISTRO_VERSION    = "1.8+snapshot-20151014"
TUNE_FEATURES     = "m32 fpu-hard ppc7400 altivec"
TARGET_FPU        = ""
meta
meta-yocto
meta-yocto-bsp    = "master:7b86c771c80d0759c2ca0e57c46c4c966f89c49e"
meta-security     = "master:b7ceefc96d89c08d338de112fc2a87ab306838f1"
meta-oe
meta-ruby
meta-perl
meta-python
meta-networking   = "master:47f7d287a09329734629cb9d194ef4e077117d79"

local.conf
IMAGE_INSTALL_append = " packagegroup-core-security clamav suricata sleuthkit"
IMAGE_INSTALL_append = " ruby ruby-dev bundler libseccomp"

 ls ../../..//sysroots/qemuppc/usr/lib/libX11* -ila
14176497 -rw-r--r-- 3 autobuilder autobuilder 22815380 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11.a
14176491 -rwxr-xr-x 3 autobuilder autobuilder     1012 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11.la
11415455 lrwxrwxrwx 1 autobuilder autobuilder       15 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11.so -> libX11.so.6.3.0
11415456 lrwxrwxrwx 1 autobuilder autobuilder       15 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11.so.6 -> libX11.so.6.3.0
15216783 -rwxr-xr-x 2 autobuilder autobuilder  1216496 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11.so.6.3.0
14176498 -rw-r--r-- 3 autobuilder autobuilder    49130 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11-xcb.a
14176495 -rwxr-xr-x 3 autobuilder autobuilder     1060 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11-xcb.la
11415454 lrwxrwxrwx 1 autobuilder autobuilder       19 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11-xcb.so -> libX11-xcb.so.1.0.0
11415457 lrwxrwxrwx 1 autobuilder autobuilder       19 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11-xcb.so.1 -> libX11-xcb.so.1.0.0
15216784 -rwxr-xr-x 2 autobuilder autobuilder     3448 oct 13 18:51 ../../..//sysroots/qemuppc/usr/lib/libX11-xcb.so.1.0.0