llvm-project icon indicating copy to clipboard operation
llvm-project copied to clipboard

[clang][ExtractAPI] show error message for not found SwiftSyntaxMacroMap during Docc build

Open eunryu93 opened this issue 1 year ago • 5 comments

Description

[Prerequisites] using TCA Library, ver1.12.1

[step] 1] Delete derived data, using this command

  • rm -rf ~/Library/Developer/Xcode/DerivedData

2] project clean 3] Docc Build -> Product -> Build Documentation

[result] Build Faild with this message.

fetal error: module map file '~~/GenerateModuleMaps-iphoneos/SwiftSyntaxMacros.modulemap' not found

clang error: unable to execute command: Segmentation fault: 11 clang error: clang fronted command failed due to signal

Help me....

Steps to Reproduce

[Prerequisites] using TCA Library, ver1.12.1

[step] 1] Delete derived data, using this command

  • rm -rf ~/Library/Developer/Xcode/DerivedData

2] project clean 3] Docc Build -> Product -> Build Documentation

[result] Build Faild with this message.

fetal error: module map file '~~/GenerateModuleMaps-iphoneos/SwiftSyntaxMacros.modulemap' not found

clang error: unable to execute command: Segmentation fault: 11 clang error: clang fronted command failed due to signal

eunryu93 avatar Aug 08 '24 02:08 eunryu93

Synced to Apple’s issue tracker as rdar://133432695

ahoppen avatar Aug 08 '24 03:08 ahoppen

@ahoppen oh.. I try finded issue for apple developer forums, but I don't finded issue content... so.. Could you please give me the URL for that content?

eunryu93 avatar Aug 08 '24 04:08 eunryu93

The comment was automated that this GitHub issue was synced to Apple’s internal issue tracker. There was no action necessary from you.

The issue appears to be in docc because docc shouldn’t cause a crash, independent of swift-syntax. I’m moving the issue to that repo.

ahoppen avatar Aug 08 '24 20:08 ahoppen

This error happens before DocC is ever invoked. It looks like it's the clang -extract-api command that fails with an error.

d-ronnqvist avatar Aug 09 '24 08:08 d-ronnqvist

cc @daniel-grumberg

d-ronnqvist avatar Aug 09 '24 08:08 d-ronnqvist