Bug 2269 - 1.2_M2 build fails for syslinux_4.03.bb for Romley BSP
Summary: 1.2_M2 build fails for syslinux_4.03.bb for Romley BSP
Status: RESOLVED DUPLICATE of bug 2236
Alias: None
Product: OE-Core
Classification: Build System, Metadata & Runtime
Component: core (show other bugs)
Version: 1.2
Hardware: Other x86_64
: High normal
Target Milestone: 1.2 M4
Assignee: Darren Hart
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2012-04-09 22:52 UTC by kishore
Modified: 2012-04-10 15:25 UTC (History)
3 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 kishore 2012-04-09 22:52:57 UTC
Hi,
Poky and meta-intel for 1.2_M2 build is failing for syslinux_4.03 recipe.

ERROR: Function 'do_compile' 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 'do_compile' 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'
| make[1]: Nothing to be done for `installer-local'.
| 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'
| 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'
| make[1]: Nothing to be done for `all'.
| 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'
| 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'
| make[1]: Nothing to be done for `all'.
| 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'
| 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'
| 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 'umode_t'
| 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 'umode_t'
| 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'
| 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 '1'
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: 'virtual:native:/home/tmelab/yocto/poky/poky-1.2_M2.final/meta/recipes-devtools/syslinux/syslinux_4.03.bb' failed
Summary: There were 2 WARNING messages shown.

Summary: There were 2 ERROR messages shown, returning a non-zero exit code.
Comment 1 Mark Hatle 2012-04-09 23:01:19 UTC
This looks like a bug in the libinstaller component of syslinux.  It is
relying on the include files from the host system'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've corrected similar issues using this method.

--

Also I believe this failed for the user on an FC16 based system.
Comment 2 kishore 2012-04-09 23:04:47 UTC
(In reply to comment #1)
> This looks like a bug in the libinstaller component of syslinux.  It is
> relying on the include files from the host system'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've corrected similar issues using this method.
> 
> --
> 
> 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.
Comment 3 Darren Hart 2012-04-10 15:25:51 UTC
This is fixed in commit:

commit d103dae12b75c9c18f5cc164facc7fe52a37e667
Author: Darren Hart <dvhart@linux.intel.com>
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 ***