79220646

Date: 2024-11-24 17:05:25
Score: 0.5
Natty:
Report link

I've solved the problem myself.

The problem is caused by the wrong -isystem directories. I should include ${TOOLCHAIN_LLVM_DIR}/lib/clang/${LLVM_VERSION_MAJOR}/include instead of /usr/include/linux. In the stddef.h located in the former directory, several basic types such as ptrdiff_t is defined, and both the two directories contains stdc headers stddef.h.

Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Nekomiya Kasane