gfortran compilation error (installing Quantum ESPRESSO)
The problem is that you're giving arguments to the "as" (assembler) command, that it doesn't understand.

This is usually caused by you having installed more than one type of "as", and calling the wrong one.

In this case you're actually calling "as" in the /opt/local/ subtree, which is not the system default "as".

Try removing /opt/local/bin/ from your path, and doing a reconfigure - or manually using configure arguments force the compilation to use a different "as" command.