[oe] Building x86 on Ubuntu 8.10/x86_64 host with bugreport.

Mikael Rosbacke mikael at rosbacke.org
Mon Nov 10 16:43:33 UTC 2008


Thanks for the suggestion of image and machine settings. :-)


I tried again with a clean checkout and building of an image.
I used distribution 'angstrom-2008.1', machine 'x86' and target
'minimal-image'. I'm still on my Ubuntu 8.10 x86_64 host.

I managed to create an image, but there where 1 compile error:
Build of/home/mikaelr/stuff/openembedded/packages/linux/linux_2.6.21.bb
do_compile failed.

>From the log message:
...
Entering directory
`/home/mikaelr/stuff/tmp/work/x86-angstrom-linux/linux-2.6.21-r12/linux-2.6.21'
  CC      scripts/mod/empty.o
  HOSTCC  scripts/mod/mk_elfconfig
  MKELF   scripts/mod/elfconfig.h
  HOSTCC  scripts/mod/file2alias.o
  HOSTCC  scripts/mod/modpost.o
  HOSTCC  scripts/mod/sumversion.o
scripts/mod/sumversion.c: In function 'get_src_version':
scripts/mod/sumversion.c:384: error: 'PATH_MAX' undeclared (first use in
this function)
scripts/mod/sumversion.c:384: error: (Each undeclared identifier is
reported only once
scripts/mod/sumversion.c:384: error: for each function it appears in.)
scripts/mod/sumversion.c:384: warning: unused variable 'filelist'
make[2]: *** [scripts/mod/sumversion.o] Error 1
make[2]: Leaving directory
`/home/mikaelr/stuff/tmp/work/x86-angstrom-linux/linux-2.6.21-r12/linux-2.6.21'
make[1]: *** [scripts/mod] Error 2
make[1]: Leaving directory
`/home/mikaelr/stuff/tmp/work/x86-angstrom-linux/linux-2.6.21-r12/linux-2.6.21'
make: *** [scripts] Error 2
FATAL: oe_runmake failed

By inserting: '#include <limits.h>' in 
tmp/work/x86-angstrom-linux/linux-2.6.21-r12/linux-2.6.21/scripts/mod/sumversion.c
the compilation could be restarted without a problem.

Google will give you that this is a known problem and it has been fixed
in recent kernels. 
I'm not to familiar with oe patching policies but this description
should be enough to create a patch for the kernel if needed.

--- Mikael R







More information about the Openembedded-devel mailing list