
Hi, I'm trying to compile the Hugs libraries, following the instructions given in docs/building/win32.txt for CVS using MSYS, on a completely fresh tree - no windows stuff built at all. It goes on for ages, then I get: ---- Preprocessing Network/Hackage/Interface Preprocessing Network/Hackage/Version C:/DOCUME~1/ndm/LOCALS~1/Temp/ccATaaaa.o(.text+0x7e): In function `hugsprim_SearchPath_0': d:/sources/cvs.haskell.org/fresh/hugs98/libraries/bootlib/System/Directory.c:28: undefined reference to `SearchPath' collect2: ld returned 1 exit status runhugs: Error occurred ERROR "libraries/bootlib\System\Directory.hs" - Error while running compilation command 'gcc -DNDEBUG=1 -g -shared -D__HUGS__ "-Ihugsdir/include" -o "libraries/bootlib\System\Directory.dll" "libraries/bootlib\System\Directory.c" -Ipackages/base/include -Ighc/includes -lwsock32' runhugs: Error occurred ERROR "libraries/bootlib\System\Directory.hs":140 - Undefined variable "long_path_size" echo timestamp for bootlib >bootlib/.stamp cd ../cpphs; ../src/runhugs -98 -P../libraries/bootlib ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --scratchdir=../hugsdir --with-compiler=../src/ffihugs runhugs: Error occurred ERROR "../libraries/bootlib\System\Directory.hs" - Error while importing DLL "../libraries/bootlib\System\Directory.dll" make[1]: *** [../hugsdir/programs/cpphs/Main.hs] Error 1 make[1]: Leaving directory `/d/sources/cvs.haskell.org/fresh/hugs98/libraries' make: *** [all] Error 2 Any idea whats wrong? Thanks Neil

On Mon, May 01, 2006 at 02:16:16PM +0100, Neil Mitchell wrote:
`hugsprim_SearchPath_0': d:/sources/cvs.haskell.org/fresh/hugs98/libraries/bootlib/System/Directory.c:28: undefined reference to `SearchPath'
runhugs: Error occurred ERROR "libraries/bootlib\System\Directory.hs":140 - Undefined variable "long_path_size"
I've had a go at these two.

I've had a go at these two. Thanks, I can now get past that bit.
But now I get a new error: Preprocessing Network/Hackage/Client Preprocessing Network/Hackage/Interface Preprocessing Network/Hackage/Version runhugs: Error occurred ERROR "libraries/bootlib\System\Directory.hs":140 - Undefined variable "long_path_size" runhugs: Error occurred ERROR "libraries/bootlib\System\Directory.hs":140 - Undefined variable "long_path_size" echo timestamp for bootlib >bootlib/.stamp cd ../cpphs; ../src/runhugs -98 -P../libraries/bootlib ../packages/Cabal/examples/hapax.hs configure --verbose --hugs --scratchdir=../hugsdir --with-compiler=../src/ffihugs runhugs: Error occurred ERROR "../libraries/bootlib\System\Directory.hs":140 - Undefined variable "long_path_size" make[1]: *** [../hugsdir/programs/cpphs/Main.hs] Error 1 Thanks Neil
participants (2)
-
Neil Mitchell
-
Ross Paterson