Compile error on ppc linux

I'm getting this trying to build Ruby on ppc linux with gcc 3.3.4.

  ppc-pld-linux-gcc -O2 -fsigned-char -fPIC -rdynamic main.o dmyext.o
  libruby-static.a -lpthread -ldl -lcrypt -lm -o miniruby
  [BUG] unknown node type 0
  ruby 1.8.2 (2004-07-29) [powerpc-linux]

  make: *** [rbconfig.rb] Aborted
  error: Bad exit status from /var/tmp/rpm-tmp.60626 (%build)

Any ideas?