[GHC] #9589: Building GHC as a cross-compiler for armhf fails with undefined reference to `dlopen', `dlerror', `dlsym'

GHC ghc-devs at haskell.org
Sun Sep 14 04:44:55 UTC 2014


#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 jpmasseria):

 `inplace/bin/ghc-pkg describe rts` outputs:



 {{{
 johnma at aspire-ubuntu:~/ghc$ inplace/bin/ghc-pkg describe rts
 name: rts
 version: 1.0
 id: builtin_rts
 license: BSD3
 copyright:
 maintainer: glasgow-haskell-users at haskell.org
 stability:
 homepage:
 package-url:
 synopsis:
 description:
 category:
 author:
 exposed: True
 exposed-modules:
 hidden-modules:
 trusted: False
 import-dirs:
 library-dirs: /home/johnma/ghc/rts/dist/build
 hs-libraries: HSrts Cffi
 extra-libraries: m rt
 extra-ghci-libraries:
 include-dirs: /home/johnma/ghc/rts/dist/build
               /home/johnma/ghc/includes
               /home/johnma/ghc/includes/dist-derivedconstants/header
 includes: Stg.h
 depends:
 hugs-options:
 cc-options:
 ld-options: "-Wl,-u,ghczmprim_GHCziTypes_Izh_static_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Czh_static_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Fzh_static_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Dzh_static_info"
             "-Wl,-u,base_GHCziPtr_Ptr_static_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Wzh_static_info"
             "-Wl,-u,base_GHCziInt_I8zh_static_info"
             "-Wl,-u,base_GHCziInt_I16zh_static_info"
             "-Wl,-u,base_GHCziInt_I32zh_static_info"
             "-Wl,-u,base_GHCziInt_I64zh_static_info"
             "-Wl,-u,base_GHCziWord_W8zh_static_info"
             "-Wl,-u,base_GHCziWord_W16zh_static_info"
             "-Wl,-u,base_GHCziWord_W32zh_static_info"
             "-Wl,-u,base_GHCziWord_W64zh_static_info"
             "-Wl,-u,base_GHCziStable_StablePtr_static_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Izh_con_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Czh_con_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Fzh_con_info"
             "-Wl,-u,ghczmprim_GHCziTypes_Dzh_con_info"
             "-Wl,-u,base_GHCziPtr_Ptr_con_info"
             "-Wl,-u,base_GHCziPtr_FunPtr_con_info"
             "-Wl,-u,base_GHCziStable_StablePtr_con_info"
             "-Wl,-u,ghczmprim_GHCziTypes_False_closure"
             "-Wl,-u,ghczmprim_GHCziTypes_True_closure"
             "-Wl,-u,base_GHCziPack_unpackCString_closure"
             "-Wl,-u,base_GHCziIOziException_stackOverflow_closure"
             "-Wl,-u,base_GHCziIOziException_heapOverflow_closure"
             "-Wl,-u,base_ControlziExceptionziBase_nonTermination_closure"
 "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnMVar_closure"
 "-Wl,-u,base_GHCziIOziException_blockedIndefinitelyOnSTM_closure"
 "-Wl,-u,base_ControlziExceptionziBase_nestedAtomically_closure"
             "-Wl,-u,base_GHCziWeak_runFinalizzerBatch_closure"
             "-Wl,-u,base_GHCziTopHandler_flushStdHandles_closure"
             "-Wl,-u,base_GHCziTopHandler_runIO_closure"
             "-Wl,-u,base_GHCziTopHandler_runNonIO_closure"
             "-Wl,-u,base_GHCziConcziIO_ensureIOManagerIsRunning_closure"
 "-Wl,-u,base_GHCziConcziIO_ioManagerCapabilitiesChanged_closure"
             "-Wl,-u,base_GHCziConcziSync_runSparks_closure"
             "-Wl,-u,base_GHCziConcziSignal_runHandlers_closure"
 framework-dirs:
 frameworks:
 haddock-interfaces:
 haddock-html:
 pkgroot: "/home/johnma/ghc/inplace/lib"
 }}}

 `includes/ghcautoconf.h` contains:


 {{{

 /* Define to 1 if you need -ldl to get dlopen(). */
 /* #undef HAVE_LIBDL */
 }}}

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/9589#comment:3>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list