Build Information
Failed to build Clang with Swift 5.9 for Linux.
Build Command
docker run --rm -v "checkouts-4609320-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/llvm-swift/clangswift.git
Reference: master
Cloned https://github.com/llvm-swift/clangswift.git into spi-builder-workspace
SUCCESS checkout https://github.com/llvm-swift/clangswift.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-4609320-1":/host -w "/host/spi-builder-workspace" registry.gitlab.com/finestructure/spi-images:basic-5.9-latest swift build 2>&1
warning: couldn't find pc file for cclang
Building for debugging...
error: emit-module command failed with exit code 1 (use -v to see invocation)
[1/16] Emitting module Clang
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[2/18] Compiling Clang Cursor.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[3/18] Compiling Clang Cursors.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[4/18] Compiling Clang Availability.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[5/18] Compiling Clang CType.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[6/18] Compiling Clang CTypes.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[7/18] Compiling Clang TranslationUnit.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[8/18] Compiling Clang Utilities.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[9/18] Compiling Clang Diagnostic.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[10/18] Compiling Clang EvalResult.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[11/18] Compiling Clang ClangError.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[12/18] Compiling Clang Comment.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[13/18] Compiling Clang File.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[14/18] Compiling Clang FunctionDecl.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[15/18] Compiling Clang NameRefOptions.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[16/18] Compiling Clang Token.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[17/18] Compiling Clang Index.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
[18/18] Compiling Clang Language.swift
<module-includes>:1:10: note: in file included from <module-includes>:1:
#include "shim.h"
^
/host/spi-builder-workspace/Sources/cclang/shim.h:1:10: error: 'clang-c/Platform.h' file not found
#include <clang-c/Platform.h>
^
/host/spi-builder-workspace/Sources/Clang/Availability.swift:2:8: error: could not build C module 'cclang'
import cclang
^
error: fatalError
BUILD FAILURE 5.9 linux
Build Machine: Linux 2