Skip to content

cross building integer-gmp is running target program on build host

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.

Trac metadata
Trac field Value
Version 7.8.4
Type Bug
TypeOfFailure OtherFailure
Priority normal
Resolution Unresolved
Component Build System
Test case
Differential revisions
BlockedBy
Related
Blocking
CC
Operating system
Architecture
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information