The Swift Package Index logo.Swift Package Index

Build Information

Failed to build gRPC with Swift 5.8 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.35.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/grpc/grpc-ios.git
Reference: main
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/grpc/grpc-ios
 * branch            main       -> FETCH_HEAD
 * [new branch]      main       -> origin/main
HEAD is now at 495faef use homebrew to install pyyaml
Cloned https://github.com/grpc/grpc-ios.git
Revision (git rev-parse @):
495faef56d0e9d9fc41fb67ea60357aeb8de7245
SUCCESS checkout https://github.com/grpc/grpc-ios.git at main
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.8
Building package at path:  $workDir
https://github.com/grpc/grpc-ios.git
Running build ...
bash -c docker run --rm -v "checkouts-4606859-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.8-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
Fetching https://github.com/firebase/abseil-cpp-SwiftPM.git
Fetching https://github.com/firebase/boringssl-SwiftPM.git
[1/8143] Fetching boringssl-swiftpm
[734/11749] Fetching boringssl-swiftpm, abseil-cpp-swiftpm
Fetched https://github.com/firebase/abseil-cpp-SwiftPM.git (2.40s)
Fetched https://github.com/firebase/boringssl-SwiftPM.git (2.45s)
Computing version for https://github.com/firebase/abseil-cpp-SwiftPM.git
Computed https://github.com/firebase/abseil-cpp-SwiftPM.git at 0.20240116.1 (0.31s)
Computing version for https://github.com/firebase/boringssl-SwiftPM.git
Computed https://github.com/firebase/boringssl-SwiftPM.git at 0.32.1 (0.35s)
Creating working copy for https://github.com/firebase/boringssl-SwiftPM.git
Working copy of https://github.com/firebase/boringssl-SwiftPM.git resolved at 0.32.1
Creating working copy for https://github.com/firebase/abseil-cpp-SwiftPM.git
Working copy of https://github.com/firebase/abseil-cpp-SwiftPM.git resolved at 0.20240116.1
warning: 'spi-builder-workspace': ignoring target 'build-test' in package 'spi-builder-workspace'; C language in tests is not yet supported
Building for debugging...
[0/970] Compiling mutex_stats.upb_minitable.c
[1/970] Copying PrivacyInfo.xcprivacy
[1/970] Copying Info.plist
[3/970] Compiling utf8_range.c
[4/970] Compiling reader.c
[5/970] Compiling time_cc.cc
[6/970] Compiling string_ref.cc
[7/970] Compiling status.cc
[8/970] Compiling byte_buffer_cc.cc
While building module 'abseil' imported from /host/spi-builder-workspace/src/core/client_channel/client_channel_plugin.cc:21:
In file included from <module-includes>:17:
/host/spi-builder-workspace/.build/checkouts/abseil-cpp-SwiftPM/absl/base/internal/exception_safety_testing.h:33:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h"
         ^~~~~~~~~~~~~~~
/host/spi-builder-workspace/src/core/client_channel/client_channel_plugin.cc:21:10: fatal error: could not build module 'abseil'
#include "absl/types/optional.h"
 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[9/970] Compiling client_channel_plugin.cc
[9/970] Compiling config_selector.cc
[9/970] Compiling client_channel_filter.cc
[9/970] Compiling retry_throttle.cc
[9/970] Compiling dynamic_filters.cc
While building module 'abseil' imported from /host/spi-builder-workspace/src/core/lib/gprpp/sync.h:22:
In file included from <module-includes>:17:
/host/spi-builder-workspace/.build/checkouts/abseil-cpp-SwiftPM/absl/base/internal/exception_safety_testing.h:33:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h"
         ^~~~~~~~~~~~~~~
[9/970] Compiling thread_manager.cc
While building module 'abseil' imported from /host/spi-builder-workspace/src/core/client_channel/client_channel_service_config.h:27:
In file included from <module-includes>:17:
/host/spi-builder-workspace/.build/checkouts/abseil-cpp-SwiftPM/absl/base/internal/exception_safety_testing.h:33:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h"
         ^~~~~~~~~~~~~~~
[9/970] Compiling client_channel_service_config.cc
[9/970] Compiling global_subchannel_pool.cc
warning: 'spi-builder-workspace': ignoring target 'build-test' in package 'spi-builder-workspace'; C language in tests is not yet supported
[0/1] Planning build
Building for debugging...
[0/968] Compiling decode_fast.c
[1/968] Compiling eps_copy_input_stream.c
[2/968] Compiling encode.c
[3/968] Compiling decode.c
[4/968] Compiling method_def.c
[5/968] Compiling oneof_def.c
[6/968] Compiling encode.c
[7/968] Compiling service_def.c
[8/968] Compiling time_cc.cc
[9/968] Compiling status.cc
[10/968] Compiling string_ref.cc
[11/968] Compiling byte_buffer_cc.cc
While building module 'abseil' imported from /host/spi-builder-workspace/src/core/lib/gprpp/sync.h:22:
In file included from <module-includes>:17:
/host/spi-builder-workspace/.build/checkouts/abseil-cpp-SwiftPM/absl/base/internal/exception_safety_testing.h:33:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h"
         ^~~~~~~~~~~~~~~
In file included from /host/spi-builder-workspace/src/cpp/thread_manager/thread_manager.cc:19:
In file included from /host/spi-builder-workspace/src/cpp/thread_manager/thread_manager.h:24:
/host/spi-builder-workspace/src/core/lib/gprpp/sync.h:22:10: fatal error: could not build module 'abseil'
#include "absl/base/thread_annotations.h"
 ~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2 errors generated.
[12/968] Compiling thread_manager.cc
[12/968] Compiling server_callback.cc
[12/968] Compiling xds_server_credentials.cc
[12/968] Compiling server_credentials.cc
[12/968] Compiling xds_server_builder.cc
While building module 'abseil' imported from /host/spi-builder-workspace/src/cpp/server/server_cc.cc:32:
In file included from <module-includes>:17:
/host/spi-builder-workspace/.build/checkouts/abseil-cpp-SwiftPM/absl/base/internal/exception_safety_testing.h:33:10: fatal error: 'gtest/gtest.h' file not found
#include "gtest/gtest.h"
         ^~~~~~~~~~~~~~~
[12/968] Compiling server_cc.cc
[12/968] Compiling server_context.cc
[12/968] Compiling server_posix.cc
BUILD FAILURE 5.8 linux

Build Machine: Linux 1