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 <[email protected]> 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

Reply via email to