building with gcc-4.1.x causes ghc to enter infinite allocation loop
I have the same program using both ghci and ghc. ghci gives:
___ ___ _
/ _ \ /\ /\/ __(_)
/ /_\// /_/ / / | | GHC Interactive, version 6.4.2, for Haskell 98.
/ /_\\/ __ / /___| | http://www.haskell.org/ghc/
\____/\/ /_/\____/|_| Type :? for help.
ghc-6.4.2: out of memory (requested 1048576 bytes)
and ghc gives:
ghc -ignore-package Cabal --make -Wall -fno-warn-unused-matches -cpp -i. -odir dist/tmp -hidir dist/tmp Setup.lhs -o setup
ghc-6.4.2: out of memory (requested 1048576 bytes)
I have 2 gigs of ram, and 3 of swap. When I run ghci, my free memory quickly drops from ~1.9 Gb to less than 10 Mb, at which point, I get the out of memory error. I'm running gentoo on my laptop, with gcc 4.1.1 and kernel 2.6.17-rc1-mm2