Bug 12325 - Occasional perf build race
Summary: Occasional perf build race
Status: RESOLVED DUPLICATE of bug 12302
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: kernel (show other bugs)
Version: 2.5
Hardware: x86 Multiple
: Undecided normal
Target Milestone: ---
Assignee: Bruce Ashfield
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2017-11-08 21:11 UTC by Ross Burton
Modified: 2017-11-09 15:54 UTC (History)
1 user (show)

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ross Burton 2017-11-08 21:11:28 UTC
Now and again perf is failing to build.  It looks like these appeared with the recent kernel upgrade in master.

  GEN      TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/common-cmds.h
  HOSTCC   TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/fixdep.o
  HOSTLD   TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/fixdep-in.o
  LINK     TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/fixdep
  MKDIR    TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/pmu-events/
  MKDIR    TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/pmu-events/
  HOSTCC   TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/pmu-events/jevents.o
  HOSTCC   TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/pmu-events/json.o
  HOSTCC   TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0/pmu-events/jsmn.o
/bin/sh: TOPDIR/tmp/work/qemuppc-poky-linux/perf/1.0-r9/perf-1.0//fixdep: Permission denied

(http://errors.yoctoproject.org/Errors/Details/158286/ has more context)

My guess is its trying to use fixdep whilst the binary is still being linked.  Should be an easy fix but the kernel makefiles are a maze!
Comment 1 Ross Burton 2017-11-09 15:54:54 UTC
Marking as a duplicate.

*** This bug has been marked as a duplicate of bug 12302 ***