Skip to content

Instantly share code, notes, and snippets.

@WowbaggersLiquidLunch
Created November 22, 2021 06:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WowbaggersLiquidLunch/c6e1d931bc184937c557e985ec8d4d92 to your computer and use it in GitHub Desktop.
Save WowbaggersLiquidLunch/c6e1d931bc184937c557e985ec8d4d92 to your computer and use it in GitHub Desktop.
EmitSwiftModule normal x86_64 (in target 'external declaration of internal SILFunction not allowed' from project 'external declaration of internal SILFunction not allowed')
cd /Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types /Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/Sources/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/external_declaration_of_internal_SILFunction_not_allowed.swift -target x86_64-apple-macos12.0 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -I /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -new-driver-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/swift-overrides.hmap -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug/include -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources-normal/x86_64 -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources/x86_64 -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -Xcc -working-directory/Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed -module-name external_declaration_of_internal_SILFunction_not_allowed -target-sdk-version 12.1.0 -emit-module-doc-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftdoc -emit-module-source-info-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftsourceinfo -emit-objc-header-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external\ declaration\ of\ internal\ SILFunction\ not\ allowed-Swift.h -parse-as-library -o /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftmodule -emit-abi-descriptor-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.abi.json
SIL verification failed: external declaration of internal SILFunction not allowed: F->isAvailableExternally()
In function:
// squareOfDistance #1 @Sendable (between:) in Point.squareOfEuclideanDistance(to:)
sil shared [serializable] @$s56external_declaration_of_internal_SILFunction_not_allowed5PointV25squareOfEuclideanDistance2toSdAC_tYaF0ijL0L_7betweenS2d_Sdt_tYbF : $@convention(thin) @Sendable (Double, Double) -> Double
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-frontend -frontend -emit-module -experimental-skip-non-inlinable-function-bodies-without-types "/Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed/Sources/external declaration of internal SILFunction not allowed/external_declaration_of_internal_SILFunction_not_allowed.swift" -target x86_64-apple-macos12.0 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -I /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -new-driver-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/swift-overrides.hmap" -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug/include -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources-normal/x86_64" -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources/x86_64" -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources" -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -Xcc "-working-directory/Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed" -module-name external_declaration_of_internal_SILFunction_not_allowed -target-sdk-version 12.1.0 -emit-module-doc-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftdoc" -emit-module-source-info-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftsourceinfo" -emit-objc-header-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external declaration of internal SILFunction not allowed-Swift.h" -parse-as-library -o "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftmodule" -emit-abi-descriptor-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.abi.json"
1. Apple Swift version 5.6-dev (LLVM 27222cde774bd6b, Swift 17f1cf92973d2c1)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for module external_declaration_of_internal_SILFunction_not_allowed)
4. While verifying SIL function "@$s56external_declaration_of_internal_SILFunction_not_allowed5PointV25squareOfEuclideanDistance2toSdAC_tYaF0ijL0L_7betweenS2d_Sdt_tYbF".
for 'squareOfDistance(between:)' (at /Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed/Sources/external declaration of internal SILFunction not allowed/external_declaration_of_internal_SILFunction_not_allowed.swift:24:3)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010fe28cd7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x000000010fe27ef5 llvm::sys::RunSignalHandlers() + 85
2 swift-frontend 0x000000010fe29310 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff815c21e2d _sigtramp + 29
4 swift-frontend 0x000000010b2c16a7 swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type, swift::TypeExpansionContext) + 391
5 libsystem_c.dylib 0x00007ff815b58d10 abort + 123
6 swift-frontend 0x000000010b3345c1 (anonymous namespace)::SILVerifier::_require(bool, llvm::Twine const&, std::__1::function<void ()> const&) + 1377
7 swift-frontend 0x000000010b334f5a (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction*) + 602
8 swift-frontend 0x000000010b333983 swift::SILModule::verify() const + 275
9 swift-frontend 0x000000010b6ddf35 swift::Lowering::SILGenModule::~SILGenModule() + 149
10 swift-frontend 0x000000010b6e819f swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 5407
11 swift-frontend 0x000000010b7b6726 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> > (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 134
12 swift-frontend 0x000000010b6eb94d llvm::Expected<swift::ASTLoweringRequest::OutputType> swift::Evaluator::getResultUncached<swift::ASTLoweringRequest>(swift::ASTLoweringRequest const&) + 413
13 swift-frontend 0x000000010b6e8328 swift::performASTLowering(swift::ModuleDecl*, swift::Lowering::TypeConverter&, swift::SILOptions const&) + 168
14 swift-frontend 0x000000010b0763cd performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 2141
15 swift-frontend 0x000000010b06b4a5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3845
16 swift-frontend 0x000000010b01e169 swift::mainEntry(int, char const**) + 553
17 dyld 0x000000012401c4fe start + 462
18 dyld 000000000000000000 start + 18446744068810489040
19 swift-frontend 0x000000010affc000 __dso_handle + 0
error: Abort trap: 6 (in target 'external declaration of internal SILFunction not allowed' from project 'external declaration of internal SILFunction not allowed')
CompileSwift normal x86_64 /Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/Sources/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/external_declaration_of_internal_SILFunction_not_allowed.swift (in target 'external declaration of internal SILFunction not allowed' from project 'external declaration of internal SILFunction not allowed')
cd /Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed
/Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file /Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/Sources/external\ declaration\ of\ internal\ SILFunction\ not\ allowed/external_declaration_of_internal_SILFunction_not_allowed.swift -emit-dependencies-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.d -emit-reference-dependencies-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftdeps -serialize-diagnostics-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.dia -target x86_64-apple-macos12.0 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -I /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity\=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -new-driver-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/swift-overrides.hmap -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug/include -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources-normal/x86_64 -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources/x86_64 -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/DerivedSources -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG\=1 -Xcc -working-directory/Users/jizhuojie/Projects/tests/external\ declaration\ of\ internal\ SILFunction\ not\ allowed -module-name external_declaration_of_internal_SILFunction_not_allowed -target-sdk-version 12.1.0 -parse-as-library -o /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Debug/external\ declaration\ of\ internal\ SILFunction\ not\ allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.o -index-store-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Index/DataStore -index-system-modules
SIL verification failed: external declaration of internal SILFunction not allowed: F->isAvailableExternally()
In function:
// squareOfDistance #1 @Sendable (between:) in Point.squareOfEuclideanDistance(to:)
sil shared [serializable] @$s56external_declaration_of_internal_SILFunction_not_allowed5PointV25squareOfEuclideanDistance2toSdAC_tYaF0ijL0L_7betweenS2d_Sdt_tYbF : $@convention(thin) @Sendable (Double, Double) -> Double
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the project and the crash backtrace.
Stack dump:
0. Program arguments: /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-frontend -frontend -c -primary-file "/Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed/Sources/external declaration of internal SILFunction not allowed/external_declaration_of_internal_SILFunction_not_allowed.swift" -emit-dependencies-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.d" -emit-reference-dependencies-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.swiftdeps" -serialize-diagnostics-path "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.dia" -target x86_64-apple-macos12.0 -enable-objc-interop -sdk /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX12.1.sdk -I /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -I /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug -F /Applications/Xcode-beta.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -enable-testing -g -module-cache-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/ModuleCache.noindex -swift-version 5 -enforce-exclusivity=checked -Onone -D SWIFT_PACKAGE -D DEBUG -D Xcode -new-driver-path /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/bin/swift-driver -serialize-debugging-options -resource-dir /Library/Developer/Toolchains/swift-DEVELOPMENT-SNAPSHOT-2021-11-20-a.xctoolchain/usr/lib/swift -enable-anonymous-context-mangled-names -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/swift-overrides.hmap" -Xcc -I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Products/Debug/include -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources-normal/x86_64" -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources/x86_64" -Xcc "-I/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/DerivedSources" -Xcc -DSWIFT_PACKAGE -Xcc -DDEBUG=1 -Xcc "-working-directory/Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed" -module-name external_declaration_of_internal_SILFunction_not_allowed -target-sdk-version 12.1.0 -parse-as-library -o "/Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Build/Intermediates.noindex/external declaration of internal SILFunction not allowed.build/Debug/external declaration of internal SILFunction not allowed.build/Objects-normal/x86_64/external_declaration_of_internal_SILFunction_not_allowed.o" -index-store-path /Users/jizhuojie/Library/Developer/Xcode/DerivedData/external_declaration_of_internal_SILFunction_not_allowed-glgfynigwabudrczsrxwlecsycrw/Index/DataStore -index-system-modules
1. Apple Swift version 5.6-dev (LLVM 27222cde774bd6b, Swift 17f1cf92973d2c1)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed/Sources/external declaration of internal SILFunction not allowed/external_declaration_of_internal_SILFunction_not_allowed.swift")
4. While verifying SIL function "@$s56external_declaration_of_internal_SILFunction_not_allowed5PointV25squareOfEuclideanDistance2toSdAC_tYaF0ijL0L_7betweenS2d_Sdt_tYbF".
for 'squareOfDistance(between:)' (at /Users/jizhuojie/Projects/tests/external declaration of internal SILFunction not allowed/Sources/external declaration of internal SILFunction not allowed/external_declaration_of_internal_SILFunction_not_allowed.swift:24:3)
Stack dump without symbol names (ensure you have llvm-symbolizer in your PATH or set the environment var `LLVM_SYMBOLIZER_PATH` to point to it):
0 swift-frontend 0x000000010bb9ccd7 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) + 39
1 swift-frontend 0x000000010bb9bef5 llvm::sys::RunSignalHandlers() + 85
2 swift-frontend 0x000000010bb9d310 SignalHandler(int) + 288
3 libsystem_platform.dylib 0x00007ff815c21e2d _sigtramp + 29
4 swift-frontend 0x00000001070356a7 swift::Lowering::TypeConverter::getTypeLowering(swift::Lowering::AbstractionPattern, swift::Type, swift::TypeExpansionContext) + 391
5 libsystem_c.dylib 0x00007ff815b58d10 abort + 123
6 swift-frontend 0x00000001070a85c1 (anonymous namespace)::SILVerifier::_require(bool, llvm::Twine const&, std::__1::function<void ()> const&) + 1377
7 swift-frontend 0x00000001070a8f5a (anonymous namespace)::SILVerifier::visitSILFunction(swift::SILFunction*) + 602
8 swift-frontend 0x00000001070a7983 swift::SILModule::verify() const + 275
9 swift-frontend 0x0000000107451f35 swift::Lowering::SILGenModule::~SILGenModule() + 149
10 swift-frontend 0x000000010745c19f swift::ASTLoweringRequest::evaluate(swift::Evaluator&, swift::ASTLoweringDescriptor) const + 5407
11 swift-frontend 0x000000010752a726 swift::SimpleRequest<swift::ASTLoweringRequest, std::__1::unique_ptr<swift::SILModule, std::__1::default_delete<swift::SILModule> > (swift::ASTLoweringDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::ASTLoweringRequest const&, swift::Evaluator&) + 134
12 swift-frontend 0x000000010745f94d llvm::Expected<swift::ASTLoweringRequest::OutputType> swift::Evaluator::getResultUncached<swift::ASTLoweringRequest>(swift::ASTLoweringRequest const&) + 413
13 swift-frontend 0x000000010745c464 swift::performASTLowering(swift::FileUnit&, swift::Lowering::TypeConverter&, swift::SILOptions const&) + 116
14 swift-frontend 0x0000000106de9dda performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) + 618
15 swift-frontend 0x0000000106ddf4a5 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) + 3845
16 swift-frontend 0x0000000106d92169 swift::mainEntry(int, char const**) + 553
17 dyld 0x000000011a3314fe start + 462
18 dyld 000000000000000000 start + 18446744068975029456
19 swift-frontend 0x0000000106d70000 __dso_handle + 0
error: Abort trap: 6 (in target 'external declaration of internal SILFunction not allowed' from project 'external declaration of internal SILFunction not allowed')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment