Running phase: unpackPhase unpacking source archive /nix/store/qa4ilh3g7nbssahmmdvy4nn5s31papp8-cramfs_1.1.orig.tar.gz source root is cramfs-1.1 setting SOURCE_DATE_EPOCH to timestamp 1014425561 of file "cramfs-1.1/GNUmakefile" Running phase: patchPhase applying patch /nix/store/nlpkgy996v9lfz9rkvbg79az34v9blzs-include-sysmacros.patch patching file mkcramfs.c Running phase: updateAutotoolsGnuConfigScriptsPhase Running phase: configurePhase no configure script, doing nothing Running phase: buildPhase build flags: SHELL=/nix/store/11ciq72n4fdv8rw6wgjgasfv4mjs1jrw-bash-5.2p37/bin/bash CC=cc cc -W -Wall -O2 -g -I. mkcramfs.c -lz -o mkcramfs mkcramfs.c: In function 'parse_directory': mkcramfs.c:246:47: error: passing argument 4 of 'scandir' 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;;] 246 | dircount = scandir(name, &dirlist, 0, cramsort); | ^~~~~~~~ | | | int (*)(const void *, const void *) In file included from mkcramfs.c:32: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/dirent.h:260:27: note: expected 'int (*)(const struct dirent **, const struct dirent **)' but argument is of type 'int (*)(const void *, const void *)' 260 | int (*__cmp) (const struct dirent **, | ~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 261 | const struct dirent **)) | ~~~~~~~~~~~~~~~~~~~~~~~ mkcramfs.c:288:29: warning: pointer targets in assignment from 'char *' to 'unsigned char *' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 288 | entry->name = strdup(dirent->d_name); | ^ mkcramfs.c: In function 'write_superblock': mkcramfs.c:400:30: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 400 | strncpy(super->name, opt_name, sizeof(super->name)); | ~~~~~^~~~~~ | | | u8 * {aka unsigned char *} In file included from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/features.h:511, from /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/sys/sysmacros.h:22, from mkcramfs.c:25: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:96:17: note: expected 'char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 96 | __NTH (strncpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcramfs.c:402:30: warning: pointer targets in passing argument 1 of 'strncpy' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 402 | strncpy(super->name, "Compressed", sizeof(super->name)); | ~~~~~^~~~~~ | | | u8 * {aka unsigned char *} /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/bits/string_fortified.h:96:17: note: expected 'char *' but argument is of type 'u8 *' {aka 'unsigned char *'} 96 | __NTH (strncpy (__fortify_clang_overload_arg (char *, __restrict, __dest), | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ mkcramfs.c: In function 'write_directory_structure': mkcramfs.c:481:50: warning: pointer targets in passing argument 1 of 'strlen' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 481 | size_t len = strlen(entry->name); | ~~~~~^~~~~~ | | | unsigned char * In file included from mkcramfs.c:35: /nix/store/1ycjq6h047qqwp3fm9sbl805xnrxlh2h-glibc-2.40-66-dev/include/string.h:407:35: note: expected 'const char *' but argument is of type 'unsigned char *' 407 | extern size_t strlen (const char *__s) | ~~~~~~~~~~~~^~~ mkcramfs.c: In function 'do_compress': mkcramfs.c:599:46: warning: pointer targets in passing argument 1 of 'compress2' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 599 | err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); | ~~~~~^~~~~~ | | | char * In file included from mkcramfs.c:38: /nix/store/fidbdimfbqlhf93pmqdk50k0j9fgbafd-zlib-1.3.1-dev/include/zlib.h:1247:38: note: expected 'Bytef *' {aka 'unsigned char *'} but argument is of type 'char *' 1247 | ZEXTERN int ZEXPORT compress2(Bytef *dest, uLongf *destLen, | ~~~~~~~^~~~ mkcramfs.c:599:60: warning: pointer targets in passing argument 3 of 'compress2' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 599 | err = compress2(base + curr, &len, uncompressed, input, Z_BEST_COMPRESSION); | ^~~~~~~~~~~~ | | | char * /nix/store/fidbdimfbqlhf93pmqdk50k0j9fgbafd-zlib-1.3.1-dev/include/zlib.h:1248:44: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' 1248 | const Bytef *source, uLong sourceLen, | ~~~~~~~~~~~~~^~~~~~ mkcramfs.c: In function 'write_data': mkcramfs.c:648:73: warning: pointer targets in passing argument 3 of 'do_compress' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 648 | offset = do_compress(base, offset, entry->name, entry->uncompressed, entry->size); | ~~~~~^~~~~~ | | | unsigned char * mkcramfs.c:579:78: note: expected 'const char *' but argument is of type 'unsigned char *' 579 | static unsigned int do_compress(char *base, unsigned int offset, char const *name, char *uncompressed, unsigned int size) | ~~~~~~~~~~~~^~~~ mkcramfs.c: In function 'main': mkcramfs.c:772:80: warning: format '%Ld' expects argument of type 'long long int', but argument 3 has type 'loff_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 772 | "warning: estimate of required size (upper bound) is %LdMB, but maximum image size is %uMB, we might die prematurely\n", | ~~^ | | | long long int | %ld 773 | fslen_ub >> 20, | ~~~~~~~~~~~~~~ | | | loff_t {aka long int} mkcramfs.c:811:34: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 811 | printf("Directory data: %d bytes\n", offset); | ~^ ~~~~~~ | | | | int ssize_t {aka long int} | %ld mkcramfs.c:818:30: warning: format '%d' expects argument of type 'int', but argument 2 has type 'ssize_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 818 | printf("Everything: %d kilobytes\n", offset >> 10); | ~^ ~~~~~~~~~~~~ | | | | int ssize_t {aka long int} | %ld mkcramfs.c:822:31: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long unsigned int' [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 822 | printf("Super block: %d bytes\n", sizeof(struct cramfs_super)); | ~^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | int long unsigned int | %ld mkcramfs.c:826:36: warning: pointer targets in passing argument 2 of 'crc32' differ in signedness [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-pointer-sign-Wpointer-sign8;;] 826 | crc = crc32(crc, (rom_image+opt_pad), (offset-opt_pad)); | ~~~~~~~~~~^~~~~~~~~ | | | char * /nix/store/fidbdimfbqlhf93pmqdk50k0j9fgbafd-zlib-1.3.1-dev/include/zlib.h:1730:53: note: expected 'const Bytef *' {aka 'const unsigned char *'} but argument is of type 'char *' 1730 | ZEXTERN uLong ZEXPORT crc32(uLong crc, const Bytef *buf, uInt len); | ~~~~~~~~~~~~~^~~ mkcramfs.c:706:25: warning: this statement may fall through [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wimplicit-fallthrough-Wimplicit-fallthrough=8;;] 706 | usage(MKFS_OK); | ^~~~~~~~~~~~~~ mkcramfs.c:707:17: note: here 707 | case 'E': | ^~~~ make: *** [<builtin>: mkcramfs] Error 1