All of lore.kernel.org
 help / color / mirror / Atom feed
From: Darren Hart <dvhart@linux.intel.com>
To: Tim Bird <tim.bird@am.sony.com>
Cc: "yocto@yoctoproject.org" <yocto@yoctoproject.org>
Subject: Re: Problem compiling diffutils on poky-tiny in danny
Date: Wed, 14 Nov 2012 10:50:25 -0800	[thread overview]
Message-ID: <50A3E7F1.3090306@linux.intel.com> (raw)
In-Reply-To: <50A3E650.5010900@am.sony.com>



On 11/14/2012 10:43 AM, Tim Bird wrote:
> On 11/14/2012 08:48 AM, Darren Hart wrote:
>>
>>
>> On 11/13/2012 05:11 PM, Tim Bird wrote:
>>> Hi all,
>>>
>>> I'm using DISTRO=poky-tiny and trying to build:
>>>  $ bitbake core-image-minimal-initramfs
>>>
>>> I get the following error trying to compile diffutils:
>>>
>>> ...
>>> i586-poky-linux-gcc  -m32   -march=i586 --sysroot=/a/home/tbird/work/yocto/danny-test1/tmp/sysroots/qemux86 -std=gnu99  -I.      -O2 -pipe -g -feliminate-unused-debug-types -c -o wcwidth.o wcwidth.c
>>> In file included from wcwidth.c:23:0:
>>> ./wctype.h:448:1: error: static declaration of 'iswalnum' follows non-static declaration
>>> ./wctype.h:460:1: error: static declaration of 'iswalpha' follows non-static declaration
>>> ...
>>
>>
>> Is there an option to build diffutils without wide character support?
>> This is something tiny does away with and frequent point of failure
>> when trying to build additional packages with it.
> 
> I'll see if I can find something.
> 
>>
>>> See the attached compile log for details.
>>>
>>> Has anyone done this recently?  Is this one of the supported images for
>>> this distro (poky-tiny)?
>>
>>
>> I don't build that target as I use the cpio.gz from core-image-minimal
>> as an initial ramdisk. Is there a particular reason you want to build
>> "core-image-minimal-initramfs" specifically?
> 
> Building poky-tiny with core-image-minimal worked fine.  I didn't understand
> that this built multiple images (including a cpio.gz), and thought that
> the default method of building a cpio.gz was to build the <image-name>-initramfs
> image.  So, no, I don't have a particular reason to do this.
> 
> Also, I'm not sure I am doing the startup initialization with runqemu
> correctly.  I wouldn't have expected any rootfs to be used for this image,
> but the default invocation of runqemu uses one.  An example shows use of
> a 'ramfs' parameter.  I think I need to dig into runqemu and verify
> args are appropriate for an initramfs.
> 

runqemu doesn't quite know what to make of poky-tiny :-) Try the following:

$ qemu-system-i386 -kernel path/to/kernel -initrd path/to/image.cpio.gz
-nographic -append "console=ttyS0 root=/dev/ram0"

I really need to get the poky-tiny docs going... right after I finish
these kernel docs I guess... anyone want to volunteer?

>>
>>>
>>> Has anyone seen this type of error before, or can provide some
>>> hints of what to check or adjust to fix this?
>>
>> Yup, it's wide characters being required by diffutils and being excluded
>> by the poky-tiny DISTRO_FEATURES_LIBC assignment. If supported by
>> diffutils, we might be able to test ENABLE_WIDEC in diffutils and
>> configure accordingly (see the ncurses recipes for an example).
> 
> I'll poke around.  I'm curious why poky-tiny core-image-minimal built
> OK, but core-image-minimal-initramfs didn't.  I didn't expect
> any difference in target-side binaries between the two - only some
> changes in the image build steps.
> 
> Thanks for the tips.  I'll check it out.

Let me know what you find out. I thought the initramfs had the installer
in it, but maybe that's included by some other mechanism.

-- 
Darren Hart
Intel Open Source Technology Center
Yocto Project - Technical Lead - Linux Kernel


  reply	other threads:[~2012-11-14 18:50 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-11-14  1:11 Problem compiling diffutils on poky-tiny in danny Tim Bird
2012-11-14 10:07 ` Tomas Frydrych
2012-11-14 16:48 ` Darren Hart
2012-11-14 18:43   ` Tim Bird
2012-11-14 18:50     ` Darren Hart [this message]
2012-11-14 18:57       ` Tim Bird
2012-11-14 19:05         ` Darren Hart
2012-11-14 21:47           ` Tim Bird
2012-11-14 21:58             ` Tim Bird
2012-11-14 22:30             ` Darren Hart

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=50A3E7F1.3090306@linux.intel.com \
    --to=dvhart@linux.intel.com \
    --cc=tim.bird@am.sony.com \
    --cc=yocto@yoctoproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.