Closed zcourts closed 11 years ago
maybe try cabal install -v3 buildwrapper, which should give you even more details...
Attempting that yields.
[courtney@zcourts ~]$ cabal install -v3 buildwrapper
searching for ghc in path.
found ghc at /usr/bin/ghc
("/usr/bin/ghc",["--numeric-version"])
/usr/bin/ghc is version 7.6.3
looking for tool "ghc-pkg" near compiler in /usr/bin
found ghc-pkg in /usr/bin/ghc-pkg
("/usr/bin/ghc-pkg",["--version"])
/usr/bin/ghc-pkg is version 7.6.3
("/usr/bin/ghc",["--supported-languages"])
("/usr/bin/ghc",["--info"])
Reading installed packages...
("/usr/bin/ghc-pkg",["dump","--global","-v0"])
("/usr/bin/ghc-pkg",["dump","--user","-v0"])
("/usr/bin/ghc",["--print-libdir"])
Reading available packages...
Choosing modular solver.
Resolving dependencies...
....(REMOVED SOME OUTPUT HERE)
[_37] rejecting: ghc-paths-0.1.0.9 (unknown package: ghc)
[__1] fail (backjumping, conflict set: buildwrapper, ghc)
[__0] fail (backjumping, conflict set: aeson-native, base, blaze-textual-native, buildwrapper, ghc)
cabal: Could not resolve dependencies:
trying: buildwrapper-0.7.5
[courtney@zcourts ~]$
Going from that I thought to try installing aeson-native first to see why it didn't work
[courtney@zcourts ~]$ cabal install aeson-native
Resolving dependencies...
cabal: Could not resolve dependencies:
trying: aeson-native-0.3.3.2
rejecting: vector-0.10.0.1/installed-869... (conflict: vector =>
deepseq==1.3.0.1/installed-5cc..., aeson-native => deepseq<1.2)
trying: vector-0.10.9.1
rejecting: text-0.11.3.1/installed-e38... (conflict: text =>
deepseq==1.3.0.1/installed-5cc..., aeson-native => deepseq<1.2)
trying: text-0.11.3.1
trying: array-0.4.0.1/installed-3b7...
rejecting: deepseq-1.3.0.1/installed-5cc..., 1.3.0.1, 1.3.0.0, 1.2.0.1,
1.2.0.0 (conflict: aeson-native => deepseq<1.2)
rejecting: deepseq-1.1.0.2, 1.1.0.1 (conflict:
array==0.4.0.1/installed-3b7..., deepseq => array>=0.1 && <0.4)
rejecting: deepseq-1.1.0.0 (conflict: array==0.4.0.1/installed-3b7..., deepseq
=> array>=0.2 && <0.4)
rejecting: deepseq-1.0.0.0 (conflict: vector => deepseq>=1.1 && <1.4)
So then I tried
[courtney@zcourts ~]$ cabal install deepseq-1.1.0.2
Resolving dependencies...
Downloading array-0.3.0.3...
Configuring array-0.3.0.3...
Building array-0.3.0.3...
Preprocessing library array-0.3.0.3...
Data/Array/IO/Internals.hs:1:16: Warning:
-#include and INCLUDE pragmas are deprecated: They no longer have any effect
[1 of 9] Compiling Data.Array ( Data/Array.hs, dist/build/Data/Array.o )
[2 of 9] Compiling Data.Array.Base ( Data/Array/Base.hs, dist/build/Data/Array/Base.o )
Data/Array/Base.hs:1204:47:
Not in scope: `chr'
Perhaps you meant `chr#' (imported from GHC.Base)
Failed to install array-0.3.0.3
cabal: Error: some packages failed to install:
array-0.3.0.3 failed during the building phase. The exception was:
ExitFailure 1
containers-0.4.1.0 depends on array-0.3.0.3 which failed to install.
deepseq-1.1.0.2 depends on array-0.3.0.3 which failed to install.
Seem to be going in circles here
you seem to be missing base libraries like ghc and array?? Then you have bigger problems than just buildwrapper. Run ghc-pkg list and ghc-pkg check.
:( So embarrassing response, I only zoned in on the unknown ghc when I read your reply. I installed haskell-platform on the two new fedora machines and assumed ghc was in the mix...as it turns out no ghc is included with haskell-platform. I remember doing the same on ubuntu included ghc :/ :-1: - my bad. Thanks for your response anyway and good work on the plugins.
So I got home and tried this again on the second laptop. Using a fresh install of Fedora 19 - I did yum install haskell-platform. This does actually install ghc to /usr/bin/ghc, having a look at the logs I pasted earlier as well in comment https://github.com/JPMoresmau/BuildWrapper/issues/16#issuecomment-25682104
It says
searching for ghc in path.
found ghc at /usr/bin/ghc
("/usr/bin/ghc",["--numeric-version"])
/usr/bin/ghc is version 7.6.3
Which means ghc was found in that instance but it still later said
[_37] rejecting: ghc-paths-0.1.0.9 (unknown package: ghc)
The same thing happened now, So as I did this morning on the other laptop, I did a yum install ghc separately. And then the cabal install works... I don't know or understand why that works but this is the second time I've done it on two clean installations with exactly the same outcome. Still leaving this closed though but thought I'd report back the oddity.
There are two different things: ghc the executable, and ghc the library. BuildWrapper uses the library, and it may be that by default with haskell platform the ghc library is hidden.
Gotcha, thanks for the clarification
I'm trying to install build wrapper but it consistently fails with cannot install dependencies but doesn't say which dependency can't be resolved...
I've installed cabal-install and other packages mentioned on the installation page but to no avail http://eclipsefp.github.io/install.html
I've even tried checking out and building locally but get the same error. I've also deleted .ghc and .cabal to start a fresh but it results in the same thing.
Any idea what I'm doing wrong here? Running GHC 7.6.3 on Fedora 19 but the same thing happens on my other laptop which is running the fedora 20 alpha