Article 5EDNF Xmonad on Slackware current: haskell-setlocale Ponce failed

Xmonad on Slackware current: haskell-setlocale Ponce failed

by
lancsuk
from LinuxQuestions.org on (#5EDNF)
Hiya,

I would like to build Xmonad on Slackware current. I had some issues wiht ghc, I guess llvm 11 and ghc 8.10.3 does not work together.

Code:echo 'export LD_LIBRARY_PATH="/tmp/SBo/ghc-8.4.3/libraries/ghci/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/transformers/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/template-haskell/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/pretty/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/ghc-boot/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/ghc-boot-th/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/directory/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/unix/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/filepath/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/time/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/binary/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/containers/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/bytestring/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/deepseq/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/array/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/base/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/integer-gmp/dist-install/build:/tmp/SBo/ghc-8.4.3/libraries/ghc-prim/dist-install/build:/tmp/SBo/ghc-8.4.3/rts/dist/build${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"' >> inplace/lib/bin/ghc-iserv
echo 'exec "$executablename" ${1+"$@"}' >> inplace/lib/bin/ghc-iserv
chmod +x inplace/lib/bin/ghc-iserv
"inplace/bin/ghc-stage1" -hisuf p_hi -osuf p_o -hcsuf p_hc -static -prof -eventlog -H32m -O -Wall -hide-all-packages -i -iiserv/src -iiserv/stage2_p/build -Iiserv/stage2_p/build -iiserv/stage2_p/build/iserv/autogen -Iiserv/stage2_p/build/iserv/autogen -Iiserv/. -Iiserv/stage2_p/build/. -optP-include -optPiserv/stage2_p/build/iserv/autogen/cabal_macros.h -package-id array-0.5.2.0 -package-id base-4.11.1.0 -package-id binary-0.8.5.1 -package-id bytestring-0.10.8.2 -package-id containers-0.5.11.0 -package-id deepseq-1.4.3.0 -package-id ghci-8.4.3 -package-id unix-2.7.2.2 -no-hs-main -XHaskell2010 -threaded -optl-Wl,--export-dynamic -no-hs-main -no-user-package-db -rtsopts -Wnoncanonical-monad-instances -odir iserv/stage2_p/build -hidir iserv/stage2_p/build -stubdir iserv/stage2_p/build -split-sections -c iserv/stage2_p/build/GHCi/Utils.hs -o iserv/stage2_p/build/GHCi/Utils.p_o
ld.lld: error: -r and --export-dynamic may not be used together
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
make[1]: *** [iserv/ghc.mk:104: iserv/stage2_p/build/GHCi/Utils.p_o] Error 1
make: *** [Makefile:127: all] Error 2

ghc:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:I have customized the SlackBuild for 8.10.4 and to build ghc 8.10.4 was a success.

Code:Glasgow Haskell Compiler, Version 8.10.4, stage 2 booted by GHC version 8.10.4
*** initializing package database:
Using binary package database: /usr/lib64/ghc-8.10.4/package.conf.d/package.cache
package flags []
loading package database /usr/lib64/ghc-8.10.4/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.6.1
wired-in package integer-wired-in mapped to integer-gmp-1.0.3.0
wired-in package base mapped to base-4.14.1.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.16.0.0
wired-in package ghc mapped to ghc-8.10.4
!!! initializing package database: finished in 11.83 milliseconds, allocated 7.596 megabytesLet's be honest, I have no clue about haskell and I'm stuck to build haskell-setlocale.

Code:Processing haskell-setlocale

haskell-setlocale:
Found setlocale-1.0.0.8.tar.gz in /var/cache/sbopkg.
Checking MD5SUM:
MD5SUM check for setlocale-1.0.0.8.tar.gz ... OK
Building package for haskell-setlocale...
setlocale-1.0.0.8/System/
setlocale-1.0.0.8/System/Locale/
setlocale-1.0.0.8/System/Locale/SetLocale.hsc
setlocale-1.0.0.8/LICENSE
setlocale-1.0.0.8/Setup.hs
setlocale-1.0.0.8/setlocale.cabal
Configuring setlocale-1.0.0.8...
Setup: Encountered missing or private dependencies:
base >=4.6 && <4.13

haskell-setlocale:
Would you like to continue processing the rest of the
queue or would you like to abort? If this failed
package is a dependency of another package in the queue
then it may not make sense to continue.

(Y)es to continue, (N)o to abort, (R)etry the build?:latest?d=yIl2AUoC8zA latest?i=AS-ZWVowdFc:021K2AqzhwE:F7zBnMy latest?i=AS-ZWVowdFc:021K2AqzhwE:V_sGLiP latest?d=qj6IDK7rITs latest?i=AS-ZWVowdFc:021K2AqzhwE:gIN9vFwAS-ZWVowdFc
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments