Build Information
Failed to build NetService with Swift 5.9 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.9-latest swift build 2>&1
Build Log
========================================
RunAll
========================================
Builder version: 4.19.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/bouke/netservice.git
Reference: master
Cloned https://github.com/bouke/netservice.git into spi-builder-workspace
SUCCESS checkout https://github.com/bouke/netservice.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-0":/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 avahi-compat-libdns_sd using your system-packager:
apt-get install libavahi-compat-libdnssd-dev
Building for debugging...
[1/11] Compiling NetService Utils.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[2/11] Compiling NetService ServiceFlags.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[3/11] Compiling NetService NetServiceDelegate.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[4/11] Compiling NetService NetServiceBrowserDelegate.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[5/11] Compiling NetService NetServiceBrowser.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
error: emit-module command failed with exit code 1 (use -v to see invocation)
[6/11] Emitting module NetService
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[7/11] Compiling NetService FoundationCompat.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
[8/11] Compiling NetService NetService.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/Cdns_sd/shim.h:1:10: error: 'dns_sd.h' file not found
#include <dns_sd.h>
^
/host/spi-builder-workspace/Sources/NetService/NetService.swift:15:8: error: could not build C module 'Cdns_sd'
import Cdns_sd
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 1