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
This issue is similar to #1110 but that one is fixed for me, and this isn't. If I compile Cabal-1.22.4.0 on a custom snapshot based on ghc-7.8 which includes a newer unix than comes with that ghc (2.7.1.0 instead of 2.7.0.1), there is an error linking the setup executable for Cabal:
-- While building package Cabal-1.22.4.0 using:
/usr/local/bin/ghc --make -odir /tmp/stack31011/Cabal-1.22.4.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.3/setup/ -hidir /tmp/stack31011/Cabal-1.22.4.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.3/setup/ -i -i. -package=Cabal-1.18.1.3 -clear-package-db -global-package-db -package-db=/home/erik/.stack/snapshots/x86_64-linux/custom-silk-2015-09/7.8.3/pkgdb/ /tmp/stack31011/Cabal-1.22.4.0/Setup.hs -o /tmp/stack31011/Cabal-1.22.4.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.3/setup/setup
...
<snip compiling modules>
....
Linking /tmp/stack31011/Cabal-1.22.4.0/.stack-work/dist/x86_64-linux/Cabal-1.18.1.3/setup/setup ...
/usr/local/lib/ghc-7.8.3/unix-2.7.0.1/libHSunix-2.7.0.1.a(execvpe.o): In function `pPrPr_disableITimers':
execvpe.c:(.text+0x340): multiple definition of `pPrPr_disableITimers'
/home/erik/.stack/snapshots/x86_64-linux/custom-silk-2015-09/7.8.3/lib/x86_64-linux-ghc-7.8.3/unix-2.7.1.0/libHSunix-2.7.1.0.a(ghcrts.o):(.text+0x0): first defined here
The weird thing is that this only happens on linux (Ubuntu 14.04.1 LTS), not on Mac. I've uploaded a reproduction here. Further information: stack Version 0.1.6.0, Git revision e22271f5ce9afa2cb5be3bad9cafa392c623f85c (2313 commits) x86_64, ghc 7.8.3.
@hesselink I believe this is now fixed. The issue was that when building Cabal-1.22's Setup.hs, it was linking against Cabal-1.18. I've added a special case for this.
This issue is similar to #1110 but that one is fixed for me, and this isn't. If I compile
Cabal-1.22.4.0
on a custom snapshot based onghc-7.8
which includes a newer unix than comes with that ghc (2.7.1.0 instead of 2.7.0.1), there is an error linking thesetup
executable for Cabal:The weird thing is that this only happens on linux (Ubuntu 14.04.1 LTS), not on Mac. I've uploaded a reproduction here. Further information: stack
Version 0.1.6.0, Git revision e22271f5ce9afa2cb5be3bad9cafa392c623f85c (2313 commits) x86_64
, ghc 7.8.3.The text was updated successfully, but these errors were encountered: