Build failures on Mac OS X 10.5
Christian Maeder
maeder at tzi.de
Thu May 24 08:06:36 EDT 2007
>> I already have a usable build -- the 6.6.1 binary release that
>> Christian put together works fine on 10.5.
>
> Actually there appears to be a problem with that 6.6.1 binary release,
> at least on your system. Both crashes that you described were in the
> stage1 compiler, which is compiled by your installed 6.6.1. So either
>
> (a) your installed 6.6.1 is generating bogus code (which is why I
> suspected a
> gcc incompatibility, because that would explain why Christian doesn't
> see the same crash)
>
> (b) there's a bug in GHC which makes it segfault on OS X 10.5.
>
> I'd say (b) is highly unlikely - GHC just a Haskell program (well,
> mostly), and it therefore shouldn't segfault.
>
> Still, you tried with -O -fasm and that didn't help. So I'm at a loss
> to explain why your stage1 GHC is crashing. Probably the only way
> forward at this point is to get out gdb and figure out what's going wrong.
I can only offer to make a rebuild with any options that might help. May
it be a problem with the GMP framework? The one for downloading
(gmp-4.2.1) might be different from the one that's globally installed
here (gmp-4.2).
Probably unrelated: I had a seqfault when I tried to use my ppc ghc to
compile on intel mac using "-arch pcc" (1) for gcc, assembler and
linker. (It seqfaulted rather late in the middle of our big project --
40 MB binary -- and only after switching on optimization.)
Christian
(1) actually:
-optc-arch -optcppc -opta-arch -optappc -optl-arch -optlppc
m29:~ maeder$ gcc -v
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure
--disable-checking -enable-werror --prefix=/usr --mandir=/share/man
--enable-languages=c,objc,c++,obj-c++
--program-transform-name=/^[cg][^.-]*$/s/$/-4.0/
--with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib
--build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic
--program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
More information about the Glasgow-haskell-bugs
mailing list