Build Information
Failed to build FirebladePAL with Swift 5.10 for Linux.
Build Command
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/fireblade-engine/pal.git
Reference: 0.2.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/fireblade-engine/pal
* tag 0.2.2 -> FETCH_HEAD
HEAD is now at c6b3fab Update dependency ctreffs/SwiftVulkan to from: "0.2.1" (#23)
Cloned https://github.com/fireblade-engine/pal.git
Revision (git rev-parse @):
c6b3fabeec37931ac479c9c301a60880be2f5822
SUCCESS checkout https://github.com/fireblade-engine/pal.git at 0.2.2
========================================
Build
========================================
Selected platform: linux
Swift version: 5.10
Building package at path: $workDir
https://github.com/fireblade-engine/pal.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-0":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
Fetching https://github.com/fireblade-engine/math.git
Fetching https://github.com/ctreffs/SwiftSDL2.git
Fetching https://github.com/ctreffs/SwiftVulkan
Fetching https://github.com/ctreffs/SwiftNFD.git
Fetching https://github.com/fireblade-engine/time.git
[1/1264] Fetching swiftsdl2
[735/1639] Fetching swiftsdl2, swiftnfd
[1047/2035] Fetching swiftsdl2, swiftnfd, time
[1097/4638] Fetching swiftsdl2, swiftnfd, time, math
[1882/4926] Fetching swiftsdl2, swiftnfd, time, math, swiftvulkan
Fetched https://github.com/fireblade-engine/time.git from cache (0.26s)
[4030/4530] Fetching swiftsdl2, swiftnfd, math, swiftvulkan
Fetched https://github.com/ctreffs/SwiftVulkan from cache (0.40s)
Fetched https://github.com/ctreffs/SwiftNFD.git from cache (0.40s)
Fetched https://github.com/fireblade-engine/math.git from cache (0.40s)
Fetched https://github.com/ctreffs/SwiftSDL2.git from cache (0.40s)
Computing version for https://github.com/ctreffs/SwiftNFD.git
Computed https://github.com/ctreffs/SwiftNFD.git at 1.0.2 (0.38s)
Computing version for https://github.com/ctreffs/SwiftVulkan
Computed https://github.com/ctreffs/SwiftVulkan at 0.2.1 (0.39s)
Computing version for https://github.com/ctreffs/SwiftSDL2.git
Computed https://github.com/ctreffs/SwiftSDL2.git at 1.3.2 (0.40s)
Computing version for https://github.com/fireblade-engine/time.git
Computed https://github.com/fireblade-engine/time.git at 0.2.0 (0.42s)
Computing version for https://github.com/fireblade-engine/math.git
Computed https://github.com/fireblade-engine/math.git at 0.13.0 (0.41s)
Creating working copy for https://github.com/fireblade-engine/time.git
Working copy of https://github.com/fireblade-engine/time.git resolved at 0.2.0
Creating working copy for https://github.com/fireblade-engine/math.git
Working copy of https://github.com/fireblade-engine/math.git resolved at 0.13.0
Creating working copy for https://github.com/ctreffs/SwiftNFD.git
Working copy of https://github.com/ctreffs/SwiftNFD.git resolved at 1.0.2
Creating working copy for https://github.com/ctreffs/SwiftVulkan
Working copy of https://github.com/ctreffs/SwiftVulkan resolved at 0.2.1
Creating working copy for https://github.com/ctreffs/SwiftSDL2.git
Working copy of https://github.com/ctreffs/SwiftSDL2.git resolved at 1.3.2
warning: you may be able to install sdl2 using your system-packager:
apt-get install libsdl2-dev
warning: you may be able to install vulkan using your system-packager:
apt-get install libvulkan-dev libvulkan1
Building for debugging...
[0/30] Write sources
[8/30] Compiling CNFD nfd_cocoa.m
[9/30] Compiling CNFD nfd_win.cpp
[10/30] Compiling CNFD nfd_gtk.c
[11/30] Compiling CNFD nfd_common.c
[12/30] Compiling CNFD nfd_default.c
[13/30] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[15/130] Emitting module CSDL2Wrapped
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shims.h"
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:14: note: in file included from /host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:
#include "linux.h" // linux
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/linux.h:1:10: error: 'SDL.h' file not found
#include <SDL.h>
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2Wrapped/CSDL2Wrapped.swift:9:19: error: could not build C module 'CSDL2'
@_exported import CSDL2
^
[16/130] Compiling CSDL2Wrapped CSDL2Wrapped.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shims.h"
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:14: note: in file included from /host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:
#include "linux.h" // linux
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/linux.h:1:10: error: 'SDL.h' file not found
#include <SDL.h>
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2Wrapped/CSDL2Wrapped.swift:9:19: error: could not build C module 'CSDL2'
@_exported import CSDL2
^
error: fatalError
warning: you may be able to install sdl2 using your system-packager:
apt-get install libsdl2-dev
warning: you may be able to install vulkan using your system-packager:
apt-get install libvulkan-dev libvulkan1
[0/1] Planning build
Building for debugging...
[0/17] Write swift-version-24593BA9C3E375BF.txt
error: emit-module command failed with exit code 1 (use -v to see invocation)
[2/54] Emitting module CSDL2Wrapped
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shims.h"
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:14: note: in file included from /host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:
#include "linux.h" // linux
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/linux.h:1:10: error: 'SDL.h' file not found
#include <SDL.h>
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2Wrapped/CSDL2Wrapped.swift:9:19: error: could not build C module 'CSDL2'
@_exported import CSDL2
^
[3/54] Compiling CSDL2Wrapped CSDL2Wrapped.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shims.h"
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:14: note: in file included from /host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/shims.h:20:
#include "linux.h" // linux
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2/linux.h:1:10: error: 'SDL.h' file not found
#include <SDL.h>
^
/host/spi-builder-workspace/.build/checkouts/SwiftSDL2/Sources/CSDL2Wrapped/CSDL2Wrapped.swift:9:19: error: could not build C module 'CSDL2'
@_exported import CSDL2
^
error: fatalError
[4/68] Emitting module NFD
BUILD FAILURE 5.10 linux