Hi Nicholas,<br><br>I downloaded the official OKL4 3.0 source from the wiki. I tried building for the versatile platform using :<br><br> <i>tools/build.py machine=versatile project=examples example=hello PYFREEZE=False TOOLCHAIN=gnu_arm_eabi_toolchain</i> and i got the following error :<br>
<br>[CXX ] build/pistachio/l4kernel/object/src/init_script.o<br>cc1plus: warnings being treated as errors<br>pistachio/src/init_script.cc: In function &#39;void ki_assign_irq(space_t*, ki_assign_irq_t*)&#39;:<br>pistachio/src/init_script.cc:647: warning: type-punning to incomplete type might break strict-aliasing rules<br>
scons: *** [build/pistachio/l4kernel/object/src/init_script.o] Error 1<br>scons: building terminated because of errors.<br><br>On trying with :<br><i> tools/build.py machine=versatile project=examples example=hello PYFREEZE=False TOOLCHAIN=gnu_arm_eabi_toolchain pistachio.TOOLCHAIN=gnu_arm_toolchain </i>, I get the following error:<br>
<br>scons: Reading SConscript files ...<br>scons: done reading SConscript files.<br>scons: Building targets ...<br>[CXX ] build/pistachio/l4kernel/object/src/asid.o<br>cc1plus: error: invalid parameter `large-function-growth&#39;<br>
scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 1<br>scons: building terminated because of errors.<br><br>which is the same I was getting while using androidsim and the ported version of OKL4. <br><br>Amrit<br>
<br><br><br><div class="gmail_quote">On Tue, Jul 7, 2009 at 4:27 PM, Nicholas FitzRoy-Dale <span dir="ltr">&lt;<a href="mailto:nfd@cse.unsw.edu.au">nfd@cse.unsw.edu.au</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Amrit,<br>
<br>
Thanks for confirming that your build problem occurs for Versatile too. To definitely confirm that the problem is toolchain-related, could you please download the official OKL4 3.0 source from the OKL wiki and verify that you get the same problem building for Versatile? (I am assuming that you tested the Versatile build from the htcdream fork).<br>

<br>
Doing this will confirm that there is a toolchain problem (if you get the same error) or allow me to narrow down the bug (if you don&#39;t get the same error).<br><font color="#888888">
<br>
Nicholas</font><div><div></div><div class="h5"><br>
<br>
On 07/07/2009, at 8:49 PM, Amrit Acharya wrote:<br>
<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi Nicholas,<br>
<br>
I tried building it again for versatile but I am getting similar errors. If its a compiler issue, can you direct me to which versions I need to use? The toolchain I am using is the arm-unknown-linux-gnueabi downloaded from the OKlabs wiki.<br>

<br>
I tried installing the toolchain again,<br>
<br>
I am now getting the following error when i pass :<br>
<br>
tools/build.py machine=androidsim project=examples example=hello TOOLCHAIN=gnu_arm_eabi_toolchain pistachio.TOOLCHAIN=gnu_arm_toolchain PYFREEZE=False<br>
<br>
...<br>
[CXX ] build/pistachio/l4kernel/object/src/asid.o<br>
cc1plus: error: invalid parameter `large-function-growth&#39;<br>
scons: *** [build/pistachio/l4kernel/object/src/asid.o] Error 1<br>
scons: building terminated because of errors.<br>
...<br>
<br>
However, if i just pass :<br>
<br>
tools/build.py machine=androidsim project=examples example=hello PYFREEZE=False TOOLCHAIN=gnu_arm_eabi_toolchain,<br>
<br>
I am still getting the same error which I got initially.<br>
<br>
Amrit<br>
<br>
<br>
On Fri, Jul 3, 2009 at 10:23 PM, Nicholas FitzRoy-Dale &lt;<a href="mailto:nfd@cse.unsw.edu.au" target="_blank">nfd@cse.unsw.edu.au</a>&gt; wrote:<br>
Hi Amrit,<br>
<br>
This is a problem with the version of the compiler you&#39;re using to build Pistachio. Can you compile for any other targets. For example, can you compile for gumstix or versatile? If you can build for either of those targets you should be able to build for androidsim.<br>

<br>
Nicholas<br>
<br>
<br>
On 03/07/2009, at 4:26 PM, Amrit Acharya wrote:<br>
<br>
Hi,<br>
<br>
I have been facing certain problems while trying to build for the Qemu Emulator.<br>
<br>
I am passing :<br>
<br>
tools/build.py machine=androidsim project=examples example=hello PYFREEZE=False<br>
<br>
The error I am getting is this :<br>
<br>
...<br>
...<br>
...<br>
&gt; [AR] build/pistachio/lib/libplatform.a<br>
&gt; [LIB] build/pistachio/lib/libplatform.a<br>
&gt; [AR] build/pistachio/lib/libatomic_ops.a<br>
&gt; [LIB] build/pistachio/lib/libplatform.a<br>
&gt; [LINK] build/pistachio/bin/l4lernel<br>
<br>
&gt; /opt/crosstool/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.2.4/libgcc.a(_dvmd_lnx.o):<br>
&gt; In function `__div0&#39;:<br>
<br>
/scratch/philipo/crosstool-0.43/src/gcc-4.2.4/gcc/config/arm/lib1funcs.asm:1000:<br>
undefined reference to `raise&#39;<br>
<br>
&gt; /opt/crosstool/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.2.4/libgcc.a(_divdi3.o):(.ARM.exidx+0x0):<br>
&gt; undefined reference to `__aeabi_unwind_cpp_pr0&#39;<br>
<br>
&gt; /opt/crosstool/arm-unknown-linux-gnueabi/bin/../lib/gcc/arm-unknown-linux-gnueabi/4.2.4/libgcc.a(_udivdi3.o):(.ARM.exidx+0x0):<br>
&gt;undefined reference to `__aeabi_unwind_cpp_pr0&#39;<br>
<br>
&gt; scons: *** [build/pistachio/bin/l4kernel] Error 1<br>
&gt; scons: building terminated because of errors.<br>
<br>
I am using the cross-compiler specified in the OK Labs wiki. Also, I came across another post in the developers forum where it was mentioned : &quot;The kernel needs to be compiled with the old non EABI toolchain, while the rest of userland needs to be compiled with the EABI toolchain. To do that you state :<br>

<br>
 TOOLCHAIN=gnu_arm_eabi_toolchain pistachio.TOOLCHAIN=gnu_arm_toolchain. &quot;<br>
<br>
I tried this also but I am still getting the same errors. Can I get any help on fixing this?<br>
<br>
Regards,<br>
<br>
Amrit Acharya<br>
<br>
<br>
_______________________________________________<br>
Developer mailing list<br>
<a href="mailto:Developer@okl4.org" target="_blank">Developer@okl4.org</a><br>
<a href="https://lists.okl4.org/mailman/listinfo/developer" target="_blank">https://lists.okl4.org/mailman/listinfo/developer</a><br>
<br>
<br>
</blockquote>
<br>
</div></div></blockquote></div><br>