error: use of undeclared identifier '__NR_ftruncate'

Question./build-infer.sh -y clang [...] [ 48%] Building CXX object compiler-rt/lib/sanitizer_common/CMakeFiles/RTSanitizerCommonCoverage.i386.dir/sanitizer_coverage_libcdep_new.cpp.o /home/fdbai/grecale/projects/infer/facebook-clang-plugins/clang/src/download/llvm-project/compiler-rt/lib/sanitizer_common/sanitizer_linux.cpp:279:44: error: use of undeclared identifier '__NR_ftruncate' 279 | HANDLE_EINTR(res, (sptr)internal_syscall(SYSCALL(ftruncate), fd, | ^ Answersudo apt install linux-libc-dev:i386 gcc-multilib

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> | ^~~~~~~~~~~~~ Answersudo ln -sf /usr/include/x86_64-linux-gnu/asm /usr/include/asm

Thread finding failed with -1 errno=9

Questionexport LD_PRELOAD="/lib/libtcmalloc.so" env HEAPCHECK=normal ./leak WARNING: Perftools heap leak checker is active -- Performance may suffer Thread finding failed with -1 errno=9 Could not find thread stacks. Will likely report false leak positives. Bus error AnswerCaused by using old version of gperftools The following confirmed to be working

ld.bfd: unrecognized option '--icf=all'

Question/opt/toolchain/arm/arm-buildroot-linux-gnueabihf/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld.bfd: unrecognized option '--icf=all' /opt/toolchain/arm/arm-buildroot-linux-gnueabihf/bin/../lib/gcc/arm-buildroot-linux-gnueabihf/9.3.0/../../../../arm-buildroot-linux-gnueabihf/bin/ld.bfd: use the --help option for usage information Answergn/standalone/BUILD.gn @@ -445,7 +445,6 @@ config("release") { } else if (!is_win && !is_wasm) { ldflags = [ "-Wl,--gc-sections", - "-Wl,--icf=all", "-Wl,-O1", ] }

Failed to start prometheus.service: Unit prometheus.service is masked

Questionsudo systemctl restart prometheus Failed to restart prometheus.service: Unit prometheus.service is masked. Answersystemctl status prometheus ● prometheus.service Loaded: masked (Reason: Unit prometheus.service is masked.) Active: inactive (dead) ls -l /etc/systemd/system/prometheus.service lrwxrwxrwx 1 root root 9 Jun 25 2022 /etc/systemd/system/prometheus.service -> /dev/null sudo apt install -y prometheus
0%