container
container copied to clipboard
[Bug]: Fails to compile with swift-6.2.4-RELEASE
I have done the following
- [x] I have searched the existing issues
- [x] If possible, I've reproduced the issue using the 'main' branch of this project
Steps to reproduce
- Install swift-6.2.4 from swift.org.
- Build manually by running
swift build
Current behavior
Crashes with a SIL verification error:
error: compile command failed due to signal 6 (use -v to see invocation)
SIL verification failed: wrong argument type of initializer or setter
$Optional<String>
$_OptionalNilComparisonType
Verifying instruction:
%38 = copy_value %37 : $Optional<String> // user: %45
%40 = struct_element_addr %39 : $*Flags.DNS, #Flags.DNS._domain // user: %45
%42 = partial_apply [callee_guaranteed] %41() : $@convention(thin) (_OptionalNilComparisonType) -> @owned Option<Optional<String>> // users: %48, %45
%44 = partial_apply [callee_guaranteed] [on_stack] %43(%39) : $@convention(method) (@owned Optional<String>, @inout Flags.DNS) -> () // users: %47, %45
-> assign_by_wrapper %38 : $Optional<String> to %40 : $*Option<Optional<String>>, init %42 : $@callee_guaranteed (_OptionalNilComparisonType) -> @owned Option<Optional<String>>, set %44 : $@noescape @callee_guaranteed (@owned Optional<String>) -> () // id: %45
In function:
// Flags.DNS.init(domain:nameservers:options:searchDomains:)
// Isolation: unspecified
sil [ossa] @$s18ContainerAPIClient5FlagsV3DNSV6domain11nameservers7options13searchDomainsAESSSg_SaySSGA2KtcfC : $@convention(method) (@owned Optional<String>, @owned Array<String>, @owned Array<String>, @owned Array<String>, @thin Flags.DNS.Type) -> @owned Flags.DNS {
// %0 "domain" // users: %93, %37, %9
// %1 "nameservers" // users: %92, %50, %10
// %2 "options" // users: %91, %63, %11
// %3 "searchDomains" // users: %90, %76, %12
// %4 "$metatype"
bb0(%0 : @owned $Optional<String>, %1 : @owned $Array<String>, %2 : @owned $Array<String>, %3 : @owned $Array<String>, %4 : $@thin Flags.DNS.Type):
%5 = alloc_box ${ var Flags.DNS }, var, name "self" // user: %6
%6 = mark_uninitialized [rootself] %5 // users: %95, %7
%7 = begin_borrow [lexical] [var_decl] %6 // users: %94, %8
%8 = project_box %7, 0 // users: %89, %78, %65, %52, %39, %31, %25, %19, %13
debug_value %0, let, name "domain", argno 1 // id: %9
debug_value %1, let, name "nameservers", argno 2 // id: %10
debug_value %2, let, name "options", argno 3 // id: %11
debug_value %3, let, name "searchDomains", argno 4 // id: %12
%13 = struct_element_addr %8, #Flags.DNS._nameservers // user: %18
// function_ref variable initialization expression of Flags.DNS._nameservers
%14 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV12_nameservers33_BF95781EF64FD7D18C493D252551D579LL14ArgumentParser6OptionVySaySSGGvpfi : $@convention(thin) () -> @owned Array<String> // user: %15
%15 = apply %14() : $@convention(thin) () -> @owned Array<String> // user: %17
// function_ref property wrapper backing initializer of Flags.DNS.nameservers
%16 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV11nameserversSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %17
%17 = apply %16(%15) : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %18
store %17 to [init] %13 // id: %18
%19 = struct_element_addr %8, #Flags.DNS._domain // user: %24
// function_ref variable initialization expression of Flags.DNS._domain
%20 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV7_domain33_BF95781EF64FD7D18C493D252551D579LL14ArgumentParser6OptionVySSSgGvpfi : $@convention(thin) () -> _OptionalNilComparisonType // user: %21
%21 = apply %20() : $@convention(thin) () -> _OptionalNilComparisonType // user: %23
// function_ref property wrapper backing initializer of Flags.DNS.domain
%22 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV6domainSSSgvpfP : $@convention(thin) (_OptionalNilComparisonType) -> @owned Option<Optional<String>> // user: %23
%23 = apply %22(%21) : $@convention(thin) (_OptionalNilComparisonType) -> @owned Option<Optional<String>> // user: %24
store %23 to [init] %19 // id: %24
%25 = struct_element_addr %8, #Flags.DNS._options // user: %30
// function_ref variable initialization expression of Flags.DNS._options
%26 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV8_options33_BF95781EF64FD7D18C493D252551D579LL14ArgumentParser6OptionVySaySSGGvpfi : $@convention(thin) () -> @owned Array<String> // user: %27
%27 = apply %26() : $@convention(thin) () -> @owned Array<String> // user: %29
// function_ref property wrapper backing initializer of Flags.DNS.options
%28 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV7optionsSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %29
%29 = apply %28(%27) : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %30
store %29 to [init] %25 // id: %30
%31 = struct_element_addr %8, #Flags.DNS._searchDomains // user: %36
// function_ref variable initialization expression of Flags.DNS._searchDomains
%32 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV14_searchDomains33_BF95781EF64FD7D18C493D252551D579LL14ArgumentParser6OptionVySaySSGGvpfi : $@convention(thin) () -> @owned Array<String> // user: %33
%33 = apply %32() : $@convention(thin) () -> @owned Array<String> // user: %35
// function_ref property wrapper backing initializer of Flags.DNS.searchDomains
%34 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV13searchDomainsSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %35
%35 = apply %34(%33) : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %36
store %35 to [init] %31 // id: %36
%37 = begin_borrow %0 // users: %49, %38
%38 = copy_value %37 // user: %45
%39 = begin_access [modify] [unknown] %8 // users: %46, %44, %40
%40 = struct_element_addr %39, #Flags.DNS._domain // user: %45
// function_ref property wrapper backing initializer of Flags.DNS.domain
%41 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV6domainSSSgvpfP : $@convention(thin) (_OptionalNilComparisonType) -> @owned Option<Optional<String>> // user: %42
%42 = partial_apply [callee_guaranteed] %41() : $@convention(thin) (_OptionalNilComparisonType) -> @owned Option<Optional<String>> // users: %48, %45
// function_ref Flags.DNS.domain.setter
%43 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV6domainSSSgvs : $@convention(method) (@owned Optional<String>, @inout Flags.DNS) -> () // user: %44
%44 = partial_apply [callee_guaranteed] [on_stack] %43(%39) : $@convention(method) (@owned Optional<String>, @inout Flags.DNS) -> () // users: %47, %45
assign_by_wrapper %38 to %40, init %42, set %44 // id: %45
end_access %39 // id: %46
destroy_value %44 // id: %47
destroy_value %42 // id: %48
end_borrow %37 // id: %49
%50 = begin_borrow %1 // users: %62, %51
%51 = copy_value %50 // user: %58
%52 = begin_access [modify] [unknown] %8 // users: %59, %57, %53
%53 = struct_element_addr %52, #Flags.DNS._nameservers // user: %58
// function_ref property wrapper backing initializer of Flags.DNS.nameservers
%54 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV11nameserversSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %55
%55 = partial_apply [callee_guaranteed] %54() : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // users: %61, %58
// function_ref Flags.DNS.nameservers.setter
%56 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV11nameserversSaySSGvs : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // user: %57
%57 = partial_apply [callee_guaranteed] [on_stack] %56(%52) : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // users: %60, %58
assign_by_wrapper %51 to %53, init %55, set %57 // id: %58
end_access %52 // id: %59
destroy_value %57 // id: %60
destroy_value %55 // id: %61
end_borrow %50 // id: %62
%63 = begin_borrow %2 // users: %75, %64
%64 = copy_value %63 // user: %71
%65 = begin_access [modify] [unknown] %8 // users: %72, %70, %66
%66 = struct_element_addr %65, #Flags.DNS._options // user: %71
// function_ref property wrapper backing initializer of Flags.DNS.options
%67 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV7optionsSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %68
%68 = partial_apply [callee_guaranteed] %67() : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // users: %74, %71
// function_ref Flags.DNS.options.setter
%69 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV7optionsSaySSGvs : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // user: %70
%70 = partial_apply [callee_guaranteed] [on_stack] %69(%65) : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // users: %73, %71
assign_by_wrapper %64 to %66, init %68, set %70 // id: %71
end_access %65 // id: %72
destroy_value %70 // id: %73
destroy_value %68 // id: %74
end_borrow %63 // id: %75
%76 = begin_borrow %3 // users: %88, %77
%77 = copy_value %76 // user: %84
%78 = begin_access [modify] [unknown] %8 // users: %85, %83, %79
%79 = struct_element_addr %78, #Flags.DNS._searchDomains // user: %84
// function_ref property wrapper backing initializer of Flags.DNS.searchDomains
%80 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV13searchDomainsSaySSGvpfP : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // user: %81
%81 = partial_apply [callee_guaranteed] %80() : $@convention(thin) (@owned Array<String>) -> @owned Option<Array<String>> // users: %87, %84
// function_ref Flags.DNS.searchDomains.setter
%82 = function_ref @$s18ContainerAPIClient5FlagsV3DNSV13searchDomainsSaySSGvs : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // user: %83
%83 = partial_apply [callee_guaranteed] [on_stack] %82(%78) : $@convention(method) (@owned Array<String>, @inout Flags.DNS) -> () // users: %86, %84
assign_by_wrapper %77 to %79, init %81, set %83 // id: %84
end_access %78 // id: %85
destroy_value %83 // id: %86
destroy_value %81 // id: %87
end_borrow %76 // id: %88
%89 = load [copy] %8 // user: %96
destroy_value %3 // id: %90
destroy_value %2 // id: %91
destroy_value %1 // id: %92
destroy_value %0 // id: %93
end_borrow %7 // id: %94
destroy_value %6 // id: %95
return %89 // id: %96
} // end sil function '$s18ContainerAPIClient5FlagsV3DNSV6domain11nameservers7options13searchDomainsAESSSg_SaySSGA2KtcfC'
Please submit a bug report (https://swift.org/contributing/#reporting-bugs) and include the crash backtrace.
Stack dump:
0. Program arguments: /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend -frontend -c /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Arch.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Archiver.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Array+Dedupe.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientDiskUsage.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientHealthCheck.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientImage.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientKernel.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientNetwork.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientProcess.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ClientVolume.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Constants.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ContainerClient.swift -primary-file /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ContainerizationProgressAdapter.swift -primary-file /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/DiskUsage.swift -primary-file /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/FileDownloader.swift -primary-file /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Flags.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/HostDNSResolver.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ImageLoadResult.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Measurement+Parse.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/PacketFilter.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Parser.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ProcessIO.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ProgressUpdateClient.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/ProgressUpdateService.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/RequestScheme.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/SignalThreshold.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/String+Extensions.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/SystemHealth.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/TableOutput.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Utility.swift /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/XPC+.swift -supplementary-output-file-map /var/folders/kb/87_bfm8s6zl788kxgz5grx5m0000gn/T/TemporaryDirectory.g23Scz/supplementaryOutputs-4 -target arm64-apple-macosx15.0 -Xllvm -aarch64-use-tbi -enable-objc-interop -sdk /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -I /Users/link/Projects/container/.build/arm64-apple-macosx/debug/Modules -I /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/lib/swift/macosx/testing -I /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -F /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks -color-diagnostics -Xcc -fcolor-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=5 -module-cache-path /Users/link/Projects/container/.build/arm64-apple-macosx/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -plugin-path /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/lib/swift/host/plugins/testing -enable-anonymous-context-mangled-names -file-compilation-dir /Users/link/Projects/container -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CVersion.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/Sources/CVersion/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CAuditToken.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/Sources/CAuditToken/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-atomics/Sources/_AtomicsShims/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOWASI.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOWASI/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOWindows/include/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOWindows/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOLinux.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOLinux/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIODarwin.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIODarwin/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOAtomics.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOAtomics/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOPosix.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOPosix/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOBoringSSLShims.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSLShims/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio-ssl/Sources/CNIOBoringSSL/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOLLHTTP.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio/Sources/CNIOLLHTTP/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CGRPCZlib.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/grpc-swift/Sources/CGRPCZlib/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CArchive.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/containerization/Sources/ContainerizationArchive/CArchive/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/zstd/lib/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/zstd/lib -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CShim.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/containerization/Sources/CShim/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/swift-numerics/Sources/_NumericsShims/include/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-numerics/Sources/_NumericsShims/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CNIOExtrasZlib.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-nio-extras/Sources/CNIOExtrasZlib/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/arm64-apple-macosx/debug/CAsyncHTTPClient.build/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/async-http-client/Sources/CAsyncHTTPClient/include -Xcc -fmodule-map-file=/Users/link/Projects/container/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /Users/link/Projects/container/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -isysroot -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/Frameworks -Xcc -F -Xcc /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/Library/PrivateFrameworks -Xcc -fPIC -Xcc -g -no-auto-bridging-header-chaining -module-name ContainerAPIClient -package-name container -in-process-plugin-server-path /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/lib/swift/host/libSwiftInProcPluginServer.dylib -plugin-path /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/lib/swift/host/plugins -plugin-path /Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/local/lib/swift/host/plugins -target-sdk-version 26.2 -target-sdk-name macosx26.2 -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -external-plugin-path /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/local/lib/swift/host/plugins#/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/usr/bin/swift-plugin-server -parse-as-library -o /Users/link/Projects/container/.build/arm64-apple-macosx/debug/ContainerAPIClient.build/ContainerizationProgressAdapter.swift.o -o /Users/link/Projects/container/.build/arm64-apple-macosx/debug/ContainerAPIClient.build/DiskUsage.swift.o -o /Users/link/Projects/container/.build/arm64-apple-macosx/debug/ContainerAPIClient.build/FileDownloader.swift.o -o /Users/link/Projects/container/.build/arm64-apple-macosx/debug/ContainerAPIClient.build/Flags.swift.o -index-store-path /Users/link/Projects/container/.build/arm64-apple-macosx/debug/index/store -index-system-modules
1. Apple Swift version 6.2.4 (swift-6.2.4-RELEASE)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Flags.swift")
4. While silgen emitValueConstructor SIL function "@$s18ContainerAPIClient5FlagsV3DNSV6domain11nameservers7options13searchDomainsAESSSg_SaySSGA2KtcfC".
for 'init(domain:nameservers:options:searchDomains:)' (at /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Flags.swift:122:16)
5. While verifying SIL function "@$s18ContainerAPIClient5FlagsV3DNSV6domain11nameservers7options13searchDomainsAESSSg_SaySSGA2KtcfC".
for 'init(domain:nameservers:options:searchDomains:)' (at /Users/link/Projects/container/Sources/Services/ContainerAPIService/Client/Flags.swift:122:16)
#0 0x000000010879aa84 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1059eaa84)
#1 0x00000001087991b0 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1059e91b0)
#2 0x000000010879b0cc (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1059eb0cc)
#3 0x0000000188e85764 (/usr/lib/system/libsystem_platform.dylib+0x1804e5764)
#4 0x0000000188e7b888 (/usr/lib/system/libsystem_pthread.dylib+0x1804db888)
#5 0x0000000188d80850 (/usr/lib/system/libsystem_c.dylib+0x1803e0850)
#6 0x0000000103ef46f8 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1011446f8)
#7 0x0000000103f2025c (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x10117025c)
#8 0x0000000103f1ff68 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x10116ff68)
#9 0x0000000103f09d74 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x101159d74)
#10 0x0000000103efc5a8 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x10114c5a8)
#11 0x0000000103efae30 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x10114ae30)
#12 0x0000000103ef5110 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x101145110)
#13 0x0000000103612978 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100862978)
#14 0x0000000103612128 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100862128)
#15 0x0000000103613108 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100863108)
#16 0x0000000103613ff4 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100863ff4)
#17 0x0000000103728488 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100978488)
#18 0x0000000103728414 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100978414)
#19 0x0000000103728354 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100978354)
#20 0x00000001036158e0 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1008658e0)
#21 0x0000000103615dfc (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100865dfc)
#22 0x00000001037156b8 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1009656b8)
#23 0x0000000103619dd0 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100869dd0)
#24 0x0000000103616418 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100866418)
#25 0x0000000103047198 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100297198)
#26 0x0000000103053994 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x1002a3994)
#27 0x0000000103048fc0 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100298fc0)
#28 0x000000010304877c (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x10029877c)
#29 0x0000000102de5df8 (/Users/link/Library/Developer/Toolchains/swift-6.2.4-RELEASE.xctoolchain/usr/bin/swift-frontend+0x100035df8)
#30 0x0000000188ab1d54
[2090/2129] Linking container-network-vmnet
Expected behavior
Successfully compiles.
Environment
- OS: 26.3 (25D125)
- Xcode: 26.3 (17C529)
- Container: `main`
Relevant log output
N/A
Code of Conduct
- [x] I agree to follow this project's Code of Conduct
It successfully compiles using /usr/bin/swift and /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/swift. The failure only happens with the upstream swift.org distribution.
Thank you for reporting the problem! Swift from swift.org should be used only to build vminitd in Containerization. Swift that comes with Xcode or Xcode Command Line Tools is required to build container.
Fair enough. I'm glad to know it's not an actual bug then. Just a quirk of compiler distributions.