Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id BD063C87FCB for ; Fri, 1 Aug 2025 13:37:48 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uhpw7-000686-GG; Fri, 01 Aug 2025 09:36:40 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uhlFa-0003JE-F5 for grub-devel@gnu.org; Fri, 01 Aug 2025 04:36:32 -0400 Received: from helium.openadk.org ([89.238.66.15]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uhlFW-0001JT-Nl for grub-devel@gnu.org; Fri, 01 Aug 2025 04:36:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=openadk.org; s=2022; t=1754037375; bh=YLQWxeBv2qfUYfUxmcCZ1wZOomG72GNSfRsAJIBHcTo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=KqqlhMhM9v63W3CFtpk436WWJZ4uroeysILlZmX7CQoJyNrbwk6g52u+HES8eE9kb uskpga4r6kzjEA6/4RhKNNAW6qB7oh4iymkgqtK1kfI6KIRKnZZ0aHWwN5uHPOSTEQ qfq8wAnBZcmpfgZ+/Zik6ptVfG7Ufgp3ZPvWkTGL7MOp+Bze5oJA+iUVLL7F7Bwbz1 DprjXrp1rarPXsvHmHl6jj+aQp9n1mhpewXb4ekAUk3bG7ZoTWK9R56Q28hQyibpAj fwE9vGXREOMG0HMftw7fFPoIS8btC0QmFcCt+lsadWTCHwy74kFIrpxJ4oqyFJNuUf KXnU9tPVOBLKw== Received: by helium.openadk.org (Postfix, from userid 1000) id B68BB35203A0; Fri, 1 Aug 2025 10:36:15 +0200 (CEST) Date: Fri, 1 Aug 2025 10:36:15 +0200 From: Waldemar Brodkorb To: The development of GNU GRUB Cc: Gary Lin , Daniel Kiper , Vladimir 'phcoder' Serbinenko , Glenn Washburn , Michael Chang Subject: Re: [PATCH 0/7] Support Argon2 KDF Message-ID: References: <20250731021923.23144-1-glin@suse.com> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="GeLhv3LoJu1vjY8e" Content-Disposition: inline In-Reply-To: <20250731021923.23144-1-glin@suse.com> X-Operating-System: Linux 6.1.0-32-amd64 x86_64 Received-SPF: pass client-ip=89.238.66.15; envelope-from=wbx@openadk.org; helo=helium.openadk.org X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 01 Aug 2025 09:34:31 -0400 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: The development of GNU GRUB Errors-To: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org Sender: grub-devel-bounces+grub-devel=archiver.kernel.org@gnu.org --GeLhv3LoJu1vjY8e Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Hi Gary, Gary Lin via Grub-devel wrote, > This patch series imports the Argon2 code and tests from libgcrypt and > adds Argon2 support to LUKS2. I am trying to use your patch series, but compilation is failing. I am using Debian 12 with gcc 12. Attached is the logfile of the make invocation with the failures. Any ideas why it is working for you? Older gcc? Or are you using --disable-werror in the configure step? best regards Waldemar --GeLhv3LoJu1vjY8e Content-Type: text/plain; charset=utf-8 Content-Disposition: attachment; filename="make.log" Content-Transfer-Encoding: quoted-printable make all-recursive make[1]: Entering directory '/root/grub/build' Making all in grub-core/lib/gnulib make[2]: Entering directory '/root/grub/build/grub-core/lib/gnulib' make all-recursive make[3]: Entering directory '/root/grub/build/grub-core/lib/gnulib' make[4]: Entering directory '/root/grub/build/grub-core/lib/gnulib' make[4]: Nothing to be done for 'all-am'. make[4]: Leaving directory '/root/grub/build/grub-core/lib/gnulib' make[3]: Leaving directory '/root/grub/build/grub-core/lib/gnulib' make[2]: Leaving directory '/root/grub/build/grub-core/lib/gnulib' Making all in . make[2]: Entering directory '/root/grub/build' gcc -DHAVE_CONFIG_H -I. -I.. -Wall -W -DGRUB_UTIL=3D1 -D_FILE_OFFSET_BITS= =3D64 -I./include -DGRUB_FILE=3D\"grub-core/lib/libgcrypt-grub/cipher/arcfo= ur.c\" -I. -I.. -I. -I.. -I../include -I./include -I../grub-core/lib/libgcr= ypt-grub/src/ -I../grub-core/lib/libgcrypt_wrap -I../grub-core/lib/posix_w= rap -D_GCRYPT_IN_LIBGCRYPT=3D1 -D_GCRYPT_CONFIG_H_INCLUDED=3D1 -I../include= /grub/gcrypt -D_FILE_OFFSET_BITS=3D64 -std=3Dgnu99 -fno-common -Wall -W -W= shadow -Wpointer-arith -Wundef -Wchar-subscripts -Wcomment -Wdeprecated-dec= larations -Wdisabled-optimization -Wdiv-by-zero -Wfloat-equal -Wformat-extr= a-args -Wformat-security -Wformat-y2k -Wimplicit -Wimplicit-function-declar= ation -Wimplicit-int -Wmain -Wmissing-braces -Wmissing-format-attribute -Wm= ultichar -Wparentheses -Wreturn-type -Wsequence-point -Wshadow -Wsign-compa= re -Wswitch -Wtrigraphs -Wunknown-pragmas -Wunused -Wunused-function -Wunus= ed-label -Wunused-parameter -Wunused-value -Wunused-variable -Wwrite-strin= gs -Wnested-externs -Wstrict-prototypes -Wcast-align -Wextra -Wattributes = -Wendif-labels -Winit-self -Wint-to-pointer-cast -Winvalid-pch -Wmissing-fi= eld-initializers -Wnonnull -Woverflow -Wvla -Wpointer-to-int-cast -Wstrict-= aliasing -Wvariadic-macros -Wvolatile-register-var -Wpointer-sign -Wmissing= -include-dirs -Wmissing-prototypes -Wmissing-declarations -Wformat=3D2 -Wer= ror -Wno-sign-compare -Wno-missing-field-initializers -Wno-redundant-decls= -Wno-undef -fno-builtin -MT grub-core/lib/libgcrypt-grub/cipher/libgrubgc= ry_a-arcfour.o -MD -MP -MF grub-core/lib/libgcrypt-grub/cipher/.deps-util/l= ibgrubgcry_a-arcfour.Tpo -c -o grub-core/lib/libgcrypt-grub/cipher/libgrubg= cry_a-arcfour.o `test -f 'grub-core/lib/libgcrypt-grub/cipher/arcfour.c' ||= echo '../'`grub-core/lib/libgcrypt-grub/cipher/arcfour.c In file included from ../grub-core/lib/libgcrypt-grub/cipher/types.h:2, from ../grub-core/lib/libgcrypt-grub/cipher/arcfour.c:30: =2E./grub-core/lib/libgcrypt_wrap/cipher_wrap.h:82: error: "strtoul" redefi= ned [-Werror] 82 | #define strtoul grub_strtoul |=20 In file included from ../grub-core/lib/libgcrypt_wrap/cipher_wrap.h:76: =2E./include/grub/gcrypt/g10lib.h:207: note: this is the location of the pr= evious definition 207 | #define strtoul(a,b,c) ((unsigned long)strtol((a),(b),(c))) |=20 =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:5: error: initializa= tion of =E2=80=98int=E2=80=99 from =E2=80=98const char *=E2=80=99 makes int= eger from pointer without a cast [-Werror=3Dint-conversion] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^~~~~~~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:5: note: (near initi= alization for =E2=80=98_gcry_cipher_spec_arcfour.algo=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:5: error: initialize= r element is not computable at load time =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:5: note: (near initi= alization for =E2=80=98_gcry_cipher_spec_arcfour.algo=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:16: error: initializ= ation of =E2=80=98unsigned char:1=E2=80=99 from =E2=80=98void *=E2=80=99 ma= kes integer from pointer without a cast [-Werror=3Dint-conversion] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:16: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.flags.disabled=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:22: error: initializ= ation of =E2=80=98unsigned char:1=E2=80=99 from =E2=80=98void *=E2=80=99 ma= kes integer from pointer without a cast [-Werror=3Dint-conversion] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:22: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.flags.fips=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:28: error: initializ= ation of =E2=80=98const char *=E2=80=99 from =E2=80=98int=E2=80=99 makes po= inter from integer without a cast [-Werror=3Dint-conversion] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:28: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.name=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:31: error: initializ= ation of =E2=80=98const char **=E2=80=99 from =E2=80=98int=E2=80=99 makes p= ointer from integer without a cast [-Werror=3Dint-conversion] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:31: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.aliases=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:36: error: initializ= ation of =E2=80=98const gcry_cipher_oid_spec_t *=E2=80=99 {aka =E2=80=98con= st struct gcry_cipher_oid_spec *=E2=80=99} from =E2=80=98long unsigned int= =E2=80=99 makes pointer from integer without a cast [-Werror=3Dint-conversi= on] 127 | "ARCFOUR", NULL, NULL, 1, 128, sizeof (ARCFOUR_context), | ^~~~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:127:36: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.oids=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:5: error: initializa= tion of =E2=80=98long unsigned int=E2=80=99 from =E2=80=98gcry_err_code_t (= *)(void *, const byte *, unsigned int)=E2=80=99 {aka =E2=80=98gpg_err_code_= t (*)(void *, const unsigned char *, unsigned int)=E2=80=99} makes integer = =66rom pointer without a cast [-Werror=3Dint-conversion] 128 | arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream, | ^~~~~~~~~~~~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:5: note: (near initi= alization for =E2=80=98_gcry_cipher_spec_arcfour.blocksize=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:21: error: initializ= ation of =E2=80=98long unsigned int=E2=80=99 from =E2=80=98void *=E2=80=99 = makes integer from pointer without a cast [-Werror=3Dint-conversion] 128 | arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream, | ^~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:21: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.keylen=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:27: error: initializ= ation of =E2=80=98long unsigned int=E2=80=99 from =E2=80=98void *=E2=80=99 = makes integer from pointer without a cast [-Werror=3Dint-conversion] 128 | arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream, | ^~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:27: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.contextsize=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:33: error: initializ= ation of =E2=80=98gcry_err_code_t (*)(void *, const unsigned char *, unsign= ed int, struct cipher_bulk_ops *)=E2=80=99 {aka =E2=80=98gpg_err_code_t (*= )(void *, const unsigned char *, unsigned int, struct cipher_bulk_ops *)= =E2=80=99} from incompatible pointer type =E2=80=98void (*)(void *, byte *,= const byte *, unsigned int)=E2=80=99 {aka =E2=80=98void (*)(void *, unsign= ed char *, const unsigned char *, unsigned int)=E2=80=99} [-Werror=3Dincomp= atible-pointer-types] 128 | arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream, | ^~~~~~~~~~~~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:33: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.setkey=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:49: error: initializ= ation of =E2=80=98unsigned int (*)(void *, unsigned char *, const unsigned = char *)=E2=80=99 from incompatible pointer type =E2=80=98void (*)(void *, b= yte *, const byte *, unsigned int)=E2=80=99 {aka =E2=80=98void (*)(void *, = unsigned char *, const unsigned char *, unsigned int)=E2=80=99} [-Werror=3D= incompatible-pointer-types] 128 | arcfour_setkey, NULL, NULL, encrypt_stream, encrypt_stream, | ^~~~~~~~~~~~~~ =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:128:49: note: (near init= ialization for =E2=80=98_gcry_cipher_spec_arcfour.encrypt=E2=80=99) =2E./grub-core/lib/libgcrypt-grub/cipher/arcfour.c:126:3: error: missing br= aces around initializer [-Werror=3Dmissing-braces] 126 | { | ^ cc1: all warnings being treated as errors make[2]: *** [Makefile:6403: grub-core/lib/libgcrypt-grub/cipher/libgrubgcr= y_a-arcfour.o] Error 1 make[2]: Leaving directory '/root/grub/build' make[1]: *** [Makefile:12468: all-recursive] Error 1 make[1]: Leaving directory '/root/grub/build' make: *** [Makefile:4058: all] Error 2 --GeLhv3LoJu1vjY8e Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KR3J1Yi1kZXZl bCBtYWlsaW5nIGxpc3QKR3J1Yi1kZXZlbEBnbnUub3JnCmh0dHBzOi8vbGlzdHMuZ251Lm9yZy9t YWlsbWFuL2xpc3RpbmZvL2dydWItZGV2ZWwK --GeLhv3LoJu1vjY8e--