Fortran Compiler cannot create executables

Hello everyone,

I am trying to re-install quantum espresso-4.3 on the University's LINUX interface (because of a recent crash and I lost most of my files).
when I " ./configure ", It is giving an error stating that :

checking building system type... x86_64-unknown-linux-gnu
checking architecture... x86_64
checking for ifort.. no
checking for pgf90... no
checking for pathf95.. no
checking for sunf95.. no
checking for openf95... no
checking for gfortran... no
checking for g95... g95
checking for Fortran compiler default output... configure: error: Fortran compiler cannot create executables
See `config.log' for more details.
(1) I do not know where the config.log file is. I have looked in the directory where I have run configure but I could not find it....

(2) what could be the cause of the error? will this be present in the config.log file?

Thanks

Can't guess much until you find that file. The exact line that caused the error, if not the reason for it, should be in it.

find ~/ -name config.log

I found the file but I am trying to copy it from the server (netuno.lcc.ufmg.br) to my personal computer using ftp or sftp but in vain can you please let me know how to perform this process....Thanks

Elie

scp username@host:/path/to/file localfile

Well I have used the scp command as follows:
I am on the server in the directory:

/exp/home/caiapo/elie/espresso/espresso-4.3/install/

where config. log is

I wrote:
scp config.log User-PC@101.99.12.0:/espresso-4.2.1/

where User-PC@ is my home username and ip address and espresso-4.2.1 is where I want to copy the file to.

I got after a while

ssh: connect to host 101.99.12.0 :port 22: connection timed out
lost connection

I am not sure how to change teh default port 22 and how to guess which is the subsitute port....I am thankful for your help

Elie

Elie,

If your PC is running Windows, it will not have an SCP client built in. My suggestion would be to get a client like Win-SCP and instead of "pushing" the file to the PC, pull it from the *nix box.

Dear Mark,

Thanks very much for your reply. It is really handy. I have a small problem though. Since I am at home, I have first to connect to the mother board (NETUNO) in my case so what I did is I used my username there and my password but then I have to connect to another computer called caiapo which has another address and another passoword.
How can I do that? Sorry I am definitely asking stupid questions but I am LINUX illiterate and I am trying my best before posting on here

---------- Post updated at 11:27 AM ---------- Previous update was at 10:55 AM ----------

Guys,

Problem solved. I was able finally to import my config.log file from the internet to my desktop. Here is the content. I would be helpful if someone can have a look at it and tell me what might be going wrong in the compilation..Thanks.

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by ESPRESSO configure 4.2CVS, which was
generated by GNU Autoconf 2.61.  Invocation command line was

  $ ./install/configure 

## --------- ##
## Platform. ##
## --------- ##

hostname = caiapo
uname -m = x86_64
uname -r = 2.6.26-2-amd64
uname -s = Linux
uname -v = #1 SMP Thu Feb 11 00:59:32 UTC 2010

/usr/bin/uname -p = unknown
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = unknown
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/bin/X11
PATH: /usr/games
PATH: /exp/home/caiapo/emoujaes/espresso/espresso-4.3/g95-install/bin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:1988: checking build system type
configure:2006: result: x86_64-unknown-linux-gnu
configure:2227: checking for ifort
configure:2257: result: no
configure:2227: checking for pgf90
configure:2257: result: no
configure:2227: checking for pathf95
configure:2257: result: no
configure:2227: checking for sunf95
configure:2257: result: no
configure:2227: checking for openf95
configure:2257: result: no
configure:2227: checking for gfortran
configure:2257: result: no
configure:2227: checking for g95
configure:2243: found /exp/home/caiapo/emoujaes/espresso/espresso-4.3/g95-install/bin/g95
configure:2254: result: g95
configure:2272: WARNING: In the future, Autoconf will not detect cross-tools
whose name does not start with the host triplet.  If you think this
configuration is useful to you, please write to autoconf@gnu.org.
configure:2284: checking for Fortran compiler version
configure:2291: g95 --version >&5
G95 (GCC 4.0.3 (g95 0.92!) Jun 24 2009)
Copyright (C) 2002-2008 Free Software Foundation, Inc.

G95 comes with NO WARRANTY, to the extent permitted by law.
You may redistribute copies of G95
under the terms of the GNU General Public License.
For more information about these matters, see the file named COPYING
configure:2294: $? = 0
configure:2301: g95 -v >&5
Using built-in specs.
Target: 
Configured with: ../configure --enable-languages=c
Thread model: posix
gcc version 4.0.3 (g95 0.92!) Jun 24 2009
configure:2304: $? = 0
configure:2311: g95 -V >&5
g95: '-V' option must have argument
configure:2314: $? = 1
configure:2328: checking for Fortran compiler default output file name
configure:2355: g95    conftest.f  >&5
/tmp/ccbp71f0.s: Assembler messages:
/tmp/ccbp71f0.s:6: Error: suffix or operands invalid for `push'
configure:2358: $? = 1
configure:2396: result: 
configure: failed program was:
|       program main
| 
|       end
configure:2403: error: Fortran compiler cannot create executables
See `config.log' for more details.

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=x86_64-unknown-linux-gnu
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_EXTLIB_FLAGS_set=
ac_cv_env_EXTLIB_FLAGS_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_prog_ac_ct_FC=g95

## ----------------- ##
## Output variables. ##
## ----------------- ##

CC=''
CFLAGS=''
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
EXTLIB_FLAGS=''
F77=''
FC='g95'
FCFLAGS=''
FCFLAGS_f90=''
FFLAGS=''
FLIBS=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='ESPRESSO'
PACKAGE_STRING='ESPRESSO 4.2CVS'
PACKAGE_TARNAME='espresso'
PACKAGE_VERSION='4.2CVS'
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
SIZEOF_INT_P=''
ac_ct_CC=''
ac_ct_F77=''
ac_ct_FC='g95'
ar=''
arflags=''
bindir='${exec_prefix}/bin'
blas_libs=''
blas_libs_switch=''
blas_line=''
build='x86_64-unknown-linux-gnu'
build_alias=''
build_cpu='x86_64'
build_os='linux-gnu'
build_vendor='unknown'
cc=''
cflags=''
cpp=''
cppflags=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
dflags=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
extlib_flags=''
f77=''
f90='ifort pgf90 pathf95 sunf95 openf95 gfortran g95 f90'
f90flags=''
f90rule=''
fdflags=''
fflags=''
fflags_noopt=''
fft_libs=''
fft_line=''
host_alias=''
htmldir='${docdir}'
iflags=''
imod=''
includedir='${prefix}/include'
infodir='${datarootdir}/info'
lapack_libs=''
lapack_libs_switch=''
lapack_line=''
ld=''
ld_libs=''
ldflags=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mass_libs=''
mass_line=''
mpi_libs=''
mpi_line=''
mpif90=''
oldincludedir='/usr/include'
parallel_report=''
pdfdir='${docdir}'
pre_fdflags=''
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
ranlib=''
sbindir='${exec_prefix}/sbin'
scalapack_libs=''
scalapack_line=''
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
topdir='/exp/home/caiapo/emoujaes/espresso/espresso-4.3'

## ----------- ##
## confdefs.h. ##
## ----------- ##

#define PACKAGE_NAME "ESPRESSO"
#define PACKAGE_TARNAME "espresso"
#define PACKAGE_VERSION "4.2CVS"
#define PACKAGE_STRING "ESPRESSO 4.2CVS"
#define PACKAGE_BUGREPORT ""

configure: exit 77
 

The error is here:

configure:2328: checking for Fortran compiler default output file name
configure:2355: g95    conftest.f  >&5
/tmp/ccbp71f0.s: Assembler messages:
/tmp/ccbp71f0.s:6: Error: suffix or operands invalid for `push'
configure:2358: $? = 1
configure:2396: result: 
configure: failed program was:
|       program main
| 
|       end
configure:2403: error: Fortran compiler cannot create executables

So for some reason the fortran compiler they included is generating invalid assembly language for your architecture.