[GHC] #6086: Cross compilation fails using system linker for other architecture binaries

GHC ghc-devs at haskell.org
Fri Sep 12 17:42:45 UTC 2014


#6086: Cross compilation fails using system linker for other architecture binaries
----------------------------------------------+---------------------------
              Reporter:  mtjm                 |            Owner:
                  Type:  bug                  |           Status:  closed
              Priority:  high                 |        Milestone:  7.8.4
             Component:  Build System         |          Version:  7.8.3
            Resolution:  fixed                |         Keywords:
      Operating System:  Linux                |     Architecture:  arm
       Type of failure:  Building GHC failed  |       Difficulty:  Unknown
             Test Case:                       |       Blocked By:
              Blocking:  9421                 |  Related Tickets:
Differential Revisions:                       |
----------------------------------------------+---------------------------

Comment (by jpmasseria):

 Replying to [comment:23 cetu86]:

 Thanks for the continued help.  I'm still stuck where my GHC build doesn't
 find ncurses.

 I have done the following (my main issue is that I don't really understand
 where I need to "install" my cross compiled version of ncurses.


 {{{
     wget
 ftp.de.debian.org/debian/pool/main/n/ncurses/ncurses_5.9.orig.tar.gz
     tar xf ncurses_5.9.orig.tar.gz
     cd ncurses-5.9/
     ./configure --target=arm-linux-gnueabihf --with-gcc=arm-linux-
 gnueabihf-gcc --target=arm-linux-gnueabihf --prefix=/home/johnma/arm-
 linux-gnueabihf
     make && make install
 }}}

 As I understand it this placed the cross compiled `ncurses` into my
 directory `/home/johnma/arm-linux/gnueabihf`

 I then tried to build GHC using this as follows:


 {{{
     cd ../ghc/
     ./configure --target=arm-linux-gnueabihf --enable-unregisterised
 --with-gcc=`which arm-linux-gnueabihf-gcc` --with-nm=/usr/bin/nm --with-
 sysroot=/home/johnma/arm-linux-gnueabihf
     make -j2
 }}}

 Needless to say that achieved the same ncurses not found error.  Again, my
 confusion is how I tell the GHC build to find this ncurses.

 Thank you!

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


More information about the ghc-tickets mailing list