<?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>1524</bug_id>
          
          <creation_ts>2011-09-26 06:05:41 +0000</creation_ts>
          <short_desc>btrfs-tools parallel make failure</short_desc>
          <delta_ts>2012-01-03 09:28:05 +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>Meta-yocto</product>
          <component>meta-yocto</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Richard Purdie">richard.purdie</reporter>
          <assigned_to name="Nitin Kamble">nitin.a.kamble</assigned_to>
          <cc>poky.bs.watcher</cc>
    
    <cc>poky.watcher</cc>
    
    <cc>sgw</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>---</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>16471</commentid>
    <comment_count>0</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-26 06:05:41 +0000</bug_when>
    <thetext>With master (49ed1cab3bee2318fdd5fc2538b1b3d43542ed2d) I see a failure during do_compile of btrfs-tools due to a high parallel make. Compile log:

NOTE: make -j 24 -e MAKEFLAGS=
bash version.sh
ls ctree.c
ls disk-io.c
ls radix-tree.c
ls extent-tree.c
ls print-tree.c
ls root-tree.c
radix-tree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.radix-tree.o.d,-MT,radix-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c radix-tree.c
ls dir-item.c
ls file-item.c
ls inode-item.c
ls inode-map.c
ls crc32c.c
disk-io.c
ls rbtree.c
ctree.c
dir-item.c
crc32c.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.ctree.o.d,-MT,ctree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c ctree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.disk-io.o.d,-MT,disk-io.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c disk-io.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.dir-item.o.d,-MT,dir-item.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c dir-item.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.crc32c.o.d,-MT,crc32c.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c crc32c.c
ls extent-cache.c
ls extent_io.c
ls volumes.c
ls utils.c
ls btrfs-list.c
inode-item.c
print-tree.c
root-tree.c
extent_io.c
inode-map.c
file-item.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.print-tree.o.d,-MT,print-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c print-tree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.root-tree.o.d,-MT,root-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c root-tree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.file-item.o.d,-MT,file-item.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c file-item.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.inode-item.o.d,-MT,inode-item.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c inode-item.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.inode-map.o.d,-MT,inode-map.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c inode-map.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.extent_io.o.d,-MT,extent_io.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c extent_io.c
extent-tree.c
ls btrfslabel.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.extent-tree.o.d,-MT,extent-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c extent-tree.c
rbtree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.rbtree.o.d,-MT,rbtree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c rbtree.c
ls btrfsctl.c
btrfs-list.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfs-list.o.d,-MT,btrfs-list.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfs-list.c
ls mkfs.c
ls debug-tree.c
ls btrfs-show.c
ls btrfs-vol.c
volumes.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.volumes.o.d,-MT,volumes.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c volumes.c
utils.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.utils.o.d,-MT,utils.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c utils.c
mkfs.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.mkfs.o.d,-MT,mkfs.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c mkfs.c
extent-cache.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.extent-cache.o.d,-MT,extent-cache.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c extent-cache.c
btrfs-vol.c
btrfsctl.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsctl.c
debug-tree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.debug-tree.o.d,-MT,debug-tree.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c debug-tree.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfs-vol.o.d,-MT,btrfs-vol.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfs-vol.c
btrfslabel.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfslabel.o.d,-MT,btrfslabel.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfslabel.c
btrfs-show.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfs-show.o.d,-MT,btrfs-show.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfs-show.c
extent-cache.c: In function &apos;insert_existing_cache_extent&apos;:extent_io.c: In function &apos;set_extent_bits&apos;:

extent-cache.c:99:23: warning: variable &apos;entry&apos; set but not used [-Wunused-but-set-variable]extent_io.c:299:6: warning: variable &apos;set&apos; set but not used [-Wunused-but-set-variable]

ls btrfsck.c
btrfsck.c
i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/media/build1/poky/build/tmp/sysroots/qemux86 -Wp,-MMD,./.btrfsck.o.d,-MT,btrfsck.o -Wall -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c btrfsck.c
dir-item.c: In function &apos;btrfs_delete_one_dir_name&apos;:disk-io.c: In function &apos;readahead_tree_block&apos;:
disk-io.c:126:6: warning: variable &apos;dev_nr&apos; set but not used [-Wunused-but-set-variable]
disk-io.c: In function &apos;read_tree_block&apos;:
disk-io.c:180:6: warning: variable &apos;dev_nr&apos; set but not used [-Wunused-but-set-variable]

dir-item.c:316:6: warning: variable &apos;ret&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;__btrfs_cow_block&apos;:
ctree.c:265:6: warning: variable &apos;generation&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;balance_level&apos;:
ctree.c:798:6: warning: variable &apos;err_on_enospc&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;push_nodes_for_insert&apos;:
ctree.c:999:6: warning: variable &apos;orig_ptr&apos; set but not used [-Wunused-but-set-variable]
btrfslabel.c:40:21: fatal error: version.h: No such file or directory
compilation terminated.
make: *** [btrfslabel.o] Error 1
make: *** Waiting for unfinished jobs....
print-tree.c: In function &apos;btrfs_print_leaf&apos;:
print-tree.c:447:26: warning: variable &apos;ci&apos; set but not used [-Wunused-but-set-variable]
btrfsctl.c:37:21: fatal error: version.h: No such file or directory
compilation terminated.
make: *** [btrfsctl.o] Error 1
extent-tree.c: In function &apos;__btrfs_mod_ref&apos;:
extent-tree.c:1553:6: warning: variable &apos;faili&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;btrfs_truncate_item&apos;:
ctree.c:2373:6: warning: variable &apos;slot_orig&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;btrfs_extend_item&apos;:
ctree.c:2471:6: warning: variable &apos;slot_orig&apos; set but not used [-Wunused-but-set-variable]
ctree.c: In function &apos;btrfs_insert_empty_items&apos;:
ctree.c:2544:6: warning: variable &apos;slot_orig&apos; set but not used [-Wunused-but-set-variable]
volumes.c: In function &apos;btrfs_alloc_chunk&apos;:
volumes.c:646:6: warning: variable &apos;physical&apos; set but not used [-Wunused-but-set-variable]
volumes.c: In function &apos;btrfs_alloc_data_chunk&apos;:debug-tree.c:29:21: fatal error: version.h: No such file or directory
compilation terminated.

volumes.c:873:6: warning: variable &apos;physical&apos; set but not used [-Wunused-but-set-variable]
volumes.c: In function &apos;btrfs_num_copies&apos;:
volumes.c:974:6: warning: variable &apos;offset&apos; set but not used [-Wunused-but-set-variable]
make: *** [debug-tree.o] Error 1
btrfs-list.c:37:21: fatal error: version.h: No such file or directory
compilation terminated.
make: *** [btrfs-list.o] Error 1
mkfs.c:46:21: fatal error: version.h: No such file or directory
compilation terminated.
make: *** [mkfs.o] Error 1
btrfs-show.c:39:21: fatal error: version.h: No such file or directorybtrfsck.c:32:21: fatal error: version.h: No such file or directory
compilation terminated.
make: *** [btrfsck.o] Error 1

compilation terminated.
make: *** [btrfs-show.o] Error 1
ERROR: oe_runmake failed
ERROR: Function &apos;do_compile&apos; failed (see /media/build1/poky/build/tmp/work/i586-poky-linux/btrfs-tools-git-r2/temp/log.do_compile.24613 for further information)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>16472</commentid>
    <comment_count>1</comment_count>
    <who name="Richard Purdie">richard.purdie</who>
    <bug_when>2011-09-26 06:07:02 +0000</bug_when>
    <thetext>Rerunning the compile allows things to succeed so it looks like some dependencies on version.h in the Makefile are incorrect. It shouldn&apos;t be hard to find these and get a patch upstream for the bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17805</commentid>
    <comment_count>2</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2011-12-21 18:55:18 +0000</bug_when>
    <thetext>I noticed this error:

mkfs.c:39:24: fatal error: attr/xattr.h: No such file or directory</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17915</commentid>
    <comment_count>3</comment_count>
    <who name="Nitin Kamble">nitin.a.kamble</who>
    <bug_when>2012-01-03 08:51:45 +0000</bug_when>
    <thetext>This commit fixes the issue:

commit 8eb45acf307e5f30678b4725969e03b5e3f52b4e
Author: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
Date:   Mon Jan 2 11:29:30 2012 -0800

    btrfs-tools:Fix multithreaded building
    
    Fixes bug: [YOCTO #1524]
    
    Fixes this error with make -j:
    btrfsctl.c
    | i586-poky-linux-gcc  -m32   -march=i586
    --sysroot=/intel/poky/builds/world/tmp/sysroots/qemux86
    -Wp,-MMD,./.btrfsctl.o.d,-MT,btrfsctl.o -Wall -D_FILE_OFFSET_BITS=64
    -D_FORTIFY_SOURCE=2 -O2 -pipe -g -feliminate-unused-debug-types -c
    btrfsctl.c
    | btrfsctl.c:37:21: fatal error: version.h: No such file or directory
    | compilation terminated.
    | btrfslabel.c:40:21: fatal error: version.h: No such file or directory
    | compilation terminated.
    
    (From OE-Core rev: 3ebc06c2f011da95fd6bed74c9e27b2148011ee7)
    
    Signed-off-by: Nitin A Kamble &lt;nitin.a.kamble@intel.com&gt;
    Signed-off-by: Richard Purdie &lt;richard.purdie@linuxfoundation.org&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>17921</commentid>
    <comment_count>4</comment_count>
    <who name="Saul Wold">sgw</who>
    <bug_when>2012-01-03 09:28:05 +0000</bug_when>
    <thetext>http://git.yoctoproject.org/cgit/cgit.cgi/poky/commit/?id=8eb45acf307e5f30678b4725969e03b5e3f52b4e</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>