gfortran compilation error (installing Quantum ESPRESSO) I'm trying to install Quantum ESPRESSO, but I keep getting an error when I'm configuring the make files (this installation procedure is addressed on page 8 of the manual).

In particular, I invoke sudo ./configure in my terminal, and I get the following error:

checking build system type... x86_64-apple-darwin15.6.0
checking ARCH... mac686
checking setting AR... ... ar
checking setting ARFLAGS... ... ruv
checking for ifort... no
checking for gfortran... gfortran
checking for Fortran compiler default output file name... 
configure: error: in '/Users/malxmusician212/Downloads/qe-6.1':
configure: error: Fortran compiler cannot create executables
See 'config.log' for more details.


My config.log is posted here.
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.