Diff of the two buildlogs: -- --- b1/build.log 2025-03-19 19:07:24.925228579 +0000 +++ b2/build.log 2025-03-19 19:08:19.626759980 +0000 @@ -1,6 +1,6 @@ I: pbuilder: network access will be disabled during build -I: Current time: Tue Apr 21 13:29:03 -12 2026 -I: pbuilder-time-stamp: 1776821343 +I: Current time: Thu Mar 20 09:07:27 +14 2025 +I: pbuilder-time-stamp: 1742411247 I: Building the build Environment I: extracting base tarball [/var/cache/pbuilder/experimental-reproducible-base.tgz] I: copying local configuration @@ -22,51 +22,83 @@ dpkg-source: info: unpacking xilinx-bootgen_2024.2-1.debian.tar.xz I: Not using root during the build. I: Installing the build-deps -I: user script /srv/workspace/pbuilder/29317/tmp/hooks/D02_print_environment starting +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/D01_modify_environment starting +debug: Running on infom01-amd64. +I: Changing host+domainname to test build reproducibility +I: Adding a custom variable just for the fun of it... +I: Changing /bin/sh to bash +'/bin/sh' -> '/bin/bash' +lrwxrwxrwx 1 root root 9 Mar 19 19:07 /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/3839718/tmp/hooks/D01_modify_environment finished +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/D02_print_environment starting I: set - BUILDDIR='/build/reproducible-path' - BUILDUSERGECOS='first user,first room,first work-phone,first home-phone,first other' - BUILDUSERNAME='pbuilder1' - BUILD_ARCH='amd64' - DEBIAN_FRONTEND='noninteractive' + BASH=/bin/sh + BASHOPTS=checkwinsize:cmdhist:complete_fullquote:extquote:force_fignore:globasciiranges:globskipdots:hostcomplete:interactive_comments:patsub_replacement:progcomp:promptvars:sourcepath + BASH_ALIASES=() + BASH_ARGC=() + BASH_ARGV=() + BASH_CMDS=() + BASH_LINENO=([0]="12" [1]="0") + BASH_LOADABLES_PATH=/usr/local/lib/bash:/usr/lib/bash:/opt/local/lib/bash:/usr/pkg/lib/bash:/opt/pkg/lib/bash:. + BASH_SOURCE=([0]="/tmp/hooks/D02_print_environment" [1]="/tmp/hooks/D02_print_environment") + BASH_VERSINFO=([0]="5" [1]="2" [2]="37" [3]="1" [4]="release" [5]="x86_64-pc-linux-gnu") + BASH_VERSION='5.2.37(1)-release' + BUILDDIR=/build/reproducible-path + BUILDUSERGECOS='second user,second room,second work-phone,second home-phone,second other' + BUILDUSERNAME=pbuilder2 + BUILD_ARCH=amd64 + DEBIAN_FRONTEND=noninteractive DEB_BUILD_OPTIONS='buildinfo=+all reproducible=+all parallel=12 ' - DISTRIBUTION='experimental' - HOME='/root' - HOST_ARCH='amd64' + DIRSTACK=() + DISTRIBUTION=experimental + EUID=0 + FUNCNAME=([0]="Echo" [1]="main") + GROUPS=() + HOME=/root + HOSTNAME=i-capture-the-hostname + HOSTTYPE=x86_64 + HOST_ARCH=amd64 IFS=' ' - INVOCATION_ID='cde2ff920e6c4df0a9b451fa8a040619' - 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='29317' - PS1='# ' - PS2='> ' + INVOCATION_ID=b75b7f708fc84f9f8d4ccab948bc8f39 + 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=3839718 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.pC1665z6/pbuilderrc_2oEc --distribution experimental --hookdir /etc/pbuilder/first-build-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/experimental-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.pC1665z6/b1 --logfile b1/build.log xilinx-bootgen_2024.2-1.dsc' - SUDO_GID='109' - SUDO_UID='104' - SUDO_USER='jenkins' - TERM='unknown' - TZ='/usr/share/zoneinfo/Etc/GMT+12' - USER='root' - _='/usr/bin/systemd-run' + PWD=/ + SHELL=/bin/bash + SHELLOPTS=braceexpand:errexit:hashall:interactive-comments:posix + SHLVL=3 + SUDO_COMMAND='/usr/bin/timeout -k 24.1h 24h /usr/bin/ionice -c 3 /usr/bin/nice -n 11 /usr/bin/unshare --uts -- /usr/sbin/pbuilder --build --configfile /srv/reproducible-results/rbuild-debian/r-b-build.pC1665z6/pbuilderrc_j4qJ --distribution experimental --hookdir /etc/pbuilder/rebuild-hooks --debbuildopts -b --basetgz /var/cache/pbuilder/experimental-reproducible-base.tgz --buildresult /srv/reproducible-results/rbuild-debian/r-b-build.pC1665z6/b2 --logfile b2/build.log xilinx-bootgen_2024.2-1.dsc' + SUDO_GID=109 + SUDO_UID=104 + SUDO_USER=jenkins + TERM=unknown + TZ=/usr/share/zoneinfo/Etc/GMT-14 + UID=0 + USER=root + _='I: set' I: uname -a - Linux infom02-amd64 6.12.12+bpo-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.12.12-1~bpo12+1 (2025-02-23) x86_64 GNU/Linux + Linux i-capture-the-hostname 6.1.0-32-cloud-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.129-1 (2025-03-06) x86_64 GNU/Linux I: ls -l /bin - lrwxrwxrwx 1 root root 7 Mar 4 2025 /bin -> usr/bin -I: user script /srv/workspace/pbuilder/29317/tmp/hooks/D02_print_environment finished + lrwxrwxrwx 1 root root 7 Mar 4 11:20 /bin -> usr/bin +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/D02_print_environment finished -> Attempting to satisfy build-dependencies -> Creating pbuilder-satisfydepends-dummy package Package: pbuilder-satisfydepends-dummy @@ -135,7 +167,7 @@ Get: 29 http://deb.debian.org/debian unstable/main amd64 po-debconf all 1.0.21+nmu1 [248 kB] Get: 30 http://deb.debian.org/debian unstable/main amd64 debhelper all 13.24.1 [920 kB] Get: 31 http://deb.debian.org/debian unstable/main amd64 libssl-dev amd64 3.4.1-1 [2787 kB] -Fetched 23.7 MB in 2s (12.2 MB/s) +Fetched 23.7 MB in 0s (92.2 MB/s) Preconfiguring packages ... 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 ... 19784 files and directories currently installed.) @@ -274,7 +306,11 @@ Building tag database... -> Finished parsing the build-deps I: Building the package -I: Running cd /build/reproducible-path/xilinx-bootgen-2024.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_2024.2-1_source.changes +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/A99_set_merged_usr starting +Not re-configuring usrmerge for experimental +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/A99_set_merged_usr finished +hostname: Name or service not known +I: Running cd /build/reproducible-path/xilinx-bootgen-2024.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_2024.2-1_source.changes dpkg-buildpackage: info: source package xilinx-bootgen dpkg-buildpackage: info: source version 2024.2-1 dpkg-buildpackage: info: source distribution experimental @@ -325,9 +361,21 @@ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binary.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. binfile.cpp +In file included from authentication-versal.h:41, + from authkeys-versal.cpp:28: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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-versal.h:32, + from authkeys-versal.cpp:27: +/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:44, - from authentication-zynq.h:27, - from authentication-zynq.cpp:28: + from authentication.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -346,39 +394,57 @@ /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:44, - from authentication.cpp:27: +In file included from authentication-versal.h:41, + from authentication-versal.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authentication-versal.h:38: /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:43: authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys-versal.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:41, - from authkeys-versal.cpp:28: +In file included from authentication.h:44, + from authentication-zynqmp.h:28, + from authentication-zynqmp.cpp:28: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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-versal.h:32, - from authkeys-versal.cpp:27: + from authentication.h:36: /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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:34: +/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:43: +authentication.h: In destructor 'RSA_Class::~RSA_Class()': +authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication-versal.h:36: +/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:44, from imageheadertable.h:32, from bifoptions.h:29, @@ -401,12 +467,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:43: +In file included from authentication.h:44, + from imageheadertable.h:32, + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from ../s/bif.y:43, + from bifscanner.h:40, + from ../s/bif.l:24: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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:33, + from bootimage.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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys-versal.h:30: +In file included from authkeys.h:31: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -414,6 +498,19 @@ authkeys-versal.cpp:47:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 47 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ +In file included from authentication.h:44, + from authentication-zynq.h:27, + from authentication-zynq.cpp:28: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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:36: +/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:33: /usr/include/openssl/ec.h:1017:31: note: declared here 1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); @@ -444,6 +541,14 @@ /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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:34: +/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:269:38: warning: 'EC_KEY* PEM_read_ECPrivateKey(FILE*, EC_KEY**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 269 | eckey = PEM_read_ECPrivateKey(file, NULL, NULL, NULL); @@ -538,18 +643,15 @@ | ^~~~~~~~ In file included from authentication.h:44, from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from ../s/bif.y:55: + from bifoptions.h:29, + from binary.cpp:31: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:33, - from bootimage.h:35: + from authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -557,20 +659,158 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: +In file included from authentication.h:34: /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:1674:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1675:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1675:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1676:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:1740:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': +authentication-versal.cpp:1119:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1119 | EC_KEY* eckeyN = EC_KEY_new(); + | ~~~~~~~~~~^~ +In file included from /usr/include/openssl/x509.h:33: +/usr/include/openssl/ec.h:987:31: note: declared here + 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); + | ^~~~~~~~~~ +authentication-versal.cpp:1121:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1121 | EC_KEY_set_group(eckeyN, ecgroup); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1061:27: note: declared here + 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +authentication-versal.cpp:1122:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1122 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); + | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1106:28: note: declared here + 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1125:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1125 | prv = EC_KEY_get0_private_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1067:37: note: declared here + 1067 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1126:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1126 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1081:39: note: declared here + 1081 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1129:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1129 | EC_KEY_set_private_key(eckeyN, prv); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1075:27: note: declared here + 1075 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1130:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1130 | EC_KEY_set_public_key(eckeyN, pub); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1089:27: note: declared here + 1089 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); + | ^~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1133:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1133 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1384:34: note: declared here + 1384 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, + | ^~~~~~~~~~~~~ +authentication-versal.cpp:1165:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1165 | EC_KEY_free(eckeyN); + | ~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +authentication-versal.cpp: In member function 'void ECDSAP521AuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': +authentication-versal.cpp:1172:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1172 | EC_KEY* eckeyN = EC_KEY_new(); + | ~~~~~~~~~~^~ +/usr/include/openssl/ec.h:987:31: note: declared here + 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); + | ^~~~~~~~~~ +authentication-versal.cpp:1174:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1174 | EC_KEY_set_group(eckeyN, ecgroup); + | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1061:27: note: declared here + 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); + | ^~~~~~~~~~~~~~~~ +authentication-versal.cpp:1175:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1175 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); + | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1106:28: note: declared here + 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); + | ^~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1178:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1178 | prv = EC_KEY_get0_private_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1067:37: note: declared here + 1067 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1179:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1179 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1081:39: note: declared here + 1081 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1182:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1182 | EC_KEY_set_private_key(eckeyN, prv); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1075:27: note: declared here + 1075 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); + | ^~~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1183:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1183 | EC_KEY_set_public_key(eckeyN, pub); + | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1089:27: note: declared here + 1089 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); + | ^~~~~~~~~~~~~~~~~~~~~ +authentication-versal.cpp:1186:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1186 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); + | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ +/usr/include/openssl/ec.h:1384:34: note: declared here + 1384 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, + | ^~~~~~~~~~~~~ +authentication-versal.cpp:1275:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 1275 | EC_KEY_free(eckeyN); + | ~~~~~~~~~~~^~~~~~~~ +/usr/include/openssl/ec.h:1022:28: note: declared here + 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); + | ^~~~~~~~~~~ +../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': +../bisonflex/bif.yy.cpp:3396:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3397:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3398:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3398: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:3536:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3537:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3545: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:3574:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3576:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3578:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp: At global scope: +../bisonflex/bif.yy.cpp:3599: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:3602:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3612:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3613:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/bif.yy.cpp:3615:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] In file included from authentication.h:44, - from authkeys.cpp:27: + from imageheadertable.h:32, + from bifoptions.h:29, + from bifoptions.cpp:26: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:33, - from authkeys.cpp:26: + from authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -578,32 +818,21 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: +In file included from authentication.h:34: /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:41, - from authentication-versal.cpp:23: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | 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:38: -/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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils-versal.cpp In file included from authentication.h:44, - from authentication-zynqmp.h:28, - from authentication-zynqmp.cpp:28: + from authkeys.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from authkeys.cpp:26: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -611,7 +840,7 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -620,9 +849,7 @@ from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from ../s/bif.y:43, - from bifscanner.h:40, - from ../s/bif.l:24: + from ../s/bif.y:55: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -642,59 +869,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:43: -authentication.h: In destructor 'RSA_Class::~RSA_Class()': -authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication-versal.h:36: -/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:44, - from imageheadertable.h:32, - from bifoptions.h:29, - from binary.cpp:31: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | void InitHash(void) { SHA256_Init(&ctx); } - | ~~~~~~~~~~~^~~~~~ -In file included from authentication.h:44, - from imageheadertable.h:32, - from bifoptions.h:29, - from bifoptions.cpp:26: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | 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:36: -/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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:34: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -In file included from /usr/include/openssl/x509.h:41, - from /usr/include/openssl/pem.h:23, - from authentication.h:36: -/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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authentication.h:34: -/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:192:45: warning: 'RSA* PEM_read_RSAPrivateKey(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 192 | rsaInst.rsa = PEM_read_RSAPrivateKey(f, NULL, NULL, NULL); @@ -749,12 +923,6 @@ authkeys.cpp:416:49: warning: 'const BIGNUM* RSA_get0_e(const RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 416 | uint32_t* temp_e = (uint32_t*)RSA_get0_e(rsa)->d; | ~~~~~~~~~~^~~~~ -../bisonflex/bif.yy.cpp: In member function 'virtual int BIF::FlexScanner::yylex()': -../bisonflex/bif.yy.cpp:1674:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1675:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1675:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1676:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:1740:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ @@ -806,26 +974,6 @@ authkeys.cpp:606:41: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 606 | eckey = EC_KEY_new_by_curve_name(NID_secp384r1); | ~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~ -../bisonflex/bif.yy.cpp: In member function 'int bifFlexLexer::yy_get_next_buffer()': -../bisonflex/bif.yy.cpp:3396:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3397:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3398:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3398: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:3536:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3537:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3545: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:3574:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3576:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3578:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp: At global scope: -../bisonflex/bif.yy.cpp:3599: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:3602:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3612:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3613:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/bif.yy.cpp:3615:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] In file included from /usr/include/openssl/x509.h:33: /usr/include/openssl/ec.h:1017:31: note: declared here 1017 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new_by_curve_name(int nid); @@ -848,118 +996,6 @@ /usr/include/openssl/ec.h:1120:27: note: declared here 1120 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_generate_key(EC_KEY *key); | ^~~~~~~~~~~~~~~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils-versal.cpp -authentication-versal.cpp: In member function 'void ECDSAAuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': -authentication-versal.cpp:1119:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1119 | EC_KEY* eckeyN = EC_KEY_new(); - | ~~~~~~~~~~^~ -In file included from /usr/include/openssl/x509.h:33: -/usr/include/openssl/ec.h:987:31: note: declared here - 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -authentication-versal.cpp:1121:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1121 | EC_KEY_set_group(eckeyN, ecgroup); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1061:27: note: declared here - 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -authentication-versal.cpp:1122:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1122 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); - | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1106:28: note: declared here - 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1125:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1125 | prv = EC_KEY_get0_private_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1067:37: note: declared here - 1067 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1126:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1126 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1081:39: note: declared here - 1081 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1129:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1129 | EC_KEY_set_private_key(eckeyN, prv); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1075:27: note: declared here - 1075 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1130:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1130 | EC_KEY_set_public_key(eckeyN, pub); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1089:27: note: declared here - 1089 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); - | ^~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1133:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1133 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1384:34: note: declared here - 1384 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, - | ^~~~~~~~~~~~~ -authentication-versal.cpp:1165:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1165 | EC_KEY_free(eckeyN); - | ~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1022:28: note: declared here - 1022 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_free(EC_KEY *key); - | ^~~~~~~~~~~ -authentication-versal.cpp: In member function 'void ECDSAP521AuthenticationAlgorithm::ECDSASignature(const uint8_t*, EC_KEY*, uint8_t*)': -authentication-versal.cpp:1172:32: warning: 'EC_KEY* EC_KEY_new()' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1172 | EC_KEY* eckeyN = EC_KEY_new(); - | ~~~~~~~~~~^~ -/usr/include/openssl/ec.h:987:31: note: declared here - 987 | OSSL_DEPRECATEDIN_3_0 EC_KEY *EC_KEY_new(void); - | ^~~~~~~~~~ -authentication-versal.cpp:1174:21: warning: 'int EC_KEY_set_group(EC_KEY*, const EC_GROUP*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1174 | EC_KEY_set_group(eckeyN, ecgroup); - | ~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1061:27: note: declared here - 1061 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_group(EC_KEY *key, const EC_GROUP *group); - | ^~~~~~~~~~~~~~~~ -authentication-versal.cpp:1175:25: warning: 'void EC_KEY_set_asn1_flag(EC_KEY*, int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1175 | EC_KEY_set_asn1_flag(eckeyN, OPENSSL_EC_NAMED_CURVE); - | ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1106:28: note: declared here - 1106 | OSSL_DEPRECATEDIN_3_0 void EC_KEY_set_asn1_flag(EC_KEY *eckey, int asn1_flag); - | ^~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1178:34: warning: 'const BIGNUM* EC_KEY_get0_private_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1178 | prv = EC_KEY_get0_private_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1067:37: note: declared here - 1067 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *EC_KEY_get0_private_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1179:49: warning: 'const EC_POINT* EC_KEY_get0_public_key(const EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1179 | const EC_POINT *pub = EC_KEY_get0_public_key(eckeyU); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~ -/usr/include/openssl/ec.h:1081:39: note: declared here - 1081 | OSSL_DEPRECATEDIN_3_0 const EC_POINT *EC_KEY_get0_public_key(const EC_KEY *key); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1182:27: warning: 'int EC_KEY_set_private_key(EC_KEY*, const BIGNUM*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1182 | EC_KEY_set_private_key(eckeyN, prv); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1075:27: note: declared here - 1075 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_private_key(EC_KEY *key, const BIGNUM *prv); - | ^~~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1183:26: warning: 'int EC_KEY_set_public_key(EC_KEY*, const EC_POINT*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1183 | EC_KEY_set_public_key(eckeyN, pub); - | ~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1089:27: note: declared here - 1089 | OSSL_DEPRECATEDIN_3_0 int EC_KEY_set_public_key(EC_KEY *key, const EC_POINT *pub); - | ^~~~~~~~~~~~~~~~~~~~~ -authentication-versal.cpp:1186:41: warning: 'ECDSA_SIG* ECDSA_do_sign(const unsigned char*, int, EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1186 | ECDSA_SIG* signature = ECDSA_do_sign(base, 48, eckeyN); - | ~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~ -/usr/include/openssl/ec.h:1384:34: note: declared here - 1384 | OSSL_DEPRECATEDIN_3_0 ECDSA_SIG *ECDSA_do_sign(const unsigned char *dgst, - | ^~~~~~~~~~~~~ -authentication-versal.cpp:1275:16: warning: 'void EC_KEY_free(EC_KEY*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 1275 | EC_KEY_free(eckeyN); - | ~~~~~~~~~~~^~~~~~~~ -/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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bitutils.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-versal.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynq.cpp @@ -992,6 +1028,58 @@ | ^~~~~~~~ g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -Wno-aligned-new -Wno-misleading-indentation -Wno-class-memaccess -I. bootheader-zynqmp.cpp g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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 +In file included from authentication.h:44, + from imageheadertable.h:32, + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from bitutils.h:33, + from bitutils.cpp:28: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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:33, + from bootimage.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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:31: +/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-2024.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-2024.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.h:44, + from imageheadertable.h:32, + from bootheader.h:29, + from bootheader-versal.h:29, + from bootheader-versal.cpp:24: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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:36: +/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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:34: +/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:44, from imageheadertable.h:32, from bootheader.h:29, @@ -1015,12 +1103,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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, - from bootheader-versal.h:29, - from bootheader-versal.cpp:24: + from bootheader-zynqmp.h:29, + from bootheader-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1044,8 +1132,8 @@ from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from bitutils.h:33, - from bitutils.cpp:28: + from bootimage-zynq.h:29, + from bootimage-zynq.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1065,21 +1153,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-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, - from bootheader-zynqmp.h:29, - from bootheader-zynqmp.cpp:23: + from partitionheadertable.h:28, + from bootimage.h:36, + from bootheader.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from bootimage.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1087,16 +1174,18 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: /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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from bootheader.cpp:23: + from bootimage-zynqmp.h:29, + from bootimage-zynqmp.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1142,6 +1231,9 @@ /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-2024.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-2024.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-2024.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 bootimage-versal.cpp: In member function 'virtual void VersalBootImage::Add(BifOptions*)': bootimage-versal.cpp:1263:47: warning: 'RSA* PEM_read_RSA_PUBKEY(FILE*, RSA**, int (*)(char*, int, int, void*), void*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 1263 | RSA* rsa = PEM_read_RSA_PUBKEY(f, NULL, NULL, NULL); @@ -1218,15 +1310,15 @@ /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-2024.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-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from bootimage-zynqmp.h:29, - from bootimage-zynqmp.cpp:23: + from checksum-versal.h:27, + from checksum-versal.cpp:18: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1251,8 +1343,7 @@ from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from bootimage-zynq.h:29, - from bootimage-zynq.cpp:23: + from checksum.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1272,16 +1363,14 @@ /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-2024.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-2024.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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from checksum-versal.h:27, - from checksum-versal.cpp:18: + from ../../s/cmdoptions.y:40, + from cmdoptionsscanner.h:41, + from ../../s/cmdoptions.y:52: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1301,14 +1390,22 @@ /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-2024.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-2024.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 +checksum.cpp: In member function 'virtual void MD5ChecksumContext::Link(bool, const uint8_t*, Binary::Length_t, Section*)': +checksum.cpp:59:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 59 | MD5( data, length, cksum_data); + | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from checksum.cpp:33: +/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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from checksum.cpp:23: + from ../../s/cmdoptions.y:40, + from cmdoptionsscanner.h:41, + from ../s/cmdoptions.l:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1328,14 +1425,6 @@ /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:59:8: warning: 'unsigned char* MD5(const unsigned char*, size_t, unsigned char*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 59 | MD5( data, length, cksum_data); - | ~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from checksum.cpp:33: -/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:44, from imageheadertable.h:32, from elftools.cpp:26: @@ -1357,41 +1446,40 @@ /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:1357:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1358:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1358:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1359:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:1425:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': +../bisonflex/cmdoptions.yy.cpp:2686:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2687:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2688:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2688:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_get_previous_state()': +../bisonflex/cmdoptions.yy.cpp:2826:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2827:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2835:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/cmdoptions.yy.cpp:2864:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2866:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2868:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: At global scope: +../bisonflex/cmdoptions.yy.cpp:2889:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp: In member function 'void cmdoptionsFlexLexer::yyunput(int, char*)': +../bisonflex/cmdoptions.yy.cpp:2892:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2902:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2903:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/cmdoptions.yy.cpp:2905:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from ../../s/cmdoptions.y:40, - from cmdoptionsscanner.h:41, - from ../../s/cmdoptions.y:52: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | 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:33, - from bootimage.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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: -/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:44, - from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from ../../s/cmdoptions.y:40, - from cmdoptionsscanner.h:41, - from ../s/cmdoptions.l:24: + from encryption-versal.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1411,7 +1499,10 @@ /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-2024.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-2024.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-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, @@ -1437,38 +1528,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:1357:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1358:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1358:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1359:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:1425:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'int cmdoptionsFlexLexer::yy_get_next_buffer()': -../bisonflex/cmdoptions.yy.cpp:2686:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2687:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2688:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2688:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_get_previous_state()': -../bisonflex/cmdoptions.yy.cpp:2826:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2827:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2835:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'yy_state_type cmdoptionsFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/cmdoptions.yy.cpp:2864:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2866:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2868:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: At global scope: -../bisonflex/cmdoptions.yy.cpp:2889:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp: In member function 'void cmdoptionsFlexLexer::yyunput(int, char*)': -../bisonflex/cmdoptions.yy.cpp:2892:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2902:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2903:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/cmdoptions.yy.cpp:2905:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from encryption-versal.cpp:24: + from encryption-zynq.cpp:37: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1488,11 +1554,7 @@ /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-2024.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-2024.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-2024.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-2024.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-2024.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-2024.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 In file included from hash.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] @@ -1521,7 +1583,7 @@ from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from encryption-zynq.cpp:37: + from encryption-zynqmp.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1541,14 +1603,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-2024.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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from encryption-zynqmp.cpp:24: + from encryption.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1568,21 +1629,17 @@ /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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from encryption.cpp:24: + from imageheadertable-versal.h:28, + from imageheadertable-versal.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:33, - from bootimage.h:35: + from authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1590,16 +1647,16 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: +In file included from authentication.h:34: /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-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, - from imageheadertable-versal.h:28, - from imageheadertable-versal.cpp:23: + from imageheadertable-zynq.h:28, + from imageheadertable-zynq.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1618,6 +1675,7 @@ /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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from imageheadertable-zynqmp.h:28, @@ -1640,17 +1698,22 @@ /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-2024.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-2024.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:44, from imageheadertable.h:32, - from imageheadertable-zynq.h:28, - from imageheadertable-zynq.cpp:23: + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from imageheadertable.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from bootimage.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1658,16 +1721,20 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: /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-2024.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 +g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from imageheadertable.cpp:23: + from main.cpp:28: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1687,14 +1754,18 @@ /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-2024.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-2024.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-2024.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-2024.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-2024.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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from main.cpp:28: + from ../../s/cmdoptions.y:40, + from cmdoptionsscanner.h:41, + from options.cpp:27: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1714,9 +1785,7 @@ /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-2024.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 -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, @@ -1742,15 +1811,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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from ../../s/cmdoptions.y:40, - from cmdoptionsscanner.h:41, - from options.cpp:27: + from outputfile.cpp:29: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1770,19 +1836,15 @@ /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-2024.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-2024.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-2024.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-2024.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-2024.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-2024.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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from partition-versal.cpp:25: + from ../s/bif.y:43, + from parsing.h:27, + from parsing.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1802,12 +1864,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-2024.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 In file included from authentication.h:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from outputfile.cpp:29: + from partition-versal.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1827,21 +1890,19 @@ /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-2024.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:44, from imageheadertable.h:32, from bootheader.h:29, from partitionheadertable.h:28, - from bootimage.h:36, - from partition.cpp:25: + from partitionheadertable-versal.h:28, + from partitionheadertable-versal.cpp:22: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:33, - from bootimage.h:35: + from authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1849,7 +1910,31 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: +In file included from authentication.h:34: +/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:44, + from imageheadertable.h:32, + from bootheader.h:29, + from partitionheadertable.h:28, + from partitionheadertable-zynqmp.h:28, + from partitionheadertable-zynqmp.cpp:23: +hash.h: In member function 'virtual void HashSha2::InitHash()': +hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 85 | 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:36: +/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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authentication.h:34: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -1858,9 +1943,7 @@ from bootheader.h:29, from partitionheadertable.h:28, from bootimage.h:36, - from ../s/bif.y:43, - from parsing.h:27, - from parsing.cpp:24: + from partition.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1904,19 +1987,22 @@ /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-2024.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-2024.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-2024.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:44, from imageheadertable.h:32, - from imageheadertable-versal.h:28, - from postprocess.cpp:18: + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from partitionheadertable.cpp:23: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from bootimage.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -1924,16 +2010,14 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: /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:44, from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from partitionheadertable-versal.h:28, - from partitionheadertable-versal.cpp:22: + from imageheadertable-versal.h:28, + from postprocess.cpp:18: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1953,11 +2037,9 @@ 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:44, - from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from partitionheadertable-zynqmp.h:28, - from partitionheadertable-zynqmp.cpp:23: + from readimage.h:33, + from readimage-versal.h:30, + from readimage-versal.cpp:31: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -1976,6 +2058,8 @@ /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-2024.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-2024.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 In file included from authentication.h:44, from readimage.h:33, from readimage-zynq.h:30, @@ -1998,13 +2082,15 @@ /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-2024.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-2024.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 g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.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-2024.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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cJSON.c In file included from authentication.h:44, from readimage.h:33, - from readimage-zynqmp.h:33, - from readimage-zynqmp.cpp:24: + from readimage.cpp:31: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2023,10 +2109,10 @@ /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-2024.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:44, from readimage.h:33, - from readimage.cpp:31: + from readimage-zynqmp.h:33, + from readimage-zynqmp.cpp:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | void InitHash(void) { SHA256_Init(&ctx); } @@ -2046,39 +2132,24 @@ 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ In file included from authentication.h:44, - from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from partitionheadertable.cpp:23: + from readimage.h:33, + from readimage-versal.h:30, + from verifyimage-versal.cpp:25: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:33, - from bootimage.h:35: + from authentication.h:36: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ -readimage-zynq.cpp: In member function 'virtual void ZynqReadImage::ReadPartitions()': -readimage-zynq.cpp:56:15: warning: argument 1 null where non-null expected [-Wnonnull] - 56 | fclose(binFile); - | ~~~~~~^~~~~~~~~ -In file included from /usr/include/c++/14/cstdio:42, - from /usr/include/c++/14/ext/string_conversions.h:45, - from /usr/include/c++/14/bits/basic_string.h:4154, - from /usr/include/c++/14/string:54, - from readimage.h:30: -/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' - 184 | extern int fclose (FILE *__stream) __nonnull ((1)); - | ^~~~~~ authentication.h: In destructor 'RSA_Class::~RSA_Class()': authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: +In file included from authentication.h:34: /usr/include/openssl/rsa.h:304:28: note: declared here 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); | ^~~~~~~~ @@ -2099,25 +2170,22 @@ /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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: -/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:44, - from readimage.h:33, - from readimage-versal.h:30, - from readimage-versal.cpp:31: + from imageheadertable.h:32, + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from ../../s/reginit.y:45, + from reginitscanner.h:41, + from ../../s/reginit.y:55: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from bootimage.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2125,37 +2193,34 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: +/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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] + 95 | RSA_free(rsa); + | ~~~~~~~~^~~~~ +In file included from authkeys.h:31: /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-2024.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 -readimage-zynqmp.cpp: In member function 'virtual void ZynqMpReadImage::ReadPartitions()': -readimage-zynqmp.cpp:57:15: warning: argument 1 null where non-null expected [-Wnonnull] - 57 | fclose(binFile); - | ~~~~~~^~~~~~~~~ -In file included from /usr/include/c++/14/cstdio:42, - from /usr/include/c++/14/ext/string_conversions.h:45, - from /usr/include/c++/14/bits/basic_string.h:4154, - from /usr/include/c++/14/string:54, - from readimage-zynqmp.h:30: -/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' - 184 | extern int fclose (FILE *__stream) __nonnull ((1)); - | ^~~~~~ -g++ -c -g -O2 -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-alloc.c In file included from authentication.h:44, - from readimage.h:33, - from readimage-versal.h:30, - from verifyimage-versal.cpp:25: + from imageheadertable.h:32, + from bootheader.h:29, + from partitionheadertable.h:28, + from bootimage.h:36, + from ../../s/reginit.y:45, + from reginitscanner.h:41, + from ../s/reginit.l:24: hash.h: In member function 'virtual void HashSha2::InitHash()': hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 85 | 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:36: + from authkeys.h:33, + from bootimage.h:35: /usr/include/openssl/sha.h:73:27: note: declared here 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); | ^~~~~~~~~~~ @@ -2163,11 +2228,10 @@ authentication.h:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 95 | RSA_free(rsa); | ~~~~~~~~^~~~~ -In file included from authentication.h:34: +In file included from authkeys.h:31: /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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-binary.c verifyimage-versal.cpp: In member function 'bool VersalReadImage::VerifyECDSASignature(bool, uint8_t*, size_t, ACKeyECDSA*, uint8_t*)': verifyimage-versal.cpp:72:42: warning: 'EC_KEY* EC_KEY_new_by_curve_name(int)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] 72 | eckeyLocal = EC_KEY_new_by_curve_name(NID_secp384r1); @@ -2262,46 +2326,32 @@ /usr/include/openssl/rsa.h:293:5: note: declared here 293 | int RSA_public_encrypt(int flen, const unsigned char *from, unsigned char *to, | ^~~~~~~~~~~~~~~~~~ -readimage-zynqmp.cpp: In member function 'virtual void ZynqMpReadImage::ReadHeaderTableDetails()': -readimage-zynqmp.cpp:123:15: warning: argument 1 null where non-null expected [-Wnonnull] - 123 | fclose(binFile); - | ~~~~~~^~~~~~~~~ -/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' - 184 | extern int fclose (FILE *__stream) __nonnull ((1)); - | ^~~~~~ -verifyimage-versal.cpp:199:34: warning: 'this' pointer is null [-Wnonnull] - 199 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) - | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ -In file included from readimage-versal.h:35: -authentication-versal.h:250:9: note: in a call to non-static member function 'int RSA4096Sha3PaddingAuthenticationAlgorithm::MaskGenerationFunction(unsigned char*, long int, const unsigned char*, long int, const EVP_MD*)' - 250 | int MaskGenerationFunction(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst); - | ^~~~~~~~~~~~~~~~~~~~~~ -verifyimage-versal.cpp:228:32: warning: 'this' pointer is null [-Wnonnull] - 228 | m1 = s -> AttachSHA3Padding(mPad, 104); - | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ -authentication-versal.h:249:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' - 249 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); - | ^~~~~~~~~~~~~~~~~ -gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-command.c -In file included from authentication.h:44, - from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from ../../s/reginit.y:45, - from reginitscanner.h:41, - from ../../s/reginit.y:55: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | 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:33, - from bootimage.h:35: -/usr/include/openssl/sha.h:73:27: note: declared here - 73 | OSSL_DEPRECATEDIN_3_0 int SHA256_Init(SHA256_CTX *c); - | ^~~~~~~~~~~ +../bisonflex/reginit.yy.cpp: In member function 'virtual int RE::FlexScanner::yylex()': +../bisonflex/reginit.yy.cpp:720:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:721:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:721:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:722:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:786:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'int reginitFlexLexer::yy_get_next_buffer()': +../bisonflex/reginit.yy.cpp:1222:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1223:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1224:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1224:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_get_previous_state()': +../bisonflex/reginit.yy.cpp:1362:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1363:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1371:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_try_NUL_trans(yy_state_type)': +../bisonflex/reginit.yy.cpp:1400:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1402:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1404:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: At global scope: +../bisonflex/reginit.yy.cpp:1425:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp: In member function 'void reginitFlexLexer::yyunput(int, char*)': +../bisonflex/reginit.yy.cpp:1428:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1438:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1439:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +../bisonflex/reginit.yy.cpp:1441:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] In file included from authentication.h:44, from readimage.h:33, from readimage-zynqmp.h:33, @@ -2324,14 +2374,46 @@ /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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ +readimage-zynq.cpp: In member function 'virtual void ZynqReadImage::ReadPartitions()': +readimage-zynq.cpp:56:15: warning: argument 1 null where non-null expected [-Wnonnull] + 56 | fclose(binFile); + | ~~~~~~^~~~~~~~~ +In file included from /usr/include/c++/14/cstdio:42, + from /usr/include/c++/14/ext/string_conversions.h:45, + from /usr/include/c++/14/bits/basic_string.h:4154, + from /usr/include/c++/14/string:54, + from readimage.h:30: +/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' + 184 | extern int fclose (FILE *__stream) __nonnull ((1)); + | ^~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-alloc.c +verifyimage-versal.cpp:199:34: warning: 'this' pointer is null [-Wnonnull] + 199 | if (s->MaskGenerationFunction(masK, maskedDBLen, Buffer, 48, EVP_sha384()) == -1) + | ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ +In file included from readimage-versal.h:35: +authentication-versal.h:250:9: note: in a call to non-static member function 'int RSA4096Sha3PaddingAuthenticationAlgorithm::MaskGenerationFunction(unsigned char*, long int, const unsigned char*, long int, const EVP_MD*)' + 250 | int MaskGenerationFunction(unsigned char *mask, long len, const unsigned char *seed, long seedlen, const EVP_MD *dgst); + | ^~~~~~~~~~~~~~~~~~~~~~ +verifyimage-versal.cpp:228:32: warning: 'this' pointer is null [-Wnonnull] + 228 | m1 = s -> AttachSHA3Padding(mPad, 104); + | ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~ +authentication-versal.h:249:14: note: in a call to non-static member function 'uint8_t* RSA4096Sha3PaddingAuthenticationAlgorithm::AttachSHA3Padding(uint8_t*, Binary::Length_t)' + 249 | uint8_t* AttachSHA3Padding(uint8_t * data, const Binary::Length_t datalength); + | ^~~~~~~~~~~~~~~~~ +readimage-versal.cpp: In member function 'void VersalReadImage::DisplayOptionalData()': +readimage-versal.cpp:96:15: warning: argument 1 null where non-null expected [-Wnonnull] + 96 | fclose(binFile); + | ~~~~~~^~~~~~~~~ +In file included from readimage-versal.cpp:23: +/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' + 184 | extern int fclose (FILE *__stream) __nonnull ((1)); + | ^~~~~~ +readimage-versal.cpp:111:15: warning: argument 1 null where non-null expected [-Wnonnull] + 111 | fclose(filePtr); + | ~~~~~~^~~~~~~~~ +/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' + 184 | extern int fclose (FILE *__stream) __nonnull ((1)); + | ^~~~~~ 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(); @@ -2375,82 +2457,36 @@ /usr/include/openssl/rsa.h:244:37: note: declared here 244 | OSSL_DEPRECATEDIN_3_0 const BIGNUM *RSA_get0_e(const RSA *d); | ^~~~~~~~~~ +gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-load.c -In file included from authentication.h:44, - from imageheadertable.h:32, - from bootheader.h:29, - from partitionheadertable.h:28, - from bootimage.h:36, - from ../../s/reginit.y:45, - from reginitscanner.h:41, - from ../s/reginit.l:24: -hash.h: In member function 'virtual void HashSha2::InitHash()': -hash.h:85:38: warning: 'int SHA256_Init(SHA256_CTX*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 85 | 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:33, - from bootimage.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:95:21: warning: 'void RSA_free(RSA*)' is deprecated: Since OpenSSL 3.0 [-Wdeprecated-declarations] - 95 | RSA_free(rsa); - | ~~~~~~~~^~~~~ -In file included from authkeys.h:31: -/usr/include/openssl/rsa.h:304:28: note: declared here - 304 | OSSL_DEPRECATEDIN_3_0 void RSA_free(RSA *r); - | ^~~~~~~~ -../bisonflex/reginit.yy.cpp: In member function 'virtual int RE::FlexScanner::yylex()': -../bisonflex/reginit.yy.cpp:720:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:721:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:721:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:722:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:786:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'int reginitFlexLexer::yy_get_next_buffer()': -../bisonflex/reginit.yy.cpp:1222:21: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1223:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1224:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1224:31: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_get_previous_state()': -../bisonflex/reginit.yy.cpp:1362:25: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1363:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1371:20: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'yy_state_type reginitFlexLexer::yy_try_NUL_trans(yy_state_type)': -../bisonflex/reginit.yy.cpp:1400:15: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1402:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1404:19: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: At global scope: -../bisonflex/reginit.yy.cpp:1425:54: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp: In member function 'void reginitFlexLexer::yyunput(int, char*)': -../bisonflex/reginit.yy.cpp:1428:17: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1438:16: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1439:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] -../bisonflex/reginit.yy.cpp:1441:18: warning: ISO C++17 does not allow 'register' storage class specifier [-Wregister] +readimage-versal.cpp: In member function 'virtual void VersalReadImage::ReadPartitions()': +readimage-versal.cpp:210:15: warning: argument 1 null where non-null expected [-Wnonnull] + 210 | fclose(binFile); + | ~~~~~~^~~~~~~~~ +/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' + 184 | extern int fclose (FILE *__stream) __nonnull ((1)); + | ^~~~~~ gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-metadata.c gcc -c -g -O2 -Werror=implicit-function-declaration -ffile-prefix-map=/build/reproducible-path/xilinx-bootgen-2024.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-2024.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-2024.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-2024.2=. -fstack-protector-strong -fstack-clash-protection -Wformat -Werror=format-security -fcf-protection -I. cdo-source.c -readimage-versal.cpp: In member function 'void VersalReadImage::DisplayOptionalData()': -readimage-versal.cpp:96:15: warning: argument 1 null where non-null expected [-Wnonnull] - 96 | fclose(binFile); - | ~~~~~~^~~~~~~~~ -In file included from readimage-versal.cpp:23: -/usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' - 184 | extern int fclose (FILE *__stream) __nonnull ((1)); - | ^~~~~~ -readimage-versal.cpp:111:15: warning: argument 1 null where non-null expected [-Wnonnull] - 111 | fclose(filePtr); +readimage-zynqmp.cpp: In member function 'virtual void ZynqMpReadImage::ReadPartitions()': +readimage-zynqmp.cpp:57:15: warning: argument 1 null where non-null expected [-Wnonnull] + 57 | fclose(binFile); | ~~~~~~^~~~~~~~~ +In file included from /usr/include/c++/14/cstdio:42, + from /usr/include/c++/14/ext/string_conversions.h:45, + from /usr/include/c++/14/bits/basic_string.h:4154, + from /usr/include/c++/14/string:54, + from readimage-zynqmp.h:30: /usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' 184 | extern int fclose (FILE *__stream) __nonnull ((1)); | ^~~~~~ -readimage-versal.cpp: In member function 'virtual void VersalReadImage::ReadPartitions()': -readimage-versal.cpp:210:15: warning: argument 1 null where non-null expected [-Wnonnull] - 210 | fclose(binFile); +readimage-zynqmp.cpp: In member function 'virtual void ZynqMpReadImage::ReadHeaderTableDetails()': +readimage-zynqmp.cpp:123:15: warning: argument 1 null where non-null expected [-Wnonnull] + 123 | fclose(binFile); | ~~~~~~^~~~~~~~~ /usr/include/stdio.h:184:12: note: in a call to function 'int fclose(FILE*)' declared 'nonnull' 184 | extern int fclose (FILE *__stream) __nonnull ((1)); @@ -2491,12 +2527,14 @@ dpkg-buildpackage: info: binary-only upload (no source included) dpkg-genchanges: info: including full source code in upload I: copying local configuration +I: user script /srv/workspace/pbuilder/3839718/tmp/hooks/B01_cleanup starting +I: user script /srv/workspace/pbuilder/3839718/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/29317 and its subdirectories -I: Current time: Tue Apr 21 13:30:24 -12 2026 -I: pbuilder-time-stamp: 1776821424 +I: removing directory /srv/workspace/pbuilder/3839718 and its subdirectories +I: Current time: Thu Mar 20 09:08:18 +14 2025 +I: pbuilder-time-stamp: 1742411298