Build Information
Failed to build GL, reference master (8dfcb2), with Swift 6.3 for Wasm on 14 Apr 2026 03:40:43 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>&1Build Log
========================================
RunAll
========================================
Builder version: 4.70.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/UnGast/swift-opengl.git
Reference: master
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/UnGast/swift-opengl
* branch master -> FETCH_HEAD
* [new branch] master -> origin/master
HEAD is now at 8dfcb2e update linked library on windows
Cloned https://github.com/UnGast/swift-opengl.git
Revision (git rev-parse @):
8dfcb2e1ac804975cd30fe503ca0f3a76b93ab05
SUCCESS checkout https://github.com/UnGast/swift-opengl.git at master
========================================
Build
========================================
Selected platform: wasm
Swift version: 6.3
Building package at path: $PWD
https://github.com/UnGast/swift-opengl.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
Fetching https://github.com/kelvin13/swiftxml
[1/246] Fetching swiftxml
Fetched https://github.com/kelvin13/swiftxml from cache (0.25s)
Creating working copy for https://github.com/kelvin13/swiftxml
Working copy of https://github.com/kelvin13/swiftxml resolved at master (91ae89c)
Building for debugging...
[0/8] Write sources
[3/8] Write swift-version-24593BA9C3E375BF.txt
[5/14] Compiling GL opengl.swift
[6/14] Emitting module XML
[7/14] Compiling XML swiftxml.swift
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:318:49: error: cannot find 'getenv' in scope
316 | if expanded_path.count == 1 || expanded_path[expanded_path.index(after: expanded_path.startIndex)] == "/"
317 | {
318 | expanded_path = String(cString: getenv("HOME")) + String(expanded_path.dropFirst())
| `- error: cannot find 'getenv' in scope
319 | }
320 | }
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:327:42: error: cannot find type 'FILE' in scope
325 | func open_text_file(_ posix_path:String) -> String?
326 | {
327 | guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
| `- error: cannot find type 'FILE' in scope
328 | else
329 | {
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:327:50: error: cannot find 'fopen' in scope
325 | func open_text_file(_ posix_path:String) -> String?
326 | {
327 | guard let f:UnsafeMutablePointer<FILE> = fopen(posix_path, "rb")
| `- error: cannot find 'fopen' in scope
328 | else
329 | {
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:333:17: error: cannot find 'fclose' in scope
331 | return nil
332 | }
333 | defer { fclose(f) }
| `- error: cannot find 'fclose' in scope
334 |
335 | let fseek_status:CInt = fseek(f, 0, SEEK_END)
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:335:33: error: cannot find 'fseek' in scope
333 | defer { fclose(f) }
334 |
335 | let fseek_status:CInt = fseek(f, 0, SEEK_END)
| `- error: cannot find 'fseek' in scope
336 | guard fseek_status == 0
337 | else
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:335:45: error: cannot find 'SEEK_END' in scope
333 | defer { fclose(f) }
334 |
335 | let fseek_status:CInt = fseek(f, 0, SEEK_END)
| `- error: cannot find 'SEEK_END' in scope
336 | guard fseek_status == 0
337 | else
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:343:23: error: cannot find 'ftell' in scope
341 | }
342 |
343 | let n:CLong = ftell(f)
| `- error: cannot find 'ftell' in scope
344 | guard 0 ..< CLong.max ~= n
345 | else
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:350:9: error: cannot find 'rewind' in scope
348 | return nil
349 | }
350 | rewind(f)
| `- error: cannot find 'rewind' in scope
351 |
352 | let buffer:UnsafeMutablePointer<CChar> = UnsafeMutablePointer<CChar>.allocate(capacity: n + 1) // leave room for sentinel
/host/spi-builder-workspace/.build/checkouts/swiftxml/swiftxml/swiftxml.swift:355:22: error: cannot find 'fread' in scope
353 | defer { buffer.deallocate(capacity: n + 1) }
354 |
355 | let n_read = fread(buffer, MemoryLayout<CChar>.size, n, f)
| `- error: cannot find 'fread' in scope
356 | guard n_read == n
357 | else
BUILD FAILURE 6.3 wasm