Bug#967075: haskell-ghc-lib-parser: FTBFS on mips* and s390x: /usr/lib/ghc/include/stg/SMP.h:390:2: error: #error memory barriers unimplemented on this architecture

John David Anglin dave.anglin at bell.net
Wed Jun 15 15:08:49 BST 2022


Same error occurs on hppa.

The "sync" instruction is simplest barrier on hppa, so the powerpc asm would work:

#elif defined(powerpc_HOST_ARCH) || defined(powerpc64_HOST_ARCH) \
     || defined(powerpc64le_HOST_ARCH)
     __asm__ __volatile__ ("sync" : : : "memory");

-- 
John David Anglin  dave.anglin at bell.net



More information about the Pkg-haskell-maintainers mailing list