Skip to content

netbsd missing system headers #24737

@Rexicon226

Description

@Rexicon226

Trying to compile TSan fails with:

$ zig build-exe test.zig -target x86_64-netbsd -fsanitize-thread
error: sub-compilation of libtsan failed
    stage3/lib/zig/libc/include/generic-netbsd/sys/lua.h:38:10: note: 'lua.h' file not found with <angled> include; use "quotes" instead
#include <lua.h>  /* for lua_State */
         ^
    stage3/lib/zig/libtsan/sanitizer_common/sanitizer_platform_limits_netbsd.cpp:50:10: note: in file included from stage3/lib/zig/libtsan/sanitizer_common/sanitizer_platform_limits_netbsd.cpp:50:
#include <sys/lua.h>
         ^
    stage3/lib/zig/libtsan/sanitizer_common/sanitizer_platform_limits_netbsd.cpp:94:10: note: 'sys/soundcard.h' file not found
#include <sys/soundcard.h>
         ^~~~~~~~~~~~~~~~~~

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugObserved behavior contradicts documented or intended behaviorlibcIssues related to libzigc and Zig's vendored libc code.os-netbsd

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions