Validate trouble on x86 linux
Thorkil Naur
naur at post11.tele.dk
Sat Sep 15 14:06:30 EDT 2007
Hello,
On my x86 (SuSE) Linux, validate ends like this:
> ------------------------------------------------------------------------
> == make all -r --jobserver-fds=3,4 -j;
>
in /home/tn/tn/GHCDarcsRepository/ghc-HEAD-complete-for-validating-20070913_2116/ghc/compiler
> ------------------------------------------------------------------------
> /usr/bin/ghc -cpp
-optc-DGHC_PATH=\"/home/tn/tn/GHCDarcsRepository/ghc-HEAD-complete-for-validating-20070913_2116/ghc/compiler/stage1/ghc-6.7.20070913\"
-optc-DTOP_ABS=\"/home/tn/tn/GHCDarcsRepository/ghc-HEAD-complete-for-validating-20070913_2116/ghc\"
ghc-inplace.c -o stage1/ghc-inplace
> /usr/bin/ghc -Werror -H64m -Onot -fasm -istage1/utils -istage1/basicTypes
-istage1/types -istage1/hsSyn -istage1/prelude -istage1/rename
-istage1/typecheck -istage1/deSugar -istage1/coreSyn -istage1/vectorise
-istage1/specialise -istage1/simplCore -istage1/stranal -istage1/stgSyn
-istage1/simplStg -istage1/codeGen -istage1/main -istage1/profiling
-istage1/parser -istage1/cprAnalysis -istage1/ndpFlatten -istage1/iface
-istage1/cmm -istage1/nativeGen -Wall -fno-warn-name-shadowing -Istage1 -cpp
-fglasgow-exts -fno-generics -Rghc-timing -I. -Iparser -package unix -recomp
-Rghc-timing -O -fasm -H16M '-#include "cutils.h"' -DUSING_COMPAT -i../compat
-package unix -O -c utils/Encoding.hs -o stage1/utils/Encoding.o -ohi
stage1/utils/Encoding.hi
>
> utils/Encoding.hs:144: Warning: Defined but not used: c
>
> utils/Encoding.hs:146:
> Warning: Definition but no type signature for `unPtr'
>
> utils/Encoding.hs:176: Warning: Defined but not used: ptr
>
> utils/Encoding.hs:338:
> Warning: Definition but no type signature for `decode_num_esc'
>
> utils/Encoding.hs:374: Warning: Defined but not used: cs
>
> utils/Encoding.hs:375: Warning: Defined but not used: other
>
> utils/Encoding.hs:378: Warning: Defined but not used: cs
>
> utils/Encoding.hs:379: Warning: Defined but not used: other
>
> utils/Encoding.hs:380: Warning: Defined but not used: other
> <<ghc: 24819752 bytes, 6 GCs, 56312/56312 avg/max bytes residency (1
samples), 16M in use, 0.00 INIT (0.00 elapsed), 0.09 MUT (1.01 elapsed), 0.03
GC (0.03 elapsed) :ghc>>
> make[1]: *** [stage1/utils/Encoding.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [stage1] Error 1
This is with "version of ghc... 6.2". These (and many more) warnings are also
reported by the tnaur-x86-Linux-head builbot builder, so the failure in
validate is caused by the -Werror flag.
Please indicate how I should proceed in this case. I am aware of the ongoing
effort to eventually eliminate all warnings, so that is perhaps what I should
do, eliminate them one by one?
With "version of ghc... 6.6.1.20070507", validate ends somewhat earlier, like
this:
> /home/tn/tn/install/ghc-6.6.1-for-buildbot-assistance/bin/ghc -optc-Werror
-optc-I. -optc-Iinclude -optc-D__GHC_PATCHLEVEL__=1.20070507
-optc-I../libraries/base/cbits -optc-I../libraries/base/include -Werror -H64m
-Onot -fasm -w -I. -Iinclude -Rghc-timing -O -fasm -ignore-package Cabal
-ignore-package filepath -I../libraries -fglasgow-exts -no-recomp -c
cbits/unicode.c -o cbits/unicode.o
>
> cbits/unicode.c:1:63:
> error: floating constant in preprocessor expression
> <<ghc: 9831468 bytes, 3 GCs, 109680/109680 avg/max bytes residency (1
samples), 62M in use, 0.01 INIT (0.00 elapsed), 0.02 MUT (0.07 elapsed), 0.01
GC (0.02 elapsed) :ghc>>
> make[2]: *** [cbits/unicode.o] Error 1
> make[2]: *** Waiting for unfinished jobs....
> <<ghc: 9840652 bytes, 5 GCs, 251328/392936 avg/max bytes residency (2
samples), 62M in use, 0.01 INIT (0.00 elapsed), 0.02 MUT (1.30 elapsed), 0.02
GC (0.03 elapsed) :ghc>>
> make[1]: *** [boot] Error 2
> make: *** [stage1] Error 1
The latter problem seems related to the __GHC_PATCHLEVEL__=1.20070507 which
looks like a floating point number. Again, please indicate how I should
proceed in this case.
Thanks and best regards
Thorkil
More information about the Cvs-ghc
mailing list