cabal-1.6.0.1 won't build with ghc-6.6.1 in WinXP

I'm trying to build cabal-1.6.0.1 with ghc-6.6.1 on WinXP. "setup -v configure" fails with this output: Configuring Cabal-1.6.0.1... Flags chosen: base3=False, base4=False Dependency base <3: using base-2.1.1 Dependency filepath >=1 && <1.2: using filepath-1.0 Using Cabal-0 compiled by ghc-6.6 Using compiler: ghc-6.6.1 Using install prefix: C:\Program Files\Haskell Binaries installed in: C:\Program Files\Haskell\bin Libraries installed in: C:\Program Files\Haskell\Cabal-1.6.0.1\ghc-6.6.1 Private binaries installed in: C:\Program Files\Haskell\Cabal-1.6.0.1 Data files installed in: C:\Program Files\Haskell\Cabal-1.6.0.1 Documentation installed in: C:\Program Files\Haskell\doc\Cabal-1.6.0.1 No alex found Using ar found on system at: c:\ghc\ghc-6.6.1\bin\ar.exe No c2hs found No cpphs found No ffihugs found Using gcc version 3.4.2 found on system at: c:\ghc\ghc-6.6.1\gcc.exe Using ghc version 6.6.1 found on system at: c:\ghc\ghc-6.6.1\bin\ghc.exe Using ghc-pkg version 6.6.1 found on system at: c:\ghc\ghc-6.6.1\bin\ghc-pkg.exe No greencard found No haddock found No happy found No hmake found Using hsc2hs version 0.66 found on system at: c:\ghc\ghc-6.6.1\bin\hsc2hs.exe No hscolour found No hugs found No jhc found Using ld found on system at: c:\ghc\ghc-6.6.1\gcc-lib\ld.exe No nhc98 found No pkg-config found No ranlib found No strip found No tar found setup: fdGetMode: invalid argument (Invalid argument) Any clues as to what might be wrong? There are no buildinfo files produced, so I can't just ignore and proceed with setup build. Alistair

On Thu, 2009-01-22 at 11:56 +0000, Alistair Bayley wrote:
I'm trying to build cabal-1.6.0.1 with ghc-6.6.1 on WinXP. "setup -v [...] setup: fdGetMode: invalid argument (Invalid argument)
Any clues as to what might be wrong? There are no buildinfo files produced, so I can't just ignore and proceed with setup build.
Thanks for the bug report. I filed the details here: http://hackage.haskell.org/trac/hackage/ticket/473 I've pushed a patch to Cabal HEAD. Would you mind checking that it fixes the issue for you and I'll push the fix to the 1.6 branch so that it'll get into the upcomming 1.6.0.2 release. Thanks. Duncan

Thanks for the bug report. I filed the details here: http://hackage.haskell.org/trac/hackage/ticket/473
I've pushed a patch to Cabal HEAD. Would you mind checking that it fixes the issue for you and I'll push the fix to the 1.6 branch so that it'll get into the upcomming 1.6.0.2 release.
It seems to work. I can build under ghc-6.6 now (although I get loads of linker errors, which is another problem to sort out). Turns out that with ghc-6.6, the Maybe instance of Monoid is missing (it's in 6.8 onwards), so I had to change Setup to handle this. Thanks for the rapid turnaround. Alistair

On Fri, 2009-01-23 at 16:46 +0000, Alistair Bayley wrote:
Thanks for the bug report. I filed the details here: http://hackage.haskell.org/trac/hackage/ticket/473
I've pushed a patch to Cabal HEAD. Would you mind checking that it fixes the issue for you and I'll push the fix to the 1.6 branch so that it'll get into the upcomming 1.6.0.2 release.
It seems to work. I can build under ghc-6.6 now (although I get loads of linker errors, which is another problem to sort out).
Turns out that with ghc-6.6, the Maybe instance of Monoid is missing (it's in 6.8 onwards), so I had to change Setup to handle this.
I presume you mean both problems are in your package and not in Cabal right?
Thanks for the rapid turnaround.
No problem. Duncan
participants (2)
-
Alistair Bayley
-
Duncan Coutts