What version of M5 are you using?  bigint.hh includes base/types.hh
which includes inttypes.hh which defines uint64_t, so you could try to
find out if something is wrong there.

  Nate

On Fri, Aug 27, 2010 at 8:45 AM, Sudhanshu(Duke) <[email protected]> wrote:
> Hi,
> I tried to build using scons but got following error:
>
> In file included from build/ALPHA_FS/base/bigint.cc:31:
> build/ALPHA_FS/base/bigint.hh:39: error: 'uint64_t' does not name a type
> build/ALPHA_FS/base/bigint.hh:40: error: 'uint64_t' does not name a type
> build/ALPHA_FS/base/bigint.hh:43: error: ISO C++ forbids declaration
> of 'uint64_t' with no type
> build/ALPHA_FS/base/bigint.hh:43: error: expected ',' or '...' before 'x'
> build/ALPHA_FS/base/bigint.hh:48: error: ISO C++ forbids declaration
> of 'uint64_t' with no type
> build/ALPHA_FS/base/bigint.hh:48: error: expected ',' or '...' before 'x'
> build/ALPHA_FS/base/bigint.hh:55: error: expected type-specifier
> before 'uint64_t'
> build/ALPHA_FS/base/bigint.hh: In constructor 'm5_twin64_t::m5_twin64_t(int)':
> build/ALPHA_FS/base/bigint.hh:45: error: 'a' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:45: error: 'x' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:46: error: 'b' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh: In member function 'm5_twin64_t&
> m5_twin64_t::operator=(int)':
> build/ALPHA_FS/base/bigint.hh:50: error: 'a' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:50: error: 'x' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:51: error: 'b' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh: At global scope:
> build/ALPHA_FS/base/bigint.hh:63: error: 'uint32_t' does not name a type
> build/ALPHA_FS/base/bigint.hh:64: error: 'uint32_t' does not name a type
> build/ALPHA_FS/base/bigint.hh:67: error: ISO C++ forbids declaration
> of 'uint32_t' with no type
> build/ALPHA_FS/base/bigint.hh:67: error: expected ',' or '...' before 'x'
> build/ALPHA_FS/base/bigint.hh:72: error: ISO C++ forbids declaration
> of 'uint32_t' with no type
> build/ALPHA_FS/base/bigint.hh:72: error: expected ',' or '...' before 'x'
> build/ALPHA_FS/base/bigint.hh:79: error: expected type-specifier
> before 'uint32_t'
> build/ALPHA_FS/base/bigint.hh: In constructor 'm5_twin32_t::m5_twin32_t(int)':
> build/ALPHA_FS/base/bigint.hh:69: error: 'a' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:69: error: 'x' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:70: error: 'b' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh: In member function 'm5_twin32_t&
> m5_twin32_t::operator=(int)':
> build/ALPHA_FS/base/bigint.hh:74: error: 'a' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:74: error: 'x' was not declared in this scope
> build/ALPHA_FS/base/bigint.hh:75: error: 'b' was not declared in this scope
> build/ALPHA_FS/base/bigint.cc: In function 'std::ostream&
> operator<<(std::ostream&, const Twin64_t&)':
> build/ALPHA_FS/base/bigint.cc:39: error: 'const struct m5_twin64_t'
> has no member named 'a'
> build/ALPHA_FS/base/bigint.cc:39: error: 'const struct m5_twin64_t'
> has no member named 'b'
> build/ALPHA_FS/base/bigint.cc: In function 'std::ostream&
> operator<<(std::ostream&, const Twin32_t&)':
> build/ALPHA_FS/base/bigint.cc:45: error: 'const struct m5_twin32_t'
> has no member named 'a'
> build/ALPHA_FS/base/bigint.cc:45: error: 'const struct m5_twin32_t'
> has no member named 'b'
> scons: *** [build/ALPHA_FS/base/bigint.do] Error 1
> scons: building terminated because of errors.
>
> please recommend me a way to overcome this uint64_t and uint32_t errors.
> What gcc options do I need to work with.
>
> My gcc is 4.4.3
>
> --
> Sudhanshu([email protected]) & Hathiram([email protected] )
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users

Reply via email to