
#9589: Building GHC as a cross-compiler for armhf fails with undefined reference to `dlopen', `dlerror', `dlsym' -------------------------------------+------------------------------------- Reporter: jpmasseria | Owner: Type: bug | Status: new Priority: normal | Milestone: Component: Build | Version: 7.8.3 System | Keywords: Resolution: | Architecture: Unknown/Multiple Operating System: Linux | Difficulty: Unknown Type of failure: Building | Blocked By: GHC failed | Related Tickets: Test Case: | Blocking: | Differential Revisions: | -------------------------------------+------------------------------------- Comment (by rwbarton): From `rts/package.conf.in` {{{ extra-libraries: #ifdef HAVE_LIBM "m" /* for ldexp() */ #endif #ifdef HAVE_LIBRT , "rt" #endif #ifdef HAVE_LIBDL , "dl" #endif ... }}} suggests that `HAVE_LIBDL` is not set for you. What is the output of `inplace/bin/ghc-pkg describe rts`? What does `include/ghcautoconf.h` say about `HAVE_LIBDL`? -- Ticket URL: http://ghc.haskell.org/trac/ghc/ticket/9589#comment:2 GHC http://www.haskell.org/ghc/ The Glasgow Haskell Compiler