<?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>2269</bug_id>
          
          <creation_ts>2012-04-09 22:52:57 +0000</creation_ts>
          <short_desc>1.2_M2 build fails for syslinux_4.03.bb for Romley BSP</short_desc>
          <delta_ts>2012-04-10 15:25:51 +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>core</component>
          <version>1.2</version>
          <rep_platform>Other</rep_platform>
          <op_sys>x86_64</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>2236</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>High</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>1.2 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="kishore">kishore.k.bodke</reporter>
          <assigned_to name="Darren Hart">dvhart</assigned_to>
          <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>20091</commentid>
    <comment_count>0</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2012-04-09 22:52:57 +0000</bug_when>
    <thetext>Hi,
Poky and meta-intel for 1.2_M2 build is failing for syslinux_4.03 recipe.

ERROR: Function &apos;do_compile&apos; failed (see /home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/temp/log.do_compile.53231 for further information)
ERROR: Logfile of failure stored in: /home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/temp/log.do_compile.53231
Log data follows:
| ERROR: Function &apos;do_compile&apos; failed (see /home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/temp/log.do_compile.53231 for further information)
| NOTE: make -j 8 BINDIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/bin SBINDIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/sbin LIBDIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/lib DATADIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/share MANDIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/share/man INCDIR=/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/sysroots/x86_64-linux/usr/include CC=ccache gcc  installer
| make -r installer-local
| make[1]: Entering directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03&apos;
| make[1]: Nothing to be done for `installer-local&apos;.
| make[1]: Leaving directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03&apos;
| set -e ; for i in libinstaller mtools linux extlinux utils; do make -r -C $i all ; done
| make[1]: Entering directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/libinstaller&apos;
| make[1]: Nothing to be done for `all&apos;.
| make[1]: Leaving directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/libinstaller&apos;
| make[1]: Entering directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/mtools&apos;
| make[1]: Nothing to be done for `all&apos;.
| make[1]: Leaving directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/mtools&apos;
| make[1]: Entering directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/linux&apos;
| ccache gcc  -Wp,-MT,syslinux.o,-MMD,./.syslinux.o.d -W -Wall -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 -g -O0 -Dalloca=malloc -I. -I.. -I../libinstaller -c -o syslinux.o syslinux.c
| ccache gcc  -Wp,-MT,syslxcom.o,-MMD,./.syslxcom.o.d -W -Wall -Wstrict-prototypes -D_FILE_OFFSET_BITS=64 -g -O0 -Dalloca=malloc -I. -I.. -I../libinstaller -c -o syslxcom.o ../libinstaller/syslxcom.c
| In file included from ../libinstaller/linuxioctl.h:22:0,
|                  from ../libinstaller/syslxcom.c:33:
| /usr/include/linux/ext2_fs.h:178:41: error: unknown type name &apos;umode_t&apos;
| make[1]: *** [syslxcom.o] Error 1
| make[1]: *** Waiting for unfinished jobs....
| In file included from ../libinstaller/linuxioctl.h:22:0,
|                  from syslinux.c:50:
| /usr/include/linux/ext2_fs.h:178:41: error: unknown type name &apos;umode_t&apos;
| make[1]: *** [syslinux.o] Error 1
| make[1]: Leaving directory `/home/tmelab/yocto/poky/poky-1.2_M2.final/build/tmp/work/x86_64-linux/syslinux-native-4.03-r3/syslinux-4.03/linux&apos;
| make: *** [installer] Error 2
| ERROR: oe_runmake failed
NOTE: package syslinux-native-4.03-r3: task do_compile: Failed
NOTE: package mtools-native-4.0.17-r0: task do_install: Started
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_validate_branches: Started
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_validate_branches: Succeeded
NOTE: package gcc-cross-initial-4.6.2+svnr181430-r20: task do_populate_sysroot: Started
NOTE: Running task 2732 of 4771 (ID: 1998, /home/tmelab/yocto/poky/poky-1.2_M2.final/meta/recipes-kernel/linux-libc-headers/linux-libc-headers-yocto_git.bb, do_patch)
NOTE: Running task 2733 of 4771 (ID: 4286, /home/tmelab/yocto/poky/poky-1.2_M2.final/meta/recipes-devtools/gcc/gcc-cross-initial_4.6.bb, do_package_write_rpm)
ERROR: Task 152 (virtual:native:/home/tmelab/yocto/poky/poky-1.2_M2.final/meta/recipes-devtools/syslinux/syslinux_4.03.bb, do_compile) failed with exit code &apos;1&apos;
Waiting for 2 active tasks to finish:
0: mtools-native-4.0.17-r0 do_install (pid 53232)
1: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
Waiting for 3 active tasks to finish:
0: mtools-native-4.0.17-r0 do_install (pid 53232)
1: linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4 do_patch (pid 53317)
2: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_patch: Started
Waiting for 2 active tasks to finish:
0: mtools-native-4.0.17-r0 do_install (pid 53232)
1: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package linux-libc-headers-yocto-2.6.37+git-1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3_1+69cfbdf9f1ff461a75e5b77d6d7ba35e97db4cc3-r4: task do_patch: Succeeded
Waiting for 1 active tasks to finish:
0: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package mtools-native-4.0.17-r0: task do_install: Succeeded
Waiting for 2 active tasks to finish:
0: cdrtools-native-2.01-r2 do_populate_sysroot (pid 53310)
1: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package cdrtools-native-2.01-r2: task do_populate_sysroot: Started
Waiting for 3 active tasks to finish:
0: gcc-cross-initial-4.6.2+svnr181430-r20 do_package_write_rpm (pid 53320)
1: cdrtools-native-2.01-r2 do_populate_sysroot (pid 53310)
2: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package gcc-cross-initial-4.6.2+svnr181430-r20: task do_package_write_rpm: Started
Waiting for 2 active tasks to finish:
0: cdrtools-native-2.01-r2 do_populate_sysroot (pid 53310)
1: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package gcc-cross-initial-4.6.2+svnr181430-r20: task do_package_write_rpm: Succeeded
Waiting for 1 active tasks to finish:
0: gcc-cross-initial-4.6.2+svnr181430-r20 do_populate_sysroot (pid 52951)
NOTE: package cdrtools-native-2.01-r2: task do_populate_sysroot: Succeeded
NOTE: package gcc-cross-initial-4.6.2+svnr181430-r20: task do_populate_sysroot: Succeeded
ERROR: &apos;virtual:native:/home/tmelab/yocto/poky/poky-1.2_M2.final/meta/recipes-devtools/syslinux/syslinux_4.03.bb&apos; failed
Summary: There were 2 WARNING messages shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20092</commentid>
    <comment_count>1</comment_count>
    <who name="Mark Hatle">mark.hatle</who>
    <bug_when>2012-04-09 23:01:19 +0000</bug_when>
    <thetext>This looks like a bug in the libinstaller component of syslinux.  It is
relying on the include files from the host system&apos;s kernel to gain access to
kernel specific headers.

Instead this thing should be cleaned of references to
/usr/include/linux, and local versions (that are known to be correct) should be provided.

In the past I&apos;ve corrected similar issues using this method.

--

Also I believe this failed for the user on an FC16 based system.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20093</commentid>
    <comment_count>2</comment_count>
    <who name="kishore">kishore.k.bodke</who>
    <bug_when>2012-04-09 23:04:47 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; This looks like a bug in the libinstaller component of syslinux.  It is
&gt; relying on the include files from the host system&apos;s kernel to gain access to
&gt; kernel specific headers.
&gt; 
&gt; Instead this thing should be cleaned of references to
&gt; /usr/include/linux, and local versions (that are known to be correct) should be
&gt; provided.
&gt; 
&gt; In the past I&apos;ve corrected similar issues using this method.
&gt; 
&gt; --
&gt; 
&gt; Also I believe this failed for the user on an FC16 based system.

Yes, I forgot to mention this.  This failed on FC16 based systems.

Thanks
Kishore.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>20135</commentid>
    <comment_count>3</comment_count>
    <who name="Darren Hart">dvhart</who>
    <bug_when>2012-04-10 15:25:51 +0000</bug_when>
    <thetext>This is fixed in commit:

commit d103dae12b75c9c18f5cc164facc7fe52a37e667
Author: Darren Hart &lt;dvhart@linux.intel.com&gt;
Date:   Wed Apr 4 07:54:00 2012 -0700

    syslinux: Avoid using linux.ext2_fs.h if possible
    
    Fixes [YOCTO 2236]

Marking this bug as a duplicate of 2236.

*** This bug has been marked as a duplicate of bug 2236 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>