Fortran Compiler cannot create executables


 
Thread Tools Search this Thread
Operating Systems Linux Fortran Compiler cannot create executables
# 1  
Old 04-19-2011
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
# 2  
Old 04-19-2011
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
# 3  
Old 04-19-2011
copying configure.log to my computer

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
# 4  
Old 04-19-2011
scp username@host:/path/to/file localfile
# 5  
Old 04-20-2011
problems with scp

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
Code:
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

Last edited by pludi; 04-20-2011 at 05:11 AM..
# 6  
Old 04-20-2011
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.

http://winscp.net/eng/download.php
# 7  
Old 04-20-2011
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.

Code:
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


Last edited by pludi; 04-20-2011 at 11:35 AM..
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Ubuntu

Gcc cannot create executables

https://www.unix.com/302461112-post1.html Thank you. It's still in Linux Mint 17 (3 Replies)
Discussion started by: jgt
3 Replies

2. Shell Programming and Scripting

FORTRAN Compiler

Need assistance in Fortran Compiler I need to install Fortran compiler on Linux distribution . I don't have root access to use rpm or yum to install compiler . Is there any way I can get it ? Are there any sites that has fortran compiler . Any links to download and install . (10 Replies)
Discussion started by: ajayram_arya
10 Replies

3. Shell Programming and Scripting

Scripting with executables

Hi everyone, I am working with an executable (let's say work) in bash shell. When I run this work executable it asks the following information; 1- choose task a or b 2- input file 3- output file 4- some operational choices after it reads the given input file, does some algebraic... (17 Replies)
Discussion started by: hayreter
17 Replies

4. Solaris

C compiler cannot create executables

Hi, I'm trying to compile Apache2.2 (I know it is available as a package) on a fresh install of Solaris Express 11. I've installed gcc-3 and gnu-bintutils via pkg. The config.log is attached (as config.txt). I don't see what I'm missing. Thanks, Doug (1 Reply)
Discussion started by: Doug_M
1 Replies

5. Programming

How Can a Machine Reads a Compiler Since A Compiler is Written in Text! Not Binaries?

To make a programming language you need a compiler, so what was the first programming language and how was is created if you need the compiler first? The compiler itself is considered as a high language comparing to the machine! since the compiler is not created in 1's and 0's... Eventhough i... (12 Replies)
Discussion started by: f.ben.isaac
12 Replies

6. HP-UX

gcc error..compiler cannot create executables

Hi I have locally compiled and installed gcc-4.1.2 in directory /usr/local/pkg/gcc/4.1.2/bin/gcc I want to compile beecrypt using this new compiler , So i have done setenv CC usr/local/pkg/gcc/4.1.2/bin/gcc ( Note this configuration is running properly with older version of... (1 Reply)
Discussion started by: vasanthan
1 Replies

7. Linux

Fortran 90 compiler

Hi everybody: Could anybody help me where could I download Fortran 90 complier? Thanks in advance. :) (2 Replies)
Discussion started by: tonet
2 Replies

8. UNIX for Dummies Questions & Answers

cannot create executables

I am trying to install PROFTPD-1.2.7 on a SCO OpenServer 5.0.6 Server with a gcc-2.95.2 installed the VOLS files from http://www.caldera.com/skunkware. The problem I am having is when I try to run ./configure in the proftpd directory I get this error: # ./configure checking build system... (6 Replies)
Discussion started by: stufine
6 Replies
Login or Register to Ask a Question