ghc-6.6 + cabal-1.6 - can't find header files
duncan.coutts at worc.ox.ac.uk
Tue Jan 27 18:38:52 EST 2009
On Tue, 2009-01-27 at 22:08 +0000, Alistair Bayley wrote:
> 2009/1/27 Duncan Coutts <duncan.coutts at worc.ox.ac.uk>:
> > On Tue, 2009-01-27 at 19:02 +0000, Alistair Bayley wrote:
> >> 2009/1/27 Alistair Bayley <alistair at abayley.org>:
> >> > I'm puzzled as to why this build fails (ghc-6.6.1, cabal-1.6 (actually
> >> > HEAD, I think, but close enough, and winXP). The sqlite.h header file
> >> > is in C:\Progra~1\sqlite3\, which is clearly given with the -I option.
> >> Turns out it's the trailing backslash in the path C:\Progra~1\sqlite3\
> >> (same error for slashes, too). !?
> > I am very surprised. Is that problem at the gcc level? Does specifying
> > paths with trailing dir separator cause this problem for gcc in a simple
> > test case?
> > If it really is a problem with gcc on windows perhaps ghc can use an
> > updated gcc in future releases or we could try stripping trailing dir
> > separators on include dirs in Cabal.
> I think it's only ghc-6.6, but I'll retest against 6.8 and 6.10. If
> it's only 6.6 then I'm not going to sweat it.
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.
You can build with -v and see how ghc is invoking gcc, and try those
commands manually etc.
More information about the cabal-devel