Index | Thread | Search

From:
Greg Steuck <gnezdo@openbsd.org>
Subject:
Re: -current Haskell ports aborting with SIGILL
To:
James Cook <falsifian@falsifian.org>
Cc:
Evan Silberman <evan@jklol.net>, Greg Steuck <greg@nest.cx>, ports@openbsd.org, Antoine Jacoutot <ajacoutot@bsdfrog.org>
Date:
Sun, 21 Apr 2024 11:49:46 -0700

Download raw body.

Thread
Stuart Henderson <stu@spacehopper.org> writes:

> This is in the avx512 checks in the text library again, I think it must
> be patch-libraries_text_cbits_measure_off_c (the simdutf one doesn't
> explicitly check for xgetbv but it does check for osxsave so I think
> wouldn't have executed the xgetbv opcode on this cpu).
>
> As -current does now have avx512 support in the kernel we probably
> should be able to remove that patch, but it needs testing on an avx512
> machine as well as that old Phenom.

Sadly I have neither nearby. Furthermore, sumdutf upstream doesn't have
a fix for this issue either. So this will have to be original work.

https://github.com/simdutf/simdutf/blob/master/include/simdutf/internal/isadetection.h#L232

Thanks
Greg