Failure to build HEAD include Time library on Windows
Mitchell, Neil
neil.mitchell.2 at credit-suisse.com
Mon Sep 15 12:28:36 EDT 2008
Hi,
(I have already reported this issue to libraries@, when it happened
using a binary dist and a hackage version, but this issue now occurs
while building GHC)
I added libraries/time to my GHC build, by commenting out the word
"extralibs" from ghc/packages, and I get the compile error:
c:/ghc-build/ghc/ghc/stage1-inplace/ghc.exe -Iinclude -package Win32-2.1
-packag
e base-4.0 -package old-locale-1.0 -optc-O2 -odir dist/build -c
cbits/HsTime.c -
o dist/build/cbits/HsTime.o
In file included from cbits\HsTime.c:1:0:
include\HsTime.h:4:26: HsTimeConfig.h: No such file or directory
In file included from cbits\HsTime.c:1:0:
include\HsTime.h:16:0: error: syntax error before "int"
cbits\HsTime.c: In function `get_current_timezone_seconds':
cbits\HsTime.c:10:0:
warning: implicit declaration of function `localtime'
cbits\HsTime.c:10:0:
warning: initialization makes pointer from integer without a cast
cbits\HsTime.c:14:0:
error: dereferencing pointer to incomplete type
cbits\HsTime.c:24:0:
error: `_tzname' undeclared (first use in this function)
cbits\HsTime.c:24:0:
error: (Each undeclared identifier is reported only once
cbits\HsTime.c:24:0: error: for each function it appears in.)
cbits\HsTime.c:25:0:
error: `_timezone' undeclared (first use in this function)
make[2]: *** [dist/build/cbits/HsTime.o] Error 1
make[2]: Leaving directory `/cygdrive/c/ghc-build/ghc/libraries/time'
make[1]: *** [make.library.time] Error 2
make[1]: Leaving directory `/cygdrive/c/ghc-build/ghc/libraries'
make: *** [stage1] Error 2
I'm guessing the first error message is because configure didn't get
run, which could perhaps be a Cabal issue? The errors after that are
probably related - but if the configure file was generated I'd have a
chance at tracking them down myself.
Thanks
Neil
==============================================================================
Please access the attached hyperlink for an important electronic communications disclaimer:
http://www.credit-suisse.com/legal/en/disclaimer_email_ib.html
==============================================================================
More information about the Cvs-ghc
mailing list