Diff of the two buildlogs: -- --- b1/build.log 2024-12-19 02:34:15.719959383 +0000 +++ b2/build.log 2024-12-19 02:35:01.781877182 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jan 20 20:56:19 -12 2026 -I: pbuilder-time-stamp: 1768985779 +I: Current time: Thu Dec 19 16:34:17 +14 2024 +I: pbuilder-time-stamp: 1734575657 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -32,51 +32,83 @@ dpkg-source: info: applying 50_ftbfs-with-gcc-14.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/1393285/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/D01_modify_environment starting +debug: Running on infom01-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Dec 19 02:34 /bin/sh -> /bin/bash +I: Setting pbuilder2's login shell to /bin/bash +I: Setting pbuilder2's GECOS to second user,second room,second work-phone,second home-phone,second other +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='e091cb69be84486d853a4d56e923292d' - LANG='C' - LANGUAGE='en_US:en' - LC_ALL='C' - MAIL='/var/mail/root' - OPTIND='1' - PATH='/usr/sbin:/usr/bin:/sbin:/bin:/usr/games' - PBCURRENTCOMMANDLINEOPERATION='build' - PBUILDER_OPERATION='build' - PBUILDER_PKGDATADIR='/usr/share/pbuilder' - PBUILDER_PKGLIBDIR='/usr/lib/pbuilder' - PBUILDER_SYSCONFDIR='/etc' - PPID='1393285' - PS1='# ' - PS2='> ' + INVOCATION_ID=e50b24fc929a44d9b047e90801427453 + LANG=C + LANGUAGE=et_EE:et + LC_ALL=C + MACHTYPE=x86_64-pc-linux-gnu + MAIL=/var/mail/root + OPTERR=1 + OPTIND=1 + OSTYPE=linux-gnu + PATH=/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path + PBCURRENTCOMMANDLINEOPERATION=build + PBUILDER_OPERATION=build + PBUILDER_PKGDATADIR=/usr/share/pbuilder + PBUILDER_PKGLIBDIR=/usr/lib/pbuilder + PBUILDER_SYSCONFDIR=/etc + PIPESTATUS=([0]="0") + POSIXLY_CORRECT=y + PPID=3371817 PS4='+ ' - PWD='/' - SHELL='/bin/bash' - SHLVL='2' - SUDO_COMMAND='/usr/bin/timeout -k 18.1h 18h /usr/bin/ionice -c 3 /usr/bin/nice /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.PM5JIiXQ/pbuilderrc_ZKcc --distribution trixie --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.PM5JIiXQ/b1 --logfile b1/build.log recoverdm_0.20-9.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.PM5JIiXQ/pbuilderrc_slsE --distribution trixie --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/trixie-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.PM5JIiXQ/b2 --logfile b2/build.log recoverdm_0.20-9.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom02-amd64 6.11.5+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.11.5-1~bpo12+1 (2024-11-11) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-28-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.119-1 (2024-11-22) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Nov 22 2024 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/1393285/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Nov 22 14:40 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -141,7 +173,7 @@ Get: 27 http://deb.debian.org/debian trixie/main amd64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 28 http://deb.debian.org/debian trixie/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 29 http://deb.debian.org/debian trixie/main amd64 debhelper all 13.20 [915 kB] -Fetched 19.8 MB in 1s (28.2 MB/s) +Fetched 19.8 MB in 1s (14.3 MB/s) debconf: delaying package configuration, since apt-utils is not installed Selecting previously unselected package sensible-utils. (Reading database ... (Reading database ... 5% (Reading database ... 10% (Reading database ... 15% (Reading database ... 20% (Reading database ... 25% (Reading database ... 30% (Reading database ... 35% (Reading database ... 40% (Reading database ... 45% (Reading database ... 50% (Reading database ... 55% (Reading database ... 60% (Reading database ... 65% (Reading database ... 70% (Reading database ... 75% (Reading database ... 80% (Reading database ... 85% (Reading database ... 90% (Reading database ... 95% (Reading database ... 100% (Reading database ... 19959 files and directories currently installed.) @@ -272,7 +304,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games" HOME="/nonexistent/first-build" dpkg-genchanges -S > ../recoverdm_0.20-9_source.changes +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/recoverdm-0.20/ && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-buildpackage -us -uc -b && env PATH="/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/i/capture/the/path" HOME="/nonexistent/second-build" dpkg-genchanges -S > ../recoverdm_0.20-9_source.changes dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-9 dpkg-buildpackage: info: source distribution unstable @@ -301,41 +337,34 @@ cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/recoverdm-0.20=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o utils.o utils.c cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/recoverdm-0.20=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o error.o error.c cc -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/recoverdm-0.20=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mergebad.o mergebad.c -io.c: In function 'READ': -io.c:30:52: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 30 | error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from io.c:12: +utils.c: In function 'mymalloc': +utils.c:21:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 21 | error_exit("failed to allocate %d bytes for %s\n", size, what); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from utils.c:15: error.h:1:23: note: expected 'char *' but argument is of type 'const char *' 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ -io.c:42:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] - 42 | len -= rc; - | ^~ -io.c: In function 'WRITE': -io.c:75:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] - 75 | len -= rc; - | ^~ -io.c: In function 'phantom_write': -io.c:126:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 126 | if ((rc = WRITE(fd, in, move_a_little)) <= 0) - | ^~~~~ -io.c:132:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 132 | move_a_little -= rc; - | ^~ -io.c:163:43: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 163 | if ((rc = WRITE(fd, in, 512)) <= 0) - | ^~~~~ -io.c:172:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] - 172 | if ((rc = WRITE(fd, in, nbytes)) <= 0) - | ^~~~~ -io.c:181:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 181 | nbytes -= rc; - | ^~ +utils.c: In function 'myrealloc': +utils.c:30:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 30 | error_exit("failed to reallocate to %d bytes for %s\n", newsize, what); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ +utils.c: In function 'get_filesize': recoverdm.c: In function 'lba_to_msf': +utils.c:40:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 40 | error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ recoverdm.c:55:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] 55 | *minute = (lba + 150) / (60 * 75); | ^ +In file included from utils.c:13: +utils.c: In function 'copy_block': recoverdm.c:57:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] 57 | *second = (lba + 150) / 75; | ^ @@ -345,6 +374,12 @@ recoverdm.c:63:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] 63 | *minute = (lba + 450150) / (60 * 75); | ^ +gen.h:1:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'off64_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 1 | #define min(x, y) ((x)<(y)?(x):(y)) + | ^ +utils.c:51:38: note: in expansion of macro 'min' + 51 | size_t sector_size = min(block_size, 512); + | ^~~ recoverdm.c:65:27: warning: conversion from 'off64_t' {aka 'long int'} to 'unsigned char' may change value [-Wconversion] 65 | *second = (lba + 450150) / 75; | ^ @@ -352,6 +387,12 @@ 67 | *frame = (lba + 450150); | ^ recoverdm.c: In function 'create_sector': +utils.c:56:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] + 56 | fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno); + | ~^ ~~~~~~~~~~~ + | | | + | int size_t {aka long unsigned int} + | %ld recoverdm.c:75:57: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 75 | char *sector_out = (char *)mymalloc(block_size, "sector"); | ^~~~~~~~ @@ -359,57 +400,152 @@ utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' 1 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ +utils.c:68:28: warning: conversion to 'long unsigned int' from 'off64_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 68 | block_size -= sector_size; + | ^~ +utils.c:68:31: warning: conversion to 'off64_t' {aka 'long int'} from 'long unsigned int' may change the sign of the result [-Wsign-conversion] + 68 | block_size -= sector_size; + | ^~~~~~~~~~~ +utils.c: In function 'myseek': recoverdm.c:108:53: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 108 | chosen_byte_count = count[loop2]; | ^~~~~ -mergebad.c: In function 'find_image_without_badblock': +utils.c:78:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 78 | error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ recoverdm.c:109:47: warning: conversion from 'int' to 'short int' may change value [-Wconversion] 109 | chosen_byte = loop2; | ^~~~~ +recoverdm.c:131:44: warning: conversion from 'short int' to 'char' may change value [-Wconversion] + 131 | sector_out[loop] = chosen_byte; + | ^~~~~~~~~~~ +recoverdm.c: In function 'get_raw_cd': +recoverdm.c:174:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] + 174 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); + | ^ +recoverdm.c:174:88: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 174 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); + | ^~~~~~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:179:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 179 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); + | ^~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c: In function 'main': +recoverdm.c:240:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 240 | dev_type = atoi(optarg); + | ^~~~ +recoverdm.c:261:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 261 | n_retries = atoi(optarg); + | ^~~~ +recoverdm.c:267:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 267 | cd_speed = atoi(optarg); + | ^~~~ +recoverdm.c:270:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] + 270 | n_raw_cd_retries = atoi(optarg); + | ^~~~ +io.c: In function 'READ': +io.c:30:52: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 30 | error_exit("unexpected error while reading: %s (%d)\n", strerror(errno), errno); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from io.c:12: +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ +recoverdm.c:312:47: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 312 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); + | ^~~~~~~~~~~~~~ +io.c:42:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 42 | len -= rc; + | ^~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +recoverdm.c:313:48: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] + 313 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~ +utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' + 1 | void * mymalloc(size_t size, char *what); + | ~~~~~~^~~~ +io.c: In function 'WRITE': +io.c:75:29: warning: conversion to 'long unsigned int' from 'ssize_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] + 75 | len -= rc; + | ^~ +io.c: In function 'phantom_write': +io.c:126:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 126 | if ((rc = WRITE(fd, in, move_a_little)) <= 0) + | ^~~~~ +io.c:132:39: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 132 | move_a_little -= rc; + | ^~ +recoverdm.c:366:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] + 366 | printf("%lld\r", curpos); + | ~~~^ ~~~~~~ + | | | + | | off64_t {aka long int} + | long long int + | %ld +io.c:163:43: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 163 | if ((rc = WRITE(fd, in, 512)) <= 0) + | ^~~~~ +io.c:172:35: warning: conversion from 'ssize_t' {aka 'long int'} to 'int' may change value [-Wconversion] + 172 | if ((rc = WRITE(fd, in, nbytes)) <= 0) + | ^~~~~ +io.c:181:24: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 181 | nbytes -= rc; + | ^~ +recoverdm.c:393:45: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] + 393 | printf("error at %lld bytes, retrying: %d\n", curpos, n); + | ~~~^ ~~~~~~ + | | | + | long long int off64_t {aka long int} + | %ld +recoverdm.c:450:91: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 450 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + | ^ +recoverdm.c:450:63: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] + 450 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + | ~~~^ ~~~~~~ + | | | + | | off64_t {aka long int} + | long long int + | %ld +recoverdm.c:445:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] + 445 | char ok = 1; + | ^~ +mergebad.c: In function 'find_image_without_badblock': mergebad.c:45:64: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off64_t' {aka 'long int'} [-Wformat=] 45 | printf("> find_image_without_badblock(%p %d %lld)\n", imgs, n_imgs, offset); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:131:44: warning: conversion from 'short int' to 'char' may change value [-Wconversion] - 131 | sector_out[loop] = chosen_byte; - | ^~~~~~~~~~~ mergebad.c:59:53: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off64_t' {aka 'long int'} [-Wformat=] 59 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c: In function 'get_raw_cd': mergebad.c:59:60: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off64_t' {aka 'long int'} [-Wformat=] 59 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:174:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] - 174 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); - | ^ -recoverdm.c:174:88: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 174 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); - | ^~~~~~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ mergebad.c: In function 'find_smallest_current_badblock': -recoverdm.c:179:74: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 179 | sector_list[loop] = (char *)mymalloc(block_size, "sector"); - | ^~~~~~~~ mergebad.c:103:67: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off64_t' {aka 'long int'} [-Wformat=] 103 | printf("> find_smallest_current_badblock(%p %d %lld %p %p)\n", imgs, n_imgs, offset, selected_image, selected_badblock); | ~~~^ ~~~~~~ | | | | long long int off64_t {aka long int} | %ld -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ mergebad.c:118:53: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off64_t' {aka 'long int'} [-Wformat=] 118 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); | ~~~^ ~~~~~~~~~~ @@ -422,10 +558,6 @@ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c: In function 'main': -recoverdm.c:240:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 240 | dev_type = atoi(optarg); - | ^~~~ mergebad.c:130:68: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] 130 | printf("= # bytes left: %lld\n", block_size_left); | ~~~^ ~~~~~~~~~~~~~~~ @@ -433,25 +565,13 @@ | | off64_t {aka long int} | long long int | %ld -recoverdm.c:261:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 261 | n_retries = atoi(optarg); - | ^~~~ -recoverdm.c:267:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 267 | cd_speed = atoi(optarg); - | ^~~~ mergebad.c:148:69: warning: format '%lld' expects argument of type 'long long int', but argument 4 has type 'off64_t' {aka 'long int'} [-Wformat=] 148 | printf("> find_smallest_current_badblock: %d %d (%lld)\n", *selected_image, *selected_badblock, smallest_block_size); | ~~~^ ~~~~~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld -recoverdm.c:270:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] - 270 | n_raw_cd_retries = atoi(optarg); - | ^~~~ mergebad.c: In function 'read_mapfile': -recoverdm.c:312:47: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 312 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); - | ^~~~~~~~~~~~~~ mergebad.c:189:32: warning: format '%lld' expects argument of type 'long long int *', but argument 3 has type 'off64_t *' {aka 'long int *'} [-Wformat=] 189 | fscanf(fh, "%lld %d", &offset, &block_size); | ~~~^ ~~~~~~~ @@ -459,18 +579,9 @@ | | off64_t * {aka long int *} | long long int * | %ld -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ mergebad.c:191:67: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 191 | bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); | ^ -recoverdm.c:313:48: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 313 | buffer2 = (char *)mymalloc(block_size, "sectorbuffer for retries"); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~ -utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' - 1 | void * mymalloc(size_t size, char *what); - | ~~~~~~^~~~ mergebad.c:191:81: warning: passing argument 3 of 'myrealloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 191 | bbs = (badblock *)myrealloc(bbs, sizeof(badblock) * (n_bb + 1), "badblocks list"); | ^~~~~~~~~~~~~~~~ @@ -490,108 +601,33 @@ | | | | long long int int | %d -recoverdm.c:366:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] - 366 | printf("%lld\r", curpos); - | ~~~^ ~~~~~~ - | | | - | | off64_t {aka long int} - | long long int - | %ld mergebad.c: In function 'select_most_occuring_byte': mergebad.c:228:41: warning: conversion from 'int' to 'char' may change value [-Wconversion] 228 | selected_byte = loop; | ^~~~ -utils.c: In function 'mymalloc': -utils.c:21:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 21 | error_exit("failed to allocate %d bytes for %s\n", size, what); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from utils.c:15: -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ mergebad.c:235:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 235 | error_exit("Internal error: no byte found!"); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -recoverdm.c:393:45: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] - 393 | printf("error at %lld bytes, retrying: %d\n", curpos, n); - | ~~~^ ~~~~~~ - | | | - | long long int off64_t {aka long int} - | %ld In file included from mergebad.c:15: error.h:1:23: note: expected 'char *' but argument is of type 'const char *' 1 | void error_exit(char *format, ...); | ~~~~~~^~~~~~ -utils.c: In function 'myrealloc': -utils.c:30:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 30 | error_exit("failed to reallocate to %d bytes for %s\n", newsize, what); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ -utils.c: In function 'get_filesize': -utils.c:40:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 40 | error_exit("Failed to retrieve length of file %s: %s (%d)\n", filename, strerror(errno), errno); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ mergebad.c: In function 'main': -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ -recoverdm.c:450:91: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 450 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - | ^ mergebad.c:272:62: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 272 | imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); | ^ -In file included from utils.c:13: -utils.c: In function 'copy_block': -gen.h:1:25: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'off64_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] - 1 | #define min(x, y) ((x)<(y)?(x):(y)) - | ^ -utils.c:51:38: note: in expansion of macro 'min' - 51 | size_t sector_size = min(block_size, 512); - | ^~~ mergebad.c:272:78: warning: passing argument 3 of 'myrealloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 272 | imgs = myrealloc(imgs, sizeof(image) * (n_imgs + 1), "image structure"); | ^~~~~~~~~~~~~~~~~ utils.h:2:52: note: expected 'char *' but argument is of type 'const char *' 2 | void * myrealloc(void *oldp, size_t newsize, char *what); | ~~~~~~^~~~ -recoverdm.c:450:63: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] - 450 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - | ~~~^ ~~~~~~ - | | | - | | off64_t {aka long int} - | long long int - | %ld -utils.c:56:58: warning: format '%d' expects argument of type 'int', but argument 3 has type 'size_t' {aka 'long unsigned int'} [-Wformat=] - 56 | fprintf(stderr, "Failed to read %d bytes from inputfile: %s (%d)\n", sector_size, strerror(errno), errno); - | ~^ ~~~~~~~~~~~ - | | | - | int size_t {aka long unsigned int} - | %ld -recoverdm.c:445:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] - 445 | char ok = 1; - | ^~ -utils.c:68:28: warning: conversion to 'long unsigned int' from 'off64_t' {aka 'long int'} may change the sign of the result [-Wsign-conversion] - 68 | block_size -= sector_size; - | ^~ -utils.c:68:31: warning: conversion to 'off64_t' {aka 'long int'} from 'long unsigned int' may change the sign of the result [-Wsign-conversion] - 68 | block_size -= sector_size; - | ^~~~~~~~~~~ mergebad.c:293:61: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] 293 | printf("Adding image: %s/%lld number of badblocks: %d\n", imgs[n_imgs].filename, imgs[n_imgs].size, imgs[n_imgs].bb_list_size); | ~~~^ ~~~~~~~~~~~~~~~~~ | | | | long long int off64_t {aka long int} | %ld -utils.c: In function 'myseek': -utils.c:78:28: warning: passing argument 1 of 'error_exit' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] - 78 | error_exit("Failed to seek in file to offset %lld: %s (%d)\n", offset, strerror(errno), errno); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ mergebad.c:321:57: warning: format '%d' expects argument of type 'int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] 321 | printf("Length set to: %d\n", length); | ~^ ~~~~~~ @@ -728,12 +764,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: not including original source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3371817/tmp/hooks/B01_cleanup finished I: unmounting dev/ptmx filesystem I: unmounting dev/pts filesystem I: unmounting dev/shm filesystem I: unmounting proc filesystem I: unmounting sys filesystem I: cleaning the build env -I: removing directory /srv/workspace/pbuilder/1393285 and its subdirectories -I: Current time: Tue Jan 20 20:57:14 -12 2026 -I: pbuilder-time-stamp: 1768985834 +I: removing directory /srv/workspace/pbuilder/3371817 and its subdirectories +I: Current time: Thu Dec 19 16:35:00 +14 2024 +I: pbuilder-time-stamp: 1734575700