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
{{ message }}
Repository navigation
Installing from separate folder with Custom build type fails #1058
it is not able to find the cabal file, as it is now in the current subfolder. A theoretical fix would be to change working directory before calling that script.
I ran into this trying to install the clckwrks packages. It failed with obscure errors like this:
Last 10 lines of the build log ( /home/dag/.cabal/logs/clckwrks-0.12.2.log ):
Updating documentation index /home/dag/.cabal/share/doc/index.html
cabal: Error: some packages failed to install:
clckwrks-0.12.2 failed during the configure step. The exception was:
ExitFailure 127
And then the build log mentioned in the output is an empty file. I can confirm that it installs fine if I cd to the package directory first, though.
Could you try to install with -v and get some more context around the invocation of ./lifted-base-0.1.2/dist/setup/setup? Could you get cabal to only install that package, not its dependencies, and then post the complete log with -v of that?
I'm working towards a Cabal/cabal-install bug fix release this weekend and this is the last issue on the list of issues to fix, so if someone has some insight about what's going on here that would be great.
/usr/bin/ghc --make ./lifted-base-0.1.2/Setup.hs -o ./lifted-base-0.1.2/dist/setup/setup -odir ./lifted-base-0.1.2/dist/setup -hidir ./lifted-base-0.1.2/dist/setup -i -i./lifted-base-0.1.2 -package Cabal-1.16.0.1
[1 of 1] Compiling Main ( lifted-base-0.1.2/Setup.hs, lifted-base-0.1.2/dist/setup/Main.o )
Linking ./lifted-base-0.1.2/dist/setup/setup ...
./lifted-base-0.1.2/dist/setup/setup configure --verbose=2 --ghc
--prefix=/home/ubuntu/.cabal --user --constraint=transformers-base ==0.4.1
--constraint=monad-control ==0.3.1.4 --constraint=base-unicode-symbols
==0.2.2.4 --constraint=base ==4.5.0.0 --disable-tests --disable-benchmarks
Failed to install lifted-base-0.1.2
cabal: Error: some packages failed to install:
lifted-base-0.1.2 failed during the configure step. The exception was:
ExitFailure 127
I noticed that in yours, the setup executable is compiled against Cabal-1.14.0, whereas in mine it's using Cabal-1.16.0.1. I tried unregistering Cabal-1.16.0.1 and starting over, but to no avail:
/usr/bin/ghc --make ./lifted-base-0.1.2/Setup.hs -o ./lifted-base-0.1.2/dist/setup/setup -odir ./lifted-base-0.1.2/dist/setup -hidir ./lifted-base-0.1.2/dist/setup -i -i./lifted-base-0.1.2/ -package Cabal-1.14.0
[1 of 1] Compiling Main ( lifted-base-0.1.2/Setup.hs, lifted-base-0.1.2/dist/setup/Main.o )
Linking ./lifted-base-0.1.2/dist/setup/setup ...
./lifted-base-0.1.2/dist/setup/setup configure --verbose=2 --ghc
--prefix=/home/ubuntu/.cabal --user --constraint=transformers-base ==0.4.1
--constraint=monad-control ==0.3.1.4 --constraint=base-unicode-symbols
==0.2.2.4 --constraint=base ==4.5.0.0 --disable-tests --disable-benchmarks
Failed to install lifted-base-0.1.2
cabal: Error: some packages failed to install:
lifted-base-0.1.2 failed during the configure step. The exception was:
ExitFailure 127
Then I tried to use the old cabal executable (0.14.0) with the setup executable created by the new cabal (1.16.0), and it seemed to work just fine:
creating lifted-base-0.1.2/dist/setup
./lifted-base-0.1.2/dist/setup/setup configure --verbose=2 --ghc
--prefix=/home/ubuntu/.cabal --user --constraint=transformers-base ==0.4.1
--constraint=monad-control ==0.3.1.4 --constraint=base-unicode-symbols
==0.2.2.4 --constraint=base ==4.5.0.0 --disable-tests --disable-benchmarks
Configuring lifted-base-0.1.2...
Dependency base ==4.5.0.0: using base-4.5.0.0
Dependency base-unicode-symbols ==0.2.2.4: using base-unicode-symbols-0.2.2.4
I'm doing some research myself, I'll put it in a separate comment.
I've send a pull request (#1066) for this. @tibbe I'm going to guess you're testing on Mac, whereas @dag is testing on Linux. Is that correct? My guess is that process works differently for those two systems, though I haven't researched yet.
Activity
dag commentedon Oct 9, 2012
I ran into this trying to install the clckwrks packages. It failed with obscure errors like this:
And then the build log mentioned in the output is an empty file. I can confirm that it installs fine if I
cdto the package directory first, though.tibbe commentedon Oct 11, 2012
@dcoutts You've been working on being able to
cabal install <something>where something might be directory. Do you know what broke this?tibbe commentedon Oct 11, 2012
Works for me:
@snoyberg Could you give me the complete log, including the versions of GHC and cabal please?
snoyberg commentedon Oct 12, 2012
Thanks for looking into this @tibbe. Here's the full log:
tibbe commentedon Oct 12, 2012
@snoyberg Very odd. I'm at a loss about what to do. Here's how configure is called in my case:
Could you try to install with
-vand get some more context around the invocation of./lifted-base-0.1.2/dist/setup/setup? Could you get cabal to only install that package, not its dependencies, and then post the complete log with-vof that?tibbe commentedon Oct 12, 2012
I'm working towards a Cabal/cabal-install bug fix release this weekend and this is the last issue on the list of issues to fix, so if someone has some insight about what's going on here that would be great.
snoyberg commentedon Oct 13, 2012
Here's my output.
I noticed that in yours, the setup executable is compiled against Cabal-1.14.0, whereas in mine it's using Cabal-1.16.0.1. I tried unregistering Cabal-1.16.0.1 and starting over, but to no avail:
Then I tried to use the old
cabalexecutable (0.14.0) with the setup executable created by the newcabal(1.16.0), and it seemed to work just fine:I'm doing some research myself, I'll put it in a separate comment.
Fix installing from custom folder on Linux (haskell#1058)
snoyberg commentedon Oct 13, 2012
I've send a pull request (#1066) for this. @tibbe I'm going to guess you're testing on Mac, whereas @dag is testing on Linux. Is that correct? My guess is that process works differently for those two systems, though I haven't researched yet.
tibbe commentedon Oct 13, 2012
Fixed in 48082b9.
dag commentedon Oct 13, 2012
@snoyberg Correct.
snoyberg commentedon Apr 14, 2013
@tibbe Could you have a look at http://hackage.haskell.org/trac/ghc/ticket/7327? It seems that Ian is having difficulty reproducing the difference in behavior, and since I've never actually run this code on Mac I can't help.
tibbe commentedon Apr 25, 2013
@snoyberg Replied on the GHC Trac. Ian's example segfaults on my machine!