Skip to content

fatal error: 'stddef.h' file not found #214

Open
@menkaur

Description

I'm getting following error when trying to build cppcoro with ./build-clang.sh script:

FAILED: src/CMakeFiles/cxx_static.dir/regex.cpp.o
/home/menkaur/github/cppcoro/build/llvm-install/bin/clang++ -DNDEBUG -D_LIBCPP_BUILDING_LIBRARY -D_LIBCPP_HAS_COMMENT_LIB_PRAGMA -D_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER -I/home/menkaur/github/cppcoro/build/libcxx/include/c++build -I/home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include -O3 -DNDEBUG -D__GLIBCXX__ -DLIBSTDCXX -std=c++11 -nostdinc++ -fvisibility-inlines-hidden -fvisibility=hidden -Wall -Wextra -W -Wwrite-strings -Wno-unused-parameter -Wno-long-long -Werror=return-type -Wextra-semi -Wno-user-defined-literals -Wno-covered-switch-default -Wno-ignored-attributes -Wno-error -MD -MT src/CMakeFiles/cxx_static.dir/regex.cpp.o -MF src/CMakeFiles/cxx_static.dir/regex.cpp.o.d -o src/CMakeFiles/cxx_static.dir/regex.cpp.o -c /home/menkaur/github/cppcoro/tools/llvm-project/libcxx/src/regex.cpp
In file included from /home/menkaur/github/cppcoro/tools/llvm-project/libcxx/src/regex.cpp:9:
In file included from /home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include/regex:762:
In file included from /home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include/stdexcept:45:
In file included from /home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include/exception:80:
/home/menkaur/github/cppcoro/tools/llvm-project/libcxx/include/cstddef:44:15: fatal error: 'stddef.h' file not found
#include_next <stddef.h>
^~~~~~~~~~
1 error generated.

Os: Arch Linux, 6.1.7
clang version 15.0.7

Activity

Miyamoto-Konatsu

Miyamoto-Konatsu commented on Jul 8, 2023

@Miyamoto-Konatsu

same problem

AVNechaev

AVNechaev commented on Aug 22, 2024

@AVNechaev

Same for me
6.4.16-5-MANJARO
clang version 17.0.6

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

      Participants

      @menkaur@Miyamoto-Konatsu@AVNechaev

      Issue actions

        fatal error: 'stddef.h' file not found · Issue #214 · lewissbaker/cppcoro