tayloraswift / swift-unidoc

scalable, multi-package documentation engine for the swift language
https://swiftinit.org/docs/swift-unidoc
Mozilla Public License 2.0
53 stars 1 forks source link

cannot dump raw symbol graph for _NIODataStructures on macOS #211

Open tayloraswift opened 4 months ago

tayloraswift commented 4 months ago

for some reason, swift symbolgraph-extract is choking on swift-nio at 2.65.0

swift symbolgraph-extract -module-name _NIODataStructures -target arm64-apple-macosx14.0 -minimum-access-level internal -output-dir .testing/artifacts -include-spi-symbols -skip-inherited-docs -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -emit-extension-block-symbols -pretty-print -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/.build.ssgc/debug -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/.build.ssgc/checkouts/swift-atomics/Sources/_AtomicsShims/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/.build.ssgc/checkouts/swift-system/Sources/CSystem/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOAtomics/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOAtomics/src -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIODarwin/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOLLHTTP/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOLinux/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOSHA1/include -I /Users/runner/work/swift-unidoc/swift-unidoc/.testing/checkouts/swift-nio/Sources/CNIOWindows/include

even weirder, it doesn’t print any error messages. i suspect we are running into a Swift compiler bug :(

tayloraswift commented 4 months ago

okay, so this is a confirmed Swift compiler crash; yet another manifestation of https://github.com/apple/swift/issues/68767

Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some Weird same-type requirements?
Interface type: some zsh: illegal hardware instruction  swift symbolgraph-extract -module-name _NIODataStructures -target   internal 
Guest@Diannas-Mac-mini swift-unidoc % 
Guest@Diannas-Mac-mini swift-unidoc % 
Guest@Diannas-Mac-mini swift-unidoc % echo $?
132