Help Me Port Haskell to Haiku OS
|Reported by:||mcandre||Owned by:|
|Type of failure:||Building GHC failed||Test Case:|
|Related Tickets:||Differential Rev(s):|
I'm following the 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 source tarball.
The Perl boot script borks because Perl isn't always in /usr/bin. Solution: Patch
boot with 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?