[GHC] #7942: aarch64 support in ghc

GHC ghc-devs at haskell.org
Thu Oct 2 05:24:50 UTC 2014


#7942: aarch64 support in ghc
-------------------------------------+-------------------------------------
              Reporter:  jcapik      |            Owner:
                  Type:  feature     |           Status:  closed
  request                            |        Milestone:  7.10.1
              Priority:  normal      |          Version:
             Component:  Compiler    |         Keywords:
            Resolution:  fixed       |     Architecture:  arm
      Operating System:  Linux       |       Difficulty:  Unknown
       Type of failure:  GHC         |       Blocked By:
  doesn't work at all                |  Related Tickets:  7623, 8664
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------

Comment (by juhpetersen):

 (another +1 for NCG for arm and arm64! :-)

 Likely I should open a new ticket, but I am having trouble with
 installing ghc-7.8.3 plus above patch on Fedora 21 ARM64 (aarch64).

 {{{
 "inplace/bin/ghc-cabal" copy libraries/haskell2010 dist-install "strip"
 '/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64' '/usr'
 '/usr/lib64/ghc-7.8.3' '/usr/share/doc/ghc/html/libraries' 'v dyn '
 Installing library in
 /builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/haskell2010-1.1.2.0
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin
 /ghc-pkg" --force --global-package-db
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/package.conf.d"
 update rts/dist/package.conf.install
 Reading package info from "rts/dist/package.conf.install" ... done.
 rts-1.0: Warning: library-dirs: /usr/lib64/ghc-7.8.3/rts-1.0 doesn't exist
 or isn't a directory
 rts-1.0: Warning: include-dirs: /usr/lib64/ghc-7.8.3/include doesn't exist
 or isn't a directory
 rts-1.0: cannot find any of ["libHSrts.a","libHSrts.p_a","libHSrts-
 ghc7.8.3.so","libHSrts-ghc7.8.3.dylib","HSrts-ghc7.8.3.dll"] on library
 path (ignoring)
 "inplace/bin/ghc-cabal" register libraries/ghc-prim dist-install
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin/ghc"
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin
 /ghc-pkg"
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3"
 '/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64' '/usr'
 '/usr/lib64/ghc-7.8.3' '/usr/share/doc/ghc/html/libraries' NO
 Warning: cannot determine version of
 /builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin
 /ghc-pkg
 :
 ""
 Registering ghc-prim-0.3.1.0...
 "inplace/bin/ghc-cabal" register libraries/integer-gmp dist-install
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin/ghc"
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin
 /ghc-pkg"
 "/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3"
 '/builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64' '/usr'
 '/usr/lib64/ghc-7.8.3' '/usr/share/doc/ghc/html/libraries' NO
 Warning: cannot determine version of
 /builddir/build/BUILDROOT/ghc-7.8.3-38.fc22.aarch64/usr/lib64/ghc-7.8.3/bin
 /ghc-pkg
 :
 ""
 ghc-cabal: Installed package ID not registered: "ghc-prim-0.3.1.0-inplace"
 ghc.mk:901: recipe for target 'install_packages' failed
 Makefile:64: recipe for target 'install' failed
 make[1]: *** [install_packages] Error 1
 make: *** [install] Error 2
 }}}

 The problem seems to be that the installed (dynlinked) ghc-pkg does no
 output anything!
 (eg "ghc-pkg --version" returns "", same for --help.)

 When I try the built binaries I find that
 ghc-7.8.3/utils/ghc-pkg/dist/build/tmp/ghc-pkg (which is statically
 linked)
 works normally (ie it outputs --help and --version) whereas
 $DESTDIR/$libdir/ghc-7.8.3/bin/ghc-pkg gives no output on stdout!

 Maybe I should try installing statically linked ghc and see if that makes
 difference.

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


More information about the ghc-tickets mailing list