Build Information
Failed to build Socket, reference 0.4.0 (253aef
), with Swift 6.2 (beta) for Linux on 22 Jun 2025 11:50:40 UTC.
Build Command
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.64.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/PureSwift/Socket.git
Reference: 0.4.0
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: git branch -m <name>
From https://github.com/PureSwift/Socket
* tag 0.4.0 -> FETCH_HEAD
HEAD is now at 253aef8 Add `Sendable` conformance
Cloned https://github.com/PureSwift/Socket.git
Revision (git rev-parse @):
253aef83213691b705dfeec8e20bfd7a72219fec
SUCCESS checkout https://github.com/PureSwift/Socket.git at 0.4.0
========================================
Build
========================================
Selected platform: linux
Swift version: 6.2
Building package at path: $PWD
https://github.com/PureSwift/Socket.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-2":/host -w "$PWD" registry.gitlab.com/finestructure/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from finestructure/spi-images
Digest: sha256:f81a7bd7aa87a0f81848d48c5bcc03f5f78deebd37fa5f9be9913077205d3687
Status: Image is up to date for registry.gitlab.com/finestructure/spi-images:basic-6.2-latest
Fetching https://github.com/apple/swift-system
[1/4436] Fetching swift-system
Fetched https://github.com/apple/swift-system from cache (0.62s)
Computing version for https://github.com/apple/swift-system
Computed https://github.com/apple/swift-system at 1.5.0 (1.46s)
Creating working copy for https://github.com/apple/swift-system
Working copy of https://github.com/apple/swift-system resolved at 1.5.0
Building for debugging...
[0/5] Write sources
[2/5] Compiling CSystem shims.c
[3/5] Compiling CSocket shims.c
[4/5] Write swift-version-24593BA9C3E375BF.txt
[6/33] Compiling SystemPackage FilePathTempPosix.swift
[7/33] Compiling SystemPackage FilePathTempWindows.swift
[8/33] Compiling SystemPackage FilePathWindows.swift
[9/33] Compiling SystemPackage FilePermissions.swift
[10/33] Compiling SystemPackage MachPort.swift
[11/33] Compiling SystemPackage PlatformString.swift
[12/33] Compiling SystemPackage SystemString.swift
[13/36] Compiling SystemPackage Errno.swift
[14/36] Compiling SystemPackage ErrnoWindows.swift
[15/36] Compiling SystemPackage FileDescriptor.swift
[16/36] Compiling SystemPackage FileHelpers.swift
[17/36] Emitting module SystemPackage
[18/36] Compiling SystemPackage FilePathParsing.swift
[19/36] Compiling SystemPackage FilePathString.swift
[20/36] Compiling SystemPackage FilePathSyntax.swift
[21/36] Compiling SystemPackage FilePathTemp.swift
[22/36] Compiling SystemPackage FileOperations.swift
[23/36] Compiling SystemPackage FilePath.swift
[24/36] Compiling SystemPackage FilePathComponentView.swift
[25/36] Compiling SystemPackage FilePathComponents.swift
[26/36] Compiling SystemPackage Util+StringArray.swift
[27/36] Compiling SystemPackage Util.swift
[28/36] Compiling SystemPackage UtilConsumers.swift
[29/36] Compiling SystemPackage Backcompat.swift
[30/36] Compiling SystemPackage CInterop.swift
[31/36] Compiling SystemPackage Constants.swift
[32/36] Compiling SystemPackage Exports.swift
[33/36] Compiling SystemPackage Mocking.swift
[34/36] Compiling SystemPackage RawBuffer.swift
[35/36] Compiling SystemPackage Syscalls.swift
[36/36] Compiling SystemPackage WindowsSyscallAdapters.swift
[38/76] Compiling Socket SocketOptionID.swift
[39/76] Compiling Socket SocketOptionLevel.swift
[40/76] Compiling Socket SocketProtocol.swift
[41/76] Compiling Socket IPv4Protocol.swift
[42/76] Compiling Socket IPv6Protocol.swift
error: emit-module command failed with exit code 1 (use -v to see invocation)
[43/81] Emitting module Socket
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:372:50: error: cannot find 'SOCK_STREAM' in scope
370 |
371 | @_alwaysEmitIntoClient
372 | internal var _SOCK_STREAM: CInterop.SocketType { SOCK_STREAM }
| `- error: cannot find 'SOCK_STREAM' in scope
373 |
374 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:375:49: error: cannot find 'SOCK_DGRAM' in scope
373 |
374 | @_alwaysEmitIntoClient
375 | internal var _SOCK_DGRAM: CInterop.SocketType { SOCK_DGRAM }
| `- error: cannot find 'SOCK_DGRAM' in scope
376 |
377 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:378:47: error: cannot find 'SOCK_RAW' in scope
376 |
377 | @_alwaysEmitIntoClient
378 | internal var _SOCK_RAW: CInterop.SocketType { SOCK_RAW }
| `- error: cannot find 'SOCK_RAW' in scope
379 |
380 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:381:47: error: cannot find 'SOCK_RDM' in scope
379 |
380 | @_alwaysEmitIntoClient
381 | internal var _SOCK_RDM: CInterop.SocketType { SOCK_RDM }
| `- error: cannot find 'SOCK_RDM' in scope
382 |
383 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:384:53: error: cannot find 'SOCK_SEQPACKET' in scope
382 |
383 | @_alwaysEmitIntoClient
384 | internal var _SOCK_SEQPACKET: CInterop.SocketType { SOCK_SEQPACKET }
| `- error: cannot find 'SOCK_SEQPACKET' in scope
385 |
386 | #if os(Linux)
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:388:48: error: cannot find 'SOCK_DCCP' in scope
386 | #if os(Linux)
387 | @_alwaysEmitIntoClient
388 | internal var _SOCK_DCCP: CInterop.SocketType { SOCK_DCCP }
| `- error: cannot find 'SOCK_DCCP' in scope
389 |
390 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:391:52: error: cannot find 'SOCK_NONBLOCK' in scope
389 |
390 | @_alwaysEmitIntoClient
391 | internal var _SOCK_NONBLOCK: CInterop.SocketType { SOCK_NONBLOCK }
| `- error: cannot find 'SOCK_NONBLOCK' in scope
392 |
393 | @_alwaysEmitIntoClient
/host/spi-builder-workspace/Sources/Socket/System/Constants.swift:394:51: error: cannot find 'SOCK_CLOEXEC' in scope
392 |
393 | @_alwaysEmitIntoClient
394 | internal var _SOCK_CLOEXEC: CInterop.SocketType { SOCK_CLOEXEC }
| `- error: cannot find 'SOCK_CLOEXEC' in scope
395 | #endif
396 |
error: compile command failed due to signal 6 (use -v to see invocation)
swift-frontend: /home/build-user/swift/include/swift/AST/GenericSignature.h:139: const GenericSignatureImpl *swift::GenericSignature::operator->() const: Assertion `Ptr && "Cannot dereference a null GenericSignature!"' failed.
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 -primary-file /host/spi-builder-workspace/Sources/Socket/Socket.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketContinuation.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/SocketManager/CFSocketManager.swift -primary-file /host/spi-builder-workspace/Sources/Socket/System/CInternetAddress.swift /host/spi-builder-workspace/Sources/Socket/System/CInterop.swift /host/spi-builder-workspace/Sources/Socket/System/CSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/Constants.swift /host/spi-builder-workspace/Sources/Socket/System/Errno.swift /host/spi-builder-workspace/Sources/Socket/System/FileChange.swift /host/spi-builder-workspace/Sources/Socket/System/FileEvent.swift /host/spi-builder-workspace/Sources/Socket/System/FileFlags.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOControl.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IODirection.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOOperations.swift /host/spi-builder-workspace/Sources/Socket/System/InputOutput/IOType.swift /host/spi-builder-workspace/Sources/Socket/System/InternetProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/MessageFlags.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkInterface.swift /host/spi-builder-workspace/Sources/Socket/System/NetworkOrder.swift /host/spi-builder-workspace/Sources/Socket/System/Poll.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv4SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/IPv6SocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/LinkLayerSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddress/UnixSocketAddress.swift /host/spi-builder-workspace/Sources/Socket/System/SocketAddressFamily.swift /host/spi-builder-workspace/Sources/Socket/System/SocketDescriptor.swift /host/spi-builder-workspace/Sources/Socket/System/SocketFlags.swift /host/spi-builder-workspace/Sources/Socket/System/SocketHelpers.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOperations.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOption.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionID.swift /host/spi-builder-workspace/Sources/Socket/System/SocketOptionLevel.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv4Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/IPv6Protocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/LinkLayerProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketProtocol/UnixProtocol.swift /host/spi-builder-workspace/Sources/Socket/System/SocketType.swift /host/spi-builder-workspace/Sources/Socket/System/Syscalls.swift /host/spi-builder-workspace/Sources/Socket/System/Util.swift -supplementary-output-file-map /tmp/TemporaryDirectory.VX0Xoj/supplementaryOutputs-1 -target x86_64-unknown-linux-gnu -disable-objc-interop -I /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Modules -no-color-diagnostics -Xcc -fno-color-diagnostics -enable-testing -g -debug-info-format=dwarf -dwarf-version=4 -module-cache-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/ModuleCache -swift-version 6 -Onone -D SWIFT_PACKAGE -D DEBUG -D SWIFT_MODULE_RESOURCE_BUNDLE_UNAVAILABLE -empty-abi-descriptor -enable-anonymous-context-mangled-names -file-compilation-dir /host/spi-builder-workspace -Xcc -fmodule-map-file=/host/spi-builder-workspace/Sources/CSocket/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/Sources/CSocket/include -Xcc -fmodule-map-file=/host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include/module.modulemap -Xcc -I -Xcc /host/spi-builder-workspace/.build/checkouts/swift-system/Sources/CSystem/include -Xcc -g -Xcc -fno-omit-frame-pointer -no-auto-bridging-header-chaining -module-name Socket -package-name spi_builder_workspace -in-process-plugin-server-path /usr/lib/swift/host/libSwiftInProcPluginServer.so -plugin-path /usr/lib/swift/host/plugins -plugin-path /usr/local/lib/swift/host/plugins -parse-as-library -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/Socket.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/SocketContinuation.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/SocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/AsyncSocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/CFSocketManager.swift.o -o /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/Socket.build/CInternetAddress.swift.o -index-store-path /host/spi-builder-workspace/.build/x86_64-unknown-linux-gnu/debug/index/store -index-system-modules
1. Swift version 6.2-dev (LLVM 0d47fa0a0fd41fb, Swift 536aa932a9e0ea3)
2. Compiling with the current language version
3. While evaluating request ASTLoweringRequest(Lowering AST to SIL for file "/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift")
4. While silgen emitFunction SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyF".
for 'startMonitoring()' (at /host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:209:5)
5. While silgen closureexpr SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
await self.run()
"
6. While verifying SIL function "@$s6Socket05AsyncA7ManagerC15startMonitoring33_2B1509B1E2EA90CA2DC4053AF21AD7DALLyyFyyYacfU_".
for expression at [/host/spi-builder-workspace/Sources/Socket/SocketManager/AsyncSocketManager.swift:215:70 - line:217:9] RangeText="{ [unowned self] in
await self.run()
"
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 0x0000564a3a07f918
1 swift-frontend 0x0000564a3a07d43e
2 swift-frontend 0x0000564a3a07ffb1
3 libc.so.6 0x00007faeeb229520
4 libc.so.6 0x00007faeeb27d9fc pthread_kill + 300
5 libc.so.6 0x00007faeeb229476 raise + 22
6 libc.so.6 0x00007faeeb20f7f3 abort + 211
7 libc.so.6 0x00007faeeb20f71b
8 libc.so.6 0x00007faeeb220e96
9 swift-frontend 0x0000564a3382b94b
10 swift-frontend 0x0000564a33822c94
11 swift-frontend 0x0000564a32c33b77
12 swift-frontend 0x0000564a32c3255f
13 swift-frontend 0x0000564a32c3c116
14 swift-frontend 0x0000564a3376cd1e
15 swift-frontend 0x0000564a32c35a55
16 swift-frontend 0x0000564a32cb5670
17 swift-frontend 0x0000564a32cb5105
18 swift-frontend 0x0000564a32cb4dac
19 swift-frontend 0x0000564a32cb4d23
20 swift-frontend 0x0000564a32ca781d
21 swift-frontend 0x0000564a32c9dba6
22 swift-frontend 0x0000564a32c9107c
23 swift-frontend 0x0000564a32c69e04
24 swift-frontend 0x0000564a32c6a014
25 swift-frontend 0x0000564a32c69d3c
26 swift-frontend 0x0000564a32c69eda
27 swift-frontend 0x0000564a32caa81a
28 swift-frontend 0x0000564a32c9d929
29 swift-frontend 0x0000564a32c9107c
30 swift-frontend 0x0000564a32c69e04
31 swift-frontend 0x0000564a32d6c422
32 swift-frontend 0x0000564a32da5716
33 swift-frontend 0x0000564a32d8ed0c
34 swift-frontend 0x0000564a32da3345
35 swift-frontend 0x0000564a32db1dfa
36 swift-frontend 0x0000564a32db10dd
37 swift-frontend 0x0000564a32d944ec
38 swift-frontend 0x0000564a32d91d00
39 swift-frontend 0x0000564a32c9d854
40 swift-frontend 0x0000564a32c91816
41 swift-frontend 0x0000564a32d4c8ea
42 swift-frontend 0x0000564a32d4afcd
43 swift-frontend 0x0000564a32cc322a
44 swift-frontend 0x0000564a32c33142
45 swift-frontend 0x0000564a32c3477e
46 swift-frontend 0x0000564a32c3177c
47 swift-frontend 0x0000564a32d6aa1a
48 swift-frontend 0x0000564a32d655d8
49 swift-frontend 0x0000564a32d6552d
50 swift-frontend 0x0000564a32c37853
51 swift-frontend 0x0000564a32c37fa4
52 swift-frontend 0x0000564a32d4a8c6
53 swift-frontend 0x0000564a32c3cf53
54 swift-frontend 0x0000564a32c3892f
55 swift-frontend 0x0000564a32417808
56 swift-frontend 0x0000564a3242942a
57 swift-frontend 0x0000564a3241a7de
58 swift-frontend 0x0000564a32419878
59 swift-frontend 0x0000564a3219526b
60 libc.so.6 0x00007faeeb210d90
61 libc.so.6 0x00007faeeb210e40 __libc_start_main + 128
62 swift-frontend 0x0000564a32194265
BUILD FAILURE 6.2 linux