mpich2 doesn't support the -m32 or -m64 gcc options so for %{arm} we need to either clear the setting or set it to something more appropriate for the platform so that it will compile. http://gcc.gnu.org/onlinedocs/gcc/ARM-Options.html
the standard fedora cflags set -m32 and -m64 as appropriate, we should just patch out of mpich2 anything that tries to be too smart. and just rely on whats set by us.
(In reply to comment #1) > the standard fedora cflags set -m32 and -m64 as appropriate, we should just > patch out of mpich2 anything that tries to be too smart. and just rely on whats > set by us. One need to look closely at the spec and have some understanding of how mpich2 behaves to understand what the 'm_option' macros (that sets the -m32/-m64) does. That macro is NOT for setting the compiler flag in building the mpich2 library, but for specifying the basic flag the built mpi compiler should use (once installed).
Fixed.