- Subject: [slang-users] git head build failure on Mac OS X
- From: Christian Ebert <blacktrash@xxxxxxx>
- Date: Wed, 19 Aug 2015 11:04:23 +0100
Hi,
The latest change - _XOPEN_SOURCE 500 - breaks clang compilation
on Mac OS X:
cd /Users/chris/src/slang/src/elfobjs && gcc -c -g -O2 -fno-common -Dunix -DSLANG /Users/chris/src/slang/src/slproc.c
/Users/chris/src/slang/src/slproc.c:258:4: error: no member named 'ru_maxrss' in 'rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_maxrss, "ru_maxrss", 0),
^ ~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2343:47: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
#define MAKE_CSTRUCT_INT_FIELD(s,f,n,r) {(n), offsetof(s,f),\
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/stddef.h:133:24: note:
expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
/Users/chris/src/slang/src/slproc.c:258:42: error: no member named 'ru_maxrss' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_maxrss, "ru_maxrss", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2344:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(int))?(SLANG_INT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:258:42: error: no member named 'ru_maxrss' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_maxrss, "ru_maxrss", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2345:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(short))?(SLANG_SHORT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:258:42: error: no member named 'ru_maxrss' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_maxrss, "ru_maxrss", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2346:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(char))?(SLANG_CHAR_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:258:42: error: no member named 'ru_maxrss' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_maxrss, "ru_maxrss", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2347:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(long))?(SLANG_LONG_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:259:4: error: no member named 'ru_minflt' in 'rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_minflt, "ru_minflt", 0),
^ ~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2343:47: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
#define MAKE_CSTRUCT_INT_FIELD(s,f,n,r) {(n), offsetof(s,f),\
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/stddef.h:133:24: note:
expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
/Users/chris/src/slang/src/slproc.c:259:42: error: no member named 'ru_minflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_minflt, "ru_minflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2344:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(int))?(SLANG_INT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:259:42: error: no member named 'ru_minflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_minflt, "ru_minflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2345:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(short))?(SLANG_SHORT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:259:42: error: no member named 'ru_minflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_minflt, "ru_minflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2346:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(char))?(SLANG_CHAR_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:259:42: error: no member named 'ru_minflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_minflt, "ru_minflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2347:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(long))?(SLANG_LONG_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:260:4: error: no member named 'ru_majflt' in 'rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_majflt, "ru_majflt", 0),
^ ~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2343:47: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
#define MAKE_CSTRUCT_INT_FIELD(s,f,n,r) {(n), offsetof(s,f),\
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/stddef.h:133:24: note:
expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
/Users/chris/src/slang/src/slproc.c:260:42: error: no member named 'ru_majflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_majflt, "ru_majflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2344:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(int))?(SLANG_INT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:260:42: error: no member named 'ru_majflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_majflt, "ru_majflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2345:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(short))?(SLANG_SHORT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:260:42: error: no member named 'ru_majflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_majflt, "ru_majflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2346:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(char))?(SLANG_CHAR_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:260:42: error: no member named 'ru_majflt' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_majflt, "ru_majflt", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2347:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(long))?(SLANG_LONG_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:261:4: error: no member named 'ru_inblock' in 'rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_inblock, "ru_inblock", 0),
^ ~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2343:47: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
#define MAKE_CSTRUCT_INT_FIELD(s,f,n,r) {(n), offsetof(s,f),\
^
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/clang/6.1.0/include/stddef.h:133:24: note:
expanded from macro 'offsetof'
#define offsetof(t, d) __builtin_offsetof(t, d)
^
/Users/chris/src/slang/src/slproc.c:261:42: error: no member named 'ru_inblock' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_inblock, "ru_inblock", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2344:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(int))?(SLANG_INT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:261:42: error: no member named 'ru_inblock' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_inblock, "ru_inblock", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2345:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(short))?(SLANG_SHORT_TYPE): \
^
/Users/chris/src/slang/src/slproc.c:261:42: error: no member named 'ru_inblock' in 'struct rusage'
MAKE_CSTRUCT_INT_FIELD(RUsage_Type, r.ru_inblock, "ru_inblock", 0),
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~
/Users/chris/src/slang/src/slang.h:2346:22: note: expanded from macro 'MAKE_CSTRUCT_INT_FIELD'
(sizeof(((s*)0L)->f)==sizeof(char))?(SLANG_CHAR_TYPE): \
^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
Makefile:598: recipe for target '/Users/chris/src/slang/src/elfobjs/slproc.o' failed
make[1]: *** [/Users/chris/src/slang/src/elfobjs/slproc.o] Error 1
make[1]: Leaving directory '/Users/chris/src/slang/src'
Makefile:58: recipe for target 'elf' failed
make: *** [elf] Error 2
--
theatre - books - texts - movies
Black Trash Productions at home: http://www.blacktrash.org
Black Trash Productions on Facebook:
http://www.facebook.com/blacktrashproductions
_______________________________________________
For list information, visit <http://jedsoft.org/slang/mailinglists.html>.
[2015 date index]
[2015 thread index]
[Thread Prev] [Thread Next]
[Date Prev] [Date Next]