[GHC] #8266: Dynamic linking on Mac
GHC
ghc-devs at haskell.org
Wed Sep 11 03:00:49 CEST 2013
#8266: Dynamic linking on Mac
--------------------------------------------+------------------------------
Reporter: kazu-yamamoto | Owner:
Type: bug | Status: new
Priority: highest | Milestone:
Component: Build System | Version: 7.7
Resolution: | Keywords:
Operating System: MacOS X | Architecture:
Type of failure: GHC doesn't work at all | Unknown/Multiple
Test Case: | Difficulty: Unknown
Blocking: | Blocked By:
| Related Tickets:
--------------------------------------------+------------------------------
Comment (by kazu-yamamoto):
This means that GHCi does not work well if we execute "make clean":
{{{
% ghci
GHCi, version 7.7.20130909: http://www.haskell.org/ghc/ :? for help
Loading package ghc-prim ... linking ... done.
Loading package integer-gmp ... linking ... done.
Loading package base ... linking ... done.
> :m System.SetEnv
> setEnv "TEST" "TEST"
Loading package array-0.4.0.2 ... linking ... done.
Loading package deepseq-1.3.0.2 ... linking ... done.
Loading package bytestring-0.10.3.0 ... linking ... done.
Loading package old-locale-1.0.0.5 ... linking ... done.
Loading package time-1.4.1 ... linking ... done.
Loading package unix-2.7.0.0 ... linking ... done.
Loading package setenv-0.1.0 ... can't load .so/.DLL for:
/Users/kazu/Library/Haskell/ghc-7.7.20130909/lib/setenv-0.1.0/lib/libHSsetenv-0.1.0-ghc7.7.20130909.dylib
(dlopen(/Users/kazu/Library/Haskell/ghc-7.7.20130909/lib/setenv-0.1.0/lib/libHSsetenv-0.1.0-ghc7.7.20130909.dylib,
9): Library not loaded: /Users/kazu/work/ghc/libraries/unix/dist-
install/build/libHSunix-2.7.0.0-ghc7.7.20130909.dylib
Referenced from:
/Users/kazu/Library/Haskell/ghc-7.7.20130909/lib/setenv-0.1.0/lib/libHSsetenv-0.1.0-ghc7.7.20130909.dylib
Reason: image not found)
>
}}}
Here is what "setenv" refers to:
{{{
% otool -L libHSsetenv-0.1.0-ghc7.7.20130909.dylib | grep /Users
/Users/kazu/Library/Haskell/ghc-7.7.20130909/lib/setenv-0.1.0/lib/libHSsetenv-0.1.0-ghc7.7.20130909.dylib
(compatibility version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/unix/dist-
install/build/libHSunix-2.7.0.0-ghc7.7.20130909.dylib (compatibility
version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/time/dist-
install/build/libHStime-1.4.1-ghc7.7.20130909.dylib (compatibility version
0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/old-locale/dist-install/build
/libHSold-locale-1.0.0.5-ghc7.7.20130909.dylib (compatibility version
0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/bytestring/dist-
install/build/libHSbytestring-0.10.3.0-ghc7.7.20130909.dylib
(compatibility version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/deepseq/dist-
install/build/libHSdeepseq-1.3.0.2-ghc7.7.20130909.dylib (compatibility
version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/array/dist-
install/build/libHSarray-0.4.0.2-ghc7.7.20130909.dylib (compatibility
version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/base/dist-
install/build/libHSbase-4.7.0.0-ghc7.7.20130909.dylib (compatibility
version 0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/integer-gmp/dist-install/build
/libHSinteger-gmp-0.5.1.0-ghc7.7.20130909.dylib (compatibility version
0.0.0, current version 0.0.0)
/Users/kazu/work/ghc/libraries/ghc-prim/dist-install/build
/libHSghc-prim-0.3.1.0-ghc7.7.20130909.dylib (compatibility version 0.0.0,
current version 0.0.0)
}}}
--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/8266#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
More information about the ghc-tickets
mailing list