Installing RedCloth gem on ubuntu 9.04 64 -bit

Hi i am using ubuntu jaunty 9.04,64 bit on a intel core 2 duo
i’m usung using ruby 1.8.7 (64-linux) and rubygems 1.3.5
i have a problem installing RedCloth 4.2.2 gem

sachin@arjun:~$ sudo gem install RedCloth
Building native extensions. This could take a while…
ERROR: Error installing RedCloth:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb
creating Makefile

cc -I. -I/usr/lib/ruby/1.8/x86_64-linux -I/usr/lib/ruby/1.8/x86_64-linux
-I. -fPIC -fno-strict-aliasing -g -g -O2 -fPIC -O2 -c
ext/redcloth_scan/redcloth_scan.c.rl: In function ‘redcloth_transform’:
ext/redcloth_scan/redcloth_scan.c.rl:65: internal compiler error:
Segmentation fault
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.3/README.Bugs> for instructions.
make: *** [redcloth_scan.o] Error 1

Gem files will remain installed in
/usr/lib/ruby/gems/1.8/gems/RedCloth-4.2.2 for inspection.
Results logged to

i already have ruby1.8-dev and build-essentials which are requird to
comile RedCloth gem