Skip to content

debian bookworm image is broken #459

@tibz7

Description

@tibz7

Builds are failing on the swift5.10.1 bookworm. The exact same code is building without issues on ubuntu noble or jammy.
it also build if I use a stock debian image and install manually swift then there is no issues.
If i use the official swift it does not compile.
One of the issue is that libstdc++-12-dev is not present on the ALTHOUGH it is declared on the image... very wierd:

 docker run -it swift:5.10.1-bookworm
root@d49bea354558:/# apt update
Get:1 http://deb.debian.org/debian bookworm InRelease [151 kB]
Get:2 http://deb.debian.org/debian bookworm-updates InRelease [55.4 kB]
Get:3 http://deb.debian.org/debian-security bookworm-security InRelease [48.0 kB]
Get:4 http://deb.debian.org/debian bookworm/main amd64 Packages [8792 kB]
Get:5 http://deb.debian.org/debian bookworm-updates/main amd64 Packages [512 B]
Get:6 http://deb.debian.org/debian-security bookworm-security/main amd64 Packages [250 kB]
Fetched 9297 kB in 1s (8215 kB/s)                    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
1 package can be upgraded. Run 'apt list --upgradable' to see it.

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libstdc++6/stable,now 12.2.0-14 amd64 [installed,automatic]

That can easily be fixed:

root@d49bea354558:/# apt install libstdc++-12-dev
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Suggested packages:
  libstdc++-12-doc
The following NEW packages will be installed:
  libstdc++-12-dev
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 2046 kB of archives.
After this operation, 19.9 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bookworm/main amd64 libstdc++-12-dev amd64 12.2.0-14 [2046 kB]
Fetched 2046 kB in 0s (7689 kB/s)         
debconf: delaying package configuration, since apt-utils is not installed
Selecting previously unselected package libstdc++-12-dev:amd64.
(Reading database ... 17623 files and directories currently installed.)
Preparing to unpack .../libstdc++-12-dev_12.2.0-14_amd64.deb ...
Unpacking libstdc++-12-dev:amd64 (12.2.0-14) ...
Setting up libstdc++-12-dev:amd64 (12.2.0-14) ...
root@d49bea354558:/# apt list --installed | grep libstdc++

WARNING: apt does not have a stable CLI interface. Use with caution in scripts.

libstdc++-12-dev/stable,now 12.2.0-14 amd64 [installed]
libstdc++6/stable,now 12.2.0-14 amd64 [installed,automatic]

Now the library is present ... compilation can go further... only to crash further:

root@d49bea354558:~# swift build
Building for debugging...
error: compile command failed due to signal 6 (use -v to see invocation)
Term verification failed
Initial term:    τ_0_0.[MemberGroupSyntax:MemberSyntax].[VariableSyntax:Variable]
Erased term:     τ_0_0.MemberSyntax.Variable
Simplified term: τ_0_0.[MemberGroupSyntax:MemberSyntax].Variable

Requirement machine for <τ_0_0, τ_1_0 where τ_0_0 : AttributableDeclSyntax, τ_0_0 : GenericTypeDeclSyntax, τ_0_0 : MemberGroupSyntax, τ_1_0 : MacroExpansionContext, τ_0_0.ChildSyntaxInput == (), τ_0_0.MemberSyntax == PropertyDeclSyntax>
Rewrite system: {
- [AttributableDeclSyntax].[AttributableDeclSyntax] => [AttributableDeclSyntax] [permanent]
- [GenericTypeDeclSyntax].[GenericTypeDeclSyntax] => [GenericTypeDeclSyntax] [permanent]
- [MemberGroupSyntax].[MemberGroupSyntax] => [MemberGroupSyntax] [permanent]
- [MemberGroupSyntax].MemberSyntax => [MemberGroupSyntax:MemberSyntax] [permanent]
- [MemberGroupSyntax].ChildSyntaxInput => [MemberGroupSyntax:ChildSyntaxInput] [permanent]
- [MemberGroupSyntax].[MemberGroupSyntax:MemberSyntax] => [MemberGroupSyntax:MemberSyntax]
- [MemberGroupSyntax].[MemberGroupSyntax:ChildSyntaxInput] => [MemberGroupSyntax:ChildSyntaxInput]
- [MacroExpansionContext].[MacroExpansionContext] => [MacroExpansionContext] [permanent]
- [MacroExpansionContext].[layout: AnyObject] => [MacroExpansionContext] [explicit]
- τ_0_0.[AttributableDeclSyntax] => τ_0_0 [explicit]
- τ_0_0.[GenericTypeDeclSyntax] => τ_0_0 [explicit]
- τ_0_0.[MemberGroupSyntax] => τ_0_0 [explicit]
- τ_0_0.[MemberGroupSyntax:ChildSyntaxInput].[concrete: ()] => τ_0_0.[MemberGroupSyntax:ChildSyntaxInput] [explicit]
- τ_0_0.[MemberGroupSyntax:MemberSyntax].[concrete: PropertyDeclSyntax] => τ_0_0.[MemberGroupSyntax:MemberSyntax] [explicit]
- τ_1_0.[MacroExpansionContext] => τ_1_0 [explicit]
- τ_0_0.MemberSyntax => τ_0_0.[MemberGroupSyntax:MemberSyntax]
- τ_0_0.ChildSyntaxInput => τ_0_0.[MemberGroupSyntax:ChildSyntaxInput]
- τ_1_0.[layout: AnyObject] => τ_1_0
}
}
Property map: {
  [AttributableDeclSyntax] => { conforms_to: [AttributableDeclSyntax] }
  [GenericTypeDeclSyntax] => { conforms_to: [GenericTypeDeclSyntax] }
  [MemberGroupSyntax] => { conforms_to: [MemberGroupSyntax] }
  [MacroExpansionContext] => { conforms_to: [MacroExpansionContext] layout: AnyObject }
  τ_0_0 => { conforms_to: [AttributableDeclSyntax GenericTypeDeclSyntax MemberGroupSyntax] }
  τ_1_0 => { conforms_to: [MacroExpansionContext] layout: AnyObject }
  τ_0_0.[MemberGroupSyntax:ChildSyntaxInput] => { concrete_type: [concrete: ()] }
  τ_0_0.[MemberGroupSyntax:MemberSyntax] => { concrete_type: [concrete: PropertyDeclSyntax] }
}
Conformance paths: {
}
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0.      Program arguments: /usr/bin/swift-frontend -frontend -c /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/AttributableDeclSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Attribute.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/Codable+Expansion.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/Codable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/CodingKeys/CodingKeyTransformer.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/CodingKeys/CodingKeys.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/CodingKeys/Strategy.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/IgnoreCodingInitialized.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/Inherits.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Codable/UnTagged.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/CodedAs.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/CodedBy.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/Default.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/IgnoreCoding/IgnoreCoding.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/IgnoreCoding/IgnoreDecoding.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/IgnoreCoding/IgnoreEncoding.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/KeyPath/CodedAt.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/KeyPath/CodedIn.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/KeyPath/ContentAt.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/KeyPath/KeyPathProvider.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/MemberInit/MemberInit+Expansion.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/MemberInit/MemberInit.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Attributes/PeerAttribute.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/AggregatedDiagnosticProducer.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/CombinedUsage.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/Condition/ArgumentCountCondition.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/Condition/DeclarationCondition.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/Condition/DiagnosticCondition.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/ConditionalDiagnosticProducer.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/DiagnosticProducer.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/DuplicateUsage.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/GroupedVariableDeclaration.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/InvalidCombination.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/InvalidDeclaration.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/MetaCodableMessage.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/StaticVariableDeclaration.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Diagnostics/UninitializedVariableDecl.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Expansion/AttributeExpander.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Expansion/Options/DeclModifiersGenerator.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Expansion/Options/Options.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/ComposedVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/ConditionalCodingVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Case/Associated/AssociatedVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Case/Associated/BasicAssociatedVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Case/BasicEnumCaseVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Case/EnumCaseVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/AdjacentlyTaggableSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/AdjacentlyTaggedEnumSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/AnyEnumSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/EnumSwitcherVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/ExternallyTaggedEnumSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/InternallyTaggedEnumSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/TaggedEnumSwitcherVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Enum/Switcher/UnTaggedEnumSwitcher.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/AnyInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/AnyRequiredVariableInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/IgnoredInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/MemberwiseInitGenerator.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/OptionalInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/RequiredInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/RequiredInitializationWithDefaultValue.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/RequiredVariableInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Initialization/VariableInitialization.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/AliasedPropertyVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/AnyPropertyVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/BasicPropertyVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/Data/DecodingFallback.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/DefaultValueVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/HelperCodedVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/InitializationVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/KeyedVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/PropertyVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/Tree/PropertyVariableTreeNode+CodingData.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/Tree/PropertyVariableTreeNode+CodingLocation.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/Tree/PropertyVariableTreeNode+Generated.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Property/Tree/PropertyVariableTreeNode.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Syntax/AssociatedDeclSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Syntax/EnumCaseVariableDeclSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Syntax/MemberGroupSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Syntax/PropertyDeclSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Syntax/VariableSyntax.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/ActorVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/ClassVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/Data/CodingKeysMap/Case.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/Data/CodingKeysMap/CodingKeysMap.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/Data/CodingKeysMap/Key.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/Data/ConstraintGenerator.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/Data/Registration.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/EnumVariable.swift -primary-file /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/MemberGroup.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/TypeVariable.swift /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Variable.swift -emit-dependencies-path /root/.build/x86_64-unknown-linux-gnu/debug/PluginCore.build/MemberGroup.d -emit-reference-dependencies-path /root/.build/x86_64-unknown-linux-gnu/debug/PluginCore.build/MemberGroup.swiftdeps -target x86_64-unknown-linux-gnu -disable-objc-interop -I /root/.build/x86_64-unknown-linux-gnu/debug -color-diagnostics -enable-testing -g -module-cache-path /root/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -suppress-warnings -swift-version 5 -Onone -D SWIFT_PACKAGE -D DEBUG -new-driver-path /usr/bin/swift-driver -empty-abi-descriptor -resource-dir /usr/lib/swift -enable-anonymous-context-mangled-names -Xcc -fmodule-map-file=/root/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include/module.modulemap -Xcc -I -Xcc /root/.build/checkouts/swift-syntax/Sources/_SwiftSyntaxCShims/include -Xcc -fPIC -Xcc -g -Xcc -fno-omit-frame-pointer -module-name PluginCore -package-name metacodable -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /root/.build/x86_64-unknown-linux-gnu/debug/PluginCore.build/MemberGroup.swift.o -index-store-path /root/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1.      Swift version 5.10.1 (swift-5.10.1-RELEASE)
2.      Compiling with the current language version
3.      While evaluating request IRGenRequest(IR Generation for file "/root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/MemberGroup.swift")
4.      While emitting witness table for protocol conformance to 'DeclaredVariable' (at /root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Variable.swift:146:1) for type 'MemberGroup<Decl>' (declared at [/root/.build/checkouts/MetaCodable/Sources/PluginCore/Variables/Type/MemberGroup.swift:9:1 - line:158:1] RangeText="struct MemberGroup<Decl>: TypeVariable, InitializableVariable
where
    Decl: MemberGroupSyntax & GenericTypeDeclSyntax & AttributableDeclSyntax,
    Decl.MemberSyntax: VariableSyntax, Decl.MemberSyntax.Variable: NamedVariable
{
    /// The declaration members syntax type.
    typealias MemberSyntax = Decl.MemberSyntax

    /// The where clause generator for generic type arguments.
    let constraintGenerator: ConstraintGenerator
    /// The root node containing all the keys
    /// and associated field metadata maps.
    let node: PropertyVariableTreeNode
    /// The `CodingKeys` map containing keys
    /// and generated case names.
    let codingKeys: CodingKeysMap

    /// Creates a new member group from provided data.
    ///
    /// - Parameters:
    ///   - decl: The declaration to read data from.
    ///   - context: The context in which to perform the macro expansion.
    ///   - codingKeys: The map where `CodingKeys` maintained.
    ///   - builder: The builder action to use to update member variables
    ///     registration data.
    ///
    /// - Returns: Created member group.
    init<Output: PropertyVariable>(
        from decl: Decl, in context: some MacroExpansionContext,
        codingKeys: CodingKeysMap, memberInput: Decl.ChildSyntaxInput,
        builder: (
            _ input: PathRegistration<MemberSyntax, MemberSyntax.Variable>
        ) -> PathRegistration<MemberSyntax, Output>
    ) {
        self.constraintGenerator = .init(decl: decl)
        let node = PropertyVariableTreeNode()
        for member in decl.codableMembers(input: memberInput) {
            let `var` = member.codableVariable(in: context)
            let key = [CodingKeysMap.Key.name(for: `var`.name).text]
            let reg = Registration(decl: member, key: key, context: context)
            let registration = builder(reg)
            let path = registration.key
            let variable = registration.variable
            guard
                (variable.decode ?? true) || (variable.encode ?? true)
            else { continue }
            let name = variable.name
            let keys = codingKeys.add(keys: path, field: name, context: context)
            node.register(variable: variable, keyPath: keys)
        }
        self.node = node
        self.codingKeys = codingKeys
    }

    /// Provides the syntax for decoding at the provided location.
    ///
    /// If conformance type provided is `nil` no expansion performed.
    /// Otherwise, variables registered are decoded based on registered data.
    ///
    /// - Parameters:
    ///   - context: The context in which to perform the macro expansion.
    ///   - location: The decoding location.
    ///
    /// - Returns: The generated decoding syntax.
    func decoding(
        in context: some MacroExpansionContext,
        from location: TypeCodingLocation
    ) -> TypeGenerated? {
        guard let conformance = location.conformance else { return nil }
        return .init(
            code: node.decoding(
                in: context,
                from: .coder(location.method.arg, keyType: codingKeys.type)
            ).combined(),
            modifiers: [],
            whereClause: constraintGenerator.decodingClause(
                withVariables: node.linkedVariables,
                conformingTo: conformance
            ),
            inheritanceClause: .init { .init(type: conformance) }
        )
    }

    /// Provides the syntax for encoding at the provided location.
    ///
    /// If conformance type provided is `nil` no expansion performed.
    /// Otherwise, variables registered are encoded based on registered data.
    ///
    /// - Parameters:
    ///   - context: The context in which to perform the macro expansion.
    ///   - location: The encoding location.
    ///
    /// - Returns: The generated encoding syntax.
    func encoding(
        in context: some MacroExpansionContext,
        to location: TypeCodingLocation
    ) -> TypeGenerated? {
        guard let conformance = location.conformance else { return nil }
        return .init(
            code: node.encoding(
                in: context,
                to: .coder(location.method.arg, keyType: codingKeys.type)
            ).combined(),
            modifiers: [],
            whereClause: constraintGenerator.encodingClause(
                withVariables: node.linkedVariables,
                conformingTo: conformance
            ),
            inheritanceClause: .init { .init(type: conformance) }
        )
    }

    /// Provides the syntax for `CodingKeys` declarations.
    ///
    /// Single `CodingKeys` enum generated using the `codingKeys`
    /// provided during initialization.
    ///
    /// - Parameters:
    ///   - protocols: The protocols for which conformance generated.
    ///   - context: The context in which to perform the macro expansion.
    ///
    /// - Returns: The `CodingKeys` declarations.
    func codingKeys(
        confirmingTo protocols: [TypeSyntax],
        in context: some MacroExpansionContext
    ) -> MemberBlockItemListSyntax {
        guard
            !self.protocols(
                named: TypeCodingLocation.Method.decode().protocol,
                TypeCodingLocation.Method.encode.protocol,
                in: protocols
            ).isEmpty,
            let decl = codingKeys.decl(in: context)
        else { return [] }
        return MemberBlockItemListSyntax { decl }
    }

    /// Indicates the initialization type for this variable.
    ///
    /// Initialization data of individual variables registered are provided.
    ///
    /// - Parameter context: The context in which to perform
    ///   the macro expansion.
    /// - Returns: The type of initialization for variable.
    func initializing(
        in context: some MacroExpansionContext
    ) -> [AnyInitialization] {
        return node.linkedVariables.map { $0.initializing(in: context).any }
    }
")
 #0 0x000055f2e3e02df4 llvm::sys::PrintStackTrace(llvm::raw_ostream&, int) (/usr/bin/swift-frontend+0x72d2df4)
 #1 0x000055f2e3e00c5e llvm::sys::RunSignalHandlers() (/usr/bin/swift-frontend+0x72d0c5e)
 #2 0x000055f2e3e03168 SignalHandler(int) Signals.cpp:0:0
 #3 0x00007f5d28313050 (/lib/x86_64-linux-gnu/libc.so.6+0x3c050)
 #4 0x00007f5d28361eec (/lib/x86_64-linux-gnu/libc.so.6+0x8aeec)
 #5 0x00007f5d28312fb2 raise (/lib/x86_64-linux-gnu/libc.so.6+0x3bfb2)
 #6 0x00007f5d282fd472 abort (/lib/x86_64-linux-gnu/libc.so.6+0x26472)
 #7 0x000055f2df520026 (/usr/bin/swift-frontend+0x29f0026)
 #8 0x000055f2df520439 swift::rewriting::RequirementMachine::getRequiredProtocols(swift::Type) const (/usr/bin/swift-frontend+0x29f0439)
 #9 0x000055f2df460c77 swift::GenericSignatureImpl::getRequiredProtocols(swift::Type) const (/usr/bin/swift-frontend+0x2930c77)
#10 0x000055f2ddf41566 (anonymous namespace)::PolymorphicConvention::FulfillmentMapCallback::getInterestingConformances(swift::CanType) const GenProto.cpp:0:0
#11 0x000055f2ddfe7ff7 swift::irgen::FulfillmentMap::searchWitnessTable(swift::irgen::IRGenModule&, swift::CanType, swift::ProtocolDecl*, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) (/usr/bin/swift-frontend+0x14b7ff7)
#12 0x000055f2ddfe7821 swift::irgen::FulfillmentMap::searchNominalTypeMetadata(swift::irgen::IRGenModule&, swift::CanType, swift::MetadataState, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) (/usr/bin/swift-frontend+0x14b7821)
#13 0x000055f2ddfe6fac swift::irgen::FulfillmentMap::searchTypeMetadata(swift::irgen::IRGenModule&, swift::CanType, swift::irgen::IsExact_t, swift::MetadataState, unsigned int, swift::irgen::MetadataPath&&, swift::irgen::FulfillmentMap::InterestingKeysCallback const&) (/usr/bin/swift-frontend+0x14b6fac)
#14 0x000055f2ddf40b07 (anonymous namespace)::PolymorphicConvention::considerWitnessSelf(swift::CanTypeWrapper<swift::SILFunctionType>) GenProto.cpp:0:0
#15 0x000055f2ddf33b9a (anonymous namespace)::PolymorphicConvention::PolymorphicConvention(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, bool) GenProto.cpp:0:0
#16 0x000055f2ddf3ebdc swift::irgen::expandPolymorphicSignature(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, llvm::SmallVectorImpl<llvm::Type*>&, llvm::SmallVectorImpl<swift::irgen::PolymorphicSignatureExpandedTypeSource>*) (/usr/bin/swift-frontend+0x140ebdc)
#17 0x000055f2dde095e3 swift::irgen::(anonymous namespace)::SignatureExpansion::expandFunctionType(swift::irgen::SignatureExpansionABIDetails*) GenCall.cpp:0:0
#18 0x000055f2dde08e58 swift::irgen::Signature::getUncached(swift::irgen::IRGenModule&, swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool) (/usr/bin/swift-frontend+0x12d8e58)
#19 0x000055f2ddec7da7 (anonymous namespace)::FuncSignatureInfo::getSignature(swift::irgen::IRGenModule&) const GenFunc.cpp:0:0
#20 0x000055f2ddec7a6f swift::irgen::IRGenModule::getSignature(swift::CanTypeWrapper<swift::SILFunctionType>, swift::irgen::FunctionPointerKind, bool) (/usr/bin/swift-frontend+0x1397a6f)
#21 0x000055f2dde6cc0e swift::irgen::IRGenModule::getAddrOfSILFunction(swift::SILFunction*, swift::ForDefinition_t, bool, bool) (/usr/bin/swift-frontend+0x133cc0e)
#22 0x000055f2ddf45a8d (anonymous namespace)::FragileWitnessTableBuilder::addMethod(swift::SILDeclRef) GenProto.cpp:0:0
#23 0x000055f2ddf44072 swift::SILWitnessVisitor<(anonymous namespace)::FragileWitnessTableBuilder>::visitProtocolDecl(swift::ProtocolDecl*) GenProto.cpp:0:0
#24 0x000055f2ddf37b9b swift::irgen::IRGenModule::emitSILWitnessTable(swift::SILWitnessTable*) (/usr/bin/swift-frontend+0x1407b9b)
#25 0x000055f2dde6725b swift::irgen::IRGenerator::emitGlobalTopLevel(std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > > > const&) (/usr/bin/swift-frontend+0x133725b)
#26 0x000055f2ddd0e7b1 swift::IRGenRequest::evaluate(swift::Evaluator&, swift::IRGenDescriptor) const (/usr/bin/swift-frontend+0x11de7b1)
#27 0x000055f2ddd76971 swift::GeneratedModule swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::callDerived<0ul>(swift::Evaluator&, std::integer_sequence<unsigned long, 0ul>) const crtstuff.c:0:0
#28 0x000055f2ddd768c9 swift::SimpleRequest<swift::IRGenRequest, swift::GeneratedModule (swift::IRGenDescriptor), (swift::RequestFlags)9>::evaluateRequest(swift::IRGenRequest const&, swift::Evaluator&) crtstuff.c:0:0
#29 0x000055f2ddd1adea llvm::Expected<swift::IRGenRequest::OutputType> swift::Evaluator::getResultUncached<swift::IRGenRequest>(swift::IRGenRequest const&) crtstuff.c:0:0
#30 0x000055f2ddd110db swift::performIRGeneration(swift::FileUnit*, swift::IRGenOptions const&, swift::TBDGenOptions const&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, llvm::StringRef, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::GlobalVariable**) (/usr/bin/swift-frontend+0x11e10db)
#31 0x000055f2dd950136 generateIR(swift::IRGenOptions const&, swift::TBDGenOptions const&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, swift::PrimarySpecificPaths const&, llvm::StringRef, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, llvm::GlobalVariable*&, llvm::ArrayRef<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >) FrontendTool.cpp:0:0
#32 0x000055f2dd94b399 performCompileStepsPostSILGen(swift::CompilerInstance&, std::unique_ptr<swift::SILModule, std::default_delete<swift::SILModule> >, llvm::PointerUnion<swift::ModuleDecl*, swift::SourceFile*>, swift::PrimarySpecificPaths const&, int&, swift::FrontendObserver*) FrontendTool.cpp:0:0
#33 0x000055f2dd949ed8 swift::performCompileStepsPostSema(swift::CompilerInstance&, int&, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xe19ed8)
#34 0x000055f2dd95ff6a withSemanticAnalysis(swift::CompilerInstance&, swift::FrontendObserver*, llvm::function_ref<bool (swift::CompilerInstance&)>, bool) FrontendTool.cpp:0:0
#35 0x000055f2dd94d7eb performCompile(swift::CompilerInstance&, int&, swift::FrontendObserver*) FrontendTool.cpp:0:0
#36 0x000055f2dd94c203 swift::performFrontend(llvm::ArrayRef<char const*>, char const*, void*, swift::FrontendObserver*) (/usr/bin/swift-frontend+0xe1c203)
#37 0x000055f2dd7f2806 swift::mainEntry(int, char const**) (/usr/bin/swift-frontend+0xcc2806)
#38 0x00007f5d282fe24a (/lib/x86_64-linux-gnu/libc.so.6+0x2724a)
#39 0x00007f5d282fe305 __libc_start_main (/lib/x86_64-linux-gnu/libc.so.6+0x27305)
#40 0x000055f2dd7f1761 _start (/usr/bin/swift-frontend+0xcc1761)
[188/300] Compiling SwiftCompilerPluginMessageHandling JSON.swift
root@d49bea354558:~# 

IT seems to be an issue with the provided compiler.
thank you for help, for us the ability to use debian is business critical, we need library present only on debian.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions