
Hi, I am trying to build ghc 6.8.3 from source release, my currently installed version is ghc 6.4.2 (x86 linux binary release version), and I got:
/usr/local/ghc/bin/ghc -o ghc-pkg.bin -H16m -O -cpp -Wall -fno-warn-name-shadowing -fno-warn-unused-matches -DUSING_COMPAT -i../../compat -ignore-package Cabal -Rghc-timing -package unix -L../../compat -lghccompat Main.o Version.o CRT_noglob.o
Main.o: In function `__stginit_ZCMain':
ghc13533.hc:(.text+0x4): undefined reference to `__DISCARD__'
ghc13533.hc:(.text+0x9): undefined reference to `__DISCARD__'
Main.o: In function `__stginit_Main':
ghc13533.hc:(.text+0x18): undefined reference to `__DISCARD__'
ghc13533.hc:(.text+0x1d): undefined reference to `__DISCARD__'
Main.o: In function `__stginit_Main_':
ghc13533.hc:(.text+0x2c): undefined reference to `__DISCARD__'
Main.o:ghc13533.hc:(.text+0x3d): more undefined references to `__DISCARD__' follow
collect2: ld returned 1 exit status
<