RE: Difficulties compiling hmake / HaXml

I tried to change the "configure" file as you described -- and after "./configure" and "make" I still get the same error message (see above). What can I do now? Is there another way to use HaXml on Win/Cygwin with GHC? Cheers, Christian sh-2.04$ make cd src/hmake; make HC=ghc install make[1]: Entering directory `/test-hmake/hmake-2.02/src/hmake' make[1]: Nothing to be done for `install'. make[1]: Leaving directory `/test-hmake/hmake-2.02/src/hmake' cd src/interpreter; make HC=ghc install make[1]: Entering directory `/test-hmake/hmake-2.02/src/interpreter' /test-hmake/hmake-2.02/script/hmake -ghc HInteractive -d/test-hmake/hmake-2.02/t argets/ix86-CYGWIN_NT-4.0/obj/interpreter Fail: Can't find module Posix in . Or in standard libraries at /ghc/ghc-4.08.2/lib/imports/std /ghc/ghc-4.08.2/lib/imports/data /ghc/ghc-4.08.2/lib/imports/lang /ghc/ghc-4.08.2/lib/imports/posix /ghc/ghc-4.08.2/lib/imports/net /ghc/ghc-4.08.2/lib/imports/num /ghc/ghc-4.08.2/lib/imports/text /ghc/ghc-4.08.2/lib/imports/util /ghc/ghc-4.08.2/lib/imports/win32 /ghc/ghc-4.08.2/lib/imports/concurrent Asked for by: HmakeConfig.hs [Check settings of -I or -P flags?] Stop - hmake dependency error. make[1]: *** [/test-hmake/hmake-2.02/lib/ix86-CYGWIN_NT-4.0/HInteractive.exe] Er ror 1 make[1]: Leaving directory `/test-hmake/hmake-2.02/src/interpreter' make: *** [targets/ix86-CYGWIN_NT-4.0/hmake_g] Error 2

What can I do now? Is there another way to use HaXml on Win/Cygwin with GHC?
I'm still puzzled as to why you're not using HaXml as supplied with GHC, and just building the tools from GHC's source. What am I missing? -- http://sc3d.org/rrt/ | violence, n. bravery for cowards

I tried to change the "configure" file as you described -- and after "./configure" and "make" I still get the same error message
Apologies. My patch (and the description of the reason why 'hmake' needed it) were completely bogus. That will teach me to fix bugs from memory rather than looking at the source code... Looking more closely, the Posix library is in fact required by hmake interactive (when built by ghc) for the use of the function 'getProcessID', which is used solely to generate unique temporary filenames. In src/interpreter/HmakeConfig.hs, in the section #ifdef __GLASGOW_HASKELL__ import IOExts (unsafePerformIO) import Posix (getProcessID) #endif try removing the line 'import Posix' and replacing it with something trivial like 'getProcessID = return 3154' where the actual number is arbitrary. This should (finally) get 'hmake' working for you. I will try to discover an configuration mechanism to automate this for future releases. Thanks for your patience and persistence! Regards, Malcolm
participants (3)
-
Lescher Christian
-
Malcolm Wallace
-
Reuben Thomas