WinHugs May 2006, missing Regex.Posix.dll

Neil Mitchell ndmitchell at gmail.com
Wed May 31 13:16:48 EDT 2006


Hi,

In order to try and crush any more bug reports of the form "libary
doesn't work with WinHugs", I have just loaded every single .hs file
distributed with WinHugs, and seen which fail. Here is a list of the
error message:

ERROR "C:\Program Files\WinHugs\demos\HaXml\AlbumDTD.hs" - Can't find
imported module "Text.XML.HaXml.Xml2Haskell"
ERROR "C:\Program Files\WinHugs\demos\HaXml\App.hs" - Can't find
imported module "Text.XML.HaXml.Xml2Haskell"
ERROR "C:\Program Files\WinHugs\demos\HaXml\DTypes.hs" - Can't find
imported module "Text.XML.HaXml.Haskell2XmlNew"
ERROR "C:\Program Files\WinHugs\demos\HaXml\Example.hs" - Can't find
imported module "Text.XML.HaXml.Haskell2Xml"
ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTest.hs" - Can't
find imported module "Text.XML.HaXml.Haskell2Xml"
ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTestBool.hs" - Can't
find imported module "Text.XML.HaXml.Haskell2Xml"
ERROR "C:\Program Files\WinHugs\demos\HaXml\SimpleTestD.hs" - Can't
find imported module "Text.XML.HaXml.Haskell2Xml"
ERROR "C:\Program Files\WinHugs\demos\HaXml\SMIL\DTD_SMIL20.hs" -
Can't find imported module "Text.XML.HaXml.Xml2Haskell"
ERROR "C:\Program Files\WinHugs\demos\HaXml\Types.hs" - Can't find
imported module "Text.XML.HaXml.Haskell2Xml"
ERROR "C:\Program
Files\WinHugs\packages\base\System\Process\Internals.hs":747 -
Undefined variable "addMVarFinalizer"
ERROR "C:\Program Files\WinHugs\packages\base\Text\Regex\Posix.hs" -
Error while importing DLL "C:\Program
Files\WinHugs\packages\base\Text\Regex\Posix.dll"
ERROR "C:\Program
Files\WinHugs\packages\HaXml\Text\XML\HaXml\Parse.hs" - Can't find
imported module "IOExts"
ERROR "C:\Program Files\WinHugs\packages\network\Network\Socket.hs" -
Error while importing DLL "C:\Program
Files\WinHugs\packages\network\Network\Socket.dll"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs.hs" - Can't
find imported module "Language.Preprocessor.Cpphs.Options"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\CppIfdef.hs"
- Can't find imported module "Language.Preprocessor.Cpphs.Tokenise"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\MacroPass.hs"
- Can't find imported module "Language.Preprocessor.Cpphs.Position"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\ReadFirst.hs"
- Can't find imported module "Language.Preprocessor.Cpphs.SymTab"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\RunCpphs.hs"
- Can't find imported module "Language.Preprocessor.Unlit"
ERROR "C:\Program
Files\WinHugs\programs\cpphs\Language\Preprocessor\Cpphs\Tokenise.hs"
- Can't find imported module "Language.Preprocessor.Cpphs.Position"

I have also uploaded my makefile log at:
http://www-users.cs.york.ac.uk/~ndm/temp/winhugs-make.txt

The HaXML errors mainly stem from Xml2Haskell, which doesnt' appear
anywhere in the makefile logs. I guess the cpphs errors come from the
libraries path setting which is currently:

.;..;..\..;{Hugs}\packages\*

(I added ..\..)

Adding: ..\..\.. to the path makes the cpphs pass

Perhaps Hugs should be default search in this manner, if you are 3
dots deep, then move up 3 dots before considering this the current
search folder? Yhc has this behaviour, GHC does not, but its very
useful!

Thanks

Neil

On 5/31/06, Neil Mitchell <ndmitchell at gmail.com> wrote:
> Hi,
>
> I just got the bug report at the bottom of this email message
>
> Basically, Text.Regex.Posix.dll is not build by the makefile, here is
> the appropriate bit of the makefile log, which doesn't have that file
> being built.
>
> Preprocessing library base-1.0...
> ..\..\libraries\tools\hsc2hs.bat -D__HUGS__ -Iinclude
> -I..\..\ghc\includes -o System\CPUTime.hs System\CPUTime.hsc
> ..\..\libraries\tools\hsc2hs.bat -D__HUGS__ -Iinclude
> -I..\..\ghc\includes -o System\Time.hs System\Time.hsc
> ..\..\libraries\tools\hsc2hs.bat -D__HUGS__ -Iinclude
> -I..\..\ghc\includes -o Text\Regex\Posix.hs Text\Regex\Posix.hsc
> Building base-1.0...
> ..\..\libraries\tools\cpphs.bat
> -O..\..\hugsdir\packages\base\Control\Applicative.hs
> Control\Applicative.hs --noline --strip -Dmingw32_BUILD_OS
> -Dmingw32_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__HUGS__
> -Iinclude -I..\..\ghc\includes
> [cut, just lots of successful builds]
> ..\..\libraries\tools\cpphs.bat
> -O..\..\hugsdir\packages\base\Text\Show\Functions.hs
> Text\Show\Functions.hs --noline --strip -Dmingw32_BUILD_OS
> -Dmingw32_HOST_OS -Di386_BUILD_ARCH -Di386_HOST_ARCH -D__HUGS__
> -Iinclude -I..\..\ghc\includes
> Compiling FFI stubs
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Data\ByteString.hs -Iinclude
> -I..\..\ghc\includes cbits\fpstring.c
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Data\ByteString\Char8.hs -Iinclude
> -I..\..\ghc\includes
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Foreign\C\Error.hs -Iinclude
> -I..\..\ghc\includes cbits\PrelIOUtils.c
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Foreign\Marshal\Alloc.hs -Iinclude
> -I..\..\ghc\includes
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Foreign\Marshal\Utils.hs -Iinclude
> -I..\..\ghc\includes
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\Foreign\Ptr.hs -Iinclude
> -I..\..\ghc\includes cbits\PrelIOUtils.c
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\System\Directory.hs -Iinclude
> -I..\..\ghc\includes
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\System\Posix\Internals.hs -Iinclude
> -I..\..\ghc\includes cbits\PrelIOUtils.c cbits\dirUtils.c
> cbits\consUtils.c
> ..\..\src\ffihugs -98 -P..\..\hugsdir\packages\base; -i"HsBase.h"
> ..\..\hugsdir\packages\base\System\Process\Internals.hs -Iinclude
> -I..\..\ghc\includes cbits\execvpe.c
> Skipping base package
> Configuring haskell98-1.0...
>
> The skipping base package is kind of worrying, and it never seems to
> call ffihugs with the Posix.dll
>
> Thanks
>
> Neil
>
> --- user submitted bug ----
> when I run this simple script:
>
> module Nils where
> import Text.Regex
>
> main = do print "hello"
>
> I get the following error in winhugs:
>
> ERROR file:{Hugs}\packages\base\Text\Regex\Posix.hs -
> Error while importing DLL "C:\Program
> Files\WinHugs\packages\base\Text\Regex\Posix.dll"
>
> This used to work fine in the january release. Do you
> know if anything is missing?
>
> Regards
> Antoine
>


More information about the Hugs-Bugs mailing list