[okl4-developer] Error building OKL 1.5.2 for imx31 on Fedora7 & python2.5
Nelson Tam
nelson at ok-labs.com
Tue May 20 11:41:32 EST 2008
Hi Mike,
I've just tried doing the same build on the 2.1 release just then, it
worked fine for me.
The variable expect_test_data is actually just a string that is used
in our testing system, it is compared against stdout during testing.
The reason for the first failure is because on the line that you've
commented out, characters are prepended onto expect_test_data but the
variable is not defined yet. Commenting out this line merely delays
the problem till later.
A better solution would be to set the string to "" if it is not
defined already, or specify "example=dining_philosophers" (or anything
in iguana/examples), which will initialise expect_test_data for you.
Nelson.
On 20/05/2008, at 9:47 AM, DeVico, Michael wrote:
> Hello,
>
> I just downloaded OKL v1.5.2 and installed the arm cross-compiler from
> http://www.ertos.nicta.com.au/downloads/tools/arm-linux-3.4.4.tar.gz)
>
> But when I tried to invoke an imx31 build as follows:
>
> ./tools/build.py project=iguana machine=kzm_arm11
>
> I kept getting the following error:
>
> scons: Reading SConscript files ...
> projects/iguana/SConstruct:433 Error: KengeBuild instance has no
> attribute 'expect_test_data'
>
> So I tried commenting out the following lines in projects/iguana/
> SConstruct:
>
> elif machine.__name__ == 'kzm_arm11':
> # build.expect_test_data = [('KZM_ARM11 #', '^Ecfsetenv bootfile
> regression/kzm_arm11'), \
> # ('KZM_ARM11 #', 'dhcp'), ('KZM_ARM11 #', 'go 0x80000000')]
> + build.expect_test_data
> build.TestImage(boot_image)
> build.RunImage(boot_image)
> Default(boot_image)
>
> After doing so, the build actually seemed to run. It got all the way
> to the end but then complained
> with the following error:
>
> [ELF ] build/images/image.elf
> An error occurred: unpack requires a string argument of length 36
> [ELF ] build/images/image.boot
> An error occurred: [Errno 2] No such file or directory: 'build/
> images/image.elf'
> scons: done building targets.
>
> So what I am doing wrong?
>
> I’m building on Fedora 7.
>
> Also, note that I had to update the #!/bin/env line at the top of
> build.py to use python2.5 instead of
> 2.4 because that’s the version installed on my box.
>
> BTW: I’m completely new to OKL and SConstruct files, so if my
> question sounds extremely dumb I apologize in
> advance!! J
>
--
(nt)
Nelson Tam
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 1560 bytes
Desc: not available
Url : http://lists.okl4.org/pipermail/developer/attachments/20080520/8076a03f/attachment.bin
More information about the Developer
mailing list