The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftSDL2 with Swift 5.7 for Linux.

Build Command

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

Build Log

========================================
RunAll
========================================
Builder version: 4.22.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/sunlubo/swiftsdl2.git
Reference: 0.0.7
Cloned https://github.com/sunlubo/swiftsdl2.git into spi-builder-workspace
SUCCESS checkout https://github.com/sunlubo/swiftsdl2.git at 0.0.7
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.7
Building package at path:  spi-builder-workspace
Running build ...
docker run --rm -v "checkouts-4606859-0":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.7-latest swift build 2>&1
Fetching https://github.com/sunlubo/CSDL2
Fetched https://github.com/sunlubo/CSDL2 (0.22s)
Computing version for https://github.com/sunlubo/CSDL2
Computed https://github.com/sunlubo/CSDL2 at 1.0.0 (0.28s)
Creating working copy for https://github.com/sunlubo/CSDL2
Working copy of https://github.com/sunlubo/CSDL2 resolved at 1.0.0
warning: 'csdl2': ignoring declared target(s) 'CSDL2' in the system package
warning: dependency 'csdl2' is not used by any target
warning: couldn't find pc file for sdl2
Building for debugging...
[1/18] Compiling SwiftSDL2 Timer.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[2/19] Compiling SwiftSDL2 Texture.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[3/19] Compiling SwiftSDL2 Thread.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[4/19] Compiling SwiftSDL2 Util.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
error: emit-module command failed with exit code 1 (use -v to see invocation)[5/19] Emitting module SwiftSDL2
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[6/19] Compiling SwiftSDL2 StringExt.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[7/19] Compiling SwiftSDL2 Surface.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[8/19] Compiling SwiftSDL2 Mutex.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[9/19] Compiling SwiftSDL2 PointerExt.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[10/19] Compiling SwiftSDL2 Audio.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[11/19] Compiling SwiftSDL2 Event.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[12/19] Compiling SwiftSDL2 Renderer.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[13/19] Compiling SwiftSDL2 SDLError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
[14/19] Compiling SwiftSDL2 Window.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "sdl2_shim.h"
         ^
/host/spi-builder-workspace/.build/checkouts/CSDL2/sdl2_shim.h:1:10: error: 'SDL2/SDL.h' file not found
#include <SDL2/SDL.h>
         ^
/host/spi-builder-workspace/Sources/SwiftSDL2/Audio.swift:8:8: error: could not build C module 'CSDL2'
import CSDL2
       ^
BUILD FAILURE 5.7 linux

Build Machine: Linux 1