Running phase: unpackPhase unpacking source archive /nix/store/clc407i7r4gla046v94isc6xzlvr6pdi-source source root is source Running phase: patchPhase applying patch /nix/store/xrizcfhlfj2zgrskym1mx4pbzkg50xqy-e57e1fce68194fa920542fd334488de5123e4832.patch patching file include/zsmake.h Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase fixing cmake files... cmake flags: -DCMAKE_FIND_USE_SYSTEM_PACKAGE_REGISTRY=OFF -DCMAKE_FIND_USE_PACKAGE_REGISTRY=OFF -DCMAKE_EXPORT_NO_PACKAGE_REGISTRY=ON -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF -DCMAKE_INSTALL_LOCALEDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/share/locale -DCMAKE_INSTALL_LIBEXECDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/libexec -DCMAKE_INSTALL_LIBDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/lib -DCMAKE_INSTALL_DOCDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/share/doc/zsync2 -DCMAKE_INSTALL_INFODIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/share/info -DCMAKE_INSTALL_MANDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/share/man -DCMAKE_INSTALL_INCLUDEDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/include -DCMAKE_INSTALL_SBINDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/sbin -DCMAKE_INSTALL_BINDIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/bin -DCMAKE_INSTALL_NAME_DIR=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304/lib -DCMAKE_POLICY_DEFAULT_CMP0025=NEW -DCMAKE_FIND_FRAMEWORK=LAST -DCMAKE_STRIP=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/strip -DCMAKE_RANLIB=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/ranlib -DCMAKE_AR=/nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/ar -DCMAKE_C_COMPILER=gcc -DCMAKE_CXX_COMPILER=g++ -DCMAKE_INSTALL_PREFIX=/nix/store/mmzsdjglp0w0khb674vlbpvq8ii27adc-zsync2-2.0.0-alpha-1-20230304 -DUSE_SYSTEM_CPR:BOOL=TRUE -DUSE_SYSTEM_ARGS:BOOL=TRUE -- The C compiler identification is GNU 14.2.1 -- The CXX compiler identification is GNU 14.2.1 -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working C compiler: /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/gcc - skipped -- Detecting C compile features -- Detecting C compile features - done -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Check for working CXX compiler: /nix/store/ii75mhh7sxl11167m1b86p0qrjsjyjmd-gcc-wrapper-14-20241116/bin/g++ - skipped -- Detecting CXX compile features -- Detecting CXX compile features - done -- Looking for include file inttypes.h -- Looking for include file inttypes.h - found -- Looking for include file memory.h -- Looking for include file memory.h - found -- Looking for include file stdint.h -- Looking for include file stdint.h - found -- Looking for include file stdlib.h -- Looking for include file stdlib.h - found -- Looking for include file strings.h -- Looking for include file strings.h - found -- Looking for include file sys/stat.h -- Looking for include file sys/stat.h - found -- Looking for include file sys/types.h -- Looking for include file sys/types.h - found -- Looking for include file unistd.h -- Looking for include file unistd.h - found -- Looking for include file time.h -- Looking for include file time.h - found -- Looking for fseeko -- Looking for fseeko - found -- Looking for getaddrinfo -- Looking for getaddrinfo - found -- Looking for memcpy -- Looking for memcpy - found -- Looking for mkstemp -- Looking for mkstemp - found -- Looking for pread -- Looking for pread - found -- Looking for pwrite -- Looking for pwrite - found -- Found PkgConfig: /nix/store/601zbsyxn1zqx22yrif9yxa1x450qfc8-pkg-config-wrapper-0.29.2/bin/pkg-config (found version "0.29.2") -- Checking for module 'libgcrypt' -- Found libgcrypt, version 1.10.3 Package gpg-error was not found in the pkg-config search path. Perhaps you should add the directory containing `gpg-error.pc' to the PKG_CONFIG_PATH environment variable Package 'gpg-error', required by 'libgcrypt', not found Package gpg-error was not found in the pkg-config search path. Perhaps you should add the directory containing `gpg-error.pc' to the PKG_CONFIG_PATH environment variable Package 'gpg-error', required by 'libgcrypt', not found Package gpg-error was not found in the pkg-config search path. Perhaps you should add the directory containing `gpg-error.pc' to the PKG_CONFIG_PATH environment variable Package 'gpg-error', required by 'libgcrypt', not found Package gpg-error was not found in the pkg-config search path. Perhaps you should add the directory containing `gpg-error.pc' to the PKG_CONFIG_PATH environment variable Package 'gpg-error', required by 'libgcrypt', not found -- Found CURL: /nix/store/simdgzgxrcqkvak7zpczr176rgbar3s5-curl-8.12.0/lib/libcurl.so (found version "8.12.0") CMake Deprecation Warning at lib/CMakeLists.txt:2 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. CMake Deprecation Warning at lib/zlib/CMakeLists.txt:1 (cmake_minimum_required): Compatibility with CMake < 3.10 will be removed from a future version of CMake. Update the VERSION argument value. Or, use the ... syntax to tell CMake that the project requires at least but has been updated to work with policies introduced by or earlier. -- Configuring done (3.0s) -- Generating done (0.0s) CMake Warning: Manually-specified variables were not used by the project: CMAKE_EXPORT_NO_PACKAGE_REGISTRY CMAKE_POLICY_DEFAULT_CMP0025 -- Build files have been written to: /build/source/build cmake: enabled parallel building cmake: enabled parallel installing Running phase: buildPhase build flags: -j24 SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash [ 2%] Building C object lib/librcksum/CMakeFiles/librcksum.dir/rsum.c.o [ 6%] Building C object lib/librcksum/CMakeFiles/librcksum.dir/state.c.o [ 6%] Building C object lib/librcksum/CMakeFiles/librcksum.dir/hash.c.o [ 8%] Building C object lib/librcksum/CMakeFiles/librcksum.dir/range.c.o [ 10%] Building C object lib/librcksum/CMakeFiles/librcksum.dir/md4.c.o [ 12%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/adler32.c.o [ 14%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/zutil.c.o [ 17%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/compress.c.o [ 19%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/gzio.c.o [ 25%] Building C object lib/libzsync/CMakeFiles/sha1test.dir/sha1.c.o [ 25%] Building C object lib/librcksum/CMakeFiles/md4test.dir/md4test.c.o [ 25%] Building C object lib/libzsync/CMakeFiles/sha1test.dir/sha1test.c.o [ 27%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/trees.c.o [ 29%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/inflate.c.o [ 31%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/inftrees.c.o [ 34%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/crc32.c.o [ 36%] Building C object lib/zlib/CMakeFiles/zsync2_libz.dir/deflate.c.o [ 38%] Building C object lib/librcksum/CMakeFiles/md4test.dir/md4.c.o /build/source/lib/librcksum/state.c: In function 'rcksum_init': /build/source/lib/librcksum/state.c:59:29: warning: ignoring return value of 'strdup' declared with attribute 'warn_unused_result' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-result-Wunused-result8;;] 59 | if (directory != NULL) {strdup("rcksum-XXXXXX"); | ^~~~~~~~~~~~~~~~~~~~~~~ [ 40%] Linking C executable md4test In function 'SHA1Update', inlined from 'SHA1Pad' at /build/source/lib/libzsync/sha1.c:171:3: /build/source/lib/libzsync/sha1.c:147:25: warning: 'SHA1Transform' reading 64 bytes from a region of size 1 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overread-Wstringop-overread8;;] 147 | SHA1Transform(context->state, (uint8_t *)&data[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/source/lib/libzsync/sha1.c:147:25: note: referencing argument 2 of type 'const uint8_t[64]' {aka 'const unsigned char[64]'} /build/source/lib/libzsync/sha1.c: In function 'SHA1Pad': /build/source/lib/libzsync/sha1.c:63:1: note: in a call to function 'SHA1Transform' 63 | SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH]) | ^~~~~~~~~~~~~ In function 'SHA1Update', inlined from 'SHA1Pad' at /build/source/lib/libzsync/sha1.c:171:3, inlined from 'SHA1Final' at /build/source/lib/libzsync/sha1.c:180:2: /build/source/lib/libzsync/sha1.c:147:25: warning: 'SHA1Transform' reading 64 bytes from a region of size 1 [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-stringop-overread-Wstringop-overread8;;] 147 | SHA1Transform(context->state, (uint8_t *)&data[i]); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ /build/source/lib/libzsync/sha1.c:147:25: note: referencing argument 2 of type 'const uint8_t[64]' {aka 'const unsigned char[64]'} /build/source/lib/libzsync/sha1.c: In function 'SHA1Final': /build/source/lib/libzsync/sha1.c:63:1: note: in a call to function 'SHA1Transform' 63 | SHA1Transform(uint32_t state[5], const uint8_t buffer[SHA1_BLOCK_LENGTH]) | ^~~~~~~~~~~~~ [ 42%] Linking C static library librcksum.a [ 42%] Built target md4test [ 44%] Linking C executable sha1test [ 44%] Built target librcksum [ 44%] Built target sha1test [ 46%] Linking C static library libzsync2_libz.a [ 46%] Built target zsync2_libz [ 48%] Building C object lib/libzsync/CMakeFiles/libzsync.dir/sha1.c.o [ 51%] Building C object lib/libzsync/CMakeFiles/libzsync.dir/zsync.c.o [ 53%] Building C object lib/libzsync/CMakeFiles/libzsync.dir/zmap.c.o /build/source/lib/libzsync/zsync.c: In function 'zsync_get_urls': /build/source/lib/libzsync/zsync.c:460:18: error: returning 'char **' from a function with incompatible return type 'const char * const*' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 460 | return zs->zurl; | ~~^~~~~~ /build/source/lib/libzsync/zsync.c:465:18: error: returning 'char **' from a function with incompatible return type 'const char * const*' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 465 | return zs->url; | ~~^~~~~ /build/source/lib/libzsync/zsync.c: In function 'zsync_receive_data_compressed': /build/source/lib/libzsync/zsync.c:945:22: warning: assignment discards 'const' qualifier from pointer target type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers8;;] 945 | zr->strm.next_in = buf; | ^ /build/source/lib/libzsync/zsync.c:950:43: error: passing argument 4 of 'zsync_configure_zstream_for_zdata' from incompatible pointer type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wincompatible-pointer-types-Wincompatible-pointer-types8;;] 950 | &(zr->outoffset)); | ^~~~~~~~~~~~~~~~ | | | off_t * {aka long int *} /build/source/lib/libzsync/zsync.c:791:65: note: expected 'long long int *' but argument is of type 'off_t *' {aka 'long int *'} 791 | long zoffset, long long *poutoffset) { | ~~~~~~~~~~~^~~~~~~~~~ /build/source/lib/libzsync/zsync.c:962:26: warning: assignment discards 'const' qualifier from pointer target type [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wdiscarded-qualifiers-Wdiscarded-qualifiers8;;] 962 | zr->strm.next_in = buf; | ^ make[2]: *** [lib/libzsync/CMakeFiles/libzsync.dir/build.make:79: lib/libzsync/CMakeFiles/libzsync.dir/zsync.c.o] Error 1 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [CMakeFiles/Makefile2:309: lib/libzsync/CMakeFiles/libzsync.dir/all] Error 2 make: *** [Makefile:136: all] Error 2