Validate broken on Snow Leopard and Mountain Lion

Christiaan Baaij christiaan.baaij at gmail.com
Wed Nov 13 09:02:49 UTC 2013


The error in snow leopard is the result of my patch [1] for #8266 [2], which ensures that the original build directory is no longer referenced in installed packages/libs.
The patch is just a proper implementation of the original design though.

Perhaps the "relative-dynlib-references" procedure should be called just before the install phase, instead of after the build phase.
That, or the validate-related scripts/binaries should references the libraries in "inplace/lib" instead of the build dirs?
Does validate work for the DPH packages on Linux?

-- Christiaan

[1] https://ghc.haskell.org/trac/ghc/changeset/f213e48447050bf468bc4d91fc4d810402c23b85/ghc
[2] https://ghc.haskell.org/trac/ghc/ticket/8266

On Nov 13, 2013, at 4:46 AM, Ben Lippmeier <benl at ouroborus.net> wrote:

> 
> The Snow Leopard says:
> ----------------------
> Loading package primitive-0.5.1.0 ... linking ... done.
> Loading package vector-0.10.9.1 ... <command line>: can't load .so/.DLL for: /Users/benl/devel/ghc/ghc-head-validate/libraries/vector/dist-install/build/libHSvector-0.10.9.1-ghc7.7.20131113.dylib (dlopen(/Users/benl/devel/ghc/ghc-head-validate/libraries/vector/dist-install/build/libHSvector-0.10.9.1-ghc7.7.20131113.dylib, 9): Library not loaded: @rpath/primitive-0.5.1.0/libHSprimitive-0.5.1.0-ghc7.7.20131113.dylib
>  Referenced from: /Users/benl/devel/ghc/ghc-head-validate/libraries/vector/dist-install/build/libHSvector-0.10.9.1-ghc7.7.20131113.dylib
>  Reason: image not found)
> make[1]: *** [libraries/dph/dph-lifted-copy/dist-install/build/Data/Array/Parallel/PArray/PData.o] Error 1
> make[1]: *** Waiting for unfinished jobs....
> make: *** [all] Error 2
> 
> 
> The Mountain Lion says:
> -----------------------
> 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.dyn_o] Error 1
> make: *** [all] Error 2
> 
> 
> Neither seems pleased.
> 
> Ben.
> 
> _______________________________________________
> ghc-devs mailing list
> ghc-devs at haskell.org
> http://www.haskell.org/mailman/listinfo/ghc-devs



More information about the ghc-devs mailing list