RE: [Haskell-cafe] Announcing GHC iOS

Great. Please thank Stephen too.. I don't have his email.
Just go ahead and modify
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners
http://ghc.haskell.org/trac/ghc/wiki/Platforms
I assume iOS will become a tier-2 platform?
Simon
From: Luke Iannini [mailto:lukexipd@gmail.com]
Sent: 30 August 2013 09:07
To: Simon Peyton-Jones
Cc: Austin Seipp
Subject: Re: [Haskell-cafe] Announcing GHC iOS
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean - I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).
Cheers
Luke
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones

I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down
the line — and I've added myself while I wait to hear from Stephen. It
looks like the mailto links on the wiki (e.g. the names in the Platform
Maintainers section) aren't working, by the way:
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers
Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler,
but I have noticed a problem with installation of cross-ghc last time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross
compiler the same day, the cross-compiler's
libraries and executables get overwritten
by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a
cross-prefix, like employed in bin/ ?
$ ls <prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
On 8/31/13, Luke Iannini
I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the Platform Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

Hi Gabor!
Yes, I believe that's still the case (we're working around it by using
different prefixes for each architecture at the moment). And I think we
should definitely do what you propose. I'll see if I can get a patch
together shortly (or if someone already knows exactly what to do and wants
to do it first, feel free! : )).
Cheers
Luke
On Sat, Aug 31, 2013 at 4:50 AM, Gabor Greif
Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler, but I have noticed a problem with installation of cross-ghc last time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross compiler the same day, the cross-compiler's libraries and executables get overwritten by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a cross-prefix, like employed in bin/ ?
$ ls <prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the Platform Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM
On 8/31/13, Luke Iannini
wrote: patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

On 8/31/13, Luke Iannini
Hi Gabor! Yes, I believe that's still the case (we're working around it by using different prefixes for each architecture at the moment). And I think we should definitely do what you propose. I'll see if I can get a patch together shortly (or if someone already knows exactly what to do and wants to do it first, feel free! : )).
This is probably where one should start, https://github.com/ghc/ghc/blob/master/mk/install.mk.in#L108 but be careful with the 'if's in the makefile! Cheers, Gabor
Cheers Luke
On Sat, Aug 31, 2013 at 4:50 AM, Gabor Greif
wrote: Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler, but I have noticed a problem with installation of cross-ghc last time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross compiler the same day, the cross-compiler's libraries and executables get overwritten by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a cross-prefix, like employed in bin/ ?
$ ls <prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the Platform Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM
On 8/31/13, Luke Iannini
wrote: patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

Thanks!
This seems to do the trick wonderfully.
-ghclibdir = $(libdir)/ghc-$(ProjectVersion)
+ghclibdir = $(libdir)/$(CrossCompilePrefix)ghc-$(ProjectVersion)
I've just done a clean build with this and it's working perfectly.
On Sat, Aug 31, 2013 at 2:26 PM, Gabor Greif
On 8/31/13, Luke Iannini
wrote: Hi Gabor! Yes, I believe that's still the case (we're working around it by using different prefixes for each architecture at the moment). And I think we should definitely do what you propose. I'll see if I can get a patch together shortly (or if someone already knows exactly what to do and wants to do it first, feel free! : )).
This is probably where one should start,
https://github.com/ghc/ghc/blob/master/mk/install.mk.in#L108
but be careful with the 'if's in the makefile!
Cheers,
Gabor
Cheers Luke
On Sat, Aug 31, 2013 at 4:50 AM, Gabor Greif
wrote: Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler, but I have noticed a problem with installation of cross-ghc last time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross compiler the same day, the cross-compiler's libraries and executables get overwritten by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a cross-prefix, like employed in bin/ ?
$ ls <prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
On 8/31/13, Luke Iannini
wrote: I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the
Platform
Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

On 9/1/13, Luke Iannini
Thanks!
This seems to do the trick wonderfully. -ghclibdir = $(libdir)/ghc-$(ProjectVersion) +ghclibdir = $(libdir)/$(CrossCompilePrefix)ghc-$(ProjectVersion)
I've just done a clean build with this and it's working perfectly.
Great! Do you plan to push this? (Please do!) Cheers, Gabor
On Sat, Aug 31, 2013 at 2:26 PM, Gabor Greif
wrote: On 8/31/13, Luke Iannini
wrote: Hi Gabor! Yes, I believe that's still the case (we're working around it by using different prefixes for each architecture at the moment). And I think we should definitely do what you propose. I'll see if I can get a patch together shortly (or if someone already knows exactly what to do and wants to do it first, feel free! : )).
This is probably where one should start,
https://github.com/ghc/ghc/blob/master/mk/install.mk.in#L108
but be careful with the 'if's in the makefile!
Cheers,
Gabor
Cheers Luke
On Sat, Aug 31, 2013 at 4:50 AM, Gabor Greif
wrote: Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler, but I have noticed a problem with installation of cross-ghc last time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross compiler the same day, the cross-compiler's libraries and executables get overwritten by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a cross-prefix, like employed in bin/ ?
$ ls <prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
On 8/31/13, Luke Iannini
wrote: I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the
Platform
Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp
*Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **

I've added a ticket to trac with the patch (I don't have commit access)
http://ghc.haskell.org/trac/ghc/ticket/8217
Cheers
Luke
On Mon, Sep 2, 2013 at 4:36 AM, Gabor Greif
On 9/1/13, Luke Iannini
wrote: Thanks!
This seems to do the trick wonderfully. -ghclibdir = $(libdir)/ghc-$(ProjectVersion) +ghclibdir = $(libdir)/$(CrossCompilePrefix)ghc-$(ProjectVersion)
I've just done a clean build with this and it's working perfectly.
Great! Do you plan to push this? (Please do!)
Cheers,
Gabor
On Sat, Aug 31, 2013 at 2:26 PM, Gabor Greif
wrote: On 8/31/13, Luke Iannini
wrote: Hi Gabor! Yes, I believe that's still the case (we're working around it by using different prefixes for each architecture at the moment). And I think
we
should definitely do what you propose. I'll see if I can get a patch together shortly (or if someone already knows exactly what to do and wants to do it first, feel free! : )).
This is probably where one should start,
https://github.com/ghc/ghc/blob/master/mk/install.mk.in#L108
but be careful with the 'if's in the makefile!
Cheers,
Gabor
Cheers Luke
On Sat, Aug 31, 2013 at 4:50 AM, Gabor Greif
wrote:
Hi Luke, devs,
Just a quick question, as I haven't recently built a cross-compiler, but I have noticed a problem with installation of cross-ghc last
time.
$ ls <prefix>/lib/ghc-7.7.20130412
The problem is, that when someone installs a non-cross compiler the same day, the cross-compiler's libraries and executables get overwritten by the non-cross installation :-(
This probably also happens with release versions.
Can you confirm this behaviour with HEAD?
In case yes, should we consider adding a cross-prefix, like employed in bin/ ?
$ ls
<prefix>/bin/powerpc-montavista-linux-gnuspe-ghc-pkg-7.7.20130412
Of course all the links inside must be re-aligned accordingly.
Cheers,
Gabor
On 8/31/13, Luke Iannini
wrote: I will tell Stephen!
I've added iOS as Tier 2 — I bet we can find a sponsor for a buildbot down the line — and I've added myself while I wait to hear from Stephen. It looks like the mailto links on the wiki (e.g. the names in the
Platform
Maintainers section) aren't working, by the way: http://ghc.haskell.org/trac/ghc/wiki/CodeOwners.
Cheers Luke
On Fri, Aug 30, 2013 at 2:04 AM, Simon Peyton-Jones
wrote: > Great. Please thank Stephen too.. I don’t have his email.**** > > ** ** > > Just go ahead and modify **** > > http://ghc.haskell.org/trac/ghc/wiki/CodeOwners**** > > http://ghc.haskell.org/trac/ghc/wiki/Platforms**** > > ** ** > > I assume iOS will become a tier-2 platform?**** > > ** ** > > Simon**** > > ** ** > > *From:* Luke Iannini [mailto:lukexipd@gmail.com] > *Sent:* 30 August 2013 09:07 > *To:* Simon Peyton-Jones > *Cc:* Austin Seipp > > *Subject:* Re: [Haskell-cafe] Announcing GHC iOS**** > > ** ** > > Certainly! And I'd be happy to take on maintainership of GHC iOS if > that's > what you mean — I've committed to a very large project using it so > I'll > be > maintaining it anyway : ). I'd guess Stephen would feel the > same.**** > > ** ** > > And thanks so much for the kind words, it means the world! Thank > you > infinitely for Haskell : ).**** > > ** ** > > Cheers**** > > Luke**** > > ** ** > > On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < > simonpj@microsoft.com> wrote:**** > > Should we update the “Platform maintainers” on > http://ghc.haskell.org/trac/ghc/wiki/TeamGHC**** > > or the list of supported platforms on > http://ghc.haskell.org/trac/ghc/wiki/Platforms?**** > > **** > > *From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf > Of *Luke Iannini > *Sent:* 29 August 2013 21:56 > *To:* Haskell Cafe > *Subject:* Re: [Haskell-cafe] Announcing GHC iOS**** > > **** > > Stephen provided some more credits — thanks so much to all!**** > > **** > > Three connected projects concerning cross-compilation:**** > > **** > > *Registerised ARM support, added using David Terei's LLVM compiler > back > end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch > and Karel Gardas working on floating point support, ARMv7 > compatibility > and > LLVM headaches. Ben Gamari did work on the runtime linker for ARM.**** > > **** > > *General cross-compiling, with much work by Stephen Blackheath and > Gabor > Greif (though many others have worked on this).**** > > **** > > *A cross-compiler for Apple iOS. iOS-specific parts were mostly > Stephen > Blackheath with Luke Iannini on the Cabal patch, testing and > supporting > infrastructure, also with assistance and testing by Miëtek Bak and > Jonathan > Fischoff, and thanks to many others for testing; The iOS cross > compiler > was > started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle > of iPwn Studios.**** > > **** > > Thanks to Ian Lynagh for making it easy for us with integration, makefile > refactoring and patience, and to David Terei for LLVM > assistance.**** > > **** > > **** > > On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
> wrote:* > *** > > Hi all!**** > > (in case you don't read /r/haskell : ))**** > > **** > > Stephen Blackheath and I are extremely happy to report that as of > today, > GHC can natively build binaries for iOS devices and the iOS > Simulator.**** > > **** > > You'll find everything you need here: > http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS**** > > **** > > The short of it is you can use "ghc-ios myFiles.hs" to get a universal > ARMv7/ARMv7s/i386 static library to drop straight into an Xcode > project.** > ** > > **** > > Stephen's already working on some wonderful FRP-powered games, I'm > working > on a project called SpaceTime that I'll announce shortly, and you > may now > all begin creating insanely great iOS software using the finest > language > in > the world : ).**** > > **** > > Stephen deserves the lion's share of the credit for this project — > it's > been over 3 years in the making! Many thanks to Maxwell Swadling > for > generalizing static library builds into a -staticlib flag for GHC, Carter > Schonwald for compilation guidance, and the venerable Austin Seipp for > reviewing and merging our patches.**** > > **** > > ** ** >

On 9/3/13, Luke Iannini
I've added a ticket to trac with the patch (I don't have commit access) http://ghc.haskell.org/trac/ghc/ticket/8217
Thanks for your patch and testing! Ticket closed. Cheers, Gabor
Cheers Luke

Hi,
I followed the instructions on the link, downloaded ghc, created build.mk,
etc.,
and configured for ghc-ios-sim. But the make fails with the message below.
Tried installing terminfo (cabal install terminfo) but this didn't help...
ghc $ make
===--- building phase 0
make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds
make[1]: Nothing to be done for `phase_0_builds'.
===--- building phase 1
make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds
"inplace/bin/ghc-cabal" check utils/ghc-pkg
A 'license-file' is not specified.
"inplace/bin/ghc-cabal" configure utils/ghc-pkg dist-install ""
--with-ghc="/Users/dsamperi/
bin/ghc/ghc/inplace/bin/ghc-stage1"
--with-ghc-pkg="/Users/dsamperi/bin/ghc/ghc/inplace/bin/ghc-pkg"
--disable-library-for-ghci --disable-library-vanilla
--disable-library-profiling --disable-shared --configure-option=CFLAGS="
-U__i686 -fno-stack-protector " --configure-option=LDFLAGS=" "
--configure-option=CPPFLAGS=" "
--configure-option=--host=i386-apple-darwin11
--with-gcc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc"
--with-ld="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-ld"
--configure-option=--with-cc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc"
--with-ar="/opt/local/bin/ar" --with-ranlib="ranlib"
--with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy"
Configuring ghc-pkg-6.9...
ghc-cabal: At least the following dependencies are missing:
terminfo -any
make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1
make: *** [all] Error 2
On Fri, Aug 30, 2013 at 5:04 AM, Simon Peyton-Jones
Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same.****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:* *** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.****
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.** **
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

Hi Dominick,
Hm, this should have been fixed by
http://ghc.haskell.org/trac/ghc/ticket/7700 .
When you say you downloaded GHC, do you mean you cloned GHC HEAD (e.g. git
clone git://git.haskell.org/ghc.git ?) — the patches have only just landed
: ).
Also can you give us an idea of what your build environment is? (OS
version, Xcode version etc)
Cheers
Luke
On Sun, Sep 1, 2013 at 4:32 PM, Dominick Samperi
Hi,
I followed the instructions on the link, downloaded ghc, created build.mk, etc., and configured for ghc-ios-sim. But the make fails with the message below. Tried installing terminfo (cabal install terminfo) but this didn't help...
ghc $ make ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds "inplace/bin/ghc-cabal" check utils/ghc-pkg A 'license-file' is not specified. "inplace/bin/ghc-cabal" configure utils/ghc-pkg dist-install "" --with-ghc="/Users/dsamperi/ bin/ghc/ghc/inplace/bin/ghc-stage1" --with-ghc-pkg="/Users/dsamperi/bin/ghc/ghc/inplace/bin/ghc-pkg" --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS=" -U__i686 -fno-stack-protector " --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --configure-option=--host=i386-apple-darwin11 --with-gcc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc" --with-ld="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-ld" --configure-option=--with-cc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc" --with-ar="/opt/local/bin/ar" --with-ranlib="ranlib" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy" Configuring ghc-pkg-6.9... ghc-cabal: At least the following dependencies are missing: terminfo -any make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1 make: *** [all] Error 2
On Fri, Aug 30, 2013 at 5:04 AM, Simon Peyton-Jones
wrote:
Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same. ****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance.****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote: **** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.*** *
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project.* ***
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs

Hello Luke,
Thanks for the note. I'm testing on OS X 10.8.4, Xcode 4.6.3, and llvm-gcc
4.2.1
(I placed the scripts directory ghc-ios-scripts-master at the front of
PATH).
LVM Build is 2336.11.00.
I fetched GHC sources and tried to build using:
$ git clone git://git.haskell.org/ghc.git
$ cd ghc
$ ./sync-all --no-dph get
$ perl boot # after creating mk/build.mk
$ ./configure --target=i386-apple-darwin11 --prefix=/usr/local/ghc-ios-sim/
$ make
# Fails saying terminfo -any is not available
On Sun, Sep 1, 2013 at 7:39 PM, Luke Iannini
Hi Dominick, Hm, this should have been fixed by http://ghc.haskell.org/trac/ghc/ticket/7700 .
When you say you downloaded GHC, do you mean you cloned GHC HEAD (e.g. git clone git://git.haskell.org/ghc.git ?) — the patches have only just landed : ).
Also can you give us an idea of what your build environment is? (OS version, Xcode version etc)
Cheers Luke
On Sun, Sep 1, 2013 at 4:32 PM, Dominick Samperi
wrote: Hi,
I followed the instructions on the link, downloaded ghc, created build.mk, etc., and configured for ghc-ios-sim. But the make fails with the message below. Tried installing terminfo (cabal install terminfo) but this didn't help...
ghc $ make ===--- building phase 0 make -r --no-print-directory -f ghc.mk phase=0 phase_0_builds make[1]: Nothing to be done for `phase_0_builds'. ===--- building phase 1 make -r --no-print-directory -f ghc.mk phase=1 phase_1_builds "inplace/bin/ghc-cabal" check utils/ghc-pkg A 'license-file' is not specified. "inplace/bin/ghc-cabal" configure utils/ghc-pkg dist-install "" --with-ghc="/Users/dsamperi/ bin/ghc/ghc/inplace/bin/ghc-stage1" --with-ghc-pkg="/Users/dsamperi/bin/ghc/ghc/inplace/bin/ghc-pkg" --disable-library-for-ghci --disable-library-vanilla --disable-library-profiling --disable-shared --configure-option=CFLAGS=" -U__i686 -fno-stack-protector " --configure-option=LDFLAGS=" " --configure-option=CPPFLAGS=" " --configure-option=--host=i386-apple-darwin11 --with-gcc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc" --with-ld="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-ld" --configure-option=--with-cc="/Users/dsamperi/bin/ghc/ghc-ios-scripts-master/i386-apple-darwin11-gcc" --with-ar="/opt/local/bin/ar" --with-ranlib="ranlib" --with-alex="/usr/bin/alex" --with-happy="/usr/bin/happy" Configuring ghc-pkg-6.9... ghc-cabal: At least the following dependencies are missing: terminfo -any make[1]: *** [utils/ghc-pkg/dist-install/package-data.mk] Error 1 make: *** [all] Error 2
On Fri, Aug 30, 2013 at 5:04 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:
Great. Please thank Stephen too.. I don’t have his email.****
** **
Just go ahead and modify ****
http://ghc.haskell.org/trac/ghc/wiki/CodeOwners****
http://ghc.haskell.org/trac/ghc/wiki/Platforms****
** **
I assume iOS will become a tier-2 platform?****
** **
Simon****
** **
*From:* Luke Iannini [mailto:lukexipd@gmail.com] *Sent:* 30 August 2013 09:07 *To:* Simon Peyton-Jones *Cc:* Austin Seipp *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
** **
Certainly! And I'd be happy to take on maintainership of GHC iOS if that's what you mean — I've committed to a very large project using it so I'll be maintaining it anyway : ). I'd guess Stephen would feel the same. ****
** **
And thanks so much for the kind words, it means the world! Thank you infinitely for Haskell : ).****
** **
Cheers****
Luke****
** **
On Fri, Aug 30, 2013 at 12:32 AM, Simon Peyton-Jones < simonpj@microsoft.com> wrote:****
Should we update the “Platform maintainers” on http://ghc.haskell.org/trac/ghc/wiki/TeamGHC****
or the list of supported platforms on http://ghc.haskell.org/trac/ghc/wiki/Platforms?****
****
*From:* Haskell-Cafe [mailto:haskell-cafe-bounces@haskell.org] *On Behalf Of *Luke Iannini *Sent:* 29 August 2013 21:56 *To:* Haskell Cafe *Subject:* Re: [Haskell-cafe] Announcing GHC iOS****
****
Stephen provided some more credits — thanks so much to all!****
****
Three connected projects concerning cross-compilation:****
****
*Registerised ARM support, added using David Terei's LLVM compiler back end with Stephen Blackheath doing an initial ARMv5 version and LLVM patch and Karel Gardas working on floating point support, ARMv7 compatibility and LLVM headaches. Ben Gamari did work on the runtime linker for ARM.****
****
*General cross-compiling, with much work by Stephen Blackheath and Gabor Greif (though many others have worked on this).****
****
*A cross-compiler for Apple iOS. iOS-specific parts were mostly Stephen Blackheath with Luke Iannini on the Cabal patch, testing and supporting infrastructure, also with assistance and testing by Miëtek Bak and Jonathan Fischoff, and thanks to many others for testing; The iOS cross compiler was started back in 2009 by Stephen Blackheath with funding from Ryan Trinkle of iPwn Studios.****
****
Thanks to Ian Lynagh for making it easy for us with integration, makefile refactoring and patience, and to David Terei for LLVM assistance. ****
****
****
On Thu, Aug 29, 2013 at 1:43 PM, Luke Iannini
wrote:**** Hi all!****
(in case you don't read /r/haskell : ))****
****
Stephen Blackheath and I are extremely happy to report that as of today, GHC can natively build binaries for iOS devices and the iOS Simulator.** **
****
You'll find everything you need here: http://ghc.haskell.org/trac/ghc/wiki/Building/CrossCompiling/iOS****
****
The short of it is you can use "ghc-ios myFiles.hs" to get a universal ARMv7/ARMv7s/i386 static library to drop straight into an Xcode project. ****
****
Stephen's already working on some wonderful FRP-powered games, I'm working on a project called SpaceTime that I'll announce shortly, and you may now all begin creating insanely great iOS software using the finest language in the world : ).****
****
Stephen deserves the lion's share of the credit for this project — it's been over 3 years in the making! Many thanks to Maxwell Swadling for generalizing static library builds into a -staticlib flag for GHC, Carter Schonwald for compilation guidance, and the venerable Austin Seipp for reviewing and merging our patches.****
****
** **
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
_______________________________________________ ghc-devs mailing list ghc-devs@haskell.org http://www.haskell.org/mailman/listinfo/ghc-devs
participants (4)
-
Dominick Samperi
-
Gabor Greif
-
Luke Iannini
-
Simon Peyton-Jones