Skip to content

s390x: use of undeclared identifier 'newfstatat' #14118

Closed

Description

@messense

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

Activity

  1. added
    bug
    on Dec 29, 2022
  2. added
    enhancement
    and removed
    bug
    on Jan 10, 2023
  3. added this to the 1.1.0 milestone on Jan 10, 2023
  4. modified the milestones: 1.1.0, 0.14.0 on Sep 6, 2024
  5. added
    arch-s390x
    on Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    arch-s390xenhancement

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions