The Swift Package Index logo.Swift Package Index

Build Information

Failed to build Symbolic, reference 0.0.2 (c5f4d0), with Swift 6.3 for Wasm on 10 Apr 2026 17:37:30 UTC.

Build Command

bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/llvm-swift/symbolic.git
Reference: 0.0.2
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/llvm-swift/symbolic
 * tag               0.0.2      -> FETCH_HEAD
HEAD is now at c5f4d0f Always dlopen the handle for the current object
Cloned https://github.com/llvm-swift/symbolic.git
Revision (git rev-parse @):
c5f4d0fcc699c4a72fdb2478ea17ff4722bf229b
SUCCESS checkout https://github.com/llvm-swift/symbolic.git at 0.0.2
========================================
Build
========================================
Selected platform:         wasm
Swift version:             6.3
Building package at path:  $PWD
https://github.com/llvm-swift/symbolic.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-4609320-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest swift build --swift-sdk swift-6.3-RELEASE_wasm 2>&1
wasm-6.3-latest: Pulling from swiftpackageindex/spi-images
Digest: sha256:d69f4e7582c319245442d62a08b2d7c7fd5a0c0c69f5d2ef11d1530cd8d3329b
Status: Image is up to date for registry.gitlab.com/swiftpackageindex/spi-images:wasm-6.3-latest
Building for debugging...
[0/3] Write sources
[1/3] Compiling GlibcDlfcnShim.c
[2/3] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[4/5] Emitting module Symbolic
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:44:51: error: cannot find 'RTLD_LOCAL' in scope
 42 |     /// specified. Symbols defined in this library are not made available to
 43 |     /// resolve references in subsequently loaded libraries.
 44 |     public static let local = LoadFlags(rawValue: RTLD_LOCAL)
    |                                                   `- error: cannot find 'RTLD_LOCAL' in scope
 45 |
 46 |     /// The symbols defined by this library will be made available for symbol
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:48:52: error: cannot find 'RTLD_GLOBAL' in scope
 46 |     /// The symbols defined by this library will be made available for symbol
 47 |     /// resolution of subsequently loaded libraries.
 48 |     public static let global = LoadFlags(rawValue: RTLD_GLOBAL)
    |                                                    `- error: cannot find 'RTLD_GLOBAL' in scope
 49 |
 50 |     /// Don't load the library. This can be used to test if the library is
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:56:52: error: cannot find 'RTLD_NOLOAD' in scope
 54 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 55 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 56 |     public static let noLoad = LoadFlags(rawValue: RTLD_NOLOAD)
    |                                                    `- error: cannot find 'RTLD_NOLOAD' in scope
 57 |
 58 |     /// Do not unload the library during dlclose(). Consequently, the library's
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:61:54: error: cannot find 'RTLD_NODELETE' in scope
 59 |     /// static variables are not reinitialized if the library is reloaded with
 60 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 61 |     public static let noDelete = LoadFlags(rawValue: RTLD_NODELETE)
    |                                                      `- error: cannot find 'RTLD_NODELETE' in scope
 62 |
 63 |     /// Initalizes a set of flags with a given raw integer value.
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:174:26: error: cannot find type 'Dl_info' in scope
172 |
173 |   /// Creates a SymbolInfo from the corresponding dl_info.
174 |   private init(_ dlinfo: Dl_info) {
    |                          `- error: cannot find type 'Dl_info' in scope
175 |     self.fileBaseAddress = UnsafeRawPointer(dlinfo.dli_fbase)
176 |     self.symbolAddress = UnsafeRawPointer(dlinfo.dli_saddr)
[5/5] Compiling Symbolic Symbolic.swift
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:44:51: error: cannot find 'RTLD_LOCAL' in scope
 42 |     /// specified. Symbols defined in this library are not made available to
 43 |     /// resolve references in subsequently loaded libraries.
 44 |     public static let local = LoadFlags(rawValue: RTLD_LOCAL)
    |                                                   `- error: cannot find 'RTLD_LOCAL' in scope
 45 |
 46 |     /// The symbols defined by this library will be made available for symbol
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:48:52: error: cannot find 'RTLD_GLOBAL' in scope
 46 |     /// The symbols defined by this library will be made available for symbol
 47 |     /// resolution of subsequently loaded libraries.
 48 |     public static let global = LoadFlags(rawValue: RTLD_GLOBAL)
    |                                                    `- error: cannot find 'RTLD_GLOBAL' in scope
 49 |
 50 |     /// Don't load the library. This can be used to test if the library is
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:56:52: error: cannot find 'RTLD_NOLOAD' in scope
 54 |     /// was previously loaded with RTLD_LOCAL can be reopened with
 55 |     /// `[.noLoad, .global]`. This flag is not specified in POSIX.1-2001.
 56 |     public static let noLoad = LoadFlags(rawValue: RTLD_NOLOAD)
    |                                                    `- error: cannot find 'RTLD_NOLOAD' in scope
 57 |
 58 |     /// Do not unload the library during dlclose(). Consequently, the library's
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:61:54: error: cannot find 'RTLD_NODELETE' in scope
 59 |     /// static variables are not reinitialized if the library is reloaded with
 60 |     /// dlopen() at a later time. This flag is not specified in POSIX.1-2001.
 61 |     public static let noDelete = LoadFlags(rawValue: RTLD_NODELETE)
    |                                                      `- error: cannot find 'RTLD_NODELETE' in scope
 62 |
 63 |     /// Initalizes a set of flags with a given raw integer value.
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:174:26: error: cannot find type 'Dl_info' in scope
172 |
173 |   /// Creates a SymbolInfo from the corresponding dl_info.
174 |   private init(_ dlinfo: Dl_info) {
    |                          `- error: cannot find type 'Dl_info' in scope
175 |     self.fileBaseAddress = UnsafeRawPointer(dlinfo.dli_fbase)
176 |     self.symbolAddress = UnsafeRawPointer(dlinfo.dli_saddr)
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:16:16: error: cannot find 'dlerror' in scope
 14 | private func withDLError<T>(_ fn: () -> T) throws -> T {
 15 |   let val = fn()
 16 |   if let err = dlerror() {
    |                `- error: cannot find 'dlerror' in scope
 17 |     throw LoadError.dlerror(String(cString: err))
 18 |   }
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:85:19: error: cannot find 'RTLD_LAZY' in scope
 83 |     switch behavior {
 84 |     case .lazy:
 85 |       rawFlags |= RTLD_LAZY
    |                   `- error: cannot find 'RTLD_LAZY' in scope
 86 |     case .now:
 87 |       rawFlags |= RTLD_NOW
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:87:19: error: cannot find 'RTLD_NOW' in scope
 85 |       rawFlags |= RTLD_LAZY
 86 |     case .now:
 87 |       rawFlags |= RTLD_NOW
    |                   `- error: cannot find 'RTLD_NOW' in scope
 88 |     }
 89 |
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:92:7: error: cannot find 'dlopen' in scope
 90 |     self.object = object
 91 |     self.handle = UnsafeRawPointer(try withDLError {
 92 |       dlopen(object.path, rawFlags)
    |       `- error: cannot find 'dlopen' in scope
 93 |     })
 94 |     self.ownsHandle = !flags.contains(.noLoad)
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:127:22: error: cannot find 'dlsym' in scope
125 |   public func address(ofSymbol symbol: String) -> UnsafeRawPointer? {
126 |     let mut = UnsafeMutableRawPointer(mutating: handle)
127 |     guard let addr = dlsym(mut, symbol) else { return nil }
    |                      `- error: cannot find 'dlsym' in scope
128 |     return UnsafeRawPointer(addr)
129 |   }
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:132:12: error: cannot find 'dlopen' in scope
130 |
131 |   public static func isLoaded(_ library: URL) -> Bool {
132 |     return dlopen(library.path, RTLD_LAZY | RTLD_NOLOAD) != nil
    |            `- error: cannot find 'dlopen' in scope
133 |   }
134 |
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:132:33: error: cannot find 'RTLD_LAZY' in scope
130 |
131 |   public static func isLoaded(_ library: URL) -> Bool {
132 |     return dlopen(library.path, RTLD_LAZY | RTLD_NOLOAD) != nil
    |                                 `- error: cannot find 'RTLD_LAZY' in scope
133 |   }
134 |
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:132:45: error: cannot find 'RTLD_NOLOAD' in scope
130 |
131 |   public static func isLoaded(_ library: URL) -> Bool {
132 |     return dlopen(library.path, RTLD_LAZY | RTLD_NOLOAD) != nil
    |                                             `- error: cannot find 'RTLD_NOLOAD' in scope
133 |   }
134 |
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:137:7: error: cannot find 'dlclose' in scope
135 |   deinit {
136 |     if ownsHandle {
137 |       dlclose(UnsafeMutableRawPointer(mutating: handle))
    |       `- error: cannot find 'dlclose' in scope
138 |     }
139 |   }
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:168:16: error: cannot find 'Dl_info' in scope
166 |   /// - parameter address: The address of the symbol you intend to get.
167 |   public init?(address: UnsafeRawPointer) {
168 |     var info = Dl_info()
    |                `- error: cannot find 'Dl_info' in scope
169 |     guard dladdr(address, &info) != 0 else { return nil }
170 |     self.init(info)
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:169:11: error: cannot find 'dladdr' in scope
167 |   public init?(address: UnsafeRawPointer) {
168 |     var info = Dl_info()
169 |     guard dladdr(address, &info) != 0 else { return nil }
    |           `- error: cannot find 'dladdr' in scope
170 |     self.init(info)
171 |   }
/host/spi-builder-workspace/Sources/Symbolic/Symbolic.swift:170:15: error: missing argument label 'address:' in call
168 |     var info = Dl_info()
169 |     guard dladdr(address, &info) != 0 else { return nil }
170 |     self.init(info)
    |               `- error: missing argument label 'address:' in call
171 |   }
172 |
BUILD FAILURE 6.3 wasm