fatal error: 'asm/errno.h' file not foundg

Question

./build-infer.sh -y clang
[...]
[ 34%] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommon.i386.dir/sanitizer_errno.cpp.o
[ 34%] Copying CXX header __system_error/errc.h
In file included from /projects/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_errno.cpp:19:
In file included from /usr/include/errno.h:28:
In file included from /usr/include/bits/errno.h:26:
/usr/include/linux/errno.h:1:10: fatal error: 'asm/errno.h' file not found
    1 | #include <asm/errno.h>
      |          ^~~~~~~~~~~~~

Answer

sudo ln -sf /usr/include/x86_64-linux-gnu/asm /usr/include/asm
0%