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

GHC ghc-devs at haskell.org
Tue Sep 9 18:48:22 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.4
             Component:  Build System         |          Version:  7.8.3
            Resolution:                       |         Keywords:
      Operating System:  Linux                |     Architecture:  arm
       Type of failure:  Building GHC failed  |       Difficulty:  Unknown
             Test Case:                       |       Blocked By:
              Blocking:                       |  Related Tickets:
Differential Revisions:                       |
----------------------------------------------+---------------------------

Comment (by cetu86):

 I did the maintainer-clean, then a

 {{{
 perl boot
 }}}

 and then again

 {{{
 ./configure --target=arm-unknown-linux-gnueabi --enable-unregisterised
 --with-gcc=`which arm-unknown-linux-gnueabi-gcc` --with-nm=/usr/bin/nm
 --prefix=/home/daniel/haskell/ghc-build  && make quick-cross
 }}}
 Now I get

 {{{
 mv libraries/integer-gmp/gmp/gmpbuild/ltmain.sh libraries/integer-
 gmp/gmp/gmpbuild/ltmain.sh.orig
 sed 's#cmd //c echo "\$1"#cmd /c "echo $1"#' < libraries/integer-
 gmp/gmp/gmpbuild/ltmain.sh.orig > libraries/integer-
 gmp/gmp/gmpbuild/ltmain.sh
 cd libraries/integer-gmp/gmp; (set -o igncr 2>/dev/null) && set -o igncr;
 export SHELLOPTS; \
     PATH=`pwd`:$PATH; \
     export PATH; \
     cd gmpbuild && \
     CC=/home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-unknown-
 linux-gnueabi-gcc NM=/usr/bin/nm AR=/home/daniel/x-tools/arm-unknown-
 linux-gnueabi/bin/arm-unknown-linux-gnueabi-ar /bin/sh ./configure \
           --enable-shared=no \
           --host=x86_64-unknown-linux --build=x86_64-unknown-linux
 checking build system type... x86_64-unknown-linux-gnu
 checking host system type... x86_64-unknown-linux-gnu
 checking for a BSD-compatible install... /usr/bin/install -c
 checking whether build environment is sane... yes
 checking for a thread-safe mkdir -p... /usr/bin/mkdir -p
 checking for gawk... gawk
 checking whether make sets $(MAKE)... yes
 checking whether to enable maintainer-specific portions of Makefiles... no
 checking ABI=64
 checking whether /home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-
 unknown-linux-gnueabi-gcc is gcc... yes
 checking compiler /home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-
 unknown-linux-gnueabi-gcc -O2 -pedantic -m64 ... no
 checking ABI=32
 checking whether /home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-
 unknown-linux-gnueabi-gcc is gcc... yes
 checking compiler /home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-
 unknown-linux-gnueabi-gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
 checking compiler /home/daniel/x-tools/arm-unknown-linux-gnueabi/bin/arm-
 unknown-linux-gnueabi-gcc -O2 -pedantic -fomit-frame-pointer ... no,
 program does not run
 configure: error: could not find a working compiler, see config.log for
 details
 make[1]: *** [libraries/integer-gmp/gmp/gmp.h] Error 1
 make: *** [quick-cross] Error 2

 }}}

 Again, it's seems like it's trying to compile gmp with an arm compiler for
 x64, or am I wrong?

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


More information about the ghc-tickets mailing list