Haskell Platform doesn't build on Fedora 17
I'm unable to build the latest haskell platform using GHC 7.6.3 (built from source).
The error is:
Building HUnit-1.2.5.2
"/usr/local/bin/ghc" "--make" "Setup" "-o" "Setup" "-package" "Cabal-1.16.0"
Linking Setup ...
"./Setup" "configure" "--package-db=../../packages/package.conf.inplace" "--prefix=/usr/local" "--with-compiler=/usr/local/bin/ghc" "--with-hc-pkg=/usr/local/bin/ghc-pkg" "--with-hsc2hs=/usr/local/bin/hsc2hs" "--enable-library-profiling" "--ghc-pkg-option=--package-conf=../../packages/package.conf.inplace"
Configuring HUnit-1.2.5.2...
Setup: Use of GHC's environment variable GHC_PACKAGE_PATH is incompatible with
Cabal. Use the flag --package-db to specify a package database (it can be used
multiple times).
Error:
Configuring the HUnit-1.2.5.2 package failed
make: *** [build.stamp] Error 2
If I comment out line that starts:
GHC_PACKAGE_PATH="${ORIG_GHC_PACKAGE_PATH}"\
Then the build will continue.
Another person has had this issue and reported it in a reddit comment: reddit
They report that their distribution is Slackware.
My version of /bin/sh is reported as:
[root@blobattack haskell-platform-2013.2.0.0]# /bin/sh --version
GNU bash, version 4.2.37(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software; you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Thanks!
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.6.3 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |