Hi, this should have been fixed in this changeset. http://repo.gem5.org/gem5?cmd=changeset;node=0edd36ea6130
I don't believe this fix is yet in gem5-stable, but it is in the development branch. On Wed, Sep 24, 2014 at 7:47 PM, Khaled Mahmoud via gem5-users < gem5-users@gem5.org> wrote: > Hi, > > > I am trying to compile gem5 on MacOS version 10.9.4 but I am getting a lot > of compilation errors. > Most of these error are abut use of undeclared identifier. Can you please > help :(. > Here is the log of compilation output I see : > > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:325:23: **error: **base class 'ip_opt' has a > flexible array member* > struct IpOpt : public ip_opt > * ^* > *build/ALPHA/base/inet.hh:327:35: **error: **use of undeclared identifier > 'opt_type'* > uint8_t type() const { return opt_type; } > * ^* > *build/ALPHA/base/inet.hh:328:55: **error: **use of undeclared identifier > 'opt_type'* > uint8_t typeNumber() const { return IP_OPT_NUMBER(opt_type); } > * ^* > *ext/dnet/ip.h:273:28: note: *expanded from macro 'IP_OPT_NUMBER' > #define IP_OPT_NUMBER(o) ((o) & 0x1f) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:329:53: **error: **use of undeclared identifier > 'opt_type'* > uint8_t typeClass() const { return IP_OPT_CLASS(opt_type); } > * ^* > *ext/dnet/ip.h:272:28: note: *expanded from macro 'IP_OPT_CLASS' > #define IP_OPT_CLASS(o) ((o) & 0x60) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:330:55: **error: **use of undeclared identifier > 'opt_type'* > uint8_t typeCopied() const { return IP_OPT_COPIED(opt_type); } > * ^* > *ext/dnet/ip.h:271:28: note: *expanded from macro 'IP_OPT_COPIED' > #define IP_OPT_COPIED(o) ((o) & 0x80) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:331:64: **error: **use of undeclared identifier > 'opt_len'* > uint8_t len() const { return IP_OPT_TYPEONLY(type()) ? 1 : opt_len; } > * ^* > *build/ALPHA/base/inet.hh:337:42: **error: **use of undeclared identifier > 'opt_data'* > const uint8_t *data() const { return opt_data.data8; } > * ^* > *build/ALPHA/base/inet.hh:342:43: **error: **use of undeclared identifier > 'opt_data'* > uint16_t satid() const { return ntohs(opt_data.satid); } > * ^* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:40: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:342:43: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:44:34: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \ > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:342:43: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:45:32: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > (((__uint16_t)(x) & 0x00ff) << 8))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:342:43: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:89: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * > ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:343:42: **error: **use of undeclared identifier > 'opt_data'* > uint16_t mtup() const { return ntohs(opt_data.mtu); } > * ^* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:40: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:343:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:44:34: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \ > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:343:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:45:32: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > (((__uint16_t)(x) & 0x00ff) << 8))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:343:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:89: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * > ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:344:42: **error: **use of undeclared identifier > 'opt_data'* > uint16_t mtur() const { return ntohs(opt_data.mtu); } > * ^* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:40: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:344:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:44:34: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > ((__uint16_t)((((__uint16_t)(x) & 0xff00) >> 8) | \ > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:344:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:71: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * ^* > */usr/include/libkern/_OSByteOrder.h:45:32: note: *expanded from macro > '__DARWIN_OSSwapConstInt16' > (((__uint16_t)(x) & 0x00ff) << 8))) > * ^* > In file included from build/ALPHA/base/inet.cc:52: > *build/ALPHA/base/inet.hh:344:42: **error: **use of undeclared identifier > 'opt_data'* > */usr/include/sys/_endian.h:126:39: note: *expanded from macro 'ntohs' > #define ntohs(x) __DARWIN_OSSwapInt16(x) > * ^* > */usr/include/libkern/_OSByteOrder.h:72:89: note: *expanded from macro > '__DARWIN_OSSwapInt16' > ((__uint16_t)(__builtin_constant_p(x) ? __DARWIN_OSSwapConstInt16(x) : > _OSSwapInt16(x))) > * > ^* > *fatal error: **too many errors emitted, stopping now [-ferror-limit=]* > 20 errors generated. > > Regards, > Khaled Mahmoud > > _______________________________________________ > gem5-users mailing list > gem5-users@gem5.org > http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users >
_______________________________________________ gem5-users mailing list gem5-users@gem5.org http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users