On 9/1/13, Luke Iannini <lukex...@gmail.com> 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 <ggr...@gmail.com> wrote: > >> On 8/31/13, Luke Iannini <lukex...@gmail.com> 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 <ggr...@gmail.com> 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 <lukex...@gmail.com> 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 >> >> > <simo...@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:lukex...@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 < >> >> >> simo...@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-boun...@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 <lukex...@gmail.com> >> >> >> 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