facebook / facebook/infer

infer run return err clang-15: error: unknown argument: '-ivfsstatcache'

Open
#1,749 22 comments 3 reactions 0 assignees View on GitHub
pinned
Dominant language
OCaml
Stars
15.7k
Forks
2.1k
Avg merge
19h 36m
Merged PRs (30d)
13

Description

infer --version
Infer version v1.1.0-7fb6d4011
Copyright 2009 - present Facebook. All Rights Reserved.

Mac mini
Apple M1
Ventura 13.3

xcodebuild -version
Xcode 14.3
Build version 14E222b

command
infer run --keep-going --skip-analysis-in-path Pods --compilation-database-escaped compile_commands.json

log:
```Error message:
clang-15: error: unknown argument: '-ivfsstatcache'

*** Infer needs a working compilation command to run.

Usage Error: Failed to execute compilation command:
'/usr/local/lib/infer/infer/bin/../../facebook-clang-plugins/clang/install/bin/clang'
@/Users/Shared/Jenkins/workspace/ios_test/infer-out/tmp/cdb_clang_args.tmp.89ff0b.txt
-fsyntax-only -fno-builtin ++Contents of '/Users/Shared/Jenkins/workspace/ios_test/infer-out/tmp/cdb_clang_args.tmp.89ff0b.txt':
-x c -ivfsstatcache /Users/xxx/Library/Developer/Xcode/DerivedData/SDKStatCaches.noindex/iphoneos16.4-20E238-.sdkstatcache -target arm64-apple-ios9.0 -fmessage-length\=0 -fdiagnostics-show-note-include-stack -fmacro-backtrace-limit\=0 -std\=gnu11 -fmodules -gmodules -fmodules-cache-path\=/Users/xxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -fmodules-prune-interval\=86400 -fmodules-prune-after\=345600 -fbuild-session-file\=/Users/xxx/Library/Developer/Xcode/DerivedData/ModuleCache.noindex/Session.modulevalidation -fmodules-validate-once-per-build-session -Wnon-modular-include-in-framework-module -Werror\=non-modular-include-in-framework-module -fmodule-name\=LzmaSDK_ObjC -Wno-trigraphs -fpascal-strings -O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes -Werror\=return-type -Wdocumentation -Wunreachable-code -Werror\=deprecated-objc-isa-usage -Werror\=objc-root-class -Wno-missing-braces -Wparentheses -Wswitch -Wunused-function -Wno-unused-label -Wno-unused-parameter -Wunused-variable -Wunused-value -Wempty-body -Wuninitialized -Wconditional-uninitialized -Wno-unknown-pragmas -Wno-shadow -Wno-four-char-constants -Wno-conversion -Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion -Wno-float-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-implicit-fallthrough -DPOD_CONFIGURATION_DEBUG\=1 -DDEBUG\=1 -DCOCOAPODS\=1 -isysroot /Applications/Xcode.app/Contents/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS16.4.sdk -fstrict-aliasing -Wdeprecated-declarations -g -Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability -iquote /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/LzmaSDK_ObjC-generated-files.hmap -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/LzmaSDK_ObjC-own-target-headers.hmap -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/LzmaSDK_ObjC-all-non-framework-target-headers.hmap -ivfsoverlay /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/all-product-headers.yaml -iquote /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/LzmaSDK_ObjC-project-headers.hmap -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Products/Debug-iphoneos/LzmaSDK-ObjC/include -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/DerivedSources-normal/arm64 -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/DerivedSources/arm64 -I/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/DerivedSources -F/Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Products/Debug-iphoneos/LzmaSDK-ObjC -DNS_FORMAT_ARGUMENT\(A\)\= -D_Nullable_result\=_Nullable -DLZMASDKOBJC\=1 -DLZMASDKOBJC_OMIT_UNUSED_CODE\=1 -w -Xanalyzer -analyzer-disable-all-checks -include /Users/Shared/Jenkins/workspace/ios_test/Pods/Target\ Support\ Files/LzmaSDK-ObjC/LzmaSDK-ObjC-prefix.pch -MMD -MT dependencies -MF /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/Objects-normal/arm64/Ppmd7.d --serialize-diagnostics /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/Objects-normal/arm64/Ppmd7.dia -c /Users/Shared/Jenkins/workspace/ios_test/Pods/LzmaSDK-ObjC/lzma/C/Ppmd7.c -o /Users/xxx/Library/Developer/Xcode/DerivedData/testiOS-etqfnkjdhckdayfrbdjnysttvzvd/Build/Intermediates.noindex/LzmaSDK-ObjC.build/Debug-iphoneos/LzmaSDK-ObjC.build/Objects-normal/arm64/Ppmd7.o

```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.