cppcoro
cppcoro copied to clipboard
build-clang.sh is failing
1 error generated. [3/78] Building CXX object src/CMakeFiles/cxx_static.dir/algorithm.cpp.o FAILED: src/CMakeFiles/cxx_static.dir/algorithm.cpp.o /home/jdavis/repo/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 -Iinclude/c++build -I/home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/include -O3 -DNDEBUG -D__GLIBCXX__ -DLIBSTDCXX -std=c++11 -nostdinc++ -fvisibility-inlines-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 -fvisibility=hidden -MD -MT src/CMakeFiles/cxx_static.dir/algorithm.cpp.o -MF src/CMakeFiles/cxx_static.dir/algorithm.cpp.o.d -o src/CMakeFiles/cxx_static.dir/algorithm.cpp.o -c /home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/src/algorithm.cpp In file included from /home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/src/algorithm.cpp:9: In file included from /home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/include/algorithm:639: In file included from /home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/include/initializer_list:46: /home/jdavis/repo/github/cppcoro/tools/llvm-project/libcxx/include/cstddef:44:15: fatal error: 'stddef.h' file not found #include_next <stddef.h> ^~~~~~~~~~
This is typically due to clang not finding the platform includes.
Does it work if you change the ninja
command here to just ninja install
to get it to build/install everything clang-related rather than just those specific targets?
Alternatively, you may need to add your platform headers to the include path. The location of these may depend on your platform.