ghc-6.6 + cabal-1.6 - can't find header files

Alistair Bayley alistair at
Wed Jan 28 03:28:36 EST 2009

> That doesn't make a lot of sense to me. It's gcc that finds the header
> files. It could be ghc-6.6 that is somehow messing up passing flags on
> to gcc, but that would also be surprising.

Below are the gcc version and ghc commands for 6.6.1, 6.8.1, & 6.10.1.

Puzzling that 6.8.1 works while 6.6.1 doesn't, given that they both
use the same gcc. There must be something else going on.

Like I said, I'm not going to worry about it much. ghc-hq aren't going
to release a fix for ghc-6.6 now, are they? I will fix Setup.hs so
that the trailing path separator is stripped.


------ ghc-6.6.1

gcc (GCC) 3.4.2 (mingw-special)

c:\ghc\ghc-6.6.1\bin\ghc.exe -package-name Takusen-0.8.4 --make -hide-all-packag
es -no-user-package-conf -i -idist\build -i. -idist\build\autogen -Idist\build\a
utogen -Idist\build -IC:\Program Files\sqlite3\ -IC:/PROGRA~1/POSTGR~1/8.1/inclu
de -IC:/PROGRA~1/POSTGR~1/8.1/include/server -IC:\Oracle\product\10.2.0\client_1
\oci\include -optP-include -optPdist\build\autogen\cabal_macros.h -odir dist\bui
ld -hidir dist\build -package QuickCheck-1.0.1 -package base-2.1.1 -package mtl-
1.0.1 -package time-1.1.1 -O -cpp Database.ODBC.Enumerator Database.ODBC.OdbcFun
ctions Database.Oracle.Enumerator Database.Oracle.OCIConstants Database.Oracle.O
CIFunctions Database.PostgreSQL.Enumerator Database.PostgreSQL.PGFunctions Datab
ase.Sqlite.Enumerator Database.Sqlite.SqliteFunctions Database.Enumerator Databa
se.Util Database.Stub.Enumerator Control.Exception.MonadIO Foreign.C.UTF8 Databa

------ ghc-6.8.1

gcc (GCC) 3.4.2 (mingw-special)

c:\ghc\ghc-6.8.1\bin\ghc.exe -package-name Takusen-0.8.4 --make -hide-all-packag
es -no-user-package-conf -i -idist\build -i. -idist\build\autogen -Idist\build\a
utogen -Idist\build -IC:\Program Files\sqlite3\ -IC:/PROGRA~1/POSTGR~1/8.1/inclu
de -IC:/PROGRA~1/POSTGR~1/8.1/include/server -IC:\Oracle\product\10.2.0\client_1
\oci\include -optP-include -optPdist\build\autogen\cabal_macros.h -odir dist\bui
ld -hidir dist\build -stubdir dist\build -package QuickCheck- -package ba
se- -package mtl- -package old-time- -package time-
-O -XCPP Database.ODBC.Enumerator Database.ODBC.OdbcFunctions Database.Oracle.En
umerator Database.Oracle.OCIConstants Database.Oracle.OCIFunctions Database.Post
greSQL.Enumerator Database.PostgreSQL.PGFunctions Database.Sqlite.Enumerator Dat
abase.Sqlite.SqliteFunctions Database.Enumerator Database.Util Database.Stub.Enu
merator Control.Exception.MonadIO Foreign.C.UTF8 Database.InternalEnumerator

------ ghc-6.10.1

gcc (GCC) 3.4.5 (mingw-vista special r3)

c:\ghc\ghc-6.10.1\bin\ghc.exe -package-name Takusen-0.8.4 --make -hide-all-packa
ges -no-user-package-conf -i -idist\build -i. -idist\build\autogen -Idist\build\
autogen -Idist\build -IC:\Program Files\sqlite3\ -IC:/PROGRA~1/POSTGR~1/8.1/incl
ude -IC:/PROGRA~1/POSTGR~1/8.1/include/server -IC:\Oracle\product\10.2.0\client_
1\oci\include -optP-DNEW_EXCEPTION -optP-DNEW_EXCEPTION -optP-include -optPdist\
build\autogen\cabal_macros.h -odir dist\build -hidir dist\build -stubdir dist\bu
ild -package QuickCheck- -package base- -package mtl- -pack
age old-time- -package time- -O -O2 -O2 -XCPP Database.ODBC.Enumer
ator Database.ODBC.OdbcFunctions Database.Oracle.Enumerator Database.Oracle.OCIC
onstants Database.Oracle.OCIFunctions Database.PostgreSQL.Enumerator Database.Po
stgreSQL.PGFunctions Database.Sqlite.Enumerator Database.Sqlite.SqliteFunctions
Database.Enumerator Database.Util Database.Stub.Enumerator Control.Exception.Mon
adIO Foreign.C.UTF8 Database.InternalEnumerator

More information about the cabal-devel mailing list