Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
menkaur opened this issue Jan 22, 2023 · 1 comment
Open

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

menkaur opened this issue Jan 22, 2023 · 1 comment

Comments

@menkaur
Copy link

menkaur commented Jan 22, 2023

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

@Miyamoto-Konatsu
Copy link

same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants