This kind of thing happens fairly often.  The compilation is set to error
out if it detects unused variables.  Over time the compilers get smarter
and detect variables as unused that for whatever reason the compiler
previously couldn't detect.

>From my experience Clang on OS X tends to see most of these in the
committed code, since most of the other developers develop solely on
GCC/Linux.

I fixed this error as well last week, just haven't gotten around to
submitting a patch.

On Sat, Oct 25, 2014 at 3:03 AM, Todd Bezenek via gem5-dev <
[email protected]> wrote:

> (I'm a gem5 newbie, so please excuse me if this is an easy/know issue.)
>
> Please let me know if this is the wrong place to post this.
>
> I'm using Mac OS X (Mavericks).
>
> I downloaded the standard gem5 source tree (on Oct. 25, 2014):
>
> bash> hg clone http://repo.gem5.org/gem5
>
> and built it with the following error:
>
> bash> scons build/ARM/gem5.opt... [     CXX]
> ARM/mem/ruby/network/garnet/fixed-pipeline/NetworkLink_d.cc -> .oIn file
> included from
> build/ARM/mem/ruby/network/garnet/fixed-pipeline/NetworkLink_d.cc:  >31:In
> file included from
>
> build/ARM/mem/ruby/network/garnet/fixed-pipeline/CreditLink_d.hh:34:build/ARM/mem/ruby/network/garnet/fixed-pipeline/NetworkLink_d.hh:77:9:
> error: private      field 'm_flit_width' is not used
> [-Werror,-Wunused-private-field]
>
>     int m_flit_width;
>
>         ^
>
> 1 error generated.
>
> scons: ***
> [build/ARM/mem/ruby/network/garnet/fixed-pipeline/NetworkLink_d.o] Error 1
>
> scons: building terminated because of errors.
>
> Sat Oct 25 00:17:37 ~/Work/Gem5/Src/gem5
>
> - I "fixed" this by commenting out the definition of m_flit_width and
> everything worked.
>
> - I figure it would be a good thing to fix this for the distribution in
> general.
> -Todd
> --
> Todd Bezenek <http://www.linkedin.com/in/toddbezenek/>, MScCS, MScEE
> [email protected]
>
> A people hire A people, B people hire C people.
>   --Jim Gray <http://en.wikipedia.org/wiki/Jim_Gray_(computer_scientist)>
> _______________________________________________
> gem5-dev mailing list
> [email protected]
> http://m5sim.org/mailman/listinfo/gem5-dev
>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to