libraries/time

Simon Marlow marlowsd at gmail.com
Wed Sep 17 03:50:22 EDT 2008


Simon Peyton-Jones wrote:
> Building under Cygwin on Windows, I get this in package 'time':
> 
> 
> c:/darcs/HEAD/ghc/stage1-inplace/ghc.exe -package-name time-1.1.2.1 -hide-all-packages -no-user-package-conf -i -idist/build -i. -idist/build/autogen -Idist/build/autogen -Idist/build -Iinclude -optP-include -optPdist/build/autogen/cabal_macros.h -odir dist/build -hidir dist/build -stubdir dist/build -package Win32-2.1 -package base-4.0 -package old-locale-1.0 -O -XForeignFunctionInterface -XCPP -idist/build   -H64m -O0 -fasm -O -fasm -dcore-lint -Wall -fno-warn-deprecated-flags -c Data/Time/Clock/CTimeval.hs -o dist/build/Data/Time/Clock/CTimeval.o  -ohi dist/build/Data/Time/Clock/CTimeval.hi
> c:/darcs/HEAD/ghc/stage1-inplace/ghc.exe -Iinclude -package Win32-2.1 -package 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

This is normally a symptom of not running autoreconf in libraries/time, 
which is supposed to be done by 'sh boot'.  Could you check that 'sh boot' 
is running autoreconf as it should?

Cheers,
	Simon

> 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/darcs/HEAD/libraries/time'
> make[1]: *** [make.library.time] Error 2
> make[1]: Leaving directory `/cygdrive/c/darcs/HEAD/libraries'
> make: *** [stage1] Error 2
> 
> _______________________________________________
> Cvs-ghc mailing list
> Cvs-ghc at haskell.org
> http://www.haskell.org/mailman/listinfo/cvs-ghc



More information about the Cvs-ghc mailing list