cppcoro icon indicating copy to clipboard operation
cppcoro copied to clipboard

fatal error: 'stddef.h' file not found

Open menkaur opened this issue 1 year ago • 1 comments

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

menkaur avatar Jan 22 '23 18:01 menkaur