[GHC] #9982: cross building integer-gmp is running target program on build host

GHC ghc-devs at haskell.org
Tue Jan 13 19:53:02 UTC 2015


#9982: cross building integer-gmp is running target program on build host
-------------------------------------+-------------------------------------
              Reporter:  newsham     |             Owner:
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:
             Component:  Build       |           Version:  7.8.4
  System                             |  Operating System:  Linux
              Keywords:              |   Type of failure:  Building GHC
          Architecture:              |  failed
  Unknown/Multiple                   |        Blocked By:
             Test Case:              |   Related Tickets:
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 I am trying to build ghc-7.8.4 as a cross compiler. After stage1 finishes
 and it tries to build libraries it detects that it can link against an
 existing -gmp and gmp.h (which is what I intended) and starts building the
 libraries/integer-gmp package against it. During the build it builds the
 inplace/lib/bin/mkGmpDerivedConstants binary for the target (genode) and
 then runs it on the build host (ubuntu linux), which leads to failure.

 The error emitted during the build is:

 "cp" -p libraries/integer-
 gmp/mkGmpDerivedConstants/dist/build/tmp/mkGmpDerivedConstants
 inplace/lib/bin/mkGmpDerivedConstants
 "rm" -f
 inplace/lib/mkGmpDerivedConstants
 echo '#!/bin/bash'                                                   >>
 inplace/lib/mkGmpDerivedConstants
 echo
 'executablename="/u1/home/newsham/src/genode/ghc-7.8.4/inplace/lib/bin/mkGmpDerivedConstants"'
 >> inplace/lib/mkGmpDerivedConstants
 echo 'datadir="/u1/home/newsham/src/genode/ghc-7.8.4/inplace/lib"'
 >> inplace/lib/mkGmpDerivedConstants
 echo 'bindir="/u1/home/newsham/src/genode/ghc-7.8.4/inplace/bin"'
 >> inplace/lib/mkGmpDerivedConstants
 echo 'topdir="/u1/home/newsham/src/genode/ghc-7.8.4/inplace/lib"'
 >> inplace/lib/mkGmpDerivedConstants
 echo 'pgmgcc="/u1/home/newsham/src/genode/ghc-7.8.4/wrapper-gcc"'
 >> inplace/lib/mkGmpDerivedConstants
 echo 'export LD_LIBRARY_PATH=":$LD_LIBRARY_PATH"' >>
 inplace/lib/mkGmpDerivedConstants
 echo 'exec "$executablename" ${1+"$@"}'                     >>
 inplace/lib/mkGmpDerivedConstants
 chmod +x
 inplace/lib/mkGmpDerivedConstants
 inplace/lib/mkGmpDerivedConstants > libraries/integer-
 gmp/mkGmpDerivedConstants/dist/GmpDerivedConstants.h
 inplace/lib/mkGmpDerivedConstants: line 8:
 /u1/home/newsham/src/genode/ghc-7.8.4/inplace/lib/bin/mkGmpDerivedConstants:
 No such file or directory
 make[1]: *** [libraries/integer-
 gmp/mkGmpDerivedConstants/dist/GmpDerivedConstants.h] Error 127
 make[1]: *** Deleting file `libraries/integer-
 gmp/mkGmpDerivedConstants/dist/GmpDerivedConstants.h'
 make: *** [all] Error 2

 my build environment is large and complex so I'm not providing all details
 here, but I will be happy to provide any supporting material needed, on
 request.

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


More information about the ghc-tickets mailing list