[yocto] squashfs-tools-native 4.2-r2 fails, missing lzma.h

Koehler, Yannick (HP Networking) yannick.koehler at hp.com
Tue Feb 24 08:30:47 PST 2015


I found the reason...

	$ bitbake xz-native
	Loading cache: 100% 	|#######################################################################################################################################################################################################	###################################| ETA:  00:00:00
	Loaded 1869 entries from dependency cache.
	***WARNING: Explicit target "xz-native" is in ASSUME_PROVIDED, ignoring***

My conf/local.conf changed recently and I put

	SSTATE_PKG_TARZIPPROG = "xz"

Which appears to be assume to already be in the system

	meta/classes/sstate.bbclass:ASSUME_PROVIDED += "${SSTATE_PKG_TARZIPPROG}-native"

Very clever, I will fix that, sorry about this message.

Yannick Koehler

-----Message d'origine-----
De : Koehler, Yannick (HP Networking) 
Envoyé : February-24-15 11:21 AM
À : 'yocto at yoctoproject.org'
Objet : squashfs-tools-native 4.2-r2 fails, missing lzma.h

I recently set my rootfs image fstype to squashfs-xz, and then got this error:

	NOTE: Preparing runqueue
	NOTE: Executing SetScene Tasks
	NOTE: Executing RunQueue Tasks
	ERROR: Function failed: do_compile (log file is located at /home/ykoehler/poky/build/tmp/work/x86_64-linux/squashfs-tools-native/4.2-r2/temp/log.do_compile.30365)
	ERROR: Logfile of failure stored in: /home/ykoehler/poky/build/tmp/work/x86_64-linux/squashfs-tools-native/4.2-r2/temp/log.do_compile.30365
	Log data follows:
	| DEBUG: Executing shell function do_compile
	| NOTE: make -j 30 -l 30 MAKEFLAGS= LZMA_SUPPORT=1 LZMA_DIR=../.. XZ_SUPPORT=1 mksquashfs
	| gcc  -isystem/home/ykoehler/poky/build/tmp/sysroots/x86_64-linux/usr/include -O2 -pipe  -I. -I../../C -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_GNU_SOURCE -DCOMP_DEFAULT=\"gzip\" -Wall -DGZIP_SUPPORT
 	-DLZMA_SUPPORT -DXZ_SUPPORT -DXATTR_SUPPORT -DXATTR_DEFAULT -isystem/home/ykoehler/poky/build/tmp/sysroots/x86_64-linux/usr/include  -c -o xz_wrapper.o xz_wrapper.c
	| xz_wrapper.c:28:18: fatal error: lzma.h: No such file or directory
	|  #include <lzma.h>
	|                   ^
	| compilation terminated.
	| make: *** [xz_wrapper.o] Error 1
	| ERROR: oe_runmake failed
	| WARNING: exit code 1 from a shell command.
	| ERROR: Function failed: do_compile (log file is located at /home/ykoehler/poky/build/tmp/work/x86_64-linux/squashfs-tools-native/4.2-r2/temp/log.do_compile.30365)
	ERROR: Task 193 (virtual:native:/home/ykoehler/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.2.bb, do_compile) failed with exit code '1'
	NOTE: Tasks Summary: Attempted 982 tasks of which 968 didn't need to be rerun and 1 failed.
	Waiting for 0 running tasks to finish:

	Summary: 1 task failed:
	  virtual:native/home/ykoehler/poky/meta/recipes-devtools/squashfs-tools/squashfs-tools_4.2.bb, do_compile
	Summary: There was 1 ERROR message shown, returning a non-zero exit code.

I then added xz-native to image_types.bbclass IMAGE_DEPENDS_squashfs-xz without success.  Any help in this regards would be appreciated.

Yannick Koehler




More information about the yocto mailing list