build recent(ish) ghc on macos 10.3.9 powerpc?

[Augh! gmail won't send! Apologies if this shows up more than once...] Hi, all, I have an old iMac G3, running OSX 10.3.9, to which I have a sentimental attachment. I'd like to get ghc running on it, but the pre-built binaries I can find are all for more-recent iMacs, so I thought I would try to build it myself. I believe I read somewhere that gcc 3.3.X didn't work quite right for recent ghc -- I'm trying for now to build ghc 6.6.1 -- so I started by upgrading gcc to 3.4.6. That's working. So, with that in place, I went to the "porting ghc to a new arch" page and started going through the steps. I'm using a laptop running linux as the "host" computer, so that's i386-unknown-linux, some Fedora core derivative. It's using gcc 3.4.4. I think I did all the initial stuff right, but in the section in the porting guide where it says to start diving into all the subdirectories and do a bunch of "make boot && make", I start getting errors, and by the time it says to do that in .../libraries, it just croaks. Did I miss something earlier? Is this a completely hopeless endeavor from the get-go? I'm not even sure what intermediate files or error messages I should post. Any hints appreciated!. If you want to tell me, "Uwe, you're a bozo", that's fine, too, and you could well be right, just tell me why... Thanks! Uwe

On Sat, Mar 15, 2008 at 2:04 PM, Uwe Hollerbach
Hi, all, I have an old iMac G3, running OSX 10.3.9, to which I have a sentimental attachment. I'd like to get ghc running on it, but the pre-built binaries I can find are all for more-recent iMacs, so I thought I would try to build it myself. I believe I read somewhere that gcc 3.3.X didn't work quite right for recent ghc -- I'm trying for now to build ghc 6.6.1 -- so I started by upgrading gcc to 3.4.6. That's working. So, with that in place, I went to the "porting ghc to a new arch" page and started going through the steps. I'm using a laptop running linux as the "host" computer, so that's i386-unknown-linux, some Fedora core derivative. It's using gcc 3.4.4.
It looks like ghc 6.4.1 had an installer package for 10.3.9; does that work for you? http://www.haskell.org/ghc/download_ghc_641.html I think that the current version of ghc is supposed to be buildable with 6.4, so you might be able to bootstrap 6.6 or 6.8 that way, without going through the whole porting process. Let us know if you run into problems with it. Hope that helps, -Judah

Thanks for the tip, Judah, I went and got the ghc 6.4.1 package...
unfortunately, it installs ok, but isn't able to compile anything: I
get "Unknown pseudo-op: .subsections_via_symbols" when I try to build
a trivial test program. I found one note on the web that says "can't
work, needs newer version of XCode than comes with OSX 10.3", and
another note that says "you have to install all of XCode". So I'm
going to see if I missed installing some portion of XCode (I don't
think so, but it was a while ago), but otherwise I might just be out
of luck :-(
Uwe
On 3/15/08, Judah Jacobson
On Sat, Mar 15, 2008 at 2:04 PM, Uwe Hollerbach
wrote: Hi, all, I have an old iMac G3, running OSX 10.3.9, to which I have a sentimental attachment. I'd like to get ghc running on it, but the pre-built binaries I can find are all for more-recent iMacs, so I thought I would try to build it myself. I believe I read somewhere that gcc 3.3.X didn't work quite right for recent ghc -- I'm trying for now to build ghc 6.6.1 -- so I started by upgrading gcc to 3.4.6. That's working. So, with that in place, I went to the "porting ghc to a new arch" page and started going through the steps. I'm using a laptop running linux as the "host" computer, so that's i386-unknown-linux, some Fedora core derivative. It's using gcc 3.4.4.
It looks like ghc 6.4.1 had an installer package for 10.3.9; does that work for you? http://www.haskell.org/ghc/download_ghc_641.html
I think that the current version of ghc is supposed to be buildable with 6.4, so you might be able to bootstrap 6.6 or 6.8 that way, without going through the whole porting process. Let us know if you run into problems with it.
Hope that helps,
-Judah

Hi Uwe, On Sat, 2008-03-15 at 14:04 -0700, Uwe Hollerbach wrote:
I'm trying for now to build ghc 6.6.1 -- so I started by upgrading gcc to 3.4.6. That's working. So, with that in place, I went to the "porting ghc to a new arch" page and started going through the steps. I'm using a laptop running linux as the "host" computer, so that's i386-unknown-linux, some Fedora core derivative. It's using gcc 3.4.4.
I think I did all the initial stuff right, but in the section in the porting guide where it says to start diving into all the subdirectories and do a bunch of "make boot && make", I start getting errors, and by the time it says to do that in .../libraries, it just croaks.
I did a GHC 6.6 bootstrap for Debian/armel a while ago and ran into some minor issues with regard to slight inaccuracies in the documentation and glitches in the GHC build system. A brief overview of what I did is given in a message I sent to the debian-arm list. Unfortunately, I never got around to sending a detailed report upstream :( http://lists.debian.org/debian-arm/2007/11/msg00038.html I don't know how much of that is applicable when building for a non-linux target, but perhaps it gives you a few pointers. Alternatively, you could make build logs/error messages available, so we can perhaps figure out what's going wrong together. Regards, Rene -- Rene Wagner rw at nelianur dot org http://nelianur.org
participants (3)
-
Judah Jacobson
-
Rene Wagner
-
Uwe Hollerbach