ghc: unrecognised flags: -I
Hi list. I'm trying to cabal install a few different packages and keep getting this error: ghc: unrecognised flags: -I I've looked at the documentation for ghc online and there seems to be a -I flag for letting the c-preprocessor know where to look for included libraries. For example, "cabal install -v logict" generates the following partial output: /opt/local/bin/ghc -package-name logict-0.3 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -I -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.3.1 -package mtl-1.1.0.2 -O -O2 -Wall -XMultiParamTypeClasses -XUndecidableInstances -XRank2Types -XFlexibleInstances Control.Monad.Logic Control.Monad.Logic.Class ... which then triggers the "ghc: unrecognised flags: -I" error and aborts the installation. Is this an issue with particular versions of GHC or something? I'm running: Glasgow Haskell Compiler, Version 6.10.4, for Haskell 98, stage 2 booted by GHC version 6.8.2 Thanks for your help. - Lyndon
On Wed, Jan 6, 2010 at 3:19 AM, Lyndon Maydwell <maydwell@gmail.com> wrote:
Hi list.
I'm trying to cabal install a few different packages and keep getting this error:
ghc: unrecognised flags: -I
Keep in mind that in many font a capitalized i looks uncomfortably like a small L. -- Jedaï
Indeed, it's a capital "I" for Include. On Wed, Jan 6, 2010 at 8:15 PM, Chaddaï Fouché <chaddai.fouche@gmail.com> wrote:
On Wed, Jan 6, 2010 at 3:19 AM, Lyndon Maydwell <maydwell@gmail.com> wrote:
Hi list.
I'm trying to cabal install a few different packages and keep getting this error:
ghc: unrecognised flags: -I
Keep in mind that in many font a capitalized i looks uncomfortably like a small L.
-- Jedaï
I found the issue, and I think it may point to a bug in the cabal configuration. I had: extra-include-dirs: -- /opt/local/include In my ~/.cabal/config, and as far as I could tell it was prefixing the empty list of include paths with -I. It should probably omit the empty list entirely. I had a quick look in the cabal configuration source, but I think I'm out of my depth where that is concerned. Anyway, issue resolved for me :-) On Wed, Jan 6, 2010 at 8:22 PM, Lyndon Maydwell <maydwell@gmail.com> wrote:
Indeed, it's a capital "I" for Include.
On Wed, Jan 6, 2010 at 8:15 PM, Chaddaï Fouché <chaddai.fouche@gmail.com> wrote:
On Wed, Jan 6, 2010 at 3:19 AM, Lyndon Maydwell <maydwell@gmail.com> wrote:
Hi list.
I'm trying to cabal install a few different packages and keep getting this error:
ghc: unrecognised flags: -I
Keep in mind that in many font a capitalized i looks uncomfortably like a small L.
-- Jedaï
participants (2)
-
Chaddaï Fouché -
Lyndon Maydwell