
Hi Cafe! That's a capital "i" for anyone with font issues. I posted this question to beginners a while ago, but received no meaningful response so I'm trying cafe instead :-) Most packages I try to install off Hackage with cabal are giving me the error "ghc: unrecognised flags: -I". For example, when I "cabal install -v storable-complex" I get the following: /usr/bin/ghc -package-name storable-complex-0.2.1 --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 -O Foreign.Storable.Complex ghc: unrecognised flags: -I I've updated everything several times since this error started occurring, but it persists. I've tried digging to find out where the lone -I is being injected but can't seem to track it down. Has anyone encountered this before, or more realistically, can anyone give me some advice on how to narrow this problem down further? I'm running cabal version 1.6.0.1, ghc 6.10.4 on OS X 10.5. Thanks guys!

Lyndon Maydwell schrieb:
For example, when I "cabal install -v storable-complex" I get the following:
/usr/bin/ghc -package-name storable-complex-0.2.1 --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 -O Foreign.Storable.Complex ghc: unrecognised flags: -I
For me this works (and does not have that single "-I"): /home/mac-bkb/bin/ghc -package-name storable-complex-0.2.1 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.3.1 -O Foreign.Storable.Complex
Has anyone encountered this before, or more realistically, can anyone give me some advice on how to narrow this problem down further?
Sorry, no idea.
I'm running cabal version 1.6.0.1, ghc 6.10.4 on OS X 10.5.
I've got Cabal-1.6.0.3, ghc 6.10.4 on OS X 10.5 (Intel) cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library Christian

I found the problem.
I had an empty entry for extra library includes in my cabal
configuration. Once I commented this out things started working again.
I think that cabal should probably not include a lone -I in this case
though. Is there somewhere I can file a bug?
Thanks guys.
On Mon, Jan 25, 2010 at 4:58 PM, Christian Maeder
Lyndon Maydwell schrieb:
For example, when I "cabal install -v storable-complex" I get the following:
/usr/bin/ghc -package-name storable-complex-0.2.1 --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 -O Foreign.Storable.Complex ghc: unrecognised flags: -I
For me this works (and does not have that single "-I"):
/home/mac-bkb/bin/ghc -package-name storable-complex-0.2.1 --make -hide-all-packages -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package base-3.0.3.1 -O Foreign.Storable.Complex
Has anyone encountered this before, or more realistically, can anyone give me some advice on how to narrow this problem down further?
Sorry, no idea.
I'm running cabal version 1.6.0.1, ghc 6.10.4 on OS X 10.5.
I've got Cabal-1.6.0.3, ghc 6.10.4 on OS X 10.5 (Intel)
cabal-install version 0.6.2 using version 1.6.0.3 of the Cabal library
Christian
participants (2)
-
Christian Maeder
-
Lyndon Maydwell