i noticed this:
in the Slackware current changelog : http://ftp.slackware.com/pub/slackware/slackware64-current/ChangeLog.txt
this is the patch used:
--- ./src/wc.c.orig 2023-04-10 05:14:08.000000000 -0500
+++ ./src/wc.c 2023-08-26 14:22:10.058092456 -0500
@@ -174,14 +174,7 @@
if (avx_enabled)
{
- eax = ebx = ecx = edx = 0;
- if (! __get_cpuid_count (7, 0, &eax, &ebx, &ecx, &edx))
- getcpuid_ok = false;
- else
- {
- if (! (ebx & bit_AVX2))
- avx_enabled = false; /* Hardware doesn't support it. */
- }
+ avx_enabled = false; /* Never use AVX2. */
}
i also see that arch have removed all their patches, while the artix package still retains them..
fwiw, on obarun atm, which uses arch's coreutils, it seems to work fine:
for option in c m l L w; do echo -n "-$option: "; dd if=/dev/urandom count=5 2>/dev/null | wc -$option; done
-c: 2560
-m: 1379
-l: 7
-L: 151
-w: 60
EDIT: now checked in artix, and wc -l works fine.. looking again at the slackware thing, i guess it may require a specific hardware/microcode/kernel combination, that i don't have.