Getting Started - Failure trying to build nano

Douglas Royds douglas.royds at tait.co.nz
Fri May 30 04:10:42 UTC 2008


Philip Balister wrote:
> Douglas Royds wrote:
>> Trying to work my way through the GettingStarted page, I failed to 
>> successfully build nano. I arbitrarily chose the angstrom 
>> distribution and davinci-dvevm machine, in an attempt to, well, get 
>> started.
>>
>> Any suggestions?
>
> I'm building console-image for the davinci-dvevm here regularly at the 
> moment. Could you try "bitbake console-image"? Next time I do a clean 
> build, I'll check "bitbake nano".
>
> Are you specifically interested in the Davinci EVM? We've just added 
> dsplink and could use some help testing it :)

Both console-image and nano failed at the same step, trying to 
do_populate_staging on libtool-native. I have now succeeded in getting a 
build of libtool-native, by modifying base.bbclass as follows:

    #
    # old_revision [6f0c90fd27f225177b6d92c123d266df5f5be56e]
    #
    # patch "classes/base.bbclass"
    #  from [1f2aa3e857574c705066c6e22b6697bfafc48da0]
    #    to [652d6fdc46a5e65f33b65bb37a0583e757f6d04e]
    #
    ============================================================
    --- classes/base.bbclass    1f2aa3e857574c705066c6e22b6697bfafc48da0
    +++ classes/base.bbclass    652d6fdc46a5e65f33b65bb37a0583e757f6d04e
    @@ -291,13 +291,13 @@ oe_libinstall() {
         dotlai=$libname.lai
     
         # Sanity check that the libname.lai is unique
    -    number_of_files=`(cd $dir; find . -name "$dotlai") | wc -l`
    +    number_of_files=`find $dir -name "$dotlai" | wc -l`
         if [ $number_of_files -gt 1 ]; then
             oefatal "oe_libinstall: $dotlai is not unique in $dir"
         fi
     
     
    -    dir=$dir`(cd $dir;find . -name "$dotlai") | sed
    "s/^\.//;s/\/$dotlai\$//;q"`
    +    dir=`(find $dir -name "$dotlai") | sed "s/^\.//;s/\/$dotlai\$//;q"`
         olddir=`pwd`
         __runcmd cd $dir

The problem was that cd $dir was reporting the new directory to std out, 
causing wc -l to report "2". Likewise, finding the .lai file was 
producing two lines of output.

Why did this affect me, and no one else? Is there anything in my set-up 
that could cause this difference? Which shell should these commands be 
running in? I see that all the scripts in

    build/tmp/work/i686-linux/libtool-native-1.5.10-r10/temp/run.*

specify /bin/sh, so I would have expected the "cd" behaviour to be 
consistent.

Yes, we are specifically interested in the DaVinci.

Thanks,
Douglas.




=======================================================================
This email, including any attachments, is only for the intended
addressee.  It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
 altered or corrupted during transmission.
=======================================================================





More information about the Openembedded-users mailing list