
I'm trying to build Ashley's time package with GHC6.4 on Windows XP, and there are a few things it uses which seem to be in GHC6.6 only. Some of them I can find in the GHC sources, but I am unable to locate HsTimeConfig.h. When GHC is installed I'd expect to find it under C:\ghc\ghc-6.4.1\include, but I can't tell where this maps to in the ghc source tree. Thanks, Alistair

Hs<name>Config.h is a by-product of a package's build config
script, so if you've got access to a full source tree for the
package in Q, perhaps you haven't run the autoconf script?
--sigbjorn
----- Original Message -----
From: "Alistair Bayley"
I'm trying to build Ashley's time package with GHC6.4 on Windows XP, and there are a few things it uses which seem to be in GHC6.6 only. Some of them I can find in the GHC sources, but I am unable to locate HsTimeConfig.h. When GHC is installed I'd expect to find it under C:\ghc\ghc-6.4.1\include, but I can't tell where this maps to in the ghc source tree.
Thanks, Alistair

I believe the right way to build the package standalone is to use this Setup.hs script: import Distribution.Simple main = defaultMainWithHooks defaultUserHooks which should run the configure script as part of 'setup configure'. You also need to run autoconf to generate configure from configure.ac first. Cheers, Simon Sigbjorn Finne wrote:
Hs<name>Config.h is a by-product of a package's build config script, so if you've got access to a full source tree for the package in Q, perhaps you haven't run the autoconf script?
--sigbjorn
----- Original Message ----- From: "Alistair Bayley"
To: Sent: Friday, July 14, 2006 04:55 Subject: Where is HsTimeConfig.h? I'm trying to build Ashley's time package with GHC6.4 on Windows XP, and there are a few things it uses which seem to be in GHC6.6 only. Some of them I can find in the GHC sources, but I am unable to locate HsTimeConfig.h. When GHC is installed I'd expect to find it under C:\ghc\ghc-6.4.1\include, but I can't tell where this maps to in the ghc source tree.
Thanks, Alistair

I believe the right way to build the package standalone is to use this Setup.hs script:
import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
which should run the configure script as part of 'setup configure'. You also need to run autoconf to generate configure from configure.ac first.
Ahh.. OK then. I don't seem to have autoconf on my mingw system, so its off to mingw.org I go... thanks, Alistair

On 14/07/06, Alistair Bayley
I believe the right way to build the package standalone is to use this Setup.hs script:
import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
which should run the configure script as part of 'setup configure'. You also need to run autoconf to generate configure from configure.ac first.
Ahh.. OK then. I don't seem to have autoconf on my mingw system, so its off to mingw.org I go...
Right then, now that I've run autoconf, "runhaskell Setup.hs configure" fails because I don't have HsTimeConfig.h.in. How do I get one of those? Alistair

On 14 July 2006 14:19, Alistair Bayley wrote:
On 14/07/06, Alistair Bayley
wrote: I believe the right way to build the package standalone is to use this Setup.hs script:
import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
which should run the configure script as part of 'setup configure'. You also need to run autoconf to generate configure from configure.ac first.
Ahh.. OK then. I don't seem to have autoconf on my mingw system, so its off to mingw.org I go...
Right then, now that I've run autoconf, "runhaskell Setup.hs configure" fails because I don't have HsTimeConfig.h.in. How do I get one of those?
Ah. 'autoreconf' rather than 'autoconf', my apologies. Cheers, Simon

On 14/07/06, Simon Marlow
On 14 July 2006 14:19, Alistair Bayley wrote:
On 14/07/06, Alistair Bayley
wrote: I believe the right way to build the package standalone is to use this Setup.hs script:
import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
which should run the configure script as part of 'setup configure'. You also need to run autoconf to generate configure from configure.ac first.
Ahh.. OK then. I don't seem to have autoconf on my mingw system, so its off to mingw.org I go...
Right then, now that I've run autoconf, "runhaskell Setup.hs configure" fails because I don't have HsTimeConfig.h.in. How do I get one of those?
Ah. 'autoreconf' rather than 'autoconf', my apologies.
Success! I think... Thanks for your help. After a fair bit of dependency chasing, here's what I've done: darcs get --partial http://www.cse.unsw.edu.au/~dons/code/fps normal cabal configure, build, install darcs get http://darcs.haskell.org/packages/Win32 Edit Win32.cabal, add fps to build-depends. normal cabal configure, build, install darcs get http://semantic.org/TimeLib/TimeLib There are two packages here: time and fixed. Ignore time. Go into fixed and do cabal configure, build, install darcs get http://darcs.haskell.org/packages/time Edit time.cabal, add fixed and Win32 to build-depends. create Setup.hs: import Distribution.Simple main = defaultMainWithHooks defaultUserHooks
From MSYS shell, not Windows cmd.exe: autoreconf runhaskell Setup.hs configure runhaskell Setup.hs build runhaskell Setup.hs install
Alistair

Hello Alistair, Friday, July 14, 2006, 6:14:28 PM, you wrote:
darcs get --partial http://www.cse.unsw.edu.au/~dons/code/fps darcs get http://darcs.haskell.org/packages/Win32 darcs get http://semantic.org/TimeLib/TimeLib darcs get http://darcs.haskell.org/packages/time
praising for cabal-get :) -- Best regards, Bulat mailto:Bulat.Ziganshin@gmail.com

On 14/07/06, Sigbjorn Finne
Hs<name>Config.h is a by-product of a package's build config script, so if you've got access to a full source tree for the package in Q, perhaps you haven't run the autoconf script?
That would be true, I haven't run the autoconf script. Normally this is simply ./configure, right? I don't have one of those, I guess because now this package is part of the base libraries (I got it from http://darcs.haskell.org/packages/time). How would I run autoconf in this case? Alistair
participants (5)
-
Alistair Bayley
-
Bulat Ziganshin
-
Sigbjorn Finne
-
Simon Marlow
-
Simon Marlow