Re: Indexing broken for one project
Re: Indexing broken for one project
- Subject: Re: Indexing broken for one project
- From: Gabriel Zachmann via Cocoa-dev <email@hidden>
- Date: Sat, 12 Feb 2022 15:24:58 +0100
Here is another attempt at getting to the root of the indexer problem I am
experiencing.
First of all, thanks a lot for your helpful hints, albeit they did not resolve
the issue.
Here is - for recap - the description in a nutshell of my original post:
>>>>
>>>> A few weeks ago, indexing in Xcode 13 stopped working for one of my
>>>> projects.
>>>> So, for instance, "Jump to Definition" does not work any more.
>>>> I don't know what stopped indexing to work.
>>>>
I have now tried executing the command you can find in the log window of Xcode
(Report Navigator),
which leads to all the crashes.
(Below, you can find the command for my case.)
The output in the shell was this:
clang: error: unable to execute command: Segmentation fault: 11
clang: error: clang frontend command failed due to signal (use -v to see
invocation)
Apple clang version 13.0.0 (clang-1300.0.29.30)
Target: x86_64-apple-macos10.14
Thread model: posix
InstalledDir:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
clang: error: unable to execute command: Segmentation fault: 11
clang: note: diagnostic msg: Error generating preprocessed source(s).
So, I issued the command again with -v, which revealed the "invocation".
(See below that invocation command.)
Issuing that clang command produced just this error message:
clang -cc1 version 13.0.0 (clang-1300.0.29.30) default target
x86_64-apple-darwin21.2.0
Segmentation fault
So, I am nowhere closer to the root of the problem.
Does anyone have an idea, how i might get more information?
Best regards, Gabriel
Encl.:
Orig. clang command as reported in the Report Navigator:
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
-x objective-c -target x86_64-apple-macos10.14 -fmessage-length=0
-fdiagnostics-show-note-include-stack -fmacro-backtrace-limit=0 -std=gnu11
-fobjc-arc -fobjc-weak -fmodules -fmodules-cache-path=/tmp/ModuleCache.noindex
-fmodules-prune-interval400 -fmodules-prune-after45600
-Wnon-modular-include-in-framework-module
-Werror=non-modular-include-in-framework-module -Wno-trigraphs -fpascal-strings
-O0 -fno-common -Wno-missing-field-initializers -Wno-missing-prototypes
-Werror=return-type -Wdocumentation -Wunreachable-code
-Wno-implicit-atomic-properties -WerrorÞprecated-objc-isa-usage
-Wno-objc-interface-ivars -Werror=objc-root-class -Wno-arc-repeated-use-of-weak
-Wimplicit-retain-self -Wduplicate-method-match -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 -Wshadow
-Wno-four-char-constants -Wconversion -Wconstant-conversion -Wint-conversion
-Wbool-conversion -Wenum-conversion -Wfloat-conversion
-Wnon-literal-null-conversion -Wobjc-literal-conversion -Wsign-compare
-Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector
-Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations
-DDEBUG=1 -DDEBUG=1 -DSTAND_ALONE_APP=1 -DOBJC_OLD_DISPATCH_PROTOTYPES=0
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
-fasm-blocks -fstrict-aliasing -Wprotocol -Wdeprecated-declarations -g
-Wno-sign-conversion -Winfinite-recursion -Wcomma -Wblock-capture-autoreleasing
-Wstrict-prototypes -Wno-semicolon-before-method-body -Wunguarded-availability
-index-store-path /tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/DataStore
-iquote
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-generated-files.hmap
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-own-target-headers.hmap
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-all-target-headers.hmap
-iquote
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-project-headers.hmap
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug/include
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources-normal/x86_64
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources/x86_64
-I/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources
-F/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug
-fsyntax-only /Users/zach/Code/ArtSaver/ArtSaverApp/AppDelegate.m -o
/tmp/ArtSaver.build/Debug/ArtSaverApp.build/Objects-normal/x86_64/AppDelegate.o
-Xclang -fallow-pcm-with-compiler-errors -ivfsoverlay
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/regular-to-index-overlay.yaml
-ivfsoverlay
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/index-to-regular-overlay.yaml
-fretain-comments-from-system-headers -fspell-checking -ferror-limit
-working-directory=/Users/zach/Code/ArtSaver -Xclang
-detailed-preprocessing-record -fmodules-validate-system-headers
-Wno-non-modular-include-in-framework-module -Wno-incomplete-umbrella
Invocation of the clang command proper:
"/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang"
-cc1 -triple x86_64-apple-macosx10.14.0 -Wundef-prefix=TARGET_OS_
-Wdeprecated-objc-isa-usage -WerrorÞprecated-objc-isa-usage
-Werror=implicit-function-declaration -fsyntax-only -disable-free
-disable-llvm-verifier -discard-value-names -main-file-name AppDelegate.m
-mrelocation-model pic -pic-level 2 -mframe-pointer=all -fno-strict-return
-fno-rounding-math -munwind-tables -target-sdk-version.1
-fvisibility-inlines-hidden-static-local-var -target-cpu penryn -tune-cpu
generic -debug-info-kind=standalone -dwarf-version=4 -debugger-tuning=lldb
-target-linker-version 711 -v -resource-dir
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0
-working-directory /Users/zach/Code/ArtSaver -index-store-path
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/DataStore -o
/tmp/ArtSaver.build/Debug/ArtSaverApp.build/Objects-normal/x86_64/AppDelegate.o
-isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk
-iquote
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-generated-files.hmap
-iquote
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-project-headers.hmap
-ivfsoverlay
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/regular-to-index-overlay.yaml
-ivfsoverlay
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/index-to-regular-overlay.yaml
-D DEBUG=1 -D DEBUG=1 -D STAND_ALONE_APP=1 -D OBJC_OLD_DISPATCH_PROTOTYPES=0
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-own-target-headers.hmap
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/ArtSaverApp-all-target-headers.hmap
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug/include
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources-normal/x86_64
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources/x86_64
-I
/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Intermediates.noindex/ArtSaver.build/Debug/ArtSaverApp.build/DerivedSources
-F/tmp/ArtSaver-hcwtwqkubldekzfijehvpaeowamp/Index/Build/Products/Debug
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/local/include
-internal-isystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/clang/13.0.0/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk/usr/include
-internal-externc-isystem
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/include
-O0 -Wnon-modular-include-in-framework-module
-Werror=non-modular-include-in-framework-module -Wno-trigraphs
-Wno-missing-field-initializers -Wno-missing-prototypes -Werror=return-type
-Wdocumentation -Wunreachable-code -Wno-implicit-atomic-properties
-WerrorÞprecated-objc-isa-usage -Wno-objc-interface-ivars
-Werror=objc-root-class -Wno-arc-repeated-use-of-weak -Wimplicit-retain-self
-Wduplicate-method-match -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 -Wshadow -Wno-four-char-constants -Wconversion
-Wconstant-conversion -Wint-conversion -Wbool-conversion -Wenum-conversion
-Wfloat-conversion -Wnon-literal-null-conversion -Wobjc-literal-conversion
-Wsign-compare -Wshorten-64-to-32 -Wpointer-sign -Wno-newline-eof -Wno-selector
-Wno-strict-selector-match -Wundeclared-selector -Wdeprecated-implementations
-Wprotocol -Wdeprecated-declarations -Wno-sign-conversion -Winfinite-recursion
-Wcomma -Wblock-capture-autoreleasing -Wstrict-prototypes
-Wno-semicolon-before-method-body -Wunguarded-availability
-Wno-non-modular-include-in-framework-module -Wno-incomplete-umbrella
-Wno-reorder-init-list -Wno-implicit-int-float-conversion -Wno-c99-designator
-Wno-final-dtor-non-final-class -Wno-extra-semi-stmt
-Wno-misleading-indentation -Wno-quoted-include-in-framework-header
-Wno-implicit-fallthrough -Wno-enum-enum-conversion -Wno-enum-float-conversion
-Wno-elaborated-enum-base -std=gnu11 -fdebug-compilation-dir
/Users/zach/Code/ArtSaver -ferror-limit 10 -fmacro-backtrace-limit 0
-stack-protector 1 -mdarwin-stkchk-strong-link -fblocks
-fencode-extended-block-signature -fregister-global-dtors-with-atexit
-fgnuc-version=4.2.1 -fmodules -fimplicit-module-maps
-fmodules-cache-path=/tmp/ModuleCache.noindex -fmodules-prune-interval400
-fmodules-prune-after45600 -fmodules-validate-system-headers
-fobjc-runtime=macosx-10.14.0 -fobjc-arc -fobjc-weak -fobjc-exceptions
-fexceptions -fpascal-strings -fmax-type-align
-fdiagnostics-show-note-include-stack -fcolor-diagnostics -fasm-blocks
-fretain-comments-from-system-headers -fallow-pcm-with-compiler-errors
-detailed-preprocessing-record -clang-vendor-feature=+nullptrToBoolConversion
-clang-vendor-feature=+messageToSelfInClassMethodIdReturnType
-clang-vendor-feature=+disableInferNewAvailabilityFromInit
-clang-vendor-feature=+disableNeonImmediateRangeCheck
-clang-vendor-feature=+disableNonDependentMemberExprInCurrentInstantiation
-fno-odr-hash-protocols -clang-vendor-feature=+revert09abecef7bbf -mllvm
-disable-aligned-alloc-awareness=1 -mllvm -enable-dse-memoryssa=0 -x
objective-c /Users/zach/Code/ArtSaver/ArtSaverApp/AppDelegate.m
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden