The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SDL with Swift 5.9 for Linux.

Build Command

docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/pureswift/sdl.git
Reference: master
Cloned https://github.com/pureswift/sdl.git into spi-builder-workspace
SUCCESS checkout https://github.com/pureswift/sdl.git at master
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.9
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: you may be able to install sdl2 using your system-packager:
    apt-get install libsdl2-dev
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/18] Emitting module SDL
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[2/19] Compiling SDL Window.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[3/19] Compiling SDL PixelFormat.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[4/19] Compiling SDL Renderer.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[5/19] Compiling SDL SDL.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[6/19] Compiling SDL Surface.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[7/19] Compiling SDL Texture.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[8/19] Compiling SDL VideoDisplay.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[9/19] Compiling SDL BitMaskOption.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[10/19] Compiling SDL BlendMode.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[11/19] Compiling SDL Color.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[12/19] Compiling SDL CountableSet.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[13/19] Compiling SDL Event.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[14/19] Compiling SDL Palette.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[15/19] Compiling SDL DisplayMode.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[16/19] Compiling SDL Error.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
         ^
/host/spi-builder-workspace/Sources/CSDL2/shim.h:4:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SDL/BlendMode.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
error: fatalError
BUILD FAILURE 5.9 linux

Build Machine: Linux 1