Running phase: unpackPhase unpacking source archive /nix/store/khka1fwkhlavawgk3fdchjgq86mg5m7g-source source root is source Running phase: patchPhase applying patch ./debian/patches/10_fix-makefile.patch patching file Makefile applying patch ./debian/patches/20_fix-typo-binary.patch patching file recoverdm.c applying patch ./debian/patches/30-fix-BTS-mergebad-crash.patch patching file mergebad.c applying patch ./debian/patches/40_dev-c.patch patching file dev.c applying patch /nix/store/81cwc5vgjnm82kby2nsyfqz9ngikqiqm-0001-darwin-build-fixes.patch patching file compat.h patching file dev.c Hunk #1 succeeded at 19 (offset 1 line). patching file error.c patching file io.c patching file mergebad.c patching file recoverdm.c patching file utils.c patching file utils.h 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 gcc -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -c -o recoverdm.o recoverdm.c recoverdm.c: In function 'lba_to_msf': recoverdm.c:56:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 56 | *minute = (lba + 150) / (60 * 75); | ^ recoverdm.c:58:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 58 | *second = (lba + 150) / 75; | ^ recoverdm.c:60:26: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 60 | *frame = (lba + 150); | ^ recoverdm.c:64:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 64 | *minute = (lba + 450150) / (60 * 75); | ^ recoverdm.c:66:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 66 | *second = (lba + 450150) / 75; | ^ recoverdm.c:68:26: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 68 | *frame = (lba + 450150); | ^ recoverdm.c: In function 'create_sector': recoverdm.c:76:57: warning: passing argument 2 of 'mymalloc' 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;;] 76 | char *sector_out = (char *)mymalloc(block_size, "sector"); | ^~~~~~~~ In file included from recoverdm.c:14: utils.h:2:36: note: expected 'char *' but argument is of type 'const char *' 2 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ recoverdm.c:108:53: warning: conversion from 'int' to 'short int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 108 | chosen_byte_count = count[loop2]; | ^~~~~ recoverdm.c:109:47: warning: conversion from 'int' to 'short int' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 109 | chosen_byte = loop2; | ^~~~~ recoverdm.c:127:44: warning: conversion from 'short int' to 'char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 127 | sector_out[loop] = chosen_byte; | ^~~~~~~~~~~ recoverdm.c:150:44: warning: conversion to 'char' from 'unsigned char' may change the sign of the result [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-sign-conversion-Wsign-conversion8;;] 150 | sector_out[loop] = sectors[max_n_ok_index][loop]; | ^~~~~~~ recoverdm.c: In function 'get_raw_cd': recoverdm.c:170:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-sign-conversion-Wsign-conversion8;;] 170 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^ recoverdm.c:170:88: warning: passing argument 2 of 'mymalloc' 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;;] 170 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^~~~~~~~~~~~ utils.h:2:36: note: expected 'char *' but argument is of type 'const char *' 2 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ recoverdm.c:175:74: warning: passing argument 2 of 'mymalloc' 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;;] 175 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); | ^~~~~~~~ utils.h:2:36: note: expected 'char *' but argument is of type 'const char *' 2 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ recoverdm.c:185:43: error: passing argument 1 of 'create_sector' 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;;] 185 | if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1) | ^~~~~~~~~~~ | | | char ** recoverdm.c:72:35: note: expected 'unsigned char **' but argument is of type 'char **' 72 | int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out) | ~~~~~~~~~~~~~~~~^~~~~~~ recoverdm.c: In function 'main': recoverdm.c:236:36: warning: conversion from 'int' to 'char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 236 | dev_type = atoi(optarg); | ^~~~ recoverdm.c:257:37: warning: conversion from 'int' to 'char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 257 | n_retries = atoi(optarg); | ^~~~ recoverdm.c:263:36: warning: conversion from 'int' to 'char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 263 | cd_speed = atoi(optarg); | ^~~~ recoverdm.c:266:44: warning: conversion from 'int' to 'char' may change value [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wconversion-Wconversion8;;] 266 | n_raw_cd_retries = atoi(optarg); | ^~~~ recoverdm.c:308:47: warning: passing argument 2 of 'mymalloc' 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;;] 308 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); | ^~~~~~~~~~~~~~ utils.h:2:36: note: expected 'char *' but argument is of type 'const char *' 2 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ recoverdm.c:309:48: warning: passing argument 2 of 'mymalloc' 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;;] 309 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ utils.h:2:36: note: expected 'char *' but argument is of type 'const char *' 2 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ recoverdm.c:362:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 362 | printf("%lld\r", curpos); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld recoverdm.c:389:45: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 389 | printf("error at %lld bytes, retrying: %d\n", curpos, n); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld recoverdm.c:446:91: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-sign-conversion-Wsign-conversion8;;] 446 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); | ^ recoverdm.c:446:63: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wformat-Wformat=8;;] 446 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); | ~~~^ ~~~~~~ | | | | | off64_t {aka long int} | long long int | %ld recoverdm.c:441:38: warning: variable 'ok' set but not used [8;;https://gcc.gnu.org/onlinedocs/gcc-14.2.0/gcc/Warning-Options.html#index-Wno-unused-but-set-variable-Wunused-but-set-variable8;;] 441 | char ok = 1; | ^~ make: *** [: recoverdm.o] Error 1