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

GHC ghc-devs at haskell.org
Fri Jul 18 17:08:46 UTC 2014


#6086: Cross compilation fails using system linker for other architecture binaries
-------------------------------------+-------------------------------------
              Reporter:  mtjm        |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  high        |         Milestone:  7.8.1
             Component:  Build       |           Version:  7.5
  System                             |          Keywords:
            Resolution:              |  Operating System:  Linux
Differential Revisions:              |   Type of failure:  Building GHC
          Architecture:              |  failed
  Unknown/Multiple                   |         Test Case:
            Difficulty:  Unknown     |          Blocking:
            Blocked By:              |
       Related Tickets:              |
-------------------------------------+-------------------------------------
Changes (by boo):

 * owner:  simonmar =>
 * status:  closed => new
 * resolution:  fixed =>


Comment:

 I'm just trying to crosscompile GHC-7.8.3 from Linux (x86) to Raspberry Pi
 following [wiki:Building/Preparation/RaspberryPi this instruction] and
 getting following error:
 {{{
 "inplace/bin/ghc-cabal" configure libraries/ghc-prim dist-install ""
 --with-ghc="/home/boo/projects/rpi/ghc-7.8.3/inplace/bin/ghc-stage1"
 --with-ghc-pkg="/home/boo/projects/rpi/ghc-7.8.3/inplace/bin/ghc-pkg"
 --flag=include-ghc-prim --disable-library-for-ghci --enable-library-
 vanilla --disable-library-profiling --enable-shared --configure-
 option=CFLAGS=" -fno-stack-protector   " --configure-option=LDFLAGS="   "
 --configure-option=CPPFLAGS="   " --gcc-options=" -fno-stack-protector
 " --configure-option=--host=arm-unknown-linux-gnueabihf --with-
 gcc="/usr/bin/gcc" --with-ld="/home/boo/projects/rpi/tools/arm-bcm2708
 /gcc-linaro-arm-linux-gnueabihf-raspbian/bin/arm-linux-gnueabihf-ld"
 --configure-option=--with-cc="/usr/bin/gcc" --with-
 ar="/home/boo/projects/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-
 gnueabihf-raspbian/bin/arm-linux-gnueabihf-ar" --with-
 ranlib="/home/boo/projects/rpi/tools/arm-bcm2708/gcc-linaro-arm-linux-
 gnueabihf-raspbian/bin/arm-linux-gnueabihf-ranlib" --with-
 alex="/usr/local/bin/alex" --with-happy="/usr/local/bin/happy"
 Configuring ghc-prim-0.3.1.0...
 ghc-cabal: /tmp/3624.o: does not exist
 make[1]: *** [libraries/ghc-prim/dist-install/package-data.mk] Error 1
 make: *** [all] Error 2
 }}}

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


More information about the ghc-tickets mailing list