WinHugs May 2006, missing Regex.Posix.dll
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
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
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
On Wed, May 31, 2006 at 06:16:48PM +0100, Neil Mitchell wrote:
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"
It seems the HaXml demos are out of date.
ERROR "C:\Program Files\WinHugs\packages\base\System\Process\Internals.hs":747 - Undefined variable "addMVarFinalizer"
Hmm, it uses addMVarFinalizer under Windows, and Hugs doesn't have that. Have to think about that one.
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"
I think the problem with System.Process.Internals caused the base package to fail before it got to Text.Regex.Posix.
ERROR "C:\Program Files\WinHugs\packages\HaXml\Text\XML\HaXml\Parse.hs" - Can't find imported module "IOExts"
A bug on all platforms: the module should get unsafePerformIO from System.IO.Unsafe for Hugs.
ERROR "C:\Program Files\WinHugs\packages\network\Network\Socket.hs" - Error while importing DLL "C:\Program Files\WinHugs\packages\network\Network\Socket.dll"
It was using rtsSupportsBoundThreads, which is GHC-only. Fixed in the HEAD.
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"
Not a problem, I think. The files you listed are solely for use via C:\Program Files\WinHugs\programs\cpphs\Main.hs, which loads OK. It should be possible to load Language.Preprocessor.Cpphs etc from the cpphs package.
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!
It's mainly useful if you load a hierarchical module by filename instead of module name, but I'm not sure that's a practice that should be encouraged.
Hi
Not a problem, I think. The files you listed are solely for use via C:\Program Files\WinHugs\programs\cpphs\Main.hs, which loads OK. It should be possible to load Language.Preprocessor.Cpphs etc from the cpphs package.
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!
It's mainly useful if you load a hierarchical module by filename instead of module name, but I'm not sure that's a practice that should be encouraged.
It's also something I run into when developing a large application (with a deep heirarchy) and want to check that one individual module loads on its own. I have ../.. in my search path already to mitigate this, so without that even more cpphs modules would have failed. However, for this example of cpphs, it doesn't really matter much. Thanks Neil
participants (2)
-
Neil Mitchell -
Ross Paterson