From unknown Fri Aug 15 20:53:15 2025 X-Loop: help-debbugs@gnu.org Subject: bug#75614: Fix FTBFS on CentOS 8 and CentOS 8 Stream Resent-From: Bruno Haible Original-Sender: "Debbugs-submit" Resent-CC: bug-coreutils@gnu.org Resent-Date: Thu, 16 Jan 2025 21:15:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 75614 X-GNU-PR-Package: coreutils X-GNU-PR-Keywords: To: 75614@debbugs.gnu.org X-Debbugs-Original-To: bug-coreutils@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.173706206518500 (code B ref -1); Thu, 16 Jan 2025 21:15:02 +0000 Received: (at submit) by debbugs.gnu.org; 16 Jan 2025 21:14:25 +0000 Received: from localhost ([127.0.0.1]:34892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tYXC4-0004oK-SO for submit@debbugs.gnu.org; Thu, 16 Jan 2025 16:14:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56266) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tYXC2-0004o1-0Z for submit@debbugs.gnu.org; Thu, 16 Jan 2025 16:14:23 -0500 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 1tYXBv-0006jO-Aa for bug-coreutils@gnu.org; Thu, 16 Jan 2025 16:14:15 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tYXBt-0000sC-8P for bug-coreutils@gnu.org; Thu, 16 Jan 2025 16:14:15 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1737062050; cv=none; d=strato.com; s=strato-dkim-0002; b=XFgu2llf6GpdL+wRfxYtQCNRbIRRxFZ9euM2+lG1XOe8VKcrHXdx7deZwiCwFKQFYC HtQ1E41J24RqaDDE8M6l7IgKjE8f+6W2fxyoFC6EkFAzW+m23ZbQrfU/3fph2XJrfA/W Uk5g28kurV3azEfQJFTi0sesQz2DU0GBVlt5jaDlpTJs6ZHuFclPg1RTU/GcRBmZ4m4m TQjdrJHS0MxzwZCJJ9j7PffEjFIXhIW67PIMK4VaCiQp/tKsOu0BIQq019l79xcszO4e /OgxlW/eFB/vD1bc8X7nRSLDKonJ+0D65VGZx08JsyPC1uMMMM9s1FfIC7PrMU4WsD0i znXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=LqPrge3vXIYu0xB+GuTXGgBN8ZaslllCqryBb4rYaH32hxy1otlhegfSFGurwwaG9Q gHNzQfQp7FdYVsT2A4X0mxxaHnUoICbXRaKJlXHVcSiOytjOaJ2es+V6eddQtu4fz9bZ kmZllWRgDZ0GeeXU1Ndz/q1WemhwVgboVEYuDHU9M6GlQtsVFObSWgFje+YHmCiYoByL gu3rtZTBpmy5Evk45Q5Bc5pY8u0VZXYcow934k20M3aEfj7me0KwE/uJcdui8MyQZIea gCLtWo8+DnYc/StRGyzCaOhXVa1f0U1/qnReZX046qvuGQrd0ksJtrOICdITyENinTea Wvbw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=X/Q2qzNNfwp/eHBz/NQj4nva+MSWhgoSNm7zlb2UVVUEdKHAoLsql8eYGTQVkdrn1K xsarPakGnEWdcXeRZifB/Jotk9yfC2lELVECTeDrj3H1yf3W02oA/kmTy5wy+GmMSZMt cQnPK1h6asSc8z9tie1hvpDWRh6PrpanstOrRwekkABvjDpmPi2cBBdel10ICTVDI8rd h5IcByBRj5XZpVxFgyAEbM35dq+syOAScGeQitKrrabV62BaMUP0FiaOr+dTJq795dyD LLJsJAMZdaKh0oWU7OhtLmNGh4uVoJEJQriC/WmXY01t8ZVKNJDdhzSAa6bZWK56eJUE NzRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=LJ+7eajYUatm1SaPFEsUT0uo6Cjpvq/QENNYSR38/MFOOGRk5Ra+n7uMSxzObouu/t 2nFWuV5XmKJA3itbWTAQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqm+ZFDrj427esj3ggT1Yh0+bzw7B" Received: from nimes.localnet by smtp.strato.de (RZmta 51.2.17 AUTH) with ESMTPSA id N6df4210GLEA3U6 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 16 Jan 2025 22:14:10 +0100 (CET) From: Bruno Haible Date: Thu, 16 Jan 2025 22:14:10 +0100 Message-ID: <2451093.SyXcmblsem@nimes> Organization: GNU MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3764401.t68216eyJU" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=85.215.255.54; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de 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_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --nextPart3764401.t68216eyJU Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Testing a current coreutils with a current gnulib on CentOS 8 and CentOS 8 Stream, I see the same compilation error on both: CC src/libcksum_avx512_a-cksum_avx512.o ../src/cksum_avx512.c: In function 'cksum_avx512': ../src/cksum_avx512.c:60:22: warning: implicit declaration of function '_mm512_set_epi8'; did you mean '_mm512_set1_epi8'? [-Wimplicit-function-declaration] shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, ^~~~~~~~~~~~~~~ _mm512_set1_epi8 ../src/cksum_avx512.c:60:20: error: incompatible types when assigning to type '__m512i' {aka '__vector(8) long long int'} from type 'int' shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, ^ make[2]: *** [Makefile:20396: src/libcksum_avx512_a-cksum_avx512.o] Error 1 The cause is that USE_AVX512_CRC32 was determined to be true at configure time, although the compiler does not support all builtin functions used by cksum_avx512.c. This proposed patch fixed it. I verified that on Ubuntu 24.04 and CentOS Stream 9, USE_AVX512_CRC32 remains true. --nextPart3764401.t68216eyJU Content-Disposition: attachment; filename="0001-build-Fix-compilation-error-on-CentOS-8-Stream.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="x-UTF_8J"; name="0001-build-Fix-compilation-error-on-CentOS-8-Stream.patch" >From 9f00e68762c9457c8ef7e8fd90db102e5281de72 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 16 Jan 2025 22:10:26 +0100 Subject: [PATCH] build: Fix compilation error on CentOS 8 Stream * configure.ac (USE_AVX512_CRC32): Set to false if the function _mm512_set_epi8 does not exist. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index e3c8f4c30..bf6da2a5a 100644 --- a/configure.ac +++ b/configure.ac @@ -727,6 +727,10 @@ AC_LINK_IFELSE( main (void) { __m512i a, b; + a = _mm512_set_epi8 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); a = _mm512_clmulepi64_epi128 (a, b, 0x00); a = _mm512_shuffle_epi8 (a, b); return __builtin_cpu_supports ("avx512bw") && -- 2.43.0 --nextPart3764401.t68216eyJU-- From unknown Fri Aug 15 20:53:15 2025 MIME-Version: 1.0 X-Mailer: MIME-tools 5.505 (Entity 5.505) X-Loop: help-debbugs@gnu.org From: help-debbugs@gnu.org (GNU bug Tracking System) To: Bruno Haible Subject: bug#75614: closed (Re: bug#75614: Fix FTBFS on CentOS 8 and CentOS 8 Stream) Message-ID: References: <32d931da-1360-4148-a84f-21c0f2599348@draigBrady.com> <2451093.SyXcmblsem@nimes> X-Gnu-PR-Message: they-closed 75614 X-Gnu-PR-Package: coreutils Reply-To: 75614@debbugs.gnu.org Date: Thu, 16 Jan 2025 22:19:02 +0000 Content-Type: multipart/mixed; boundary="----------=_1737065942-9039-1" This is a multi-part message in MIME format... ------------=_1737065942-9039-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Your bug report #75614: Fix FTBFS on CentOS 8 and CentOS 8 Stream which was filed against the coreutils package, has been closed. The explanation is attached below, along with your original report. If you require more details, please reply to 75614@debbugs.gnu.org. --=20 75614: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=3D75614 GNU Bug Tracking System Contact help-debbugs@gnu.org with problems ------------=_1737065942-9039-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at 75614-done) by debbugs.gnu.org; 16 Jan 2025 22:18:32 +0000 Received: from localhost ([127.0.0.1]:35011 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tYYC8-0002Kz-D0 for submit@debbugs.gnu.org; Thu, 16 Jan 2025 17:18:32 -0500 Received: from mail-wm1-x334.google.com ([2a00:1450:4864:20::334]:44322) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.84_2) (envelope-from ) id 1tYYC6-0002Kl-BN for 75614-done@debbugs.gnu.org; Thu, 16 Jan 2025 17:18:30 -0500 Received: by mail-wm1-x334.google.com with SMTP id 5b1f17b1804b1-43618283d48so9596545e9.1 for <75614-done@debbugs.gnu.org>; Thu, 16 Jan 2025 14:18:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1737065904; x=1737670704; darn=debbugs.gnu.org; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:from:to:cc:subject:date:message-id:reply-to; bh=AmoTnTmdmWnX/0OawDxyH5RgL0AY80NNQTmEkAdSZW4=; b=OMefFuyx1+1avn+tacV9oy+vhKMK1MK4bs5sNTr7q+kDelX4zDGX/N4K8iKiNqRRwz g0GxNvbvUqy9KJ1C++x3ev5Q82E7isBwkzo/7TIvFYJ/bu89FuoSERr/DThU0NP25345 9kSAarBAzHD8KqlINFYT4rUepwXhGeSofDYq29MRezs+Q0+oBqh3gMCsLOnbbg3xB0ZS 9raovV2B7M0zoxyM/nWKVnVUZux/TZ4g1tU2ICYoKXZgSE9IYziqR2XS4hI+MIhk4v4Y 43f7QMjOSnbgOFpF+DMBIxDpLm7tRGIYmCpbKi5a8k8T3o7zyb4Ymp6oKvwzQ8XRVOU7 WxlA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1737065904; x=1737670704; h=content-transfer-encoding:in-reply-to:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :sender:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=AmoTnTmdmWnX/0OawDxyH5RgL0AY80NNQTmEkAdSZW4=; b=UeMVFOHLcz5GE2Y5KNlY6/BMBfMKZVMp3c6Vd2PuZskvSefP+yoNsoXmC0SGpRtIoS pxQV/s4Wo9wB38/X2Jdj1G2NezMQD9eQpCmhDrYJEWdPmUGi7KTY2W3HUw6Ogcjh6RXA WClAcwmePTYlxXFfwijTULFgAIMBmuifDCd6t97YWt+MOOt74BCKErvLTiPQN/cxg4Wm yJN3UVgoukEzK+wZ4z5ctNePGkv+mMyxxRSm9w5UaD4slqrOBZry4mKfiR4STpeVL0Eu btS6+p7SNm9gDu81/rV/xwbz4gDLq8YDttvcReFaTqXB8p+/TPOprzY0XFRGnjkhrOOM YoXQ== X-Forwarded-Encrypted: i=1; AJvYcCWlBtq7aOwZiAoZzTj6pj6pFju3KwdJ89Z5iD1UstEf6kUCW32P9GZz6MiHBdiSEXYX+pq8zJzpM/NH@debbugs.gnu.org X-Gm-Message-State: AOJu0Yy6hu7N7h5z+JsKzwEPomUS6ZAWHhEwj7JCKlCIoyAMR/RSOL0h c2SO966kFiCDOWpXeIm42ipAmE8itOIeHXwHpTlRtKL3cob0xPt9 X-Gm-Gg: ASbGncsPGGoB8aAqDwmWT0VGYlX5C/BcIsAEpBbbyOx33H8Xa+ntrsDwpNBWZlVfMRS TleaaCOtT+rr9cbqOeEqLje4727v6G//C0l5eJekbvUClKMYRz8RwUKauD4LAlya6KJwduhBmGf vvo1OT776lulAmgRBtPJ3kPhtyIAQY5TXo1Y8V5nzYo2ffSo/E3NBOm3t9Pv9eLHzlR5AOq4331 8gJ9VQwxMczTHftm13uKPkwWUJ1ArumZdUIZ9K3ei/7AWS18zMhEER+x/MJaW+/G/HnezWHDG8I EEE2ZDJwFSRsBe1TpjgmQeJP7Z6kPfkkctvY X-Google-Smtp-Source: AGHT+IHpdUDggbfGhj6r4yCYTiHaIJ2p6F/jFTcXXpqQPYonIHBgGUW7h62nljDhYnZnB6JqXS+ZOQ== X-Received: by 2002:a05:600c:510c:b0:434:a1e7:27b0 with SMTP id 5b1f17b1804b1-438913ccd4amr4007545e9.11.1737065903607; Thu, 16 Jan 2025 14:18:23 -0800 (PST) Received: from [192.168.1.31] (86-44-211-146-dynamic.agg2.lod.rsl-rtd.eircom.net. [86.44.211.146]) by smtp.googlemail.com with ESMTPSA id ffacd0b85a97d-38bf32221e2sm906342f8f.36.2025.01.16.14.18.23 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 16 Jan 2025 14:18:23 -0800 (PST) Message-ID: <32d931da-1360-4148-a84f-21c0f2599348@draigBrady.com> Date: Thu, 16 Jan 2025 22:18:22 +0000 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Beta Subject: Re: bug#75614: Fix FTBFS on CentOS 8 and CentOS 8 Stream To: Bruno Haible , 75614-done@debbugs.gnu.org References: <2451093.SyXcmblsem@nimes> Content-Language: en-US From: =?UTF-8?Q?P=C3=A1draig_Brady?= In-Reply-To: <2451093.SyXcmblsem@nimes> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Score: 0.3 (/) X-Debbugs-Envelope-To: 75614-done X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -0.7 (/) On 16/01/2025 21:14, Bruno Haible via GNU coreutils Bug Reports wrote: > Testing a current coreutils with a current gnulib on CentOS 8 and > CentOS 8 Stream, I see the same compilation error on both: > > CC src/libcksum_avx512_a-cksum_avx512.o > ../src/cksum_avx512.c: In function 'cksum_avx512': > ../src/cksum_avx512.c:60:22: warning: implicit declaration of function '_mm512_set_epi8'; did you mean '_mm512_set1_epi8'? [-Wimplicit-function-declaration] > shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, > ^~~~~~~~~~~~~~~ > _mm512_set1_epi8 > ../src/cksum_avx512.c:60:20: error: incompatible types when assigning to type '__m512i' {aka '__vector(8) long long int'} from type 'int' > shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, > ^ > make[2]: *** [Makefile:20396: src/libcksum_avx512_a-cksum_avx512.o] Error 1 > > The cause is that USE_AVX512_CRC32 was determined to be true at configure > time, although the compiler does not support all builtin functions used > by cksum_avx512.c. > > This proposed patch fixed it. I verified that on Ubuntu 24.04 and > CentOS Stream 9, USE_AVX512_CRC32 remains true. Ah right, it seems this fails on GCC 8 without your patch. Pushed. Marking this as done. thanks! Pádraig ------------=_1737065942-9039-1 Content-Type: message/rfc822 Content-Disposition: inline Content-Transfer-Encoding: 7bit Received: (at submit) by debbugs.gnu.org; 16 Jan 2025 21:14:25 +0000 Received: from localhost ([127.0.0.1]:34892 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1tYXC4-0004oK-SO for submit@debbugs.gnu.org; Thu, 16 Jan 2025 16:14:25 -0500 Received: from lists.gnu.org ([2001:470:142::17]:56266) by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.84_2) (envelope-from ) id 1tYXC2-0004o1-0Z for submit@debbugs.gnu.org; Thu, 16 Jan 2025 16:14:23 -0500 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 1tYXBv-0006jO-Aa for bug-coreutils@gnu.org; Thu, 16 Jan 2025 16:14:15 -0500 Received: from mo4-p01-ob.smtp.rzone.de ([85.215.255.54]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tYXBt-0000sC-8P for bug-coreutils@gnu.org; Thu, 16 Jan 2025 16:14:15 -0500 ARC-Seal: i=1; a=rsa-sha256; t=1737062050; cv=none; d=strato.com; s=strato-dkim-0002; b=XFgu2llf6GpdL+wRfxYtQCNRbIRRxFZ9euM2+lG1XOe8VKcrHXdx7deZwiCwFKQFYC HtQ1E41J24RqaDDE8M6l7IgKjE8f+6W2fxyoFC6EkFAzW+m23ZbQrfU/3fph2XJrfA/W Uk5g28kurV3azEfQJFTi0sesQz2DU0GBVlt5jaDlpTJs6ZHuFclPg1RTU/GcRBmZ4m4m TQjdrJHS0MxzwZCJJ9j7PffEjFIXhIW67PIMK4VaCiQp/tKsOu0BIQq019l79xcszO4e /OgxlW/eFB/vD1bc8X7nRSLDKonJ+0D65VGZx08JsyPC1uMMMM9s1FfIC7PrMU4WsD0i znXg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0002; d=strato.com; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=LqPrge3vXIYu0xB+GuTXGgBN8ZaslllCqryBb4rYaH32hxy1otlhegfSFGurwwaG9Q gHNzQfQp7FdYVsT2A4X0mxxaHnUoICbXRaKJlXHVcSiOytjOaJ2es+V6eddQtu4fz9bZ kmZllWRgDZ0GeeXU1Ndz/q1WemhwVgboVEYuDHU9M6GlQtsVFObSWgFje+YHmCiYoByL gu3rtZTBpmy5Evk45Q5Bc5pY8u0VZXYcow934k20M3aEfj7me0KwE/uJcdui8MyQZIea gCLtWo8+DnYc/StRGyzCaOhXVa1f0U1/qnReZX046qvuGQrd0ksJtrOICdITyENinTea Wvbw== ARC-Authentication-Results: i=1; strato.com; arc=none; dkim=none X-RZG-CLASS-ID: mo01 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0002; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=X/Q2qzNNfwp/eHBz/NQj4nva+MSWhgoSNm7zlb2UVVUEdKHAoLsql8eYGTQVkdrn1K xsarPakGnEWdcXeRZifB/Jotk9yfC2lELVECTeDrj3H1yf3W02oA/kmTy5wy+GmMSZMt cQnPK1h6asSc8z9tie1hvpDWRh6PrpanstOrRwekkABvjDpmPi2cBBdel10ICTVDI8rd h5IcByBRj5XZpVxFgyAEbM35dq+syOAScGeQitKrrabV62BaMUP0FiaOr+dTJq795dyD LLJsJAMZdaKh0oWU7OhtLmNGh4uVoJEJQriC/WmXY01t8ZVKNJDdhzSAa6bZWK56eJUE NzRg== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; t=1737062050; s=strato-dkim-0003; d=clisp.org; h=Message-ID:Date:Subject:To:From:Cc:Date:From:Subject:Sender; bh=bTff3vOfCw3qSYTwqYlxkyZ24XrqRvBPmk1cfeYN5xc=; b=LJ+7eajYUatm1SaPFEsUT0uo6Cjpvq/QENNYSR38/MFOOGRk5Ra+n7uMSxzObouu/t 2nFWuV5XmKJA3itbWTAQ== X-RZG-AUTH: ":Ln4Re0+Ic/6oZXR1YgKryK8brlshOcZlLnY4jECd2hdUURIbZgL8PX2QiTuZ3cdB8X/nqm+ZFDrj427esj3ggT1Yh0+bzw7B" Received: from nimes.localnet by smtp.strato.de (RZmta 51.2.17 AUTH) with ESMTPSA id N6df4210GLEA3U6 (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256 bits)) (Client did not present a certificate); Thu, 16 Jan 2025 22:14:10 +0100 (CET) From: Bruno Haible To: bug-coreutils@gnu.org Subject: Fix FTBFS on CentOS 8 and CentOS 8 Stream Date: Thu, 16 Jan 2025 22:14:10 +0100 Message-ID: <2451093.SyXcmblsem@nimes> Organization: GNU MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart3764401.t68216eyJU" Content-Transfer-Encoding: 7Bit Received-SPF: none client-ip=85.215.255.54; envelope-from=bruno@clisp.org; helo=mo4-p01-ob.smtp.rzone.de 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_DNSWL_NONE=-0.0001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-0.001, SPF_NONE=0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Spam-Score: 0.0 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -1.0 (-) This is a multi-part message in MIME format. --nextPart3764401.t68216eyJU Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Testing a current coreutils with a current gnulib on CentOS 8 and CentOS 8 Stream, I see the same compilation error on both: CC src/libcksum_avx512_a-cksum_avx512.o ../src/cksum_avx512.c: In function 'cksum_avx512': ../src/cksum_avx512.c:60:22: warning: implicit declaration of function '_mm512_set_epi8'; did you mean '_mm512_set1_epi8'? [-Wimplicit-function-declaration] shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, ^~~~~~~~~~~~~~~ _mm512_set1_epi8 ../src/cksum_avx512.c:60:20: error: incompatible types when assigning to type '__m512i' {aka '__vector(8) long long int'} from type 'int' shuffle_constant = _mm512_set_epi8 (0, 1, 2, 3, 4, 5, 6, 7, 8, ^ make[2]: *** [Makefile:20396: src/libcksum_avx512_a-cksum_avx512.o] Error 1 The cause is that USE_AVX512_CRC32 was determined to be true at configure time, although the compiler does not support all builtin functions used by cksum_avx512.c. This proposed patch fixed it. I verified that on Ubuntu 24.04 and CentOS Stream 9, USE_AVX512_CRC32 remains true. --nextPart3764401.t68216eyJU Content-Disposition: attachment; filename="0001-build-Fix-compilation-error-on-CentOS-8-Stream.patch" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="x-UTF_8J"; name="0001-build-Fix-compilation-error-on-CentOS-8-Stream.patch" >From 9f00e68762c9457c8ef7e8fd90db102e5281de72 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Thu, 16 Jan 2025 22:10:26 +0100 Subject: [PATCH] build: Fix compilation error on CentOS 8 Stream * configure.ac (USE_AVX512_CRC32): Set to false if the function _mm512_set_epi8 does not exist. --- configure.ac | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/configure.ac b/configure.ac index e3c8f4c30..bf6da2a5a 100644 --- a/configure.ac +++ b/configure.ac @@ -727,6 +727,10 @@ AC_LINK_IFELSE( main (void) { __m512i a, b; + a = _mm512_set_epi8 (0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, + 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); a = _mm512_clmulepi64_epi128 (a, b, 0x00); a = _mm512_shuffle_epi8 (a, b); return __builtin_cpu_supports ("avx512bw") && -- 2.43.0 --nextPart3764401.t68216eyJU-- ------------=_1737065942-9039-1--