The Swift Package Index logo.Swift Package Index

Build Information

Failed to build SwiftZip with Swift 5.10 for Linux.

Build Command

bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 4.29.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/SwiftZip/SwiftZip.git
Reference: 0.0.5
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/SwiftZip/SwiftZip
 * tag               0.0.5      -> FETCH_HEAD
HEAD is now at 97c2303 Expose SwiftZipUtils in package manifest (#13)
Submodule path 'Sources/zip/libzip': checked out 'bf4a5e20740a7b375138a7007d0c758062c55ff7'
Submodule 'Sources/zip/libzip' (https://github.com/nih-at/libzip.git) registered for path 'Sources/zip/libzip'
Cloning into '/host/spi-builder-workspace/Sources/zip/libzip'...
Cloned https://github.com/SwiftZip/SwiftZip.git
Revision (git rev-parse @):
97c2303d0fcc0bb6ae78a93ee10bdb91a1467c8f
SUCCESS checkout https://github.com/SwiftZip/SwiftZip.git at 0.0.5
========================================
Build
========================================
Selected platform:         linux
Swift version:             5.10
Building package at path:  $workDir
https://github.com/SwiftZip/SwiftZip.git
Running build ...
bash -c docker run --rm -v "checkouts-4609320-1":/host -w "$workDir" registry.gitlab.com/finestructure/spi-images:basic-5.10-latest swift build 2>&1
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/zip/libzip/lib/make_zip_err_str.sh': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/zip/libzip/lib/make_zipconf.sh': File not found.
Building for debugging...
[0/120] Compiling zip_file_set_external_attributes.c
[1/120] Compiling zip_error_get.c
[2/120] Compiling zip_error_get_sys_type.c
[3/120] Compiling zip_buffer.c
[4/120] Compiling zip_algorithm_deflate.c
[4/120] Compiling zip_error_to_str.c
[6/120] Compiling zip_close.c
[7/120] Compiling zip_error_strerror.c
[8/120] Compiling zip_unchange_data.c
[9/120] Compiling zip_utf-8.c
[10/120] Compiling zip_unchange_all.c
[11/120] Compiling zip_strerror.c
[11/120] Compiling zip_unchange.c
[11/120] Compiling zip_unchange_archive.c
[14/120] Compiling zip_string.c
[15/120] Compiling zip_stat_init.c
[16/120] Compiling zip_stat_index.c
[17/120] Compiling zip_stat.c
[17/120] Compiling zip_source_write.c
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_winzip_aes.c:65:18: warning: 'AES_encrypt' is deprecated [-Wdeprecated-declarations]
            if (!_zip_crypto_aes_encrypt_block(ctx->aes, ctx->counter, ctx->pad)) {
                 ^
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_crypto_openssl.h:46:54: note: expanded from macro '_zip_crypto_aes_encrypt_block'
#define _zip_crypto_aes_encrypt_block(aes, in, out) (AES_encrypt((in), (out), (aes)), true)
                                                     ^
/usr/include/openssl/aes.h:56:1: note: 'AES_encrypt' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_winzip_aes.c:137:44: warning: 'HMAC_Update' is deprecated [-Wdeprecated-declarations]
    return aes_crypt(ctx, data, length) && _zip_crypto_hmac(ctx->hmac, data, length);
                                           ^
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_crypto_openssl.h:49:47: note: expanded from macro '_zip_crypto_hmac'
#define _zip_crypto_hmac(hmac, data, length) (HMAC_Update((hmac), (data), (length)) == 1)
                                              ^
/usr/include/openssl/hmac.h:45:1: note: 'HMAC_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_winzip_aes.c:143:12: warning: 'HMAC_Update' is deprecated [-Wdeprecated-declarations]
    return _zip_crypto_hmac(ctx->hmac, data, length) && aes_crypt(ctx, data, length);
           ^
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_crypto_openssl.h:49:47: note: expanded from macro '_zip_crypto_hmac'
#define _zip_crypto_hmac(hmac, data, length) (HMAC_Update((hmac), (data), (length)) == 1)
                                              ^
/usr/include/openssl/hmac.h:45:1: note: 'HMAC_Update' has been explicitly marked deprecated here
OSSL_DEPRECATEDIN_3_0 int HMAC_Update(HMAC_CTX *ctx, const unsigned char *data,
^
/usr/include/openssl/macros.h:182:49: note: expanded from macro 'OSSL_DEPRECATEDIN_3_0'
#   define OSSL_DEPRECATEDIN_3_0                OSSL_DEPRECATED(3.0)
                                                ^
/usr/include/openssl/macros.h:62:52: note: expanded from macro 'OSSL_DEPRECATED'
#     define OSSL_DEPRECATED(since) __attribute__((deprecated))
                                                   ^
3 warnings generated.
[19/120] Compiling zip_source_zip.c
[20/120] Compiling zip_winzip_aes.c
[21/120] Compiling zip_source_zip_new.c
[22/120] Compiling zip_source_winzip_aes_encode.c
[23/120] Compiling zip_source_winzip_aes_decode.c
[24/120] Compiling zip_source_tell_write.c
[25/120] Compiling zip_source_stat.c
[26/120] Compiling zip_source_window.c
[27/120] Compiling zip_source_tell.c
[28/120] Compiling zip_source_supports.c
[29/120] Compiling zip_source_seek_write.c
[30/120] Compiling zip_source_seek.c
[31/120] Compiling zip_source_remove.c
[32/120] Compiling zip_source_rollback_write.c
[33/120] Compiling zip_source_layered.c
[34/120] Compiling zip_source_open.c
[34/120] Compiling zip_source_read.c
[36/120] Compiling zip_source_pkware_encode.c
[36/120] Compiling zip_source_pkware_decode.c
[38/120] Compiling zip_source_is_deleted.c
[39/120] Compiling zip_source_get_file_attributes.c
[40/120] Compiling zip_source_function.c
[41/120] Compiling zip_source_error.c
[42/120] Compiling zip_source_free.c
[43/120] Compiling zip_source_file_stdio.c
[44/120] Compiling zip_source_file_stdio_named.c
[45/120] Compiling zip_source_file_common.c
[46/120] Compiling zip_source_commit_write.c
[47/120] Compiling zip_source_compress.c
[47/120] Compiling zip_source_close.c
[49/120] Compiling zip_source_crc.c
[50/120] Compiling zip_source_begin_write_cloning.c
[51/120] Compiling zip_source_call.c
[52/120] Compiling zip_source_begin_write.c
[53/120] Compiling zip_source_buffer.c
[54/120] Compiling zip_source_accept_empty.c
[55/120] Compiling zip_set_file_comment.c
[56/120] Compiling zip_set_file_compression.c
[57/120] Compiling zip_set_name.c
[58/120] Compiling zip_set_default_password.c
[59/120] Compiling zip_set_archive_flag.c
[59/120] Compiling zip_set_archive_comment.c
[61/120] Compiling zip_replace.c
[62/120] Compiling zip_rename.c
[63/120] Compiling zip_progress.c
[63/120] Compiling zip_name_locate.c
[65/120] Compiling zip_new.c
[66/120] Compiling zip_pkware.c
[67/120] Compiling zip_memdup.c
[68/120] Compiling zip_open.c
[69/120] Compiling zip_mkstempm.c
[70/120] Compiling zip_libzip_version.c
[71/120] Compiling zip_random_unix.c
[72/120] Compiling zip_io_util.c
[73/120] Compiling zip_get_num_files.c
[74/120] Compiling zip_hash.c
[75/120] Compiling zip_get_num_entries.c
[76/120] Compiling zip_get_name.c
[77/120] Compiling zip_get_file_comment.c
[78/120] Compiling zip_get_encryption_implementation.c
[79/120] Compiling zip_get_archive_comment.c
[80/120] Compiling zip_ftell.c
[80/120] Compiling zip_get_archive_flag.c
[82/120] Compiling zip_fseek.c
[83/120] Compiling zip_fread.c
[84/120] Compiling zip_fopen_index_encrypted.c
[85/120] Compiling zip_fopen_index.c
[86/120] Compiling zip_fopen_encrypted.c
[87/120] Compiling zip_fopen.c
[88/120] Compiling zip_file_strerror.c
[89/120] Compiling zip_file_set_mtime.c
[90/120] Compiling zip_file_set_encryption.c
[91/120] Compiling zip_file_rename.c
[92/120] Compiling zip_file_replace.c
[92/120] Compiling zip_file_set_comment.c
[94/120] Compiling zip_file_get_offset.c
[95/120] Compiling zip_file_get_external_attributes.c
[96/120] Compiling zip_file_get_comment.c
[97/120] Compiling zip_file_error_get.c
[98/120] Compiling zip_file_error_clear.c
[99/120] Compiling zip_file_add.c
[100/120] Compiling zip_fclose.c
[101/120] Compiling zip_fdopen.c
[102/120] Compiling zip_error_clear.c
[103/120] Compiling zip_extra_field_api.c
[104/120] Compiling zip_extra_field.c
[105/120] Compiling zip_entry.c
[105/120] Compiling zip_error.c
[107/120] Compiling zip_discard.c
[108/120] Compiling zip_dir_add.c
[109/120] Compiling zip_delete.c
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_algorithm_bzip2.c:36:10: fatal error: 'bzlib.h' file not found
#include <bzlib.h>
         ^~~~~~~~~
1 error generated.
[110/120] Compiling zip_algorithm_bzip2.c
[110/120] Compiling zip_add.c
[110/120] Compiling zip_dirent.c
[110/120] Compiling zip_add_dir.c
[110/120] Compiling zip_add_entry.c
[110/120] Compiling zip_err_str.c
[110/120] Compiling zip_crypto_openssl.c
[110/120] Write swift-version-24593BA9C3E375BF.txt
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/zip/libzip/lib/make_zip_err_str.sh': File not found.
warning: 'spi-builder-workspace': Invalid Exclude '/host/spi-builder-workspace/Sources/zip/libzip/lib/make_zipconf.sh': File not found.
[0/1] Planning build
Building for debugging...
[0/10] Compiling zip_add_entry.c
[1/10] Write sources
[3/10] Compiling zip_err_str.c
[4/10] Compiling zip_add.c
[5/10] Compiling zip_add_dir.c
/host/spi-builder-workspace/Sources/zip/libzip/lib/zip_algorithm_bzip2.c:36:10: fatal error: 'bzlib.h' file not found
#include <bzlib.h>
         ^~~~~~~~~
1 error generated.
[6/10] Compiling zip_algorithm_bzip2.c
[6/10] Compiling zip_crypto_openssl.c
[6/10] Compiling zip_dirent.c
[6/10] Write swift-version-24593BA9C3E375BF.txt
BUILD FAILURE 5.10 linux

Build Machine: Linux 2