swiftlang / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies. This fork is used to manage Swift’s stable releases of Clang as well as support the Swift project.
https://llvm.org
Other
1.12k stars 330 forks source link

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

Open eunryu93 opened 3 months ago

eunryu93 commented 3 months ago

Description

[Prerequisites] using TCA Library, ver1.12.1

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

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

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

ahoppen commented 3 months ago

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

eunryu93 commented 3 months ago

@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?

ahoppen commented 3 months ago

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.

d-ronnqvist commented 3 months ago

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 commented 3 months ago

cc @daniel-grumberg