validate failure on Mac

Richard Eisenberg eir
Thu Oct 3 14:58:55 UTC 2013


Sorry if this has been addressed recently, but I can't validate right now, due to a build failure from -Werror in C code in primitive:

> "inplace/bin/ghc-stage2" -optc-Werror -optc-Wall -optc-Ilibraries/primitive/cbits -optc-O3 -optc-ftree-vectorize -optc-fomit-frame-pointer -optc-msse2 -optc-I'/Users/rae/Documents/ghc-cur/libraries/base/include' -optc-I'/Users/rae/Documents/ghc-cur/rts/dist/build' -optc-I'/Users/rae/Documents/ghc-cur/includes' -optc-I'/Users/rae/Documents/ghc-cur/includes/dist-derivedconstants/header' -static  -H32m -O -Werror -Wall -H64m -O0    -package-name primitive-0.5.1.0 -hide-all-packages -i -ilibraries/primitive/. -ilibraries/primitive/dist-install/build -ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/dist-install/build -Ilibraries/primitive/dist-install/build/autogen -Ilibraries/primitive/cbits    -optP-include -optPlibraries/primitive/dist-install/build/autogen/cabal_macros.h -package base-4.7.0.0 -package ghc-prim-0.3.1.0 -O2 -Wall -XHaskell2010 -O2 -O -dcore-lint -fno-warn-amp  -fno-warn-deprecated-flags  -no-user-package-db -rtsopts -Wwarn     -c libraries/primitive/cbits/primitive-memops.c -o libraries/primitive/dist-install/build/cbits/primitive-memops.o
> cc1: warnings being treated as errors
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Word16?:
> 
> libraries/primitive/cbits/primitive-memops.c:44:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Word32?:
> 
> libraries/primitive/cbits/primitive-memops.c:45:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Word64?:
> 
> libraries/primitive/cbits/primitive-memops.c:46:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Word?:
> 
> libraries/primitive/cbits/primitive-memops.c:47:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Ptr?:
> 
> libraries/primitive/cbits/primitive-memops.c:48:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Float?:
> 
> libraries/primitive/cbits/primitive-memops.c:49:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> libraries/primitive/cbits/primitive-memops.c: In function ?hsprimitive_memset_Double?:
> 
> libraries/primitive/cbits/primitive-memops.c:50:0:
>      warning: dereferencing type-punned pointer will break strict-aliasing rules
> make[1]: *** [libraries/primitive/dist-install/build/cbits/primitive-memops.o] Error 1
> make: *** [all] Error 2


I have not been playing around in this area lately (or ever), and I did a ./sync-all pull this morning.

Any advice?

Thanks!
Richard



More information about the ghc-devs mailing list