-
Notifications
You must be signed in to change notification settings - Fork 2
Closed
Description
awtfdb
fails to zig build
on macOS.
Errors raised point to system headers and several macros (strlcpy
, __darwin_obsz
, _USE_FORTIFY_LEVEL
) as well as conflicting types:
~/.cache/zig/p/<id>/src/strlcpy.c:31:1: error: expected parameter declarator
strlcpy(char *dst, const char *src, size_t siz)
^
~/.cache/zig/p/<id>/src/strlcpy.c:31:1: error: expected ')'
strlcpy(char *dst, const char *src, size_t siz)
^
~/.cache/zig/p/<id>/src/strlcpy.c:31:1: error: type specifier missing,
defaults to 'int'; ISO C99 and later do not support implicit int
strlcpy(char *dst, const char *src, size_t siz)
^
~/.cache/zig/p/<id>/src/strlcpy.c:31:1: error: conflicting types for '__builtin___strlcpy_chk'
strlcpy(char *dst, const char *src, size_t siz)
^
Build Summary: 3/8 steps succeeded; 1 failed (disable with --summary none)
install transitive failure
├─ install wrapper-awtfdb transitive failure
│ └─ zig build-exe wrapper-awtfdb Debug native transitive failure
│ └─ zig build-lib libmagic Debug native 4 errors
└─ link the utils transitive failure
└─ zig build-exe wrapper-awtfdb Debug native (+6 more reused dependencies)
System details
- OS:
macOS
- System version:
14.6
- Xcode Command Line Tools version:
2408
- Zig version:
12.1
- Arch:
arm64
- Awtfdb version:
0.3.0
Metadata
Metadata
Assignees
Labels
No labels