Ninja assumes usage of /include/c++/10

24 views
Skip to first unread message

Alexander Lanin

unread,
May 14, 2021, 11:47:33 AMMay 14
to ninja-build
Hi,

I'm using clang++-10 and for some reason ninja seems to assume I'm using /include/c++/10, which I don't even have. In fact clang++-10 seems to use /usr/include/c++/10.

The effect is that everything is always dirty:
ninja explain: /include/c++/10/new is dirty
ninja explain: /include/c++/10/exception is dirty

I'm not sure this is the right place to ask for help or what else I should provide. I've tried ninja 1.10.0 and latest one from git.

I'm using conan and C++20. both for the first time. Never had this problem before. However I cannot figure out how this is connected.

The full command as visible in compile_commands: "/bin/clang++-10 -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL -I../ -isystem /home/alex/.conan/data/openssl/1.1.1j/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include -isystem /home/alex/.conan/data/catch2/2.13.4/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -isystem /home/alex/.conan/data/abseil/20200923.3/_/_/package/03105ea7c61715e5c523b3a521f78cf27f6d76cf/include -isystem /home/alex/.conan/data/libb2/20190723/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include -isystem /home/alex/.conan/data/libb2/20190723/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include/libb2 -isystem /home/alex/.conan/data/spdlog/1.8.5/_/_/package/b79bb72ca326311026f040c5863a603320d44b09/include -isystem /home/alex/.conan/data/fmt/7.1.3/_/_/package/03105ea7c61715e5c523b3a521f78cf27f6d76cf/include  -m64 -g -std=c++2a -o CMakeFiles/gpcache_lib.dir/SyscallEventCreator.cpp.o -c /home/alex/gpcache/SyscallEventCreator.cpp"

Here is an extract from build.ninja:
build CMakeFiles/gpcache.dir/gpcache.cpp.o: CXX_COMPILER__gpcache_Debug ../gpcache.cpp || cmake_object_order_depends_target_gpcache
  DEFINES = -DSPDLOG_COMPILED_LIB -DSPDLOG_FMT_EXTERNAL
  DEP_FILE = CMakeFiles/gpcache.dir/gpcache.cpp.o.d
  FLAGS = -m64 -g -std=c++2a
  INCLUDES = -I../ -isystem /home/alex/.conan/data/openssl/1.1.1j/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include -isystem /home/alex/.conan/data/catch2/2.13.4/_/_/package/5ab84d6acfe1f23c4fae0ab88f26e3a396351ac9/include -isystem /home/alex/.conan/data/abseil/20200923.3/_/_/package/03105ea7c61715e5c523b3a521f78cf27f6d76cf/include -isystem /home/alex/.conan/data/libb2/20190723/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include -isystem /home/alex/.conan/data/libb2/20190723/_/_/package/72c3493baf37f6fd0e9e64ab36754d5a2f6479a9/include/libb2 -isystem /home/alex/.conan/data/spdlog/1.8.5/_/_/package/b79bb72ca326311026f040c5863a603320d44b09/include -isystem /home/alex/.conan/data/fmt/7.1.3/_/_/package/03105ea7c61715e5c523b3a521f78cf27f6d76cf/include
  OBJECT_DIR = CMakeFiles/gpcache.dir
  OBJECT_FILE_DIR = CMakeFiles/gpcache.dir

Obviously I have already searched and have not found a single reference to /include/c++/10 anywhere.

Regards,
Alexander

jha...@gmail.com

unread,
May 14, 2021, 11:50:25 AMMay 14
to ninja-build
I think you're running into https://github.com/ninja-build/ninja/issues/1330
Reply all
Reply to author
Forward
0 new messages