Skip to content

cabal-install sometimes gives empty build-log and no build-summary #735

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
bos opened this issue May 24, 2012 · 2 comments
Closed

cabal-install sometimes gives empty build-log and no build-summary #735

bos opened this issue May 24, 2012 · 2 comments

Comments

@bos
Copy link
Contributor

bos commented May 24, 2012

(Imported from Trac #745, reported by @igloo on 2010-10-04)

Building NaturalSort-0.2.1 with GHC 7.0.1 RC 1:

$ cabal install --build-summary=log.bs --build-log=log.bl
Resolving dependencies...
Warning: NaturalSort.cabal: This package requires Cabal version: >=1.6 && <1.9
cabal: Error: some packages failed to install:
NaturalSort-0.2.1 failed during the configure step. The exception was:
user error (The package requires Cabal library version -any && >=1.6 && <1.9
but no suitable version is installed.)
$ cat log.bs
cat: log.bs: No such file or directory
$ cat log.bl
$
I would like the build log to contain the error.

I have

$ cabal --version
cabal-install version 0.9.2
using version 1.9.2 of the Cabal library
but this is not a released version; if nothing else, I have the #697 patch applied.
@manzyuk
Copy link
Contributor

manzyuk commented May 4, 2013

I tried to reproduce this issue and I can't. I tried to build NaturalSort-0.2.1 with GHC 7.4.1 and Cabal 1.16.03, and I would expect the build to fail due to this line in NaturalSort.cabal: Cabal-Version: >= 1.6 && < 1.9, but it does build, and the log file does contain some log info. No summary file has been produced though.

I also tried to build cal3d, which on my machine fails due to a missing C library, but again the log file contains the error message. The summary file is generated when I try to install the library from Hackage but is not generated when I manually download the source and try to build the library locally, which confirms the behaviour observed in Issue #1189.

@BardurArantsson
Copy link
Collaborator

Thanks @manzyuk for trying to reproduce!

Conclusion: (Not reproducible) && (Reported 2010) => Close!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants