I thought I'd already fixed these problems. I'm surprised to hear they're cropping up again.

Gabe

Quoting nathan binkert <[email protected]>:

I'm actually fixing this right now. I upgraded my main machine over the weekend.

  Nate

On Tue, Dec 13, 2011 at 9:58 AM, Ali Saidi <[email protected]> wrote:
I think a better approach is M5_VAR_USED on the offending variable.

Ali



On Tue, 13 Dec 2011 09:25:22 -0600 (CST), Nilay Vaish <[email protected]>
wrote:

On Tue, 13 Dec 2011, Fabian Oboril wrote:

Hi guys,

I have recently updated my Ubuntu to version 11.10. I have now huge
problems with the integrated gcc 4.6.1 and the newest (unstable) gem5.
Compiling will always stop with errors due to set but unused variables. I
know that there should be a trigger for that issue in the SConscript file,
however it is not working. While I could remove most of the problems, I am
struggling with this error:
build/ALPHA_SE/mem/protocol/DMA_Controller.cc:314:27: error: variable
'in_msg_ptr' set but not used [-Werror=unused-but-set-variable]
The problem here is, that this cc-file is generated out of a python file
and I cannot find the place where I can implement a workaround.

Has anyone an idea, what I need to change in order to build gem5 with gcc
4.6.1?

Thanks in advance,
  Fabian Oboril



Take look at the file src/mem/protocol/SConscript. On line 101, all
the generated files are being added to the list of files that would be
compiled. You can replace Source(f) by Source(f,Werror=False). I think
that would sort out your current problem.

--
Nilay
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users


_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users



_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to