Hi,<br>Thanks alot for your reply.<br>I am getting the same error as before. <br><br>$ bitbake ../openembedded/recipes/images/<a href="http://helloworld-image.bb">helloworld-image.bb</a><br><span style="background-color: rgb(255, 102, 0);"><br>
NOTE: Handling BitBake files: \ (6783/8369) [81 %]NOTE: <type 'exceptions.TypeError'>:list indices must be integers, not NoneType while evaluating:</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);"><a href="http://projects.linuxtogo.org/frs/download.php/14/prismstumbler-0.7.4pre1.tar.gz">http://projects.linuxtogo.org/frs/download.php/14/prismstumbler-0.7.4pre1.tar.gz</a> file://gpsapi.patch;patch=1 ${@['', 'file://wireless.patch;patch=1'][bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1) and bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d, 1).split('.')[2] < '30']} file://fix-includes.patch;patch=1;pnum=0 file://libgps-check.patch;patch=1</span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: Error in executing: /home/nikunj/oe//openembedded/recipes/prismstumbler/prismstumbler_0.7.3+<a href="http://0.7.4pre1.bb">0.7.4pre1.bb</a></span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: Exception:<type 'exceptions.TypeError'> Message:list indices must be integers, not NoneType</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);">ERROR: Printing the environment of the function</span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: 0001:def __anonfunc():</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);">ERROR: 0002: __anon_183__home_nikunj_oe__openembedded_classes_staging_bbclass(d)</span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: 0003: __anon_453_classes_base_bbclass(d)</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);">ERROR: 0004: __anon_148__home_nikunj_oe__openembedded_classes_package_bbclass(d)</span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: 0005: __anon_318_classes_package_ipk_bbclass(d)</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);">ERROR: list indices must be integers, not NoneType while parsing /home/nikunj/oe//openembedded/recipes/prismstumbler/prismstumbler_0.7.3+<a href="http://0.7.4pre1.bb">0.7.4pre1.bb</a></span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">NOTE: Handling BitBake files: - (8369/8369) [100 %]</span><br style="background-color: rgb(255, 102, 0);"><span style="background-color: rgb(255, 102, 0);">NOTE: Parsing finished. 7625 cached, 453 parsed, 290 skipped, 0 masked.</span><br style="background-color: rgb(255, 102, 0);">
<span style="background-color: rgb(255, 102, 0);">ERROR: Parsing errors found, exiting...</span><br><br>??? <br><br><br>Thanks,<br><br clear="all">Nikunj<br>Bangalore - India<br><br>
<br><br><div class="gmail_quote">2010/5/14 Bjørn Forsman <span dir="ltr"><<a href="mailto:bjorn.forsman@gmail.com">bjorn.forsman@gmail.com</a>></span><br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">On 14 May 2010 14:25, nikunj badjatya <<a href="mailto:nikunjbadjatya@gmail.com">nikunjbadjatya@gmail.com</a>> wrote:<br>
</div><div class="im">> Hi All,<br>
> I am a newbie to the world of OE and Bitbake.<br>
> I want to generate a helloworld executable with MACHINE=x86 and<br>
> DISTRO=celinux-test as parameters.<br>
><br>
> ( although I am not sure about which distro to use..! please correct me if<br>
> above parameters are wrong. )<br>
<br>
</div><div class="im">I cannot comment on which distro to use. I have only used Angstrom on<br>
an ARM device.<br>
<br>
</div><div><div></div><div class="h5">> All environment setup has been done acc to<br>
> <a href="http://docs.openembedded.org/usermanual/usermanual.html#gettingoe_configuring_oe" target="_blank">http://docs.openembedded.org/usermanual/usermanual.html#gettingoe_configuring_oe</a><br>
><br>
> I am using CentOS 5.4 kernel 2.6.18<br>
> tools and utilities required are also installed. ( texi2html, chrpath,<br>
> texinfo etc. )<br>
> python version in use is 2.6<br>
><br>
><br>
> When I run the command :<br>
> $bitbake /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a><br>
><br>
> it says:<br>
> NOTE: Handling BitBake files: / (6783/8369) [81 %]NOTE: <type<br>
> 'exceptions.TypeError'>:list indices must be integers, not NoneType while<br>
> evaluating:<br>
> <a href="http://projects.linuxtogo.org/frs/download.php/14/prismstumbler-0.7.4pre1.tar.gz" target="_blank">http://projects.linuxtogo.org/frs/download.php/14/prismstumbler-0.7.4pre1.tar.gz</a><br>
> file://gpsapi.patch;patch=1 ${@['',<br>
> 'file://wireless.patch;patch=1'][bb.data.getVar('PREFERRED_VERSION_linux-libc-headers',<br>
> d, 1) and bb.data.getVar('PREFERRED_VERSION_linux-libc-headers', d,<br>
> 1).split('.')[2] < '30']}<br>
> file://fix-includes.patch;patch=1;pnum=0<br>
> file://libgps-check.patch;patch=1<br>
> ERROR: Error in executing:<br>
> /home/nikunj/oe//openembedded/recipes/prismstumbler/prismstumbler_0.7.3+<a href="http://0.7.4pre1.bb" target="_blank">0.7.4pre1.bb</a><br>
> ERROR: Exception:<type 'exceptions.TypeError'> Message:list indices must be<br>
> integers, not NoneType<br>
> ERROR: Printing the environment of the function<br>
> ERROR: 0001:def __anonfunc():<br>
> ERROR: 0002:<br>
> __anon_183__home_nikunj_oe__openembedded_classes_staging_bbclass(d)<br>
> ERROR: 0003: __anon_453_classes_base_bbclass(d)<br>
> ERROR: 0004:<br>
> __anon_148__home_nikunj_oe__openembedded_classes_package_bbclass(d)<br>
> ERROR: 0005: __anon_318_classes_package_ipk_bbclass(d)<br>
> ERROR: list indices must be integers, not NoneType while parsing<br>
> /home/nikunj/oe//openembedded/recipes/prismstumbler/prismstumbler_0.7.3+<a href="http://0.7.4pre1.bb" target="_blank">0.7.4pre1.bb</a><br>
> NOTE: Handling BitBake files: | (8369/8369) [100 %]<br>
> NOTE: Parsing finished. 0 cached, 8076 parsed, 292 skipped, 0 masked.<br>
> ERROR: Parsing errors found, exiting...<br>
<br>
</div></div><div class="im">AFAIK, using bitbake with absolute paths to recipes is a bad thing.<br>
Try 'bitbake helloword-image' instead. Note that it builds an *image*,<br>
not just a helloworld executable.<br>
<br>
</div><div><div></div><div class="h5">> => To avoid this long parsing use "-b" option with the bitbake.<br>
><br>
><br>
> When i ran with " -b " option.<br>
> $ bitbake -b<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a><br>
><br>
> it says:<br>
> NOTE: Preparing runqueue<br>
> NOTE: Executing runqueue<br>
> NOTE: Running task 1 of 11 (ID: 5,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_setscene)<br>
> NOTE: Running task 2 of 11 (ID: 4,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_fetch)<br>
> NOTE: Running task 3 of 11 (ID: 0,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_unpack)<br>
> NOTE: Unpacking ../openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a> to<br>
> tmp/work/armv5te-linux/helloworld-1.0.0-r1/<br>
> NOTE: Running task 4 of 11 (ID: 1,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_patch)<br>
> NOTE: Running task 5 of 11 (ID: 6,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_configure)<br>
> NOTE: Running task 6 of 11 (ID: 7,<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_compile)<br>
> ERROR: function do_compile failed<br>
> ERROR: log data follows<br>
> (/home/nikunj/oe/build/tmp/work/armv5te-linux/helloworld-1.0.0-r1/temp/log.do_compile.12888)<br>
> |<br>
> /home/nikunj/oe/build/tmp/work/armv5te-linux/helloworld-1.0.0-r1/temp/run.do_compile.12888:<br>
> line 242: arm-linux-gcc: command not found<br>
> NOTE: Task failed:<br>
> /home/nikunj/oe/build/tmp/work/armv5te-linux/helloworld-1.0.0-r1/temp/log.do_compile.12888<br>
> ERROR: TaskFailed event exception, aborting<br>
> ERROR: Build of<br>
> /home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a><br>
> do_compile failed<br>
> ERROR: Task 7<br>
> (/home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>,<br>
> do_compile) failed<br>
> NOTE: Tasks Summary: Attempted 5 tasks of which 0 didn't need to be rerun<br>
> and 1 failed.<br>
> ERROR: '/home/nikunj/oe/openembedded/recipes/helloworld/<a href="http://helloworld_1.0.0.bb" target="_blank">helloworld_1.0.0.bb</a>'<br>
> failed<br>
<br>
</div></div><div class="im">When you bypass building recipe dependencies with the -b flag, things<br>
may go bad.<br>
As your log shows, the toolchain has not even been built! You can see<br>
that from the line:<br>
<br>
</div><div class="im">> /home/nikunj/oe/build/tmp/work/armv5te-linux/helloworld-1.0.0-r1/temp/run.do_compile.12888:<br>
> line 242: arm-linux-gcc: command not found<br>
<br>
</div><div><div></div><div class="h5">To sum up: try 'bitbake helloworld-image'.<br>
<br>
Best regards,<br>
</div></div><font color="#888888">Bjørn Forsman<br>
</font></blockquote></div><br>