Thanks Andrew. It has been solved. Actually I found I was still using GCC 4.4. It'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"><<a href="mailto:andrewb@inf.ethz.ch">andrewb@inf.ethz.ch</a>></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'm not<br>
sure why you'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's patch).<br>
<br>
For obvious reasons we don't want to apply this workaround to the main tree...<br>
I've been hoping that GCC will be fixed first, but we'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>
> Hi,<br>
> I am installing barrelfish on the machine with an Intel Quad Q8300<br>
> Processor. The operating system is Ubuntu 10.04. I am using gcc 4.3, but<br>
> still has an error.<br>
><br>
> cc1: warnings being treated as errors<br>
> ../lib/barrelfish/arch/x86_64/syscalls.c: In function ‘cap_invoke_sysret’:<br>
> ../lib/barrelfish/arch/x86_64/syscalls.c:96: error: ‘cap’ is used<br>
> uninitialized in this function<br>
> ../lib/barrelfish/arch/x86_64/syscalls.c:35: note: ‘cap’ was declared here<br>
> make: ***<br>
> [x86_64/lib/barrelfish/_for_lib_barrelfish/arch/x86_64/syscalls.o] Error 1<br>
><br>
> Can anyone help me? Thanks!<br>
</div></div></blockquote></div><br>