Index | Thread | Search

From:
James Cook <falsifian@falsifian.org>
Subject:
Re: -current Haskell ports aborting with SIGILL
To:
Greg Steuck <gnezdo@openbsd.org>
Cc:
Evan Silberman <evan@jklol.net>, Greg Steuck <greg@nest.cx>, ports@openbsd.org, Antoine Jacoutot <ajacoutot@bsdfrog.org>
Date:
Mon, 22 Apr 2024 01:17:47 +0000

Download raw body.

Thread
On Sun, Apr 21, 2024 at 09:03:30PM +0000, James Cook wrote:
> On Sun, Apr 21, 2024 at 11:49:46AM -0700, Greg Steuck wrote:
> > 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
> 
> The following patch fixes at least the ghci example on my AMD machine:
> 
> 	$ ghci              
> 	GHCi, version 9.6.4: https://www.haskell.org/ghc/  :? for help
> 	ghci> import qualified Data.Text as T
> 	ghci> T.take 1 $ T.pack "aa"
> 	"a"

Confirmed that the following are also fixed, which were broken
before for me:
- cabal-bundler (I just invoked it with no arguments)
- building the pandoc port
- pandoc /dev/null

-- 
James