Static linking of GHC 7.7 does not work correctly
"cabal install" with ghc-7.7.20130504 fails on Linux.
One example:
% cabal install yesod
Preprocessing library lifted-base-0.2.0.5...
[1 of 6] Compiling System.Timeout.Lifted ( System/Timeout/Lifted.hs, dist/build/System/Timeout/Lifted.o )
[2 of 6] Compiling Data.IORef.Lifted ( Data/IORef/Lifted.hs, dist/build/Data/IORef/Lifted.o )
[3 of 6] Compiling Control.Concurrent.Chan.Lifted ( Control/Concurrent/Chan/Lifted.hs, dist/build/Control/Concurrent/Chan/Lifted.o )
[4 of 6] Compiling Control.Concurrent.MVar.Lifted ( Control/Concurrent/MVar/Lifted.hs, dist/build/Control/Concurrent/MVar/Lifted.o )
[5 of 6] Compiling Control.Exception.Lifted ( Control/Exception/Lifted.hs, dist/build/Control/Exception/Lifted.o )
Control/Exception/Lifted.hs:83:1: Warning:
The import of ‛Monad’ from module ‛Control.Monad’ is redundant
[6 of 6] Compiling Control.Concurrent.Lifted ( Control/Concurrent/Lifted.hs, dist/build/Control/Concurrent/Lifted.o )
/usr/bin/ld: cannot find -lHSmonad-control-0.3.2.1-ghc7.7.20130504
/usr/bin/ld: cannot find -lHStransformers-base-0.4.1-ghc7.7.20130504
/usr/bin/ld: cannot find -lHSbase-unicode-symbols-0.2.2.4-ghc7.7.20130504
collect2: ld returned 1 exit status
cabal: Error: some packages failed to install:
lifted-base-0.2.0.5 failed during the building phase. The exception was:
ExitFailure 1
Another example:
% cabal install hlint
Configuring uniplate-1.6.10...
Building uniplate-1.6.10...
Preprocessing library uniplate-1.6.10...
[ 1 of 21] Compiling Data.Generics.Uniplate.Data.Instances ( Data/Generics/Uniplate/Data/Instances.hs, dist/build/Data/Generics/Uniplate/Data/Instances.o )
[ 2 of 21] Compiling Data.Generics.Uniplate.Internal.Utils ( Data/Generics/Uniplate/Internal/Utils.hs, dist/build/Data/Generics/Uniplate/Internal/Utils.o )
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
Loading package array-0.4.0.2 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.3.0 ... linking ... done.
Loading package text-0.11.3.1 ... <command line>: can't load .so/.DLL for: libHStext-0.11.3.1.so (libHStext-0.11.3.1.so: cannot open shared object file: No such file or directory)
cabal: Error: some packages failed to install:
haskell-src-exts-1.13.5 failed during the building phase. The exception was:
ExitFailure 1
hlint-1.8.44 depends on uniplate-1.6.10 which failed to install.
uniplate-1.6.10 failed during the building phase. The exception was:
ExitFailure 1
But "cabal install --enable-shared" works well.
Trac metadata
Trac field | Value |
---|---|
Version | 7.7 |
Type | Bug |
TypeOfFailure | OtherFailure |
Priority | normal |
Resolution | Unresolved |
Component | Compiler |
Test case | |
Differential revisions | |
BlockedBy | |
Related | |
Blocking | |
CC | |
Operating system | |
Architecture |