Thanks Andrew. It has been solved. Actually I found I was still using GCC 4.4. It&#39;s good if I use GCC 4.3. Thanks!<br><br><div class="gmail_quote">On Tue, Sep 28, 2010 at 12:42 AM, Andrew Baumann <span dir="ltr">&lt;<a href="mailto:andrewb@inf.ethz.ch">andrewb@inf.ethz.ch</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">Hi,<br>
<br>
This sounds like the spurious uninitialised variable warnings that we see<br>
around inline functions when compiling with recent versions of 4.4. I&#39;m not<br>
sure why you&#39;re getting it on 4.3, but the quickest workaround is probably to<br>
add -Wno-uninitialized to the flags (as also used in Joey Trebbien&#39;s patch).<br>
<br>
For obvious reasons we don&#39;t want to apply this workaround to the main tree...<br>
I&#39;ve been hoping that GCC will be fixed first, but we&#39;ll have to see.<br>
<br>
Cheers,<br>
<font color="#888888">Andrew<br>
</font><div><div></div><div class="h5"><br>
On Sunday 26 September 2010 06.03:29 Yaojia Zhu wrote:<br>
&gt; Hi,<br>
&gt; I am installing barrelfish on the machine with an Intel Quad Q8300<br>
&gt; Processor. The operating system is Ubuntu 10.04. I am using gcc 4.3, but<br>
&gt; still has an error.<br>
&gt;<br>
&gt; cc1: warnings being treated as errors<br>
&gt; ../lib/barrelfish/arch/x86_64/syscalls.c: In function ‘cap_invoke_sysret’:<br>
&gt; ../lib/barrelfish/arch/x86_64/syscalls.c:96: error: ‘cap’ is used<br>
&gt; uninitialized in this function<br>
&gt; ../lib/barrelfish/arch/x86_64/syscalls.c:35: note: ‘cap’ was declared here<br>
&gt; make: ***<br>
&gt; [x86_64/lib/barrelfish/_for_lib_barrelfish/arch/x86_64/syscalls.o] Error 1<br>
&gt;<br>
&gt; Can anyone help me? Thanks!<br>
</div></div></blockquote></div><br>