This repository has been archived by the owner. It is now read-only.

cabal-install issue #12155

Closed
fatlazycat opened this Issue May 8, 2012 · 15 comments

Comments

Projects
None yet
3 participants
@fatlazycat
Contributor

fatlazycat commented May 8, 2012

after a clean brew install ghc cabal-install --devel i.e. to get a ghc of 7.4.1 I get

$ ghc-pkg check
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/random-1.0.1.1/html/random.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/random-1.0.1.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/zlib-0.5.3.3/html/zlib.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/zlib-0.5.3.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/HTTP-4000.2.3/html/HTTP.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/HTTP-4000.2.3/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/network-2.3.0.11/html/network.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/network-2.3.0.11/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/parsec-3.1.2/html/parsec.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/parsec-3.1.2/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/text-0.11.2.0/html/text.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/text-0.11.2.0/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/mtl-2.1/html/mtl.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/mtl-2.1/html doesn't exist or isn't a directory
Warning: haddock-interfaces: /usr/local/Cellar/cabal-install/0.14.0/share/doc/transformers-0.3.0.0/html/transformers.haddock doesn't exist or isn't a file
Warning: haddock-html: /usr/local/Cellar/cabal-install/0.14.0/share/doc/transformers-0.3.0.0/html doesn't exist or isn't a directory

Any suggestions to clean this up ??

Thanks

@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits May 11, 2012

Contributor

What do you get for brew info ghc cabal-install haskell-platform?
Paste your result into your reply in a code block like this

```
paste stuff between the sets of triple backticks
```
Contributor

2bits commented May 11, 2012

What do you get for brew info ghc cabal-install haskell-platform?
Paste your result into your reply in a code block like this

```
paste stuff between the sets of triple backticks
```
@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat May 11, 2012

Contributor

I don't have haskell-platform

$ brew info ghc cabal-install
ghc 7.0.4
http://haskell.org/ghc/
/usr/local/Cellar/ghc/7.4.1 (6288 files, 846M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/ghc.rb

==> Caveats
This brew is for GHC only; you might also be interested in haskell-platform.
cabal-install 0.14.0
http://www.haskell.org/haskellwiki/Cabal-Install
Depends on: ghc
/usr/local/Cellar/cabal-install/0.14.0 (175 files, 41M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/cabal-install.rb
$ 
Contributor

fatlazycat commented May 11, 2012

I don't have haskell-platform

$ brew info ghc cabal-install
ghc 7.0.4
http://haskell.org/ghc/
/usr/local/Cellar/ghc/7.4.1 (6288 files, 846M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/ghc.rb

==> Caveats
This brew is for GHC only; you might also be interested in haskell-platform.
cabal-install 0.14.0
http://www.haskell.org/haskellwiki/Cabal-Install
Depends on: ghc
/usr/local/Cellar/cabal-install/0.14.0 (175 files, 41M) *
https://github.com/mxcl/homebrew/commits/master/Library/Formula/cabal-install.rb
$ 
@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits May 11, 2012

Contributor

That seems odd that it reports ghc-7.0.4 but brewed it in 7.4.1. What happens if you

brew rm ghc cabal-install
brew install --devel ghc
brew install --devel cabal-install

If it does the same thing, maybe that's normal. Run a brew info haskell-platform to see why. I admit to not using this software. So I'm just taking a wild guess.

Contributor

2bits commented May 11, 2012

That seems odd that it reports ghc-7.0.4 but brewed it in 7.4.1. What happens if you

brew rm ghc cabal-install
brew install --devel ghc
brew install --devel cabal-install

If it does the same thing, maybe that's normal. Run a brew info haskell-platform to see why. I admit to not using this software. So I'm just taking a wild guess.

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat May 11, 2012

Contributor

Thats how I installed it. Not sure why you are asking about the haskell-platform using ghc & cabal you get the latest set of haskell packages, haskell-platform tends to be behind.

There would appear to be a config issue with the installed package of ghc and/or cabal-install itself. Nothing todo with homebrew itself I would imagine.

Contributor

fatlazycat commented May 11, 2012

Thats how I installed it. Not sure why you are asking about the haskell-platform using ghc & cabal you get the latest set of haskell packages, haskell-platform tends to be behind.

There would appear to be a config issue with the installed package of ghc and/or cabal-install itself. Nothing todo with homebrew itself I would imagine.

@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits May 11, 2012

Contributor

after a clean brew install ghc cabal-install --devel

That's not the same as what I suggested, which was separate install steps each with the --devel flag. If you didn't bother to try it, ok. I'll let someone else try to help.

Contributor

2bits commented May 11, 2012

after a clean brew install ghc cabal-install --devel

That's not the same as what I suggested, which was separate install steps each with the --devel flag. If you didn't bother to try it, ok. I'll let someone else try to help.

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat May 11, 2012

Contributor

Sorry I actually did it as the two separate steps. Just combined it as I didn't really see it as a brew issue.

Contributor

fatlazycat commented May 11, 2012

Sorry I actually did it as the two separate steps. Just combined it as I didn't really see it as a brew issue.

@adamv

This comment has been minimized.

Show comment Hide comment
@adamv

adamv Jun 8, 2012

Contributor

We've changed to using 7.4.1 as the stable version; you might try uninstalling and reinstalling.

Contributor

adamv commented Jun 8, 2012

We've changed to using 7.4.1 as the stable version; you might try uninstalling and reinstalling.

@adamv adamv closed this Jun 8, 2012

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat Jun 8, 2012

Contributor

I was using 7.4.1. I do not see why you closed this ticket.

Contributor

fatlazycat commented Jun 8, 2012

I was using 7.4.1. I do not see why you closed this ticket.

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat Jun 19, 2012

Contributor

I get this under 7.4.2 with a clean install of cabal-install as well

Contributor

fatlazycat commented Jun 19, 2012

I get this under 7.4.2 with a clean install of cabal-install as well

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat Jun 19, 2012

Contributor

@adamv can you please reopen this. I still have the issue.

Contributor

fatlazycat commented Jun 19, 2012

@adamv can you please reopen this. I still have the issue.

@adamv adamv reopened this Jun 19, 2012

@adamv

This comment has been minimized.

Show comment Hide comment
@adamv

adamv Oct 15, 2012

Contributor

I'm getting:

==> Downloading http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz
/usr/bin/curl -qf#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.7.5) http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz -o /usr/local/homebrew-cache/cabal-install-0.14.0.tar.gz
######################################################################## 100.0%
/usr/bin/tar xf /usr/local/homebrew-cache/cabal-install-0.14.0.tar.gz
==> sh bootstrap.sh
sh bootstrap.sh 
Checking installed packages for ghc-7.4.2...
Cabal is already installed and the version is ok.
transformers-0.3.0.0 will be downloaded and installed.
mtl-2.1 will be downloaded and installed.
deepseq is already installed and the version is ok.
text-0.11.2.0 will be downloaded and installed.
parsec-3.1.2 will be downloaded and installed.
network-2.3.0.11 will be downloaded and installed.
time is already installed and the version is ok.
HTTP-4000.2.3 will be downloaded and installed.
zlib-0.5.3.3 will be downloaded and installed.
random-1.0.1.1 will be downloaded and installed.

Downloading transformers-0.3.0.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20087  100 20087    0     0  30189      0 --:--:-- --:--:-- --:--:-- 30297
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
Setup: Unrecognised flags: 1

Error during cabal-install bootstrap:
Configuring the transformers package failed
Error: Failure while executing: sh bootstrap.sh 
Contributor

adamv commented Oct 15, 2012

I'm getting:

==> Downloading http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz
/usr/bin/curl -qf#LA Homebrew 0.9.3 (Ruby 1.8.7-358; Mac OS X 10.7.5) http://www.haskell.org/cabal/release/cabal-install-0.14.0/cabal-install-0.14.0.tar.gz -o /usr/local/homebrew-cache/cabal-install-0.14.0.tar.gz
######################################################################## 100.0%
/usr/bin/tar xf /usr/local/homebrew-cache/cabal-install-0.14.0.tar.gz
==> sh bootstrap.sh
sh bootstrap.sh 
Checking installed packages for ghc-7.4.2...
Cabal is already installed and the version is ok.
transformers-0.3.0.0 will be downloaded and installed.
mtl-2.1 will be downloaded and installed.
deepseq is already installed and the version is ok.
text-0.11.2.0 will be downloaded and installed.
parsec-3.1.2 will be downloaded and installed.
network-2.3.0.11 will be downloaded and installed.
time is already installed and the version is ok.
HTTP-4000.2.3 will be downloaded and installed.
zlib-0.5.3.3 will be downloaded and installed.
random-1.0.1.1 will be downloaded and installed.

Downloading transformers-0.3.0.0...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 20087  100 20087    0     0  30189      0 --:--:-- --:--:-- --:--:-- 30297
[1 of 1] Compiling Main             ( Setup.hs, Setup.o )
Linking Setup ...
Setup: Unrecognised flags: 1

Error during cabal-install bootstrap:
Configuring the transformers package failed
Error: Failure while executing: sh bootstrap.sh 
@adamv

This comment has been minimized.

Show comment Hide comment
@adamv

adamv Oct 15, 2012

Contributor

Considering redacting this formula.

Contributor

adamv commented Oct 15, 2012

Considering redacting this formula.

@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits Oct 16, 2012

Contributor

The unrecognized flags: 1 is the issue, and I can reproduce it. While attempting to make it build verbosely, I seem to have stumbled on the fix, which is defining VERBOSE ala

ENV['VERBOSE'] = '--verbose'

It didn't work if I defined verbose any other usual way like VERBOSE = 'ON', but the error message did refer to ON being unrecognized. It turns out that a verbose brew install in superenv sets VERBOSE=1 which breaks the build. I'll submit a PR to fix this.

@fatlazycat thanks for the report, and I'm sorry it's a weird runtime bug.

Contributor

2bits commented Oct 16, 2012

The unrecognized flags: 1 is the issue, and I can reproduce it. While attempting to make it build verbosely, I seem to have stumbled on the fix, which is defining VERBOSE ala

ENV['VERBOSE'] = '--verbose'

It didn't work if I defined verbose any other usual way like VERBOSE = 'ON', but the error message did refer to ON being unrecognized. It turns out that a verbose brew install in superenv sets VERBOSE=1 which breaks the build. I'll submit a PR to fix this.

@fatlazycat thanks for the report, and I'm sorry it's a weird runtime bug.

@fatlazycat

This comment has been minimized.

Show comment Hide comment
@fatlazycat

fatlazycat Oct 16, 2012

Contributor

Ah great ! Glad to see it's fixed :) Thanks

Contributor

fatlazycat commented Oct 16, 2012

Ah great ! Glad to see it's fixed :) Thanks

2bits pushed a commit to 2bits/homebrew that referenced this issue Oct 16, 2012

nibbles 2bits
cabal-install: unset VERBOSE, fixes compile error
Cabal-install runs a series of commands that use the env var
`VERBOSE` which has to be either unset or equal to `--verbose`.
Doing a `brew install -v cabal-install` sets `VERBOSE=1` and
breaks the build.

- Unset `VERBOSE`

Fixes #12155
@2bits

This comment has been minimized.

Show comment Hide comment
@2bits

2bits Oct 16, 2012

Contributor

YW. Because cabal-install puts things in Homebrew's ghc directory and/or into ~/.cabal people might have to remove both of those before it will build. While testing I had to do this:

brew rm -f ghc cabal-install
brew prune
rm -rf ~/.cabal
brew install ghc
brew install cabal-install

Wait for the PR to land and brew update to get it.

Contributor

2bits commented Oct 16, 2012

YW. Because cabal-install puts things in Homebrew's ghc directory and/or into ~/.cabal people might have to remove both of those before it will build. While testing I had to do this:

brew rm -f ghc cabal-install
brew prune
rm -rf ~/.cabal
brew install ghc
brew install cabal-install

Wait for the PR to land and brew update to get it.

@adamv adamv closed this in accca20 Oct 20, 2012

snakeyroc3 pushed a commit to snakeyroc3/homebrew that referenced this issue Dec 17, 2012

cabal-install: unset VERBOSE, fixes compile error
Cabal-install runs a series of commands that use the env var
`VERBOSE` which has to be either unset or equal to `--verbose`.
Doing a `brew install -v cabal-install` sets `VERBOSE=1` and
breaks the build.

- Unset `VERBOSE`

Fixes #12155

Closes #15485.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>

@xu-cheng xu-cheng locked and limited conversation to collaborators Feb 16, 2016

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.