Sun, 23 Sep 2001 01:16:51 +0100, Loz <[EMAIL PROTECTED]> pisze:

> I'm trying to build ghc from scratch on a gcc-3.0 athlon system.

Sorry, gcc-3.x is not supported yet by ghc, even in just released
ghc-5.02.

I was getting the same error as you. I guess this is a bug in gcc,
which for a function or two in PrimOps emits frame pointer handling
code despite -fomit-frame-pointer option. It really addresses the
stack using %ebp instead of %esp in these functions!

Despite problems I'm currently using gcc-3.0.1. I have a minimal
portion of gcc-2.95.3 still installed: just /usr/bin/gcc-2.95.3 and
/usr/lib/gcc-lib/i686-pld-linux/2.95.3/{cc1,cpp,include/*,specs},
and the following in fptools/mk/build.mk:

PrimOps_HC_OPTS = -pgmcgcc-2.95.3
ArrayBase_HC_OPTS = -pgmcgcc-2.95.3
PosixTTY_HC_OPTS = -pgmcgcc-2.95.3

because these are the only files which gcc-3.0.1 was unable to compile.
Fortunately mixing gcc versions works in these cases.

ghc-5.02 (but not earlier versions) detects the version of gcc at
configure time and refuses to build if it's gcc-3.x, so I disabled
this check in my local tree.

ghc-5.02 (but not earlier versions) also has a little #ifdefery for gcc
version in its *.h files, to avoid tons of warnings for gcc-3.x which
deprecated its extension of zero-sized arrays at the end of a struct,
and instead recommends the similar ISO C99 feature of flexible arrays
at the end of a struct. Older ghc versions should still work with
gcc-3.x (except a few files which must be compiled using gcc-2.x),
but with tons of warning coming from gcc.

-- 
 __("<  Marcin Kowalczyk * [EMAIL PROTECTED] http://qrczak.ids.net.pl/
 \__/
  ^^                      SYGNATURA ZAST�PCZA
QRCZAK


_______________________________________________
Glasgow-haskell-bugs mailing list
[EMAIL PROTECTED]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to