So I have been trying to build multiple applications with an ifort+gcc implementation of Open-MPI.  I wanted to build them in debug mode.  This is on a Macbook Pro
System Version:    Mac OS X 10.4.9 (8P2137)
  Kernel Version:    Darwin 8.9.1
  gcc :gcc version 4.0.1
  ifort: 10.0.16

I have tried building PETSc from ftp://ftp.mcs.anl.gov/pub/petsc/release-snapshots/petsc-lite-2.3.3-p1.tar.gz
in debug mode and the error on gets in building fortran examples is:
ld: internal error: output_local_symbols () inconsistent local symbol count
This does not happen when *not* in debug mode.
This is the same error we get with the same build parameters of one of our Fortran scientific codes.

This error does *not* occur when using mpich2-1.0.5p4.