[Haskell] building c2hs on winows

Anatoly Yakovenko aeyakovenko at gmail.com
Wed Jul 5 23:58:43 EDT 2006


On 7/4/06, Arjan Oosting <arjanoosting at home.nl> wrote:
> Op di, 04-07-2006 te 09:09 -0700, schreef Anatoly Yakovenko:
> > I can't get c2hs to build on windows with ghc-6.4.2
> >
> > $ runhaskell.exe Setup.hs configure
> >
> > Setup.hs:11:57:
> >     Couldn't match `LocalBuildInfo'
> >            against `Distribution.PackageDescription.PackageDescription'
> >       Expected type: Args
> >                      -> InstallFlags
> >                      ->
> > Distribution.PackageDescription.PackageDescription
> >                      -> LocalBuildInfo
> >                      -> IO ExitCode
> >       Inferred type: Args -> InstallFlags -> LocalBuildInfo -> IO
> > ExitCode
> >     In the `postInst' field of a record
> >     In the record update: defaultUserHooks {postInst = addWrapperAndLib}
> >
> > Any ideas?
> Update the Setup.hs file with one from the darcs repository of c2hs.
> Then it should build

I get a little farther, but it still doesn't work:

# runhaskell.exe Setup.hs configure
Configuring c2hs-0.14.5...
configure: Dependency base-any: using base-1.0
configure: Dependency haskell98-any: using haskell98-1.0
configure: Using install prefix: C:\Program Files
configure: Binaries installed in: C:\Program Files\c2hs-0.14.5
configure: Libraries installed in: C:\Program
Files\Haskell\c2hs-0.14.5\ghc-6.4.2
configure: Private binaries installed in: C:\Program Files\c2hs-0.14.5
configure: Data files installed in: C:\Program Files\c2hs-0.14.5
configure: Using compiler: c:\ghc\ghc-6.4.2\bin\ghc.exe
configure: Compiler flavor: GHC
configure: Compiler version: 6.4.2
configure: Using package tool: c:\ghc\ghc-6.4.2\bin\ghc-pkg.exe
configure: Using ar found on system at: C:\util\bin\ar.exe
configure: No haddock found
configure: No pfesetup found
configure: Using ranlib found on system at: C:\util\bin\ranlib.exe
configure: Using runghc found on system at: c:\ghc\ghc-6.4.2\bin\runghc.exe
configure: No runhugs found
configure: No happy found
configure: No alex found
configure: Using hsc2hs: c:\ghc\ghc-6.4.2\bin\hsc2hs.exe
configure: No c2hs found
configure: No cpphs found
configure: No greencard found
Setup.hs: Cannot find: sh

anatolyy at ANATOLYY ~/math/c2hs-0.14.5
# runhaskell.exe Setup.hs build
Preprocessing executables for c2hs-0.14.5...
Setup.hs: can't find source for C2HSConfig in
["base\\admin","base\\errors","base\\general","base\\graphs","base\\state","base\\syms","base\\syntax","c2hs\\c","c2hs\\chs","c2hs\\gen","c2hs\\state","c2hs\\toplevel"]

Anatoly


More information about the Haskell mailing list