[GHC] #5347: Help Me Port Haskell to Haiku OS

GHC cvs-ghc at haskell.org
Tue Jul 26 03:37:31 CEST 2011


#5347: Help Me Port Haskell to Haiku OS
---------------------------------+------------------------------------------
    Reporter:  mcandre           |       Owner:                     
        Type:  bug               |      Status:  new                
    Priority:  normal            |   Component:  Compiler           
     Version:  7.0.3             |    Keywords:                     
    Testcase:                    |   Blockedby:                     
          Os:  Unknown/Multiple  |    Blocking:                     
Architecture:  Unknown/Multiple  |     Failure:  Building GHC failed
---------------------------------+------------------------------------------
 I'm following the
 [http://hackage.haskell.org/trac/ghc/wiki/Building/Porting
 Building/Porting] tutorial, and a few bugs are slowing the process.

 Haiku's version of Git has poor OpenSSL support, so "git clone" borks.
 Solution: Download and unpack the
 [http://www.haskell.org/ghc/download_ghc_7_0_4#sources source tarball].

 The Perl boot script borks because Perl isn't always in /usr/bin.
 Solution: Patch {{{ boot }}} with [https://gist.github.com/943516
 boot.patch].

 In Haiku, the {{{ configure }}} step fails, seemingly because it ignores
 the {{{ --enable-hc-boot }}} and tries to use a non-existing GHC to build
 GHC.

 {{{
 ~/Desktop/ghc-7.0.3> setgcc gcc4
 ~/Desktop/ghc-7.0.3> gcc --version
 gcc (GCC) 4.4.4
 Copyright (C) 2010 Free Software Foundation, Inc.
 This is free software; see the source for copying conditions.  There is NO
 warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
 PURPOSE.
 ~/Desktop/ghc-7.0.3> export PLATFORM=i386-unknown-haiku
 ~/Desktop/ghc-7.0.3> ./configure --enable-hc-boot --build=$PLATFORM
 --host=$PLATFORM --target=$PLATFORM
 checking for gfind... no
 checking for find... /bin/find
 checking for sort... /bin/sort
 checking for ghc... no
 checking build system type... i386-unknown-haiku
 checking host system type... i386-unknown-haiku
 checking target system type... i386-unknown-haiku
 This GHC () does not generate code for the build platform
    GHC target platform    :
    Desired build platform : i386-unknown-haiku
 }}}

 There is no GHC because I am trying to port GHC to Haiku!

 The above configure command works fine in Mac OS X, my host platform. But
 the tutorial needs to copy files created during the {{{ configure }}} step
 from Haiku to Mac OS X in order to build a GHC to work from while porting
 GHC to Haiku.

 What am I doing wrong?

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



More information about the Glasgow-haskell-bugs mailing list