[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 19:56:26 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):

 Here's what's in my `config.log` related to `-ldl`:


 {{{
 configure:10619: /home/johnma/mygcc -o conftest -g -O2 -fno-stack-
 protector   conftest.c -ldl   >&5
 /tmp/ccqfJgej.o: In function `main':
 /home/johnma/ghc/conftest.c:99: warning: Using 'dlopen' in statically
 linked applications requires at runtime the shared libraries from the
 glibc version used for linking
 /home/johnma/rpi-toolchain/rootfs/usr/lib/arm-linux-
 gnueabihf/libdl.a(dlopen.o): In function `dlopen':
 (.text+0xc): undefined reference to `__dlopen'
 collect2: error: ld returned 1 exit status
 configure:10619: $? = 1
 }}}

 This is strange because I am using the tool chain recommended here:
 [https://ghc.haskell.org/trac/ghc/wiki/Building/Preparation/RaspberryPi]

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


More information about the ghc-tickets mailing list