Bug 2823 - perf failed on beagleboard & atom-pc
Summary: perf failed on beagleboard & atom-pc
Status: VERIFIED WORKSFORME
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: unspecified
Hardware: All Multiple
: Medium normal
Target Milestone: 1.3 M3
Assignee: Tom Zanussi
QA Contact:
URL:
Whiteboard: autobuilder
Depends on:
Blocks:
 
Reported: 2012-07-24 09:38 UTC by Nitin Kamble
Modified: 2012-08-19 09:43 UTC (History)
4 users (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nitin Kamble 2012-07-24 09:38:45 UTC
Autobuilder log: http://autobuilder.yoctoproject.org:8010/builders/nightly-arm/builds/536/steps/shell_47/logs/stdio


Build Configuration:
BB_VERSION        = "1.15.3"
TARGET_ARCH       = "arm"
TARGET_OS         = "linux-gnueabi"
MACHINE           = "beagleboard"
DISTRO            = "poky"
DISTRO_VERSION    = "1.2+snapshot-20120724"
TUNE_FEATURES     = "armv7a vfp neon cortexa8"
TARGET_FPU        = "vfp-neon"
meta              
meta-yocto        = "stage/master_under_test:ae9c495a6fe6bff1c720ce4d0742c05ee36c2f1a"
meta-qt3          = "master:f8475d5c5935695d4d1dfff1d7be30f49e162094"


| builtin-sched.c: In function 'get_cpu_usage_nsec_parent':
| builtin-sched.c:396:16: error: storage size of 'ru' isn't known
| builtin-sched.c:400:2: error: implicit declaration of function 'getrusage' [-Werror=implicit-function-declaration]
| builtin-sched.c:400:2: error: nested extern declaration of 'getrusage' [-Werror=nested-externs]
| builtin-sched.c:400:18: error: 'RUSAGE_SELF' undeclared (first use in this function)
| builtin-sched.c:400:18: note: each undeclared identifier is reported only once for each function it appears in
| builtin-sched.c:396:16: error: unused variable 'ru' [-Werror=unused-variable]
|     CC /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/beagleboard-poky-linux-gnueabi/perf-3.4-r4/perf-3.4/builtin-script.o
| cc1: all warnings being treated as errors
| make: *** [/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/beagleboard-poky-linux-gnueabi/perf-3.4-r4/perf-3.4/builtin-sched.o] Error 1
| make: *** Waiting for unfinished jobs....
| make: Leaving directory `/srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/sysroots/beagleboard/usr/src/kernel/tools/perf'
| ERROR: oe_runmake failed
| ERROR: Function failed: do_compile (see /srv/home/pokybuild/yocto-autobuilder/yocto-slave/nightly-arm/build/build/tmp/work/beagleboard-poky-linux-gnueabi/perf-3.4-r4/temp/log.do_compile.5368 for further information)
NOTE: package perf-3.4-r4: task do_compile: Failed
Comment 2 Saul Wold 2012-07-24 14:04:09 UTC
Failed for all HW BSPs, just to be clear this is master_under_test with eglibc 2.16.
Comment 3 Tom Zanussi 2012-08-01 05:01:45 UTC
I'm not able to reproduce this on my system (ubuntu 11.10) for either case.

I suspect it can be fixed by adding the following commit to the 3.0 kernel, which is what the failing meta-yocto BSPs are using (this commit is already present in the 3.4 kernel, so I'd suspect that the mpc8315e-rdb isn't failing with this where the others are).

commit 7b78f13603c6fcb64e020a0bbe31a651ea2b657b
Author: Markus Trippelsdorf <markus@trippelsdorf.de>
Date:   Wed Apr 4 10:45:27 2012 +0200

    perf tools: Fix getrusage() related build failure on glibc trunk
    
    On a system running glibc trunk perf doesn't build:
    
        CC builtin-sched.o
    builtin-sched.c: In function ‘get_cpu_usage_nsec_parent’: builtin-sched.c:39
        [...]
    
    Fix it by including sys/resource.h.
Comment 4 Tom Zanussi 2012-08-03 18:39:53 UTC
Since I'm not able to reproduce this locally, please apply the top commit of the following linux-yocto-3.0 branch to the yocto/standard/beagleboard branch of your linux-yocto-3.0 kernel and rebuild your master-under-test to see if this fixes the problem:

http://git.yoctoproject.org/cgit/cgit.cgi/linux-yocto-2.6.37-contrib/log/?h=tzanussi/perf-mut-test/linux-yocto-3.0/yocto/standard/beagleboard

If it does, I'll submit a couple kernel patches to Bruce to add this patch to the 3.0 and 3.2 base branches.
Comment 5 Nitin Kamble 2012-08-06 05:23:26 UTC
I tried to reproduce this with the latest master, and I am also not able to reproduce the issue. I think we can close the issue.
Comment 6 Tom Zanussi 2012-08-06 05:45:55 UTC
Note that this bug was filed for the 'master_under_test' branch:

http://git.yoctoproject.org/cgit/cgit.cgi/poky-contrib/log/?h=stage/master_under_test

The problem doesn't exist under master - apparently the eglibc 2.16 upgrade in mut causes the problem, though I wasn't able to reproduce it with mut either.
Comment 7 Laurentiu Serban 2012-08-19 09:43:59 UTC
Verified
Could not reproduce it.