The Swift Package Index logo.Swift Package Index

Build Information

Failed to build opentelemetry-swift 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 --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.34.1
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/open-telemetry/opentelemetry-swift.git
Reference: 1.9.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/open-telemetry/opentelemetry-swift
 * tag               1.9.2      -> FETCH_HEAD
HEAD is now at 4eb75bc Update version to 1.9.2 (#531)
Cloned https://github.com/open-telemetry/opentelemetry-swift.git
Revision (git rev-parse @):
4eb75bc8f0d6449bc197637b5c6044b51ab8c4ed
SUCCESS checkout https://github.com/open-telemetry/opentelemetry-swift.git at 1.9.2
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/open-telemetry/opentelemetry-swift.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 --triple x86_64-unknown-linux-gnu 2>&1
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-5.9.swift:64:69: warning: 'when(platforms:configuration:)' is deprecated
                linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
                                                                    ^
Fetching https://github.com/apple/swift-nio-extras.git
Fetching https://github.com/undefinedlabs/opentracing-objc
Fetching https://github.com/apple/swift-nio-http2.git
Fetching https://github.com/apple/swift-nio-ssl.git
Fetching https://github.com/apple/swift-metrics.git
Fetching https://github.com/apple/swift-nio.git
[1/508] Fetching opentracing-objc
[509/2443] Fetching opentracing-objc, swift-metrics
[1071/7264] Fetching opentracing-objc, swift-metrics, swift-nio-extras
[5867/17444] Fetching opentracing-objc, swift-metrics, swift-nio-extras, swift-nio-http2
Fetched https://github.com/apple/swift-metrics.git from cache (0.34s)
Fetching https://github.com/apple/swift-atomics.git
[6856/15509] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2
[7875/27733] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2, swift-nio-ssl
[13701/93025] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2, swift-nio-ssl, swift-nio
[19690/94588] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2, swift-nio-ssl, swift-nio, swift-atomics
Fetched https://github.com/apple/swift-atomics.git from cache (0.46s)
[30313/93025] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2, swift-nio-ssl, swift-nio
Fetching https://github.com/apple/swift-nio-transport-services.git
[57116/95100] Fetching opentracing-objc, swift-nio-extras, swift-nio-http2, swift-nio-ssl, swift-nio, swift-nio-transport-services
Fetched https://github.com/apple/swift-nio-extras.git from cache (1.12s)
[52585/90279] Fetching opentracing-objc, swift-nio-http2, swift-nio-ssl, swift-nio, swift-nio-transport-services
Fetching https://github.com/grpc/grpc-swift.git
Fetched https://github.com/apple/swift-nio-transport-services.git from cache (0.44s)
Fetching https://github.com/apple/swift-collections.git
[56864/88204] Fetching opentracing-objc, swift-nio-http2, swift-nio-ssl, swift-nio
Fetched https://github.com/undefinedlabs/opentracing-objc from cache (1.46s)
Fetching https://github.com/apple/swift-log.git
Fetched https://github.com/apple/swift-nio-http2.git from cache (1.47s)
Fetching https://github.com/apple/swift-protobuf.git
Fetched https://github.com/apple/swift-nio-ssl.git from cache (1.48s)
Fetching https://github.com/undefinedlabs/Thrift-Swift
[39176/65292] Fetching swift-nio
[39830/79037] Fetching swift-nio, swift-collections
[41721/79689] Fetching swift-nio, swift-collections, thrift-swift
[44536/82862] Fetching swift-nio, swift-collections, thrift-swift, swift-log
Fetched https://github.com/undefinedlabs/Thrift-Swift from cache (0.24s)
[48193/82210] Fetching swift-nio, swift-collections, swift-log
[49812/122134] Fetching swift-nio, swift-collections, swift-log, grpc-swift
Fetched https://github.com/apple/swift-log.git from cache (0.38s)
[53996/118961] Fetching swift-nio, swift-collections, grpc-swift
Fetched https://github.com/apple/swift-collections.git from cache (1.15s)
[101770/105216] Fetching swift-nio, grpc-swift
[105217/139841] Fetching swift-nio, grpc-swift, swift-protobuf
Fetched https://github.com/grpc/grpc-swift.git from cache (2.22s)
[70832/99917] Fetching swift-nio, swift-protobuf
Fetched https://github.com/apple/swift-nio.git from cache (4.98s)
Fetched https://github.com/apple/swift-protobuf.git from cache (5.67s)
Computing version for https://github.com/apple/swift-metrics.git
Computed https://github.com/apple/swift-metrics.git at 2.2.0 (1.48s)
Computing version for https://github.com/apple/swift-log.git
Computed https://github.com/apple/swift-log.git at 1.4.4 (1.03s)
Computing version for https://github.com/apple/swift-protobuf.git
Computed https://github.com/apple/swift-protobuf.git at 1.20.2 (0.39s)
Computing version for https://github.com/grpc/grpc-swift.git
Computed https://github.com/grpc/grpc-swift.git at 1.11.0 (0.55s)
Computing version for https://github.com/apple/swift-nio.git
Computed https://github.com/apple/swift-nio.git at 2.43.1 (0.47s)
Computing version for https://github.com/undefinedlabs/Thrift-Swift
Computed https://github.com/undefinedlabs/Thrift-Swift at 1.1.2 (0.38s)
Computing version for https://github.com/undefinedlabs/opentracing-objc
Computed https://github.com/undefinedlabs/opentracing-objc at 0.5.2 (1.01s)
Computing version for https://github.com/apple/swift-nio-ssl.git
Computed https://github.com/apple/swift-nio-ssl.git at 2.16.1 (0.42s)
Computing version for https://github.com/apple/swift-nio-extras.git
Computed https://github.com/apple/swift-nio-extras.git at 1.19.1 (0.42s)
Computing version for https://github.com/apple/swift-nio-transport-services.git
Computed https://github.com/apple/swift-nio-transport-services.git at 1.11.3 (1.30s)
Computing version for https://github.com/apple/swift-nio-http2.git
Computed https://github.com/apple/swift-nio-http2.git at 1.23.0 (0.41s)
Computing version for https://github.com/apple/swift-collections.git
Computed https://github.com/apple/swift-collections.git at 1.0.3 (0.62s)
Computing version for https://github.com/apple/swift-atomics.git
Computed https://github.com/apple/swift-atomics.git at 1.0.2 (0.42s)
Creating working copy for https://github.com/apple/swift-nio-extras.git
Working copy of https://github.com/apple/swift-nio-extras.git resolved at 1.19.1
Creating working copy for https://github.com/undefinedlabs/opentracing-objc
Working copy of https://github.com/undefinedlabs/opentracing-objc resolved at 0.5.2
Creating working copy for https://github.com/apple/swift-log.git
Working copy of https://github.com/apple/swift-log.git resolved at 1.4.4
Creating working copy for https://github.com/apple/swift-nio.git
Working copy of https://github.com/apple/swift-nio.git resolved at 2.43.1
Creating working copy for https://github.com/grpc/grpc-swift.git
Working copy of https://github.com/grpc/grpc-swift.git resolved at 1.11.0
Creating working copy for https://github.com/apple/swift-nio-ssl.git
Working copy of https://github.com/apple/swift-nio-ssl.git resolved at 2.16.1
Creating working copy for https://github.com/apple/swift-nio-transport-services.git
Working copy of https://github.com/apple/swift-nio-transport-services.git resolved at 1.11.3
Creating working copy for https://github.com/apple/swift-protobuf.git
Working copy of https://github.com/apple/swift-protobuf.git resolved at 1.20.2
Creating working copy for https://github.com/apple/swift-collections.git
Working copy of https://github.com/apple/swift-collections.git resolved at 1.0.3
Creating working copy for https://github.com/apple/swift-atomics.git
Working copy of https://github.com/apple/swift-atomics.git resolved at 1.0.2
Creating working copy for https://github.com/apple/swift-metrics.git
Working copy of https://github.com/apple/swift-metrics.git resolved at 2.2.0
Creating working copy for https://github.com/undefinedlabs/Thrift-Swift
Working copy of https://github.com/undefinedlabs/Thrift-Swift resolved at 1.1.2
Creating working copy for https://github.com/apple/swift-nio-http2.git
Working copy of https://github.com/apple/swift-nio-http2.git resolved at 1.23.0
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Exporters/Persistence/README.md
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/prometheus-metrics.png
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/prometheus.yaml
[1/1] Compiling plugin GRPCSwiftPlugin
[2/2] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[2/596] Write sources
[30/596] Compiling a_d2i_fp.c
[31/596] Write sources
[32/596] Compiling a_bool.c
[33/596] Write sources
[34/596] Compiling a_bitstr.c
[35/596] Compiling file.c
[36/596] Compiling _AtomicsShims.c
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[37/596] Compiling OTReference.m
[37/596] Compiling CGRPCZlib empty.c
[37/596] Write swift-version-24593BA9C3E375BF.txt
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTNoop.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTNoop.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[37/596] Compiling OTGlobal.m
[37/596] Compiling OTNoop.m
[37/596] Compiling c-atomics.c
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[37/596] Compiling OTTracer.m
[37/596] Compiling c-nioatomics.c
warning: 'spi-builder-workspace': /host/spi-builder-workspace/Package@swift-5.9.swift:64:69: warning: 'when(platforms:configuration:)' is deprecated
                linkerSettings: [.linkedFramework("CoreTelephony", .when(platforms: [.iOS], configuration: nil))]),
                                                                    ^
warning: 'spi-builder-workspace': found 1 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Sources/Exporters/Persistence/README.md
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/images/prometheus-metrics.png
    /host/spi-builder-workspace/Examples/OTLP HTTP Exporter/collector-config.yaml
warning: 'spi-builder-workspace': found 5 file(s) which are unhandled; explicitly declare them as resources or exclude from the target
    /host/spi-builder-workspace/Examples/OTLP Exporter/collector-config.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/zipkin-spans.png
    /host/spi-builder-workspace/Examples/OTLP Exporter/prometheus.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/docker-compose.yaml
    /host/spi-builder-workspace/Examples/OTLP Exporter/images/prometheus-metrics.png
[0/1] Planning build
[1/1] Compiling plugin GRPCSwiftPlugin
[2/2] Compiling plugin SwiftProtobufPlugin
Building for debugging...
[2/561] Write sources
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTTracer.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTReference.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[19/561] Compiling OTReference.m
[19/561] Compiling OTTracer.m
In file included from /host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTGlobal.m:1:
/host/spi-builder-workspace/.build/checkouts/opentracing-objc/Pod/Classes/OTGlobal.h:1:9: fatal error: 'Foundation/Foundation.h' file not found
#import <Foundation/Foundation.h>
        ^~~~~~~~~~~~~~~~~~~~~~~~~
1 error generated.
[19/561] Compiling OTGlobal.m
[19/561] Compiling CNIOWindows shim.c
[19/561] Compiling OTNoop.m
[19/561] Compiling CNIOLinux shim.c
[19/561] Compiling CNIOWindows WSAStartup.c
[19/561] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 5.10 linux

Build Machine: Linux 1