lewissbaker / cppcoro

A library of C++ coroutine abstractions for the coroutines TS
MIT License
3.36k stars 462 forks source link

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

Open menkaur opened 1 year ago

menkaur commented 1 year ago

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 -DGLIBCXX -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

          ^~~~~~~~~~

1 error generated.

Os: Arch Linux, 6.1.7 clang version 15.0.7

Miyamoto-Konatsu commented 1 year ago

same problem

AVNechaev commented 2 weeks ago

Same for me 6.4.16-5-MANJARO clang version 17.0.6