Re: [Haskell-cafe] build recent(ish) ghc on macos 10.3.9 powerpc?

2008-03-18 Thread Rene Wagner
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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] build recent(ish) ghc on macos 10.3.9 powerpc?

2008-03-18 Thread Uwe Hollerbach
Hello, haskellers, a few days ago I had asked about building recent
ghc on macos 10.3.9. I have made a bit of progress along those lines,
here's a small update on what worked and what didn't. Instead of
trying to proceed with the porting procedure, I went back to an
install: I ended up going to 6.2.2. After a bit of fiddling, I found
that another bit of messing-about I had done to the machine was
messing me up: I had upgraded gcc from 3.3.x to 3.4.6 by just
downloading the sources and building. That produced a working gcc
3.4.6, but apparently the apple-aware ghc 6.2.2 and the apple-unaware
gcc 3.4.6 didn't play nicely together. Once I disabled gcc 3.4.6,
stuff worked again.

Then I tried building ghc 6.4.2 using the installed 6.2.2. This took a
lot of time, the compiler was able (as far as I could tell) to go
through all of its own bootstrapping, but after I happily installed
what I thought was a working ghc 6.4.2, the installed version was
unable to do anything: it segfaulted while trying to do ghc
--version. Oops... Out of somewhat morbid curiosity, I tried running
that inside the debugger, but gave up after several hours of elapsed
time. Back to the drawing board.

So I tried jumping directly from 6.2.2 to 6.6.1; that is, using 6.2.2
to build 6.6.1. That took another lot of time, but I'm happy to report
that it has produced a working executable: it did proceed all the way
through its bootstrapping, I verified that the executable in
compiler/stage2 was able to run ghc --version in-place, and after I
installed it, it was still able to do that; and (extra bonus! :-) )
it's also able to compile and link at least one small Haskell program
written by me! Cool!

I'm going to keep going forward and try to build 6.8.2, and I'll
report back if that succeeds, but this is already pretty good
progress...

regards, Uwe
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] build recent(ish) ghc on macos 10.3.9 powerpc?

2008-03-16 Thread Judah Jacobson
On Sat, Mar 15, 2008 at 2:04 PM, Uwe Hollerbach [EMAIL PROTECTED] 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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


Re: [Haskell-cafe] build recent(ish) ghc on macos 10.3.9 powerpc?

2008-03-16 Thread Uwe Hollerbach
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 [EMAIL PROTECTED] wrote:
 On Sat, Mar 15, 2008 at 2:04 PM, Uwe Hollerbach [EMAIL PROTECTED] 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

___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe


[Haskell-cafe] build recent(ish) ghc on macos 10.3.9 powerpc?

2008-03-15 Thread Uwe Hollerbach
[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
___
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe