Diff of the two buildlogs: -- --- b1/build.log 2024-06-05 11:50:44.520756220 +0000 +++ b2/build.log 2024-06-05 11:52:10.053121665 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Jul 8 06:12:30 -12 2025 -I: pbuilder-time-stamp: 1751998350 +I: Current time: Thu Jun 6 01:50:47 +14 2024 +I: pbuilder-time-stamp: 1717588247 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/unstable-reproducible-base.tgz] I: copying local configuration @@ -25,52 +25,84 @@ dpkg-source: info: unpacking xilinx-bootgen_2022.2-2.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/3503645/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/1713146/tmp/hooks/D01_modify_environment starting +debug: Running on ionos11-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 Jun 5 11:51 /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/1713146/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/1713146/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' - DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=42 ' - DISTRIBUTION='unstable' - HOME='/root' - HOST_ARCH='amd64' + 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]="x86_64-pc-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=amd64 + DEBIAN_FRONTEND=noninteractive + DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=20 ' + DIRSTACK=() + DISTRIBUTION=unstable + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='8421fa18eec74826b97d4ea39134d0ee' - 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='3503645' - PS1='# ' - PS2='> ' + INVOCATION_ID=42df6d5ffe60418fa1db96ed451c4bfa + 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=1713146 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.FU6jTSKt/pbuilderrc_JFva --distribution unstable --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.FU6jTSKt/b1 --logfile b1/build.log xilinx-bootgen_2022.2-2.dsc' - SUDO_GID='110' - SUDO_UID='105' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' - http_proxy='http://213.165.73.152: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.FU6jTSKt/pbuilderrc_dKEW --distribution unstable --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/unstable-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.FU6jTSKt/b2 --logfile b2/build.log xilinx-bootgen_2022.2-2.dsc' + SUDO_GID=111 + SUDO_UID=106 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' + http_proxy=http://46.16.76.132:3128 I: uname -a - Linux ionos5-amd64 6.7.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.7.12-1~bpo12+1 (2024-05-06) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-21-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.90-1 (2024-05-03) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Jul 8 14:05 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/3503645/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Jun 5 07:42 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/1713146/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -138,7 +170,7 @@ Get: 28 http://deb.debian.org/debian unstable/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 29 http://deb.debian.org/debian unstable/main amd64 debhelper all 13.15.3 [901 kB] Get: 30 http://deb.debian.org/debian unstable/main amd64 libssl-dev amd64 3.2.2-1 [2701 kB] -Fetched 21.7 MB in 0s (47.4 MB/s) +Fetched 21.7 MB in 0s (60.1 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 ... 19705 files and directories currently installed.) @@ -273,7 +305,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/xilinx-bootgen-2022.2/ && 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 > ../xilinx-bootgen_2022.2-2_source.changes +I: user script /srv/workspace/pbuilder/1713146/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for unstable +I: user script /srv/workspace/pbuilder/1713146/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/xilinx-bootgen-2022.2/ && 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 > ../xilinx-bootgen_2022.2-2_source.changes dpkg-buildpackage: info: source package xilinx-bootgen dpkg-buildpackage: info: source version 2022.2-2 dpkg-buildpackage: info: source distribution unstable @@ -283,7 +319,7 @@ debian/rules clean dh clean --with autoreconf --exclude=.la dh_auto_clean -O--exclude=.la - make -j42 clean + make -j20 clean make[1]: Entering directory '/build/reproducible-path/xilinx-bootgen-2022.2' echo @@ -308,7 +344,7 @@ dh_auto_configure -- --enable-static make[1]: Leaving directory '/build/reproducible-path/xilinx-bootgen-2022.2' dh_auto_build -O--exclude=.la - make -j42 "INSTALL=install --strip-program=true" + make -j20 "INSTALL=install --strip-program=true" make[1]: Entering directory '/build/reproducible-path/xilinx-bootgen-2022.2' g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. Keccak-compact-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. Keccak-compact.cpp @@ -332,61 +368,22 @@ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.tab.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.yy.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. elftools.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versalnet.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryptutils.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. hash.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. kdf.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. logger.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. main.cpp -In file included from hash.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from hash.h:27: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -hash.cpp: In member function 'virtual uint8_t HashSha2::UpdateHash(const void*, size_t)': -hash.cpp:39:38: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 39 | uint8_t errorCode = SHA256_Update(&ctx, data, length); - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/sha.h:74:27: note: declared here - 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, - | ^~~~~~~~~~~~~ -hash.cpp: In member function 'virtual uint8_t HashSha2::FinalHash(uint8_t*)': -hash.cpp:48:37: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 48 | uint8_t errorCode = SHA256_Final(hashout, &ctx); - | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ -/usr/include/openssl/sha.h:76:27: note: declared here - 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); - | ^~~~~~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. mcsfile.cpp In file included from authentication.h:43, - from authentication-zynqmp.h:27, - from authentication-zynqmp.cpp:27: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from ../s/bif.y:42, + from bifscanner.h:39, + from ../s/bif.l:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -394,7 +391,7 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -411,40 +408,6 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -In file included from authentication-versal.h:40, - from authentication-versal.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication-versal.h:37: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from elftools.cpp:25: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. options.cpp In file included from authentication.h:43, from authentication.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': @@ -465,24 +428,6 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication-versal.h:42: -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication-versal.h:35: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication-versal.h:42: -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys-versal.h:29: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ In file included from authentication.h:43, from authkeys.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': @@ -496,37 +441,6 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from bootheader-zynqmp.h:28, - from bootheader-zynqmp.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -546,38 +460,10 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from imageheadertable-versal.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-zynqmp.h:27, - from imageheadertable-zynqmp.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -607,18 +493,9 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-zynq.h:27, - from imageheadertable-zynq.cpp:22: + from authentication-zynqmp.h:27, + from authentication-zynqmp.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -637,64 +514,47 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from bootheader.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from bitutils.h:32, - from bitutils.cpp:27: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ +In file included from authentication-versal.h:42: authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authkeys-versal.h:29: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': +../bisonflex/bif.yy.cpp:1632:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1633:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1633:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1634:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1698:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': +../bisonflex/bif.yy.cpp:3309:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3310:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3311:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3311:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_get_previous_state()': +../bisonflex/bif.yy.cpp:3449:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3450:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3458:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/bif.yy.cpp:3487:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3489:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3491:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: At global scope: +../bisonflex/bif.yy.cpp:3512:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: In member function 'void bifFlexLexer::yyunput(int, char*)': +../bisonflex/bif.yy.cpp:3515:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3525:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3526:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3528:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bootimage-zynqmp.h:28, - from bootimage-zynqmp.cpp:22: + from ../s/bif.y:54: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -706,131 +566,20 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from bifoptions.h:28, - from binary-versal.cpp:30: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from bootheader-zynq.h:27, - from bootheader-zynq.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption-zynq.cpp:36: + from bootheader.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from checksum-versal.h:26, - from checksum-versal.cpp:17: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from encryption-zynqmp.cpp:23: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from bootimage-versal.h:27, - from bootimage-versal.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, from authkeys.h:32, @@ -838,18 +587,6 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); @@ -885,101 +622,6 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from ../s/cmdoptions.l:23: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from encryption-versal.cpp:23: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from bootimage-zynq.h:28, - from bootimage-zynq.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from checksum.cpp:22: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ authkeys.cpp: In member function 'uint8_t Key::ParseOpenSSLKey(FILE*)': authkeys.cpp:191:45: warning: 'RSA* PEM_read_RSAPrivateKey(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 191 | rsaInst.rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL); @@ -1000,17 +642,9 @@ /usr/include/openssl/rsa.h:245:37: note: declared here 245 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_d(const RSA *d); | ^~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ authkeys.cpp:214:42: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 214 | rsaInst.rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ /usr/include/openssl/pem.h:453:1: note: declared here 453 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) | ^~~~~~~~~~~~~~~~~~~ @@ -1020,72 +654,18 @@ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from ../../s/cmdoptions.y:51: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../s/bif.y:42, - from bifscanner.h:39, - from ../s/bif.l:23: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 84 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ authkeys.cpp:231:25: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 231 | memcpy(N, RSA_get0_n(rsaInst.rsa)->d, keySize); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:243:37: note: declared here 243 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_n(const RSA *d); | ^~~~~~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ authkeys.cpp:232:25: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 232 | memcpy(E, RSA_get0_e(rsaInst.rsa)->d, sizeof(uint32_t)); | ~~~~~~~~~~^~~~~~~~~~~~~ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ authkeys.cpp: In static member function 'static void Key::WriteRsaFile(std::string, const RSA*, bool, uint16_t)': authkeys.cpp:404:32: warning: 'const BIGNUM* RSA_get0_n(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 404 | memcpy(temp, RSA_get0_n(rsa)->d, keyLength); @@ -1173,6 +753,70 @@ from imageheadertable.h:31, from imageheadertable-versal.h:27, from bifoptions.h:28, + from binary-versal.cpp:30: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from bitutils.h:32, + from bitutils.cpp:27: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from bootheader-zynq.h:27, + from bootheader-zynq.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-versal.h:27, + from bifoptions.h:28, from binary.cpp:30: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] @@ -1184,6 +828,45 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from bootheader-zynqmp.h:28, + from bootheader-zynqmp.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ authkeys-versal.cpp: In constructor 'VersalKey::VersalKey(const std::string&)': authkeys-versal.cpp:46:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 46 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); @@ -1218,14 +901,6 @@ /usr/include/openssl/ec.h:1022:28: note: declared here 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:33: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ authkeys-versal.cpp: In member function 'uint8_t VersalKey::ParseECDSAOpenSSLKey(const std::string&)': authkeys-versal.cpp:268:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 268 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); @@ -1248,9 +923,27 @@ authkeys-versal.cpp:288:56: warning: 'int EC_POINT_get_affine_coordinates_GFp(const EC_GROUP*, const EC_POINT*, BIGNUM*, BIGNUM*, BN_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 288 | if (EC_POINT_get_affine_coordinates_GFp(ecgroup, pub, X, Y, NULL)) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from bootimage-versal.h:27, + from bootimage-versal.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ /usr/include/openssl/ec.h:678:27: note: declared here 678 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authkeys-versal.cpp:311:61: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 311 | const EC_POINT *pub = EC_KEY_get0_public_key(eckey); | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~ @@ -1299,6 +992,14 @@ /usr/include/openssl/ec.h:678:27: note: declared here 678 | OSSL_DEPRECATEDIN_3_0 int EC_POINT_get_affine_coordinates_GFp | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ authkeys-versal.cpp: In member function 'virtual void VersalKey::Parse(const std::string&, bool)': authkeys-versal.cpp:442:39: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 442 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); @@ -1318,20 +1019,16 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from encryption-versalnet.cpp:24: +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage-zynqmp.cpp +In file included from authentication-versal.h:40, + from authentication-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication-versal.h:37: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1340,7 +1037,9 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from encryption.cpp:23: + from bitutils.h:32, + from bitutils-versal.h:26, + from bitutils-versal.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1360,12 +1059,73 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +bootimage-versal.cpp: In member function 'virtual void VersalBootImage::Add(BifOptions*)': +bootimage-versal.cpp:1231:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1231 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:453:1: note: declared here + 453 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) + | ^~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1239:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1239 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:467:1: note: declared here + 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp: In member function 'virtual void VersalBootImage::OutputOptionalEfuseHash()': +bootimage-versal.cpp:1659:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1659 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:453:1: note: declared here + 453 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) + | ^~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1667:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1667 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:467:1: note: declared here + 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1684:60: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1684 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:467:1: note: declared here + 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1685:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1685 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +In file included from /usr/include/openssl/x509.h:33: +/usr/include/openssl/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1732:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1732 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/pem.h:466:1: note: declared here + 466 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) + | ^~~~~~~~~~~~~~~~~~~~~~ +bootimage-versal.cpp:1733:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1733 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); + | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ +/usr/include/openssl/ec.h:1053:39: note: declared here + 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~ +In file included from authentication-versal.h:42: +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication-versal.h:35: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bootimage.cpp:26: + from bootimage-zynq.h:28, + from bootimage-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1385,14 +1145,6 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 94 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': authentication-versal.cpp:1017:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1017 | EC_KEY* eckeyN = EC_KEY_new(); @@ -1504,12 +1256,19 @@ /usr/include/openssl/ec.h:1022:28: note: declared here 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); | ^~~~~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootimage.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. checksum.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.tab.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. cmdoptions.yy.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. elftools.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from imageheadertable.cpp:22: + from bootimage-zynqmp.h:28, + from bootimage-zynqmp.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1529,22 +1288,22 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': -checksum.cpp:58:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 58 | MD5( data, length, cksum_data); - | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from checksum.cpp:32: -/usr/include/openssl/md5.h:52:38: note: declared here - 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, - | ^~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-versalnet.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption-zynqmp.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryption.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. encryptutils.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. hash.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from bitutils.h:32, - from bitutils-versal.h:26, - from bitutils-versal.cpp:26: + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from ../s/cmdoptions.l:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1556,6 +1315,15 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +In file included from hash.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from hash.h:27: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -1564,18 +1332,73 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -../bisonflex/cmdoptions.yy.cpp: In member function 'virtual int CO::FlexScanner::yylex()': -../bisonflex/cmdoptions.yy.cpp:1316:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1317:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1317:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1318:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1384:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +hash.cpp: In member function 'virtual uint8_t HashSha2::UpdateHash(const void*, size_t)': +hash.cpp:39:38: warning: 'int SHA256_Update(SHA256_CTX*, const void*, size_t)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 39 | uint8_t errorCode = SHA256_Update(&ctx, data, length); + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/sha.h:74:27: note: declared here + 74 | OSSL_DEPRECATEDIN_3_0 int SHA256_Update(SHA256_CTX *c, + | ^~~~~~~~~~~~~ +hash.cpp: In member function 'virtual uint8_t HashSha2::FinalHash(uint8_t*)': +hash.cpp:48:37: warning: 'int SHA256_Final(unsigned char*, SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 48 | uint8_t errorCode = SHA256_Final(hashout, &ctx); + | ~~~~~~~~~~~~^~~~~~~~~~~~~~~ +/usr/include/openssl/sha.h:76:27: note: declared here + 76 | OSSL_DEPRECATEDIN_3_0 int SHA256_Final(unsigned char *md, SHA256_CTX *c); + | ^~~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from elftools.cpp:25: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../s/bif.y:54: + from checksum-versal.h:26, + from checksum-versal.cpp:17: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from checksum.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1587,19 +1410,6 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -bootimage-versal.cpp: In member function 'virtual void VersalBootImage::Add(BifOptions*)': -bootimage-versal.cpp:1231:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1231 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:453:1: note: declared here - 453 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) - | ^~~~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1239:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1239 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:467:1: note: declared here - 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -1608,6 +1418,13 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +../bisonflex/cmdoptions.yy.cpp: In member function 'virtual int CO::FlexScanner::yylex()': +../bisonflex/cmdoptions.yy.cpp:1316:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1317:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1317:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1318:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1384:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynq.cpp ../bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': ../bisonflex/cmdoptions.yy.cpp:2600:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] ../bisonflex/cmdoptions.yy.cpp:2601:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] @@ -1628,76 +1445,29 @@ ../bisonflex/cmdoptions.yy.cpp:2816:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] ../bisonflex/cmdoptions.yy.cpp:2817:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] ../bisonflex/cmdoptions.yy.cpp:2819:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -bootimage-versal.cpp: In member function 'virtual void VersalBootImage::OutputOptionalEfuseHash()': -bootimage-versal.cpp:1659:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1659 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:453:1: note: declared here - 453 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, RSA_PUBKEY, RSA) - | ^~~~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1667:56: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1667 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:467:1: note: declared here - 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1684:60: warning: 'EC_KEY* PEM_read_EC_PUBKEY(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1684 | EC_KEY *eckeyLocal = PEM_read_EC_PUBKEY(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:467:1: note: declared here - 467 | DECLARE_PEM_rw_attr(OSSL_DEPRECATEDIN_3_0, EC_PUBKEY, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1685:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1685 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -In file included from /usr/include/openssl/x509.h:33: -/usr/include/openssl/ec.h:1053:39: note: declared here - 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1732:63: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1732 | EC_KEY *eckeyLocal = PEM_read_ECPrivateKey(f, NULL, NULL, NULL); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/pem.h:466:1: note: declared here - 466 | DECLARE_PEM_rw_cb_attr(OSSL_DEPRECATEDIN_3_0, ECPrivateKey, EC_KEY) - | ^~~~~~~~~~~~~~~~~~~~~~ -bootimage-versal.cpp:1733:64: warning: 'const EC_GROUP* EC_KEY_get0_group(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1733 | const EC_GROUP* ecgroup = EC_KEY_get0_group(eckeyLocal); - | ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~ -/usr/include/openssl/ec.h:1053:39: note: declared here - 1053 | OSSL_DEPRECATEDIN_3_0 const EC_GROUP *EC_KEY_get0_group(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~ -../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': -../bisonflex/bif.yy.cpp:1632:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1633:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1633:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1634:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1698:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': -../bisonflex/bif.yy.cpp:3309:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3310:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3311:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3311:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_get_previous_state()': -../bisonflex/bif.yy.cpp:3449:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3450:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3458:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'yy_state_type bifFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/bif.yy.cpp:3487:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3489:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3491:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: At global scope: -../bisonflex/bif.yy.cpp:3512:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: In member function 'void bifFlexLexer::yyunput(int, char*)': -../bisonflex/bif.yy.cpp:3515:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3525:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3526:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3528:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from main.cpp:27: + from encryption-versalnet.cpp:24: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from encryption.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1717,16 +1487,20 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile.cpp +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../../s/cmdoptions.y:39, - from cmdoptionsscanner.h:40, - from options.cpp:26: + from encryption-versal.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1746,18 +1520,20 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. parsing.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynqmp.cpp +checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': +checksum.cpp:58:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 58 | MD5( data, length, cksum_data); + | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from checksum.cpp:32: +/usr/include/openssl/md5.h:52:38: note: declared here + 52 | OSSL_DEPRECATEDIN_3_0 unsigned char *MD5(const unsigned char *d, size_t n, + | ^~~ In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from outputfile-versal.cpp:28: + from encryption-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1777,19 +1553,12 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. postprocess.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynq.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynqmp.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from outputfile.cpp:28: + from bootimage.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1809,13 +1578,38 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.tab.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-versal.h:27, - from partitionheadertable-versal.cpp:22: + from bootimage.h:35, + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from ../../s/cmdoptions.y:51: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable-zynqmp.cpp +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-versal.h:27, + from imageheadertable-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1834,29 +1628,90 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.yy.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-versal.cpp -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-zynqmp.cpp -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cJSON.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-alloc.c In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from partition.cpp:24: + from encryption-zynq.cpp:36: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. imageheadertable.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. kdf.cpp +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-zynq.h:27, + from imageheadertable-zynq.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. logger.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. main.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. mcsfile.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. options.cpp +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-zynqmp.h:27, + from imageheadertable-zynqmp.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. outputfile.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. parsing.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from ../s/bif.y:42, - from parsing.h:26, - from parsing.cpp:23: + from imageheadertable.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1868,6 +1723,25 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition-versal.cpp +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from main.cpp:27: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, from authkeys.h:32, @@ -1883,6 +1757,28 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partition.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-versal.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynq.cpp +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from ../../s/cmdoptions.y:39, + from cmdoptionsscanner.h:40, + from options.cpp:26: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -1896,7 +1792,7 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from partition-versal.cpp:24: + from outputfile-versal.cpp:28: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1916,26 +1812,24 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-binary.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-command.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-load.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-npi.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-overlay.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-raw.c -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-source.c +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable-zynqmp.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. partitionheadertable.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. postprocess.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-versal.cpp In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-zynq.h:28, - from partitionheadertable-zynq.cpp:22: + from bootimage.h:35, + from outputfile.cpp:28: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1943,7 +1837,7 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -1951,15 +1845,18 @@ from imageheadertable.h:31, from bootheader.h:28, from partitionheadertable.h:27, - from partitionheadertable-zynqmp.h:27, - from partitionheadertable-zynqmp.cpp:22: + from bootimage.h:35, + from ../s/bif.y:42, + from parsing.h:26, + from parsing.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1967,14 +1864,18 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynq.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage-zynqmp.cpp In file included from authentication.h:43, from imageheadertable.h:31, - from imageheadertable-versal.h:27, - from postprocess.cpp:17: + from bootheader.h:28, + from partitionheadertable.h:27, + from partitionheadertable-versal.h:27, + from partitionheadertable-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1985,6 +1886,7 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. readimage.cpp authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); @@ -1993,10 +1895,13 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.cpp In file included from authentication.h:43, - from readimage.h:32, - from readimage-zynq.h:30, - from readimage-zynq.cpp:24: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from partitionheadertable-zynq.h:28, + from partitionheadertable-zynq.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2016,16 +1921,19 @@ 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, - from readimage.h:32, - from readimage-zynqmp.h:33, - from readimage-zynqmp.cpp:24: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from partition-versal.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2033,14 +1941,55 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, - from readimage.h:32, - from readimage-versal.h:29, - from readimage-versal.cpp:31: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from partitionheadertable.cpp:22: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authkeys.h:32, + from bootimage.h:34: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from imageheadertable-versal.h:27, + from postprocess.cpp:17: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +In file included from authentication.h:43, + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from partitionheadertable-zynqmp.h:27, + from partitionheadertable-zynqmp.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2059,9 +2008,20 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.tab.cpp +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. reginit.yy.cpp In file included from authentication.h:43, from readimage.h:32, - from readimage.cpp:30: + from readimage-versal.h:29, + from readimage-versal.cpp:31: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2085,7 +2045,7 @@ from bootheader.h:28, from partitionheadertable.h:27, from bootimage.h:35, - from partitionheadertable.cpp:22: + from partition.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2097,22 +2057,26 @@ /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:30: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-versal.cpp In file included from authentication.h:43, - from imageheadertable.h:31, - from bootheader.h:28, - from partitionheadertable.h:27, - from bootimage.h:35, - from ../../s/reginit.y:44, - from reginitscanner.h:40, - from ../../s/reginit.y:54: + from readimage.h:32, + from readimage-zynqmp.h:33, + from readimage-zynqmp.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authkeys.h:32, - from bootimage.h:34: + from authentication.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2120,18 +2084,56 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +In file included from authentication.h:43, + from readimage.h:32, + from readimage-zynq.h:30, + from readimage-zynq.cpp:24: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. verifyimage-zynqmp.cpp +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cJSON.c +In file included from authentication.h:43, + from readimage.h:32, + from readimage.cpp:30: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:30: +In file included from authentication.h:33: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-alloc.c In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -2157,17 +2159,26 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-binary.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-command.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-load.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-npi.c In file included from authentication.h:43, - from readimage.h:32, - from readimage-zynqmp.h:33, - from verifyimage-zynqmp.cpp:23: + from imageheadertable.h:31, + from bootheader.h:28, + from partitionheadertable.h:27, + from bootimage.h:35, + from ../../s/reginit.y:44, + from reginitscanner.h:40, + from ../../s/reginit.y:54: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } | ~~~~~~~~~~~^~~~~~ In file included from /usr/include/openssl/x509.h:41, from /usr/include/openssl/pem.h:23, - from authentication.h:35: + from authkeys.h:32, + from bootimage.h:34: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2175,14 +2186,14 @@ authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:33: +In file included from authkeys.h:30: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:43, from readimage.h:32, - from readimage-versal.h:29, - from verifyimage-versal.cpp:25: + from readimage-zynqmp.h:33, + from verifyimage-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 84 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2201,6 +2212,7 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-overlay.c In file included from authentication.h:43, from imageheadertable.h:31, from bootheader.h:28, @@ -2228,6 +2240,30 @@ /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ +In file included from authentication.h:43, + from readimage.h:32, + from readimage-versal.h:29, + from verifyimage-versal.cpp:25: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:84:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 84 | void InitHash(void) { SHA256_Init(&ctx); } + | ~~~~~~~~~~~^~~~~~ +In file included from /usr/include/openssl/x509.h:41, + from /usr/include/openssl/pem.h:23, + from authentication.h:35: +/usr/include/openssl/sha.h:73:27: note: declared here + 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); + | ^~~~~~~~~~~ +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:94:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 94 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:33: +/usr/include/openssl/rsa.h:304:28: note: declared here + 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); + | ^~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-raw.c +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2022.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-source.c verifyimage-zynqmp.cpp: In member function 'bool ZynqMpReadImage::VerifySignature(bool, uint8_t*, size_t, ACKey4096*, uint8_t*)': verifyimage-zynqmp.cpp:94:18: warning: 'RSA* RSA_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 94 | rsa = RSA_new(); @@ -2446,8 +2482,8 @@ dh_gencontrol -O--exclude=.la dh_md5sums -O--exclude=.la dh_builddeb -O--exclude=.la -dpkg-deb: building package 'xilinx-bootgen' in '../xilinx-bootgen_2022.2-2_amd64.deb'. dpkg-deb: building package 'xilinx-bootgen-dbgsym' in '../xilinx-bootgen-dbgsym_2022.2-2_amd64.deb'. +dpkg-deb: building package 'xilinx-bootgen' in '../xilinx-bootgen_2022.2-2_amd64.deb'. dpkg-genbuildinfo --build=binary -O../xilinx-bootgen_2022.2-2_amd64.buildinfo dpkg-genchanges --build=binary -O../xilinx-bootgen_2022.2-2_amd64.changes dpkg-genchanges: info: binary-only upload (no source code included) @@ -2455,12 +2491,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/1713146/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/1713146/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/3503645 and its subdirectories -I: Current time: Tue Jul 8 06:13:42 -12 2025 -I: pbuilder-time-stamp: 1751998422 +I: removing directory /srv/workspace/pbuilder/1713146 and its subdirectories +I: Current time: Thu Jun 6 01:52:09 +14 2024 +I: pbuilder-time-stamp: 1717588329