Diff of the two buildlogs: -- --- b1/build.log 2024-04-29 14:07:08.150936232 +0000 +++ b2/build.log 2024-04-29 14:07:39.701591644 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Mon Apr 29 02:06:37 -12 2024 -I: pbuilder-time-stamp: 1714399597 +I: Current time: Mon Jun 2 10:30:11 +14 2025 +I: pbuilder-time-stamp: 1748809811 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/trixie-reproducible-base.tgz] I: copying local configuration @@ -30,52 +30,84 @@ dpkg-source: info: applying 40_dev-c.patch I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/2149092/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3571589/tmp/hooks/D01_modify_environment starting +debug: Running on codethink01-arm64. +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 Jun 1 20:30 /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/3571589/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3571589/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='arm64' - 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]="21" [3]="1" [4]="release" [5]="aarch64-unknown-linux-gnu") + BASH_VERSION='5.2.21(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=arm64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='trixie' - HOME='/root' - HOST_ARCH='arm64' + DIRSTACK=() + DISTRIBUTION=trixie + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=aarch64 + HOST_ARCH=arm64 IFS=' ' - INVOCATION_ID='43302715a22941d8a74138e1267bd5d1' - 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='2149092' - PS1='# ' - PS2='> ' + INVOCATION_ID=488586b0ebeb4db4b2228e2a42f644f3 + LANG=C + LANGUAGE=nl_BE:nl + LC_ALL=C + MACHTYPE=aarch64-unknown-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=3571589 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.bQqujyz3/pbuilderrc_zjOo --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.bQqujyz3/b1 --logfile b1/build.log recoverdm_0.20-8.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' - http_proxy='http://192.168.101.4:3128' + 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.bQqujyz3/pbuilderrc_XFZ6 --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.bQqujyz3/b2 --logfile b2/build.log recoverdm_0.20-8.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' + http_proxy=http://192.168.101.4:3128 I: uname -a - Linux codethink02-arm64 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-20-cloud-arm64 #1 SMP Debian 6.1.85-1 (2024-04-11) aarch64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Apr 21 07:15 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/2149092/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 May 26 17:47 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3571589/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: 28 http://deb.debian.org/debian trixie/main arm64 intltool-debian all 0.35.0+20060710.6 [22.9 kB] Get: 29 http://deb.debian.org/debian trixie/main arm64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian trixie/main arm64 debhelper all 13.15.3 [901 kB] -Fetched 18.6 MB in 0s (127 MB/s) +Fetched 18.6 MB in 0s (115 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 ... 19941 files and directories currently installed.) @@ -276,7 +308,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-8_source.changes +I: user script /srv/workspace/pbuilder/3571589/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for trixie +I: user script /srv/workspace/pbuilder/3571589/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-8_source.changes dpkg-buildpackage: info: source package recoverdm dpkg-buildpackage: info: source version 0.20-8 dpkg-buildpackage: info: source distribution unstable @@ -305,6 +341,55 @@ 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 -mbranch-protection=standard -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 -mbranch-protection=standard -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 -mbranch-protection=standard -Wall -Wshadow -Wconversion -Wwrite-strings -Winline -O2 -DVERSION=\"0.20\" -Wdate-time -D_FORTIFY_SOURCE=2 -c -o mergebad.o mergebad.c +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, ...); + | ~~~~~~^~~~~~ +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); + | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +error.h:1:23: note: expected 'char *' but argument is of type 'const char *' + 1 | void error_exit(char *format, ...); + | ~~~~~~^~~~~~ +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); + | ^~~ +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 +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': +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, ...); + | ~~~~~~^~~~~~ 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); @@ -372,21 +457,20 @@ recoverdm.c:126:44: warning: conversion from 'short int' to 'char' may change value [-Wconversion] 126 | sector_out[loop] = chosen_byte; | ^~~~~~~~~~~ +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: In function 'get_raw_cd': -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ recoverdm.c:169:71: warning: conversion to 'long unsigned int' from 'int' may change the sign of the result [-Wsign-conversion] 169 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^ recoverdm.c:169:88: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 169 | char **sector_list = (char **)mymalloc(sizeof(char *) * n_raw_retries, "sectorlist"); | ^~~~~~~~~~~~ -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, ...); - | ~~~~~~^~~~~~ utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' 1 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ @@ -396,10 +480,18 @@ utils.h:1:36: note: expected 'char *' but argument is of type 'const char *' 1 | void * mymalloc(size_t size, char *what); | ~~~~~~^~~~ -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); - | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +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 +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:184:43: warning: passing argument 1 of 'create_sector' from incompatible pointer type [-Wincompatible-pointer-types] 184 | if (create_sector(sector_list, n_raw_retries, block_size, &dummy) == -1) | ^~~~~~~~~~~ @@ -408,45 +500,40 @@ recoverdm.c:71:35: note: expected 'unsigned char **' but argument is of type 'char **' 71 | int create_sector(unsigned char **sectors, int n_sectors, size_t block_size, char **psector_out) | ~~~~~~~~~~~~~~~~^~~~~~~ -error.h:1:23: note: expected 'char *' but argument is of type 'const char *' - 1 | void error_exit(char *format, ...); - | ~~~~~~^~~~~~ recoverdm.c: In function 'main': recoverdm.c:215:23: warning: unsigned conversion from 'int' to 'char' changes value from '-1' to '255' [-Wsign-conversion] 215 | char dev_type=-1, cd_speed=DEFAULT_CD_SPEED; | ^ -utils.c: In function 'get_filesize': recoverdm.c:235:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 235 | dev_type = atoi(optarg); | ^~~~ -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, ...); - | ~~~~~~^~~~~~ +mergebad.c: In function 'find_smallest_current_badblock': +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 recoverdm.c:256:37: warning: conversion from 'int' to 'char' may change value [-Wconversion] 256 | n_retries = atoi(optarg); | ^~~~ -In file included from utils.c:13: -utils.c: In function 'copy_block': recoverdm.c:262:36: warning: conversion from 'int' to 'char' may change value [-Wconversion] 262 | cd_speed = atoi(optarg); | ^~~~ -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:265:44: warning: conversion from 'int' to 'char' may change value [-Wconversion] 265 | n_raw_cd_retries = atoi(optarg); | ^~~~ -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} +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); + | ~~~^ ~~~~~~~~~~ + | | | + | long long int off64_t {aka long int} + | %ld +mergebad.c:118:60: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off64_t' {aka 'long int'} [-Wformat=] + 118 | 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:307:47: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 307 | buffer = (char *)mymalloc(block_size, "sectorbuffer"); @@ -454,89 +541,12 @@ 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; - | ^~ recoverdm.c:308:48: warning: passing argument 2 of 'mymalloc' discards 'const' qualifier from pointer target type [-Wdiscarded-qualifiers] 308 | 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); | ~~~~~~^~~~ -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': -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:361:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] - 361 | printf("%lld\r", curpos); - | ~~~^ ~~~~~~ - | | | - | | off64_t {aka long int} - | long long int - | %ld -recoverdm.c:388:45: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] - 388 | printf("error at %lld bytes, retrying: %d\n", curpos, n); - | ~~~^ ~~~~~~ - | | | - | long long int off64_t {aka long int} - | %ld -recoverdm.c:445:91: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] - 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - | ^ -recoverdm.c:445:63: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] - 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); - | ~~~^ ~~~~~~ - | | | - | | off64_t {aka long int} - | long long int - | %ld -recoverdm.c:440:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] - 440 | 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 -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 -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 -mergebad.c: In function 'find_smallest_current_badblock': -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 -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); - | ~~~^ ~~~~~~~~~~ - | | | - | long long int off64_t {aka long int} - | %ld -mergebad.c:118:60: warning: format '%lld' expects argument of type 'long long int', but argument 5 has type 'off64_t' {aka 'long int'} [-Wformat=] - 118 | printf("= %d/%d, %lld - %lld\n", img_index, badblock_index, cur_offset, cur_bb_end); - | ~~~^ ~~~~~~~~~~ - | | | - | long long int off64_t {aka long int} - | %ld 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); | ~~~^ ~~~~~~~~~~~~~~~ @@ -550,7 +560,20 @@ | | | | long long int off64_t {aka long int} | %ld +recoverdm.c:361:28: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] + 361 | printf("%lld\r", curpos); + | ~~~^ ~~~~~~ + | | | + | | off64_t {aka long int} + | long long int + | %ld mergebad.c: In function 'read_mapfile': +recoverdm.c:388:45: warning: format '%lld' expects argument of type 'long long int', but argument 2 has type 'off64_t' {aka 'long int'} [-Wformat=] + 388 | printf("error at %lld bytes, retrying: %d\n", curpos, n); + | ~~~^ ~~~~~~ + | | | + | long long int off64_t {aka long int} + | %ld 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); | ~~~^ ~~~~~~~ @@ -558,6 +581,9 @@ | | off64_t * {aka long int *} | long long int * | %ld +recoverdm.c:445:91: warning: conversion to 'size_t' {aka 'long unsigned int'} from 'int' may change the sign of the result [-Wsign-conversion] + 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + | ^ 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"); | ^ @@ -568,6 +594,13 @@ 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:445:63: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] + 445 | fprintf(dsecfile, "%lld %ld\n", curpos, block_size*skip_value); + | ~~~^ ~~~~~~ + | | | + | | off64_t {aka long int} + | long long int + | %ld mergebad.c:196:40: warning: format '%lld' expects argument of type 'long long int', but argument 3 has type 'off64_t' {aka 'long int'} [-Wformat=] 196 | printf("%d] %lld %lld\n", n_bb, offset, block_size); | ~~~^ ~~~~~~ @@ -580,6 +613,9 @@ | | | | long long int int | %d +recoverdm.c:440:38: warning: variable 'ok' set but not used [-Wunused-but-set-variable] + 440 | char ok = 1; + | ^~ 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; @@ -701,8 +737,8 @@ mergebad.c:189:17: warning: ignoring return value of 'fscanf' declared with attribute 'warn_unused_result' [-Wunused-result] 189 | fscanf(fh, "%lld %d", &offset, &block_size); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -cc -Wall -W mergebad.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o mergebad cc -Wall -W recoverdm.o dev.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o recoverdm +cc -Wall -W mergebad.o io.o utils.o error.o -Wl,-z,relro -Wl,-z,now -o mergebad make[1]: Leaving directory '/build/reproducible-path/recoverdm-0.20' dh_auto_test create-stamp debian/debhelper-build-stamp @@ -734,8 +770,8 @@ dh_gencontrol dh_md5sums dh_builddeb -dpkg-deb: building package 'recoverdm-dbgsym' in '../recoverdm-dbgsym_0.20-8_arm64.deb'. dpkg-deb: building package 'recoverdm' in '../recoverdm_0.20-8_arm64.deb'. +dpkg-deb: building package 'recoverdm-dbgsym' in '../recoverdm-dbgsym_0.20-8_arm64.deb'. dpkg-genbuildinfo --build=binary -O../recoverdm_0.20-8_arm64.buildinfo dpkg-genchanges --build=binary -O../recoverdm_0.20-8_arm64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -743,12 +779,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/3571589/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3571589/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/2149092 and its subdirectories -I: Current time: Mon Apr 29 02:07:06 -12 2024 -I: pbuilder-time-stamp: 1714399626 +I: removing directory /srv/workspace/pbuilder/3571589 and its subdirectories +I: Current time: Mon Jun 2 10:30:38 +14 2025 +I: pbuilder-time-stamp: 1748809838