Zig Version
0.10.0
Steps to Reproduce and Observed Behavior
$ zig cc foo.c -target s390x-linux-gnu -mcpu=z10
warning: FileNotFound: /opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/crti.S
warning: FileNotFound: /opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/crtn.S
warning: FileNotFound: /opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/start-2.33.S
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c:51:11: warning: call to undeclared function 'INTERNAL_SYSCALL'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
int r = INTERNAL_SYSCALL_CALL (statx, fd, file, AT_NO_AUTOMOUNT | flag,
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:58:3: note: expanded from macro 'INTERNAL_SYSCALL_CALL'
__INTERNAL_SYSCALL_DISP (__INTERNAL_SYSCALL, __VA_ARGS__)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:52:3: note: expanded from macro '__INTERNAL_SYSCALL_DISP'
__SYSCALL_CONCAT (b,__INTERNAL_SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:28:37: note: expanded from macro '__SYSCALL_CONCAT'
#define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X (a, b)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:27:37: note: expanded from macro '__SYSCALL_CONCAT_X'
#define __SYSCALL_CONCAT_X(a,b) a##b
^
<scratch space>:95:1: note: expanded from here
__INTERNAL_SYSCALL5
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:42:3: note: expanded from macro '__INTERNAL_SYSCALL5'
INTERNAL_SYSCALL (name, 5, a1, a2, a3, a4, a5)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c:99:7: warning: call to undeclared function 'INTERNAL_SYSCALL'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
r = INTERNAL_SYSCALL_CALL (newfstatat, fd, file, buf, flag);
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:58:3: note: expanded from macro 'INTERNAL_SYSCALL_CALL'
__INTERNAL_SYSCALL_DISP (__INTERNAL_SYSCALL, __VA_ARGS__)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:52:3: note: expanded from macro '__INTERNAL_SYSCALL_DISP'
__SYSCALL_CONCAT (b,__INTERNAL_SYSCALL_NARGS(__VA_ARGS__))(__VA_ARGS__)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:28:37: note: expanded from macro '__SYSCALL_CONCAT'
#define __SYSCALL_CONCAT(a,b) __SYSCALL_CONCAT_X (a, b)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:27:37: note: expanded from macro '__SYSCALL_CONCAT_X'
#define __SYSCALL_CONCAT_X(a,b) a##b
^
<scratch space>:96:1: note: expanded from here
__INTERNAL_SYSCALL4
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysdep.h:40:3: note: expanded from macro '__INTERNAL_SYSCALL4'
INTERNAL_SYSCALL (name, 4, a1, a2, a3, a4)
^
/opt/homebrew/Cellar/zig/0.10.0/lib/zig/libc/glibc/sysdeps/unix/sysv/linux/fstatat64.c:99:30: error: use of undeclared identifier 'newfstatat'
r = INTERNAL_SYSCALL_CALL (newfstatat, fd, file, buf, flag);
^
2 warnings and 1 error generated.
Expected Behavior
Compile succeed
Zig Version
0.10.0
Steps to Reproduce and Observed Behavior
Expected Behavior
Compile succeed