LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: wei zhang (wzhang_at_[hidden])
Date: 2003-08-27 17:41:36


Hello

I have installed LAM/MPI 7.0 to Linux with 16 nodes by using
./configure --prefix=/mydir/ --with-fc=f90.
I tested C sample cases, which works okay for both compiler (mpicc,mpiCC)
and mpirun, after my lamboot.
But both Fortran(f77,f90) compiler does not work.
The following are error massages from config.log(Part1); f90 compiler(Part2)
and f77 compiler(Part3).
I would apprectie if someone can give me some suggestions.

Thanks a lot

Wei

--------------------------
Wei Zhang, Ph.D.
Senior Engineer
Combustion Science & Engineering, Inc.
8940 Old Annapolis Road, Suite L
Columbia, MD 21045-1997
Phone: (410) 884-3266
Fax: (410) 884-3267

------------------
(Part 1) config.log file

----
 configure:19638: checking for Fortran 77 compiler version
configure:19638: f90 --version </dev/null >&5
Error: bad option:  --version
configure:19641: $? = 1
configure:19643: f90 -v </dev/null >&5
Error: no object files specified
configure:19646: $? = 1
configure:19648: f90 -V </dev/null >&5
Error: no object files specified
configure:19651: $? = 1
configure:19658: checking whether we are using the GNU Fortran 77 compiler
configure:19672: f90 -c -O  conftest.F >&5
       choke me
               ^
cf90-724 f90fe: ERROR MAIN, File = conftest.F, Line = 3, Column = 16
  Unknown statement.  Expected assignment statement but found "EOS" instead
of "=" or "=>".
f90: Copyright Absoft Corporation 1994-2001; Absoft Pro FORTRAN Version 7.5
f90fe: 6 source lines
f90fe: 1 Errors, 0 Warnings, 0 Other messages, 0 ANSI
configure:19675: $? = 1
configure: failed program was:
|       program main
| #ifndef __GNUC__
|        choke me
| #endif
|
|       end
configure:19694: result: no
configure:19701: checking whether f90 accepts -g
configure:19713: f90 -c -g conftest.f >&5
configure:19716: $? = 0
configure:19719: test -s conftest.o
configure:19722: $? = 0
configure:19734: result: yes
configure:19762: checking the maximum length of command line arguments
configure:19821: result: 32768
------------------------ 
Part 2 f90 compiler
-------
%mpif77 fpi.f -o fpi
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `ptmalloc_init':
ptmalloc.o(.text+0x6c): undefined reference to `pthread_key_create'
ptmalloc.o(.text+0x7e): undefined reference to `pthread_setspecific'
ptmalloc.o(.text+0x95): undefined reference to `pthread_atfork'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `arena_get2':
ptmalloc.o(.text+0x2f9): undefined reference to `pthread_mutex_trylock'
ptmalloc.o(.text+0x311): undefined reference to `pthread_setspecific'
ptmalloc.o(.text+0x339): undefined reference to `pthread_mutex_trylock'
ptmalloc.o(.text+0x3d7): undefined reference to `pthread_setspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `malloc':
ptmalloc.o(.text+0x4c6): undefined reference to `pthread_getspecific'
ptmalloc.o(.text+0x4de): undefined reference to `pthread_mutex_trylock'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `realloc':
ptmalloc.o(.text+0x1262): undefined reference to `pthread_setspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `memalign':
ptmalloc.o(.text+0x187a): undefined reference to `pthread_getspecific'
ptmalloc.o(.text+0x1892): undefined reference to `pthread_mutex_trylock'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `calloc':
ptmalloc.o(.text+0x19ea): undefined reference to `pthread_getspecific'
ptmalloc.o(.text+0x1a02): undefined reference to `pthread_mutex_trylock'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `mallinfo':
ptmalloc.o(.text+0x1ff0): undefined reference to `pthread_getspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `malloc_atfork':
ptmalloc.o(.text+0x2d92): undefined reference to `pthread_getspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `ptmalloc_lock_all':
ptmalloc.o(.text+0x3582): undefined reference to `pthread_getspecific'
ptmalloc.o(.text+0x3596): undefined reference to `pthread_setspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function
`ptmalloc_unlock_all':
ptmalloc.o(.text+0x35b8): undefined reference to `pthread_setspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function
`ptmalloc_unlock_all2':
ptmalloc.o(.text+0x3624): undefined reference to `pthread_setspecific'
/home/cfd/fds4.0//lib/libmpi.a(ptmalloc.o): In function `free_atfork':
ptmalloc.o(.text+0x376f): undefined reference to `pthread_getspecific'
/home/cfd/fds4.0//lib/liblam.a(lammutex.o): In function `lam_mutex_trylock':
lammutex.o(.text+0x9f): undefined reference to `pthread_mutex_trylock'
/home/cfd/fds4.0//lib/liblam.a(lamthreads.o): In function
`lam_thread_create':
lamthreads.o(.text+0x12): undefined reference to `pthread_create'
/home/cfd/fds4.0//lib/liblam.a(lamthreads.o): In function `lam_thread_join':
lamthreads.o(.text+0x30): undefined reference to `pthread_join'
collect2: ld returned 1 exit status
mpif77: No such file or directory
--------------
(Part 3)  f77 compiler
-------
%setenv LAMHF77 f77
%mpif77 fpi.f -o fpi
Error: bad option:  -pthread
mpif77: No such file or directory
-----------