Chatsiri Ratana | 19 Oct 11:50 2012
Picon

Build GHC to i386 platform represent an error after run command "make bootstrapping-files"

Hello All,


          I using GHC for x86_64 platform compiles the GHC  source in order to port code to the i386 platform. Steps for building  GHC to i386 platform at link[1]. Configure before initial other steps as completed follow by

$./configure --enable-hc-boot --build=i386-unknown-linux  --host=i386-unknown-linux --target=i386-unknown-linux   --with-gcc=/usr/bin/gcc   --with-ld=/usr/bin/ld --with-nm=/usr/bin/nm --with-ghc=/usr/lib/ghc/bin/ghc

----------------------------------------------------------------------
Configure completed successfully.

   Building GHC version  : 7.7.20120806

   Build platform        : i386-unknown-linux
   Host platform         : i386-unknown-linux
   Target platform       : i386-unknown-linux

   Bootstrapping from HC files.

   Using GCC                 : /usr/bin/gcc
      which is version       : 4.6.3
   Building a cross compiler : NO
   Porting to foreign arch   : NO
   Alien script              : 

   ld       : /usr/bin/ld
   Happy    :  ()
   Alex     :  ()
   Python   : /usr/bin/python
   Perl     : /usr/bin/perl
   dblatex  : 
   xsltproc : 

   HsColour was not found; documentation will not contain source links

   Building DocBook HTML documentation : NO
   Building DocBook PS documentation   : NO
   Building DocBook PDF documentation  : NO
----------------------------------------------------------------------

 
Next step for making  executable file  by  command "make bootstrapping-files". It's show an error such as below.

$ make bootstrapping-files
make -r --no-print-directory -f ghc.mk bootstrapping-files
/usr/bin/find: `libraries/ghc-prim/dist-install/build': No such file or directory
/usr/bin/find: `libraries/ghc-prim/dist-install/build': No such file or directory
/usr/bin/find: `libraries/integer-gmp/dist-install/build': No such file or directory
/usr/bin/find: `libraries/integer-gmp/dist-install/build': No such file or directory
/usr/bin/find: `libraries/base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/filepath/dist-install/build': No such file or directory
/usr/bin/find: `libraries/filepath/dist-install/build': No such file or directory
/usr/bin/find: `libraries/array/dist-install/build': No such file or directory
/usr/bin/find: `libraries/array/dist-install/build': No such file or directory
/usr/bin/find: `libraries/deepseq/dist-install/build': No such file or directory
/usr/bin/find: `libraries/deepseq/dist-install/build': No such file or directory
/usr/bin/find: `libraries/bytestring/dist-install/build': No such file or directory
/usr/bin/find: `libraries/bytestring/dist-install/build': No such file or directory
/usr/bin/find: `libraries/containers/dist-install/build': No such file or directory
/usr/bin/find: `libraries/containers/dist-install/build': No such file or directory
/usr/bin/find: `libraries/old-locale/dist-install/build': No such file or directory
/usr/bin/find: `libraries/old-locale/dist-install/build': No such file or directory
/usr/bin/find: `libraries/old-time/dist-install/build': No such file or directory
/usr/bin/find: `libraries/old-time/dist-install/build': No such file or directory
/usr/bin/find: `libraries/time/dist-install/build': No such file or directory
/usr/bin/find: `libraries/time/dist-install/build': No such file or directory
/usr/bin/find: `libraries/unix/dist-install/build': No such file or directory
/usr/bin/find: `libraries/unix/dist-install/build': No such file or directory
/usr/bin/find: `libraries/directory/dist-install/build': No such file or directory
/usr/bin/find: `libraries/directory/dist-install/build': No such file or directory
/usr/bin/find: `libraries/process/dist-install/build': No such file or directory
/usr/bin/find: `libraries/process/dist-install/build': No such file or directory
/usr/bin/find: `libraries/hpc/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/hpc/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/hpc/dist-install/build': No such file or directory
/usr/bin/find: `libraries/hpc/dist-install/build': No such file or directory
/usr/bin/find: `libraries/pretty/dist-install/build': No such file or directory
/usr/bin/find: `libraries/pretty/dist-install/build': No such file or directory
/usr/bin/find: `libraries/template-haskell/dist-install/build': No such file or directory
/usr/bin/find: `libraries/template-haskell/dist-install/build': No such file or directory
/usr/bin/find: `libraries/Cabal/Cabal/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/Cabal/Cabal/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/Cabal/Cabal/dist-install/build': No such file or directory
/usr/bin/find: `libraries/Cabal/Cabal/dist-install/build': No such file or directory
/usr/bin/find: `libraries/binary/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/binary/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/binary/dist-install/build': No such file or directory
/usr/bin/find: `libraries/binary/dist-install/build': No such file or directory
/usr/bin/find: `libraries/bin-package-db/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/bin-package-db/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/bin-package-db/dist-install/build': No such file or directory
/usr/bin/find: `libraries/bin-package-db/dist-install/build': No such file or directory
/usr/bin/find: `libraries/hoopl/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/hoopl/dist-boot/build': No such file or directory
/usr/bin/find: `libraries/hoopl/dist-install/build': No such file or directory
/usr/bin/find: `libraries/hoopl/dist-install/build': No such file or directory
/usr/bin/find: `libraries/transformers/dist-install/build': No such file or directory
/usr/bin/find: `libraries/transformers/dist-install/build': No such file or directory
/usr/bin/find: `libraries/xhtml/dist-install/build': No such file or directory
/usr/bin/find: `libraries/xhtml/dist-install/build': No such file or directory
/usr/bin/find: `libraries/terminfo/dist-install/build': No such file or directory
/usr/bin/find: `libraries/terminfo/dist-install/build': No such file or directory
/usr/bin/find: `libraries/haskeline/dist-install/build': No such file or directory
/usr/bin/find: `libraries/haskeline/dist-install/build': No such file or directory
/usr/bin/find: `libraries/integer-gmp/dist-install/build': No such file or directory
/usr/bin/find: `compiler/stage1/build': No such file or directory
/usr/bin/find: `compiler/stage1/build': No such file or directory
/usr/bin/find: `compiler/stage2/build': No such file or directory
/usr/bin/find: `compiler/stage2/build': No such file or directory
/usr/bin/find: `libraries/haskell98/dist-install/build': No such file or directory
/usr/bin/find: `libraries/haskell98/dist-install/build': No such file or directory
/usr/bin/find: `libraries/haskell2010/dist-install/build': No such file or directory
/usr/bin/find: `libraries/haskell2010/dist-install/build': No such file or directory
/usr/bin/find: `libraries/random/dist-install/build': No such file or directory
/usr/bin/find: `libraries/random/dist-install/build': No such file or directory
/usr/bin/find: `libraries/primitive/dist-install/build': No such file or directory
/usr/bin/find: `libraries/primitive/dist-install/build': No such file or directory
/usr/bin/find: `libraries/vector/dist-install/build': No such file or directory
/usr/bin/find: `libraries/vector/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-interface/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-interface/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-seq/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-seq/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-par/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-prim-par/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-base/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-boxed/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-boxed/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-copy/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-copy/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-vseg/dist-install/build': No such file or directory
/usr/bin/find: `libraries/dph/dph-lifted-vseg/dist-install/build': No such file or directory
/bin/sh: 1: Syntax error: Unterminated quoted string
make[1]: *** [includes/dist-derivedconstants/build/tmp/mkDerivedConstants] Error 2
make: *** [bootstrapping-files] Error 2

Who have strategies or methods for solving build step at here?

[1] http://hackage.haskell.org/trac/ghc/wiki/Building/Porting

Thank in advance
Chatsiri Rattana
--
:--------------------------------------------------------


_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe <at> haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Gmane