<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>5038</bug_id>
          
          <creation_ts>2013-08-22 09:42:10 +0000</creation_ts>
          <short_desc>linux-libc-headers: icecc</short_desc>
          <delta_ts>2014-04-04 15:51:04 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>devtools / tool chain</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Low</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>Future</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Lukas Bulwahn">lukas.bulwahn</reporter>
          <assigned_to name="Laurentiu Palcu">laurentiu.palcu</assigned_to>
          <cc>bruce.ashfield</cc>
    
    <cc>lukas.bulwahn</cc>
    
    <cc>Martin.Jansa</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>richard.purdie</cc>
    
    <cc>tom.zanussi</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>No (bug/feature does not impact docs)</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>35849</commentid>
    <comment_count>0</comment_count>
    <who name="Lukas Bulwahn">lukas.bulwahn</who>
    <bug_when>2013-08-22 09:42:10 +0000</bug_when>
    <thetext>Setup:
  - one machine that is used by two users to bitbake various layers.
  
When bitbaking linux-libc-headers, the following error occurs:

| ICECC[29548] 11:17:03: failed to creat /tmp/.icecream-root/local_lock: Permission denied
| ICECC[29548] 11:17:03: can&apos;t lock for local job
| make[1]: *** [arch/x86/tools/relocs] Error 100
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make: *** [archscripts] Error 2

The error occurs with poky 1.4+snapshot-20130821 and openembedded-core (fd9e591f266e1a6c183e77f24e50d31e0d52bdd5).

After one user has been bitbaking linux-libc-headers, the file

/tmp/.icecream-root/local_lock

is created under his user account with his default umask.

Now, if another users tries to bitbake linux-libc-headers, bitbake fails.

Suggested Solution:
  * explicitly delete the local_lock file after finishing with linux-libc-headers

The full log is:

[lukas.bulwahn@cheetara build]$ bitbake -k pseudo
Loading cache: 100% |##############################################################################################################| ETA:  00:00:00
Loaded 1181 entries from dependency cache.

Build Configuration:
BB_VERSION        = &quot;1.19.1&quot;
BUILD_SYS         = &quot;x86_64-linux&quot;
NATIVELSBSTRING   = &quot;Fedora-18&quot;
TARGET_SYS        = &quot;i586-poky-linux&quot;
MACHINE           = &quot;qemux86&quot;
DISTRO            = &quot;poky&quot;
DISTRO_VERSION    = &quot;1.4+snapshot-20130821&quot;
TUNE_FEATURES     = &quot;m32 i586&quot;
TARGET_FPU        = &quot;&quot;
meta
meta-yocto
meta-yocto-bsp    = &quot;master:6382979cca1d1c57467f983ba9611f91555b20a9&quot;

NOTE: Resolving any missing task queue dependencies
NOTE: Preparing runqueue
NOTE: Executing SetScene Tasks
NOTE: Executing RunQueue Tasks
ERROR: Function failed: do_install (log file is located at /home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/temp/log.do_install.29415)
ERROR: Logfile of failure stored in: /home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/temp/log.do_install.29415
Log data follows:
| DEBUG: Executing shell function do_install
| NOTE: make -j 4 -e MAKEFLAGS= headers_install INSTALL_HDR_PATH=/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/image/usr
| make: i586-poky-linux-gcc: Command not found
|   CHK     include/generated/uapi/linux/version.h
| make[1]: Entering directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Entering directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Entering directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Entering directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Nothing to be done for `all&apos;.
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make[1]: Entering directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
|   HOSTCC  arch/x86/tools/relocs
| ICECC[29548] 11:17:03: failed to creat /tmp/.icecream-root/local_lock: Permission denied
| ICECC[29548] 11:17:03: can&apos;t lock for local job
| make[1]: *** [arch/x86/tools/relocs] Error 100
| make[1]: Leaving directory `/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/linux-3.8&apos;
| make: *** [archscripts] Error 2
| ERROR: oe_runmake failed
| ERROR: Function failed: do_install (log file is located at /home/lukas.bulwahn/dev/git.yoctoproject.org/poky/build/tmp/work/i586-poky-linux/linux-libc-headers/3.8-r0/temp/log.do_install.29415)
ERROR: Task 347 (/home/lukas.bulwahn/dev/git.yoctoproject.org/poky/meta/recipes-kernel/linux-libc-headers/linux-libc-headers_3.8.bb, do_install) failed with exit code &apos;1&apos;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35869</commentid>
    <comment_count>1</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2013-08-22 14:41:43 +0000</bug_when>
    <thetext>Martin, would you have any ideas on this one?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35873</commentid>
    <comment_count>2</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2013-08-22 15:20:48 +0000</bug_when>
    <thetext>Isn&apos;t it caused by ICECC_BASEDIR pointing to /tmp/.icecream-root where the user running bitbake cannot write?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>37172</commentid>
    <comment_count>3</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2013-09-25 09:41:17 +0000</bug_when>
    <thetext>So the best fix would be to point ICECC_BASEDIR to be under TMPDIR somewhere?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>39892</commentid>
    <comment_count>4</comment_count>
    <who name="Martin Jansa">Martin.Jansa</who>
    <bug_when>2014-01-17 12:20:48 +0000</bug_when>
    <thetext>icecc is usually configured outside OE (sort of ASSUME_PROVIDED when user inherits icecc).

Pointing it to TMPDIR looks sane, but if the user is using icecc for other project than OE then any user-write-able directory will work - it could be a bit confused from pseudo (I guess root&apos;s icecc.conf was used instead of user running bitbake).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>42307</commentid>
    <comment_count>5</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2014-04-04 15:51:04 +0000</bug_when>
    <thetext>I doubt this issue is pseudo related since compile tasks are not performed under pseudo. I&apos;m going to resolve this as &apos;invalid&apos; for want of a better category since I believe this is a configuration issue, the user shouldn&apos;t point icecc at a shared directory for locks.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>