[GHC] #12740: generic Linux installer contains dynamically linked helpers failing to run on non glibc systems

GHC ghc-devs at haskell.org
Wed Oct 19 21:48:45 UTC 2016


#12740: generic Linux installer contains dynamically linked helpers failing to run
on non glibc systems
-------------------------------------+-------------------------------------
           Reporter:  gliptak        |             Owner:
               Type:  bug            |            Status:  new
           Priority:  normal         |         Milestone:
          Component:  Build System   |           Version:  8.0.1
           Keywords:                 |  Operating System:  Linux
       Architecture:  x86_64         |   Type of failure:  Installing GHC
  (amd64)                            |  failed
          Test Case:                 |        Blocked By:
           Blocking:                 |   Related Tickets:
Differential Rev(s):                 |         Wiki Page:
-------------------------------------+-------------------------------------
 I downloaded
 http://downloads.haskell.org/~ghc/8.0.1/ghc-8.0.1-x86_64-deb8-linux.tar.xz
 and running configure on Alpine Linux (musl based) failed. The immediate
 cause seems to be that ghc-* files are not linked statically.

 {{{
 /tmp/ghc-8.0.1 # file utils/ghc-cabal/dist-install/build/tmp/ghc-cabal
 utils/ghc-cabal/dist-install/build/tmp/ghc-cabal: ELF 64-bit LSB
 executable, x86-64, version 1 (SYSV), dynamically linked, interpreter
 /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32,
 BuildID[sha1]=6359ffd9a860387d6f91c40dccceaddd493f7a54, not stripped
 /tmp/ghc-8.0.1 # file utils/ghc-pwd/dist-install/build/tmp/ghc-pwd
 utils/ghc-pwd/dist-install/build/tmp/ghc-pwd: ELF 64-bit LSB executable,
 x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-
 linux-x86-64.so.2, for GNU/Linux 2.6.32,
 BuildID[sha1]=9fcf1bc38db049d6bafc6e611c09b6700071bfbb, not stripped
 }}}

 Could static linkage be considered for these helpers allowing them to run
 on non-glibc setups?

 Thanks

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


More information about the ghc-tickets mailing list