[yocto] Packages util-linux and gettext both showing undefined reference

Summers, John S john.s.summers at intel.com
Mon Sep 22 13:19:58 PDT 2014


Hi Tom,

So the wic command I am using that fails, I believe is a different issue.  I actually tested this and it works with the "poky" distro, but not with "poky-tiny".  That said, here are the two commands I am using (using poky-tiny).
Fails:
	wic create mkefidisk -e core-image-minimal
	Checking basic build environment...
	Done.

	Creating image(s)...

	Error: Couldn't find HDDDIR, exiting
Succeeds:
	wic create mkefidisk -r ./tmp/work/foo-layer-poky-linux/core-image-minimal/1.0-r0/rootfs/ -b ./tmp/sysroots/foo-layer/usr/share/ -k ./tmp/sysroots/foo-layer/usr/src/kernel/ -n ./tmp/sysroots/x86_64-linux/ -o ../foo-image-out/
	Creating image(s)...

	Info: The new image(s) can be found here:
  	../foo-image-out/build/mkefidisk-201409221310-sda.direct

	The following build artifacts were used to create the image(s):
	  ROOTFS_DIR:                   ./tmp/work/foo-layer-poky-linux/core-image-minimal/1.0-r0/rootfs/
	  BOOTIMG_DIR:                  ./tmp/sysroots/foo-layer/usr/share/
	  KERNEL_DIR:                   ./tmp/sysroots/foo-layer/usr/src/kernel/
	  NATIVE_SYSROOT:               ./tmp/sysroots/x86_64-linux/


	The image(s) were created using OE kickstart file:
	  .../poky/scripts/lib/image/canned-wks/mkefidisk.wks

In terms of getting the undefined build errors, I believe all I had to do was use poky-tiny and attempt to build gettext.  I had the same error when I built the image via the "hob" tool.  I have since converted everything over to command line for automation purposes, but the error remains the same.

Thanks,
Stuart

-----Original Message-----
From: Zanussi, Tom 
Sent: Monday, September 22, 2014 12:53 PM
To: Summers, John S
Cc: Burton, Ross; yocto at yoctoproject.org; Darren Hart
Subject: Re: [yocto] Packages util-linux and gettext both showing undefined reference

On Mon, 2014-09-22 at 19:19 +0000, Summers, John S wrote:
> Hi Darren,
> 
> Maybe I should elaborate a bit on what I am trying to do.  Basically, 
> I am trying to develop an embedded EFI-bootable image using the 
> poky-tiny distro.
> 
> I would like to be able to automate the image generation process, so 
> I've been using the "wic" tool to generate the image.  Wic has been 
> working great (at least it works fine with manual parameters, the -e 
> argument results in a failure as described at 
> https://bugzilla.yoctoproject.org/show_bug.cgi?id=6704&list_id=cookie), but it appears that the initramfs image is not being generated properly, resulting in a kernel Panic when I load the image via UEFI.
> 

Hi,

I haven't generated a poky-tiny image with wic before, but those undefined error messages do seem vaguely familiar to me, and I seem to remember working around them but I can't remember the details.

Can you send me the the relevant info to try a build myself, and also the wic command you're using (and the one that fails)?

Thanks,

Tom

> I saw that poky-tiny by default uses the following image types:
> IMAGE_FSTYPES = "ext2 cpio.gz"
> 
> This is in my foo-layer/conf/distro/foo-layer.conf file.  There's also 
> a note there saying that "We don't build live as that pulls in a lot 
> of dependencies for live image and the installer, like udev, grub, 
> etc.  These pull in gettext, which fails to build with wide character 
> support."
> 
> Does this mean that wic is not supported with poky-tiny?  If it is 
> supported, are there any additional requirements for building 
> initramfs images into wic generated images?
> 
> Also, I don't see core-image-minimal-initramfs added in poky-tiny as a 
> PNBLACKLIST image.  Do you know of any additional configuration I need 
> to get this image to build properly (either directly with bitbake or 
> embedded into my recipe)?
> 
> Thanks in advance,
> Stuart
> 
> -----Original Message-----
> From: Burton, Ross [mailto:ross.burton at intel.com]
> Sent: Monday, September 22, 2014 10:28 AM
> To: Summers, John S
> Cc: yocto at yoctoproject.org; Darren Hart
> Subject: Re: [yocto] Packages util-linux and gettext both showing 
> undefined reference
> 
> On 22 September 2014 18:05, Summers, John S <john.s.summers at intel.com> wrote:
> > DISTRO            = "poky-tiny"
> 
> I expect this is what's causing the problem.  poky-tiny is very cut-down.  CC'ing Darren for a more informed comment.
> 
> Ross




More information about the yocto mailing list