<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:times new roman, new york, times, serif;font-size:12pt">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:<br><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div style="font-family: times new roman,new york,times,serif; font-size: 12pt;"><div><br>/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&nbsp; -Rghc-timing&nbsp; -package unix&nbsp;&nbsp;&nbsp; -L../../compat -lghccompat&nbsp;&nbsp; Main.o Version.o CRT_noglob.o<br>Main.o: In function `__stginit_ZCMain':<br>ghc13533.hc:(.text+0x4): undefined reference to
 `__DISCARD__'<br>ghc13533.hc:(.text+0x9): undefined reference to `__DISCARD__'<br>Main.o: In function `__stginit_Main':<br>ghc13533.hc:(.text+0x18): undefined reference to `__DISCARD__'<br>ghc13533.hc:(.text+0x1d): undefined reference to `__DISCARD__'<br>Main.o: In
 function `__stginit_Main_':<br>ghc13533.hc:(.text+0x2c): undefined reference to `__DISCARD__'<br>Main.o:ghc13533.hc:(.text+0x3d): more undefined references to `__DISCARD__' follow<br>collect2: ld returned 1 exit status<br>&lt;&lt;ghc: 13726704 bytes, 3 GCs, 105428/105428 avg/max bytes residency (1 samples), 15M in use, 0.00 INIT (0.00 elapsed), 0.01 MUT (1.98 elapsed), 0.01 GC (0.03 elapsed) :ghc&gt;&gt;<br><br>Do you know how I can fix this problem? My ghc and gcc versions are:<br><br>The Glorious Glasgow Haskell Compilation System, version 6.4.2<br>gcc (GCC) 4.1.1 20060724 (prerelease) (4.1.1-4pclos2007)<br><br>(I also tried ghc 6.2.0 and gcc 3.3.6, but all combinations resulted in the same error message)<br><br>Thanks!<br><br></div></div><br>

      </div></div></div><br>

      </body></html>