GNU bug report logs - #78562
Coreutils-9.7 do not build on macOS High Sierra, Version 10.13.6, because src/cksum.c: uses invalid cpu feature string for builtin

Previous Next

Package: coreutils;

Reported by: Peter Dyballa <Peter_Dyballa <at> Web.DE>

Date: Fri, 23 May 2025 13:21:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Full log


Message #50 received at 78562 <at> debbugs.gnu.org (full text, mbox):

From: Pádraig Brady <P <at> draigBrady.com>
To: Peter Dyballa <Peter_Dyballa <at> Web.DE>
Cc: 78562 <at> debbugs.gnu.org
Subject: Re: bug#78562: Coreutils-9.7 do not build on macOS High Sierra,
 Version 10.13.6, because src/cksum.c: uses invalid cpu feature string for
 builtin
Date: Thu, 29 May 2025 12:08:17 +0100
On 29/05/2025 10:54, Peter Dyballa wrote:
> 
>> Am 29.05.2025 um 11:06 schrieb Pádraig Brady <P <at> draigBrady.com>:
>>
>>> 	<stdin>:59:2: error: instruction requires: AVX-512 ISA
>>> 	        vmovdqa64       lC0(%rip), %zmm0
>>> 	        ^
>>
>> The above suggests that `/opt/local/bin/gcc-mp-14 -std=gnu23 ... -mavx512bw -mavx512f -mvpclmulqdq ... -arch x86_64`
>> isn't enough to support building with AVX-512 ISA.
>>
>> That should be fine though if the same determination is made at configure time,
>> which would cause USE_AVX512_CRC32 to _not_ be defined.
>> You should be able to see the configure time checks with:
>>
>>   grep -A3 'avx512 pclmul intrinsic exists' config.log
> 
> Output is:
> 
> 	configure:94181: checking if avx512 pclmul intrinsic exists
> 	configure:94209: /opt/local/bin/gcc-mp-14 -std=gnu23 -o conftest  -mavx512bw -mavx512f -mvpclmulqdq -pipe -Os -arch x86_64 -I/opt/local/include -L/opt/local/lib -Wl,-headerpad_max_install_names -arch x86_64 conftest.c  >&5
> 	configure:94209: $? = 0
> 	configure:94225: result: yes

OK that does suggest the configure test isn't sufficient here
(Nor the patch to that I sent previously).

Since this is for an optional performance enhancement,
you should be able to bypass this build issue with:

  ./configure utils_cv_avx512_pclmul_intrinsic_exists=no ...

You might have to also disable other intrinsics, as listed by:

  grep CACHE.*utils_cv.*intrins configure.ac

cheers,
Pádraig




This bug report was last modified 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.