cannot bitbake console/x11-image

Hello,

I am using the latest OE. Everything is up-to-date.

When I try to bitbake console-image I get these errors:

NOTE: package shared-mime-info-native-0.51-r0: task do_compile: started
ERROR: function do_compile failed
ERROR: see log in
/home/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/temp/log.do_compile.19953
NOTE: Task failed:
/home/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/temp/log.do_compile.19953
NOTE: package shared-mime-info-native-0.51-r0: task do_compile: failed
ERROR: TaskFailed event exception, aborting
NOTE: package shared-mime-info-native-0.51: failed
ERROR: Build of
/home/developer/oe/openembedded/packages/shared-mime-info/shared-mime-info-native_0.51.bb
do_compile failed
ERROR: Task 4024
(/home/developer/oe/openembedded/packages/shared-mime-info/shared-mime-info-native_0.51.bb,
do_compile) failed
NOTE: Tasks Summary: Attempted 1218 tasks of which 717 didn't need to
be rerun and 1 failed.
ERROR: '/home/developer/oe/openembedded/packages/shared-mime-info/shared-mime-info-native_0.51.bb'
failed

OE:beagleboard developer@big-ubuntu:~/oe/opt$ cat
/home/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/temp/log.do_compile.19953
NOTE: make
Making check in po
make[1]: Entering directory
`/home/developer/oe3/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/shared-mime-info-0.51/po'
rm -f missing notexist
srcdir=/home/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/shared-mime-info-0.51/po
/home/developer/oe/tmp/staging/i686-linux/usr/bin/intltool-update -m
The following files contain translations and are currently not in use. Please
consider adding these to the POTFILES.in file, located in the po/ directory.

me/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/shared-mime-info-0.51/po/../freedesktop.org.xml.in
me/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/shared-mime-info-0.51/po/../update-mime-database.c

If some of these files are left out on purpose then please add them to
POTFILES.skip instead of POTFILES.in. A file 'missing' containing this list
of left out files has been written in the current directory.
if [ -r missing -o -r notexist ]; then \
    exit 1; \
  fi
make[1]: *** [check] Error 1
make[1]: Leaving directory
`/home/developer/oe3/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/shared-mime-info-0.51/po'
make: *** [check-recursive] Error 1
FATAL: oe_runmake failed

What can I do?

Thanks - Robert

it is a problem with libxml and zlib. ZLib cannot create gzopen64 without two #define values and libxml defines only one of them.

I have attached the patch and bb + inc files that i used to get around the issue. Replace the inc and bb files in OE/openembedded/packages/libxml and put the patch file in files directory in the same path.

santosh

libxml_gzopen64.patch (276 Bytes)

libxml2-native_2.7.2.bb (87 Bytes)

libxml2.inc (850 Bytes)

This di not solved the problem. The error remains the same.

Robert

This did not solved the problem. The error remains the same.

I solved it by installing the glib and libxml developer packages on my
host system.

Now I have a problem with the !native package:
NOTE: package shared-mime-info-0.51-r2: task do_install: started
ERROR: function do_install failed
ERROR: see log in
/home/developer/oe/tmp/work/armv7a-angstrom-linux-gnueabi/shared-mime-info-0.51-r2/temp/log.do_install.31068
NOTE: Task failed:
/home/developer/oe/tmp/work/armv7a-angstrom-linux-gnueabi/shared-mime-info-0.51-r2/temp/log.do_install.31068
NOTE: package shared-mime-info-0.51-r2: task do_install: failed
ERROR: TaskFailed event exception, aborting
NOTE: package shared-mime-info-0.51: failed
ERROR: Build of
/home/developer/oe/openembedded/packages/shared-mime-info/shared-mime-info_0.51.bb
do_install failed
ERROR: Task 1711
(/home/developer/oe/openembedded/packages/shared-mime-info/shared-mime-info_0.51.bb,
do_install) failed

cat /home/developer/oe/tmp/work/armv7a-angstrom-linux-gnueabi/shared-mime-info-0.51-r2/temp/log.do_install.31068
NOTE: make DESTDIR=/home/developer/oe/tmp/work/armv7a-angstrom-linux-gnueabi/shared-mime-info-0.51-r2/image
install
make: *** No rule to make target `install'. Stop.
FATAL: oe_runmake failed

The /home/developer/oe/tmp/work/armv7a-angstrom-linux-gnueabi/shared-mime-info-0.51-r2/image
folder is empty!?!?
Any ideas?

Robert

If anybody still has this issue ( I just came across this issue ):

after applying santosh's patches, you need to:

bitbake -c clean libxml2-native
bitbake -c compile libxml2-native
bitbake -c install libxml2-native

bitbake -c clean libxml2
bitbake -c compile libxml2
bitbake -c install libxml2

/Arne

Hmm, still not working here. The error is exactly the one from the
initial posting. I also see that the libxml patch is actually being
applied:

NOTE: package libxml2-2.7.2-r0: task do_patch: started
NOTE: Applying patch 'libxml_gzopen64.patch' (/home/test/angstrom/
openembedded/packages/libxml/files/libxml_gzopen64.patch)
NOTE: package libxml2-2.7.2-r0: task do_patch: completed
NOTE: package libxml2-2.7.2: completed
...

Still the exact same error remains ...

Any clues?

MoG

Hi!

till@harbaum.org schrieb:

Hmm, still not working here. The error is exactly the one from the
initial posting. I also see that the libxml patch is actually being
applied:

NOTE: package libxml2-2.7.2-r0: task do_patch: started
NOTE: Applying patch 'libxml_gzopen64.patch' (/home/test/angstrom/
openembedded/packages/libxml/files/libxml_gzopen64.patch)
NOTE: package libxml2-2.7.2-r0: task do_patch: completed
NOTE: package libxml2-2.7.2: completed
...

Still the exact same error remains ...

Any clues?
  

I had the same issue, and the only way to solve it was to rebuild the whole system. Yep, that sucked, but cleaning/rebuilding only the mentioned packages did not work for me either. I guess that to many packages rely on those packages (zlib and libxml2)...

Stefan

I solved this by manually going to the build directory of shared-mime-
info and doing a "configure" and "make" there. Afterwards bitbake was
able to continue.

Ok, that only helped for the i686 part, the arm part still broke.

But i think i found something. I did notice, that these paths were
truncated:

me/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/
shared-mime-info-0.51/po/../freedesktop.org.xml.in
me/developer/oe/tmp/work/i686-linux/shared-mime-info-native-0.51-r0/
shared-mime-info-0.51/po/../update-mime-database.c

They were truncated in my setup also. So i moved everything from /home/
harbaum
to /mnt and guess what? Now the build process passed shared-mime-info
without
errors ...

Hi all

has anyone solved this problem??

I met the same one. After downloading the patch provided by santosh,
it says

NOTE: Handling BitBake files: / (4995/6632) [75 %]ERROR: libxml2.inc:
1: unparsed line: '--- libxml2-2.7.2/libxml.h 2007-11-23
02:47:23.000000000 -0800' while parsing /OE/openembedded/recipes/
libxml/libxml2_2.7.2.bb
ERROR: /OE/openembedded/recipes/libxml/libxml2-native_2.7.2.bb:1:
unparsed line: '--- libxml2-2.7.2/libxml.h 2007-11-23
02:47:23.000000000 -0800' while parsing /OE/openembedded/recipes/
libxml/libxml2-native_2.7.2.bb

So, it doesn't work for me.