#4153: GHCi linker should load archives ---------------------------------+------------------------------------------ Reporter: batterseapower | Owner: Type: bug | Status: new Priority: normal | Component: GHCi Version: 6.12.3 | Keywords: Os: Unknown/Multiple | Testcase: Architecture: Unknown/Multiple | Failure: None/Unknown ---------------------------------+------------------------------------------ It looks like the GHCi linker doesn't look for '.a' files, only '.o's, e.g. Linker.lhs line 1107:
{{{ mk_obj_path dir = dir </> (lib <.> "o") }}} There is no corresponding call to findFile with a "a" suffix. This is annoying because it prevents you from running programs using the llvm package in GHCi. The llvm package depends on a number of .a files: {{{ ld-options: ... -lLLVMCore -lLLVMAlphaInfo -lLLVMSupport -lLLVMSystem -L/usr/local/lib ... }}} And: {{{ $ ls /usr/local/lib | grep LLVMCore libLLVMCore.a }}} The net result is that we get this error when trying to run a program using llvm in GHCi: {{{ $ runghc BrainF.hs BrainF.hs: <command line>: can't load .so/.DLL for: LLVMSystem (dlopen(libLLVMSystem.dylib, 9): image not found) }}} Another argument for finding some way to co-opt the system linker to do linking for us? -- Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4153> GHC <http://www.haskell.org/ghc/> The Glasgow Haskell Compiler _______________________________________________ Glasgow-haskell-bugs mailing list Glasgow-haskell-bugs@haskell.org http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs