[arch-commits] Commit in haskell-base64/trunk (PKGBUILD)

Felix Yan felixonmars at gemini.archlinux.org
Mon Jan 10 16:26:30 UTC 2022


    Date: Monday, January 10, 2022 @ 16:26:30
  Author: felixonmars
Revision: 1099402

switch back to llvm as ghc 9.0.2 contains the fix (https://gitlab.haskell.org/ghc/ghc/-/commit/24316c8320)

Modified:
  haskell-base64/trunk/PKGBUILD

----------+
 PKGBUILD |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2022-01-10 16:24:57 UTC (rev 1099401)
+++ PKGBUILD	2022-01-10 16:26:30 UTC (rev 1099402)
@@ -23,16 +23,9 @@
 build() {
   cd $_hkgname-$pkgver
 
-  # -fllvm is disabled because it fails to build:
-  # opt: /tmp/ghc1427_0/ghc_8.ll:476896:42: error: use of undefined value '@memcmp$def'
-  #   %ln7gMK = bitcast i32 (i8*, i8*, i64)* @memcmp$def to i64 (i8*, i8*, i64)*
-  #                                          ^
-  # <no location info>: error:
-  #     `opt' failed in phase `LLVM Optimiser'. (Exit code: 1)
-
   runhaskell Setup configure -O --enable-shared --enable-executable-dynamic --disable-library-vanilla \
     --prefix=/usr --docdir=/usr/share/doc/$pkgname --enable-tests \
-    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fasm \
+    --dynlibdir=/usr/lib --libsubdir=\$compiler/site-local/\$pkgid --ghc-option=-fllvm \
     --ghc-option=-optl-Wl\,-z\,relro\,-z\,now \
     --ghc-option='-pie'
 



More information about the arch-commits mailing list