You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am unable to build this package with cabal. In particular, running cabal install -p random produces the following error message:
/usr/bin/ld.gold: fatal error: -pie and -r are incompatible
collect2: error: ld returned 1 exit status
`gcc' failed in phase `Linker'. (Exit code: 1)
cabal: Leaving directory '/tmp/cabal-tmp-22972/random-1.1'
cabal: Error: some packages failed to install:
random-1.1-9LLJAJa4iQFLJiLXBOBXBV failed during the building phase. The
exception was:
ExitFailure 1
There are also warnings about tab characters further up cabal's message.
cabal install random (without the -p flag) doesn't give me errors.
Some relevant information:
$ cabal --version
cabal-install version 2.2.0.0
compiled using version 2.2.0.0 of the Cabal library
$ ghc --version
The Glorious Glasgow Haskell Compilation System, version 8.4.3
$ gcc --version
gcc (GCC) 8.2.1 20180831
$ grep DISTRIB /etc/lsb-release
DISTRIB_ID=ManjaroLinux
DISTRIB_RELEASE=18.0.0
DISTRIB_CODENAME=Illyria
DISTRIB_DESCRIPTION="Manjaro Linux"
i usually just have library-profiling: True in my ~/.cabal/config directory
i see this manjaro is based on arch, from what i know, ANY use of ANY of the standard haskell builds of various stuff as provided by Arch, will be broken in some frustrating way
Thanks a lot for replying so quickly and in so much detail! I see from your reply that my issue has nothing to do with the random package: feel free to close this issue.
I tried setting library-profiling: True and reinstalling random, but that didn't work. I've been reading about using Haskell on Arch and about changing ghc's behaviour (in this case, getting it to use another linker). As for the profiling flavor of other libraries, I don't think so. I installed the Haskell Platform.
On Sun, Nov 25, 2018 at 10:31 PM nagaflokhu ***@***.***> wrote:
Thanks a lot for replying so quickly and in so much detail! I see from
your reply that my issue has nothing to do with the random package: feel
free to close this issue.
I tried setting library-profiling: True and reinstalling random, but that
didn't work. I've been reading about using Haskell on Arch and about
changing ghc's behaviour (in this case, getting it to use another linker).
As for the profiling flavor of other libraries, I don't think so. I
installed the Haskell Platform.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#50 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAAQwrBcY93aYoiPse4ttkHw0SdATEqCks5uy2B-gaJpZM4Yv1H9>
.
I installed Arch's ghc, uninstalled it, and then installed the Haskell Platform. I mention the first installation in case it might affect the ghc that came with the Haskell Platform.
I don't have a Debian or Ubuntu machine, but I will try reproducing this on Linux Mint (based off Ubuntu). Thanks!
Activity
cartazio commentedon Nov 22, 2018
i usually just have
library-profiling: Truein my~/.cabal/configdirectoryi see this manjaro is based on arch, from what i know, ANY use of ANY of the standard haskell builds of various stuff as provided by Arch, will be broken in some frustrating way
i see you're using GOLD, an alternative linker on linux. have you considered trying either gnu ld or llvm ld? cursory googling suggests that GOLD sometimes has gotchas in terms of search path or other stuff https://stackoverflow.com/questions/3476093/replacing-ld-with-gold-any-experience/30801735
you didn't install the profiling flavor of the base ghc / base / etc libraries?
nagaflokhu commentedon Nov 26, 2018
Thanks a lot for replying so quickly and in so much detail! I see from your reply that my issue has nothing to do with the random package: feel free to close this issue.
I tried setting
library-profiling: Trueand reinstalling random, but that didn't work. I've been reading about using Haskell on Arch and about changing ghc's behaviour (in this case, getting it to use another linker). As for the profiling flavor of other libraries, I don't think so. I installed the Haskell Platform.cartazio commentedon Nov 26, 2018
nagaflokhu commentedon Nov 27, 2018
I installed Arch's ghc, uninstalled it, and then installed the Haskell Platform. I mention the first installation in case it might affect the ghc that came with the Haskell Platform.
I don't have a Debian or Ubuntu machine, but I will try reproducing this on Linux Mint (based off Ubuntu). Thanks!
lehins commentedon Jun 23, 2020
Closing. Indeed this issue is not specific to
randompackage.