Bug 5903

Summary: x32 build fails at lttng do_package
Product: [Build System, Metadata & Runtime] OE-Core Reporter: Ionut Chisanovici <ionutx.chisanovici>
Component: coreAssignee: Nitin Kamble <nitin.a.kamble>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Medium CC: meta.mr.watcher, meta.watcher, sgw
Version: 1.6   
Target Milestone: 1.6 M5   
Hardware: x86   
OS: Multiple   
Whiteboard:
OS type for building Yocto: --- Type of Regression: ---
Verified: Documentation change: No (bug/feature does not impact docs)
Attachments:
Description Flags
x32 lttng errors
none
x32_errors none

Description Ionut Chisanovici 2014-03-04 07:46:02 UTC
Hi,

Tried to build a genericx86-64 with x32 (core-image-sato-sdk) image but it fails at:

$ bitbake core-image-sato-sdk
Parsing recipes: 100% |#######################################################################################################################################################################################################| Time: 00:00:21
Parsing of 857 .bb files complete (0 cached, 857 parsed). 1218 targets, 43 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.21.1"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "Fedora-20"
TARGET_SYS        = "x86_64-poky-linux-gnux32"
MACHINE           = "genericx86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.5+snapshot-20140303"
TUNE_FEATURES     = "mx32 core2"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:54c2e993ec129563c7ae9f3fdee74ab60da28698"
meta-qt3          = "master:4772424ab69908d4e3b9d6d4717ca889468e6acd"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-1.4.8.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/apr/apr-util-1.5.2.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.apache.org/dist/subversion/subversion-1.7.10.tar.bz2, attempting MIRRORS if available
WARNING: Failed to fetch URL http://download.gnome.org/sources/gtk+/3.4/gtk+-3.4.4.tar.xz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.hpl.hp.com/personal/Hans_Boehm/gc/gc_source/gc-7.2d.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL http://www.latencytop.org/download/latencytop-0.5.tar.gz, attempting MIRRORS if available
WARNING: Failed to fetch URL ftp://ftp.uni-erlangen.de/pub/Linux/LOCAL/dosfstools/dosfstools-2.11.src.tar.gz, attempting MIRRORS if available
NOTE: validating kernel config, see log.do_kernel_configcheck for details
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-lib-ring-buffer/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lib/lttng-lib-ring-buffer.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-client-discard/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-client-discard.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-client-mmap-discard/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-client-mmap-discard.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-client-mmap-overwrite/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-client-mmap-overwrite.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-client-overwrite/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-client-overwrite.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-metadata-client/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-metadata-client.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ring-buffer-metadata-mmap-client/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-ring-buffer-metadata-mmap-client.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-statedump/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-statedump.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-tracer/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/lttng-tracer.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-ftrace/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-ftrace.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-kprobes/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-kprobes.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-kretprobes/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-kretprobes.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-block/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-block.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-btrfs/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-btrfs.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-compaction/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-compaction.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-ext3/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-ext3.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-ext4/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-ext4.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-irq/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-irq.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-jbd/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-jbd.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-jbd2/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-jbd2.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-kmem/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-kmem.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-module/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-module.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-napi/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-napi.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-net/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-net.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-power/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-power.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-printk/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-printk.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-random/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-random.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-rcu/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-rcu.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-rpm/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-rpm.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-sched/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-sched.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-scsi/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-scsi.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-signal/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-signal.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-skb/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-skb.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-sock/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-sock.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-statedump/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-statedump.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-sunrpc/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-sunrpc.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-timer/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-timer.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-udp/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-udp.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-vmscan/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-vmscan.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-workqueue/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-workqueue.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-probe-writeback/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-probe-writeback.ko
ERROR: QA Issue: Bit size did not match (32 to 64) lttng-modules on /work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/packages-split/kernel-module-lttng-types/lib/modules/3.10.32-ltsi-yocto-standard/kernel/lttng-modules/probes/lttng-types.ko
ERROR: QA run found fatal errors. Please consider fixing them.
ERROR: Function failed: do_package_qa
ERROR: Logfile of failure stored in: /home/ionut/work/poky/build/tmp/work/genericx86_64-poky-linux-gnux32/lttng-modules/2.3.3-r0/temp/log.do_package.28075
ERROR: Task 2475 (/home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_package) failed with exit code '1'
NOTE: Tasks Summary: Attempted 4186 tasks of which 730 didn't need to be rerun and 1 failed.
Waiting for 0 running tasks to finish:

Summary: 1 task failed:
  /home/ionut/work/poky/meta/recipes-kernel/lttng/lttng-modules_2.3.3.bb, do_package


Local.conf:

MACHINE ?= "genericx86-64"
DEFAULTTUNE = "core2-64-x32"
baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or 'lib'}"

Cheers,
Ionut C
Comment 1 Saul Wold 2014-03-06 15:42:36 UTC
patch on list
Comment 2 Nitin Kamble 2014-03-14 01:10:49 UTC
commit d31d2e85cfab8b85988047facd60438539467813
Author: Nitin A Kamble <nitin.a.kamble@intel.com>
Date:   Tue Mar 4 10:17:52 2014 -0800

    insane: Special case kernel modules for x32 targets
    
    The Kernel module packages for x32 target have 64 bit binaries, which
    breaks the QA_check expecting all the packages to be 32bit.
    
    Make a special case for kernel module packages for x32 targets, to avoid
    this false error.
    
    Fixes Bug:
    [YOCTO #5903]
    
    (From OE-Core rev: a4261ab92735abfba835e916931d2e920f335aaa)
    
    Signed-off-by: Nitin A Kamble <nitin.a.kamble@intel.com>
    Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Comment 3 Ionut Chisanovici 2014-04-15 14:05:19 UTC
Created attachment 1916 [details]
x32 lttng errors
Comment 4 Ionut Chisanovici 2014-04-15 14:06:08 UTC
Reopened, issue is still there, see above attach.

IonutC
Comment 5 Ionut Chisanovici 2014-04-15 14:11:42 UTC
Forgot the commit on which I tested: a0958261265049904fd78a2ba0198d46e5e65ea9

Cheers,
IonutC
Comment 6 Nitin Kamble 2014-04-23 02:15:59 UTC
It is building fine for me.


build-qemux86-64> bitbake lttng-modules
Parsing recipes: 100% |######################################################################################################################################################################################################| Time: 00:00:06
Parsing of 859 .bb files complete (0 cached, 859 parsed). 1218 targets, 38 skipped, 0 masked, 0 errors.
NOTE: Resolving any missing task queue dependencies

Build Configuration:
BB_VERSION        = "1.23.0"
BUILD_SYS         = "x86_64-linux"
NATIVELSBSTRING   = "openSUSE-project-12.3"
TARGET_SYS        = "x86_64-poky-linux-gnux32"
MACHINE           = "qemux86-64"
DISTRO            = "poky"
DISTRO_VERSION    = "1.6+snapshot-20140423"
TUNE_FEATURES     = "mx32"
TARGET_FPU        = ""
meta              
meta-yocto        
meta-yocto-bsp    = "master:cf8446ce84ffd17f392a9e88c3061052fcbe4cd0"

NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
NOTE: validating kernel config, see log.do_kernel_configcheck for details
NOTE: Tasks Summary: Attempted 425 tasks of which 15 didn't need to be rerun and all succeeded.
Comment 7 Nitin Kamble 2014-04-23 02:27:28 UTC
it is working
Comment 8 Ionut Chisanovici 2014-04-23 09:12:41 UTC
Hi Nitin,

Can you please paste the local.conf that you used to test this ?
As I saw you tested against the qemux86-64 machine while I tested against the genericx86-64 one. More, I think, but not sure that we are using different x32 tuning.

Cheers,
Ionut C
Comment 9 Nitin Kamble 2014-04-23 15:12:22 UTC
I have added these lines to the local.conf:

MACHINE = "qemux86-64"
DEFAULTTUNE = "x86-64-x32"
baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) \
        or 'INVALID'), True) or 'lib'}"
Comment 10 Ionut Chisanovici 2014-04-23 15:32:15 UTC
Hi Nitin,

Please try with my local.conf:

MACHINE ?= "genericx86-64"
DEFAULTTUNE = "core2-64-x32"
baselib = "${@d.getVar('BASE_LIB_tune-' + (d.getVar('DEFAULTTUNE', True) or 'INVALID'), True) or 'lib'}"
Comment 11 Nitin Kamble 2014-04-23 16:23:39 UTC
Even with your configuration I am not seeing any issues. Can you try building from scratch?
Comment 12 Nitin Kamble 2014-04-23 16:26:39 UTC
and build with the latest poky master
Comment 13 Ionut Chisanovici 2014-04-24 09:35:27 UTC
Isues are still there,
See attached log.

Cheers,
Ionut C
Comment 14 Ionut Chisanovici 2014-04-24 09:36:00 UTC
Created attachment 1929 [details]
x32_errors
Comment 15 Nitin Kamble 2014-04-24 18:39:45 UTC
Ionut what you are reporting is not the same issue reported on this bug. This bug is not reproducible anymore. If you find any other bugs, open separate bugzilla entries for those.