[GHC] #3242: ghci: can't load .so/.DLL for: m (addDLL: could not load DLL)
GHC
ghc-devs at haskell.org
Sun Sep 28 03:21:20 UTC 2014
#3242: ghci: can't load .so/.DLL for: m (addDLL: could not load DLL)
---------------------------------------+---------------------------
Reporter: jeffz1 | Owner:
Type: bug | Status: new
Priority: normal | Milestone: 7.10.1
Component: GHCi | Version: 7.4.1
Resolution: | Keywords:
Operating System: Windows | Architecture: x86
Type of failure: None/Unknown | Difficulty: Unknown
Test Case: | Blocked By: 3658
Blocking: | Related Tickets: #7097
Differential Revisions: |
---------------------------------------+---------------------------
Comment (by oerjan):
I suspect I just hit this bug when trying to `cabal install random-extras`
from Haskell Platform 2014.2.0.0 on Windows 8.1. The dependency `random-
fu` uses the `logfloat` library from Template Haskell while compiling
other modules, which gives me the error message:
{{{
[ 7 of 29] Compiling Data.Random.Distribution.Uniform (
src\Data\Random\Distribu
tion\Uniform.hs, dist\build\Data\Random\Distribution\Uniform.o )
Loading package ghc-prim ... linking ... done.
[snipped long package list]
Loading package logfloat-0.12.1 ... ghc.exe: m: Den angitte modulen ble
ikke fun
net.
<command line>: can't load .so/.DLL for: m.dll (addDLL: could not load
DLL)
Failed to install random-fu-0.2.6.1
cabal: Error: some packages failed to install:
random-extras-0.19 depends on random-fu-0.2.6.1 which failed to install.
random-fu-0.2.6.1 failed during the building phase. The exception was:
ExitFailure 1
}}}
`logfloat.cabal` contains precisely such an `Extra-Libraries: m` line that
is used in its default configuration. And trying to use `logfloat` from
(Win)GHCi gives the same kind of error message.
I am able to get around this for `logfloat` by giving `--flags -useFFI`,
but I still think it's a shame if this bug prevents a straightforward
cabal install from working.
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/3242#comment:27>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list