Skip to Content.
Sympa Menu

forum - Re: Compilation problem : Abinit_4.2.4 (parallel use) (mail2)

forum@abinit.org

Subject: The ABINIT Users Mailing List ( CLOSED )

List archive

Re: Compilation problem : Abinit_4.2.4 (parallel use) (mail2)


Chronological Thread 
  • From: Ravinder Abrol <rabrol@us.ibm.com>
  • To: Ms Gargi Dutta <gdutta@jncasr.ac.in>
  • Cc: forum@abinit.org
  • Subject: Re: Compilation problem : Abinit_4.2.4 (parallel use) (mail2)
  • Date: Mon, 19 Apr 2004 10:31:18 -0400


Hi,
All your error messages refer to routines in the essl library of IBM.
I don't know why on the machine here I didn't get those error messages.
You may try to change the LIBS line in your makefile_macros to the
following:
LIBS = $(LAPACK) -lblas -lmass -lessl

and also add the following line in the parallel part
of that file:

LIBS_PAR = $(LAPACK) -lblas -lmass -lessl

Let me know if this doesn't work.
All the best,
Ravi

-----
Ravinder  Abrol,  Ph. D.
25-143, Department of Physical Sciences
IBM Thomas J. Watson Research Center
Yorktown Heights, NY 10598
Phone: 914-945-1617
Email: rabrol@us.ibm.com



Ms Gargi Dutta <gdutta@jncasr.ac.in>

04/19/2004 02:13 AM

To
Ravinder Abrol/Watson/IBM@IBMUS
cc
forum@abinit.org
Subject
Compilation problem : Abinit_4.2.4 (parallel use) (mail2)






Hi,
   i have used the following makefile_macros, little bit modified form of
yours. The 64-bit compiler on the supercomputer i am using are
            'mpxlf90_r -q64'  &   'mpcc_r -q64'

              I  had to include
               AR_COMMAND= ar -X64
          otherwise  'make libs' wasn't working.

     I have also given a link to  /usr/lpp/ppe.poe/include/mpif.h from the
directory i am running to compile the code, that is the uppermost
directory. I am also confused that there is a 'mpif.h' file in the
 ~/SRC_Abinit_4.2.4/Machine_dept_files/IBM  directory along with the
makefile_macros files.

          But still i have some error which i am unable to sort out.
-------------------------------------------------------------------------
# This file contains the definitions needed for every possible script
# to be used with the ABINIT makefiles.  It is very much
#machine-dependent.
# It is read by makemake and makearch.

# This version for a SP2 machine, parallel version

# Explanations about this file can be found in the  makefile_macros_help
#file,
# in the Infos subdirectory
####################################################################
# Note that the compiler are those for the parallel code.

# Machine type
MACHINE=ibm
# Fortran optimized compilation
FC=mpxlf90_r -q64
FFLAGS=-O3 -qnolm -qarch=auto -qstrict -q64
MAIN_ROUTINE_FFLAGS=-qcharlen=16000
FFLAGS_LIBS=-O3 -qnolm -qarch=auto -qstrict -qfixed -q64
FLINK=-bloadmap:loadmap
AR_COMMAND= ar -X64
# C preprocessor, used to preprocess the fortran source.
CPP=/usr/lib/cpp
CPP_FLAGS=-P -q64
# C optimized compilation.
CC=mpcc_r -q64
CFLAGS=-O
# Location of perl . Used to generate the script fldiff, in
#~ABINIT/Utilities .
PERL=/usr/bin/perl
# Definition of libraries
BLAS=
LIBS= $(LAPACK) -lblas

####################################################################
# For the parallel version

# Location of the MPI library
# Location of directory with header files *.h for parallel version
# _BASE=/usr/local/mpich
_BASE=/usr/lpp/ppe.poe
FFLAGS_PAR=$(FFLAGS)
####################################################################

# This is a last line in parallel makefile_macros ----------

 The error is the following :

ld: 0711-317 ERROR: Undefined symbol: .lsame
ld: 0711-317 ERROR: Undefined symbol: .zdscal
ld: 0711-317 ERROR: Undefined symbol: .dznrm2
ld: 0711-317 ERROR: Undefined symbol: .zscal
ld: 0711-317 ERROR: Undefined symbol: .zhpmv
ld: 0711-317 ERROR: Undefined symbol: .zdotc
ld: 0711-317 ERROR: Undefined symbol: .zaxpy
ld: 0711-317 ERROR: Undefined symbol: .zhpr2
ld: 0711-317 ERROR: Undefined symbol: .zgemv
ld: 0711-317 ERROR: Undefined symbol: .zgerc
ld: 0711-317 ERROR: Undefined symbol: .zswap
ld: 0711-317 ERROR: Undefined symbol: .dscal
ld: 0711-317 ERROR: Undefined symbol: .zherk
ld: 0711-317 ERROR: Undefined symbol: .zgemm
ld: 0711-317 ERROR: Undefined symbol: .ztrsm
ld: 0711-317 ERROR: Undefined symbol: .zher2
ld: 0711-317 ERROR: Undefined symbol: .ztrsv
ld: 0711-317 ERROR: Undefined symbol: .ztrmv
ld: 0711-317 ERROR: Undefined symbol: .zhemm
ld: 0711-317 ERROR: Undefined symbol: .zher2k
ld: 0711-317 ERROR: Undefined symbol: .ztrmm
ld: 0711-317 ERROR: Undefined symbol: .zhemv
ld: 0711-317 ERROR: Undefined symbol: .zcopy
ld: 0711-317 ERROR: Undefined symbol: .ztpsv
ld: 0711-317 ERROR: Undefined symbol: .zhpr
ld: 0711-317 ERROR: Undefined symbol: .ztpmv
ld: 0711-317 ERROR: Undefined symbol: .ddot
ld: 0711-317 ERROR: Undefined symbol: .dgemv
ld: 0711-317 ERROR: Undefined symbol: .dsyrk
ld: 0711-317 ERROR: Undefined symbol: .dgemm
ld: 0711-317 ERROR: Undefined symbol: .dtrsm
ld: 0711-317 ERROR: Undefined symbol: .izamax
ld: 0711-317 ERROR: Undefined symbol: .dcopy
ld: 0711-317 ERROR: Undefined symbol: .dasum
ld: 0711-317 ERROR: Undefined symbol: .idamax
ld: 0711-317 ERROR: Undefined symbol: .dnrm2
ld: 0711-317 ERROR: Undefined symbol: .zgeru
ld: 0711-317 ERROR: Undefined symbol: .dswap
ld: 0711-317 ERROR: Undefined symbol: .dger
ld: 0711-317 ERROR: Undefined symbol: .dtrmv
ld: 0711-317 ERROR: Undefined symbol: .dtrmm
ld: 0711-317 ERROR: Undefined symbol: .cgerc
ld: 0711-317 ERROR: Undefined symbol: .icamax
ld: 0711-317 ERROR: Undefined symbol: .cswap
ld: 0711-317 ERROR: Undefined symbol: .cscal
ld: 0711-317 ERROR: Undefined symbol: .cgeru
ld: 0711-317 ERROR: Undefined symbol: .ctrsm
ld: 0711-317 ERROR: Undefined symbol: .cgemm
ld: 0711-317 ERROR: Undefined symbol: .ctrmv
ld: 0711-317 ERROR: Undefined symbol: .ctrmm
ld: 0711-317 ERROR: Undefined symbol: .cgemv
ld: 0711-344 See the loadmap file loadmap for more information.
make: 1254-004 The error code from the last command is 8.


Stop.
make: 1254-004 The error code from the last command is 2.


Stop.

      If anybody has some ideas please let me know.

regards,
Gargi



> Hi,
> First of all you should be using the parallel makefile_macro, which will
> call the mpxlf90 and mpcc parallel compilers instead of the serial ones
> (xlf90 and cc). Second, I encountered the same error you got just a couple
> of
> weeks ago. I had to make a small change in the parallel makefile_macro
> provided with abinit. I have provided my fixed parallel makefile_macros
> file below
> for IBM SP2 systems.
>
> You can copy it and link your makefile_macros file to it like it is done
> for the serial
> version compilation. Then try to make abinip.
>
> Makefiles can be highly system dependent, so let me know if it doesn't
> work
> for your system. Best of luck!
> Ravi
>
>
> ###################### Parallel makefile_macros for IBM SP2 #############
> # This file contains the definitions needed for every possible script
> # to be used with the ABINIT makefiles.  It is very much
> machine-dependent.
> # It is read by makemake and makearch.
>
> # This version for a SP2 machine, parallel version
>
> # Explanations about this file can be found in the  makefile_macros_help
> file,
> # in the Infos subdirectory
> ####################################################################
> # Note that the compiler are those for the parallel code.
>
> # Machine type
> MACHINE=ibm
> # Fortran optimized compilation
> FC=mpxlf90_r
> FFLAGS=-O3 -qnolm -qarch=auto -qstrict -q64
> MAIN_ROUTINE_FFLAGS=-qcharlen=16000
> FFLAGS_LIBS=-O3 -qnolm -qarch=auto -qstrict -qfixed -q64
> FLINK=-bloadmap:loadmap
> # C preprocessor, used to preprocess the fortran source.
> CPP=/usr/lib/cpp
> CPP_FLAGS=-P -q64
> # C optimized compilation.
> CC=mpcc_r
> CFLAGS=-O
> # Location of perl . Used to generate the script fldiff, in
> ~ABINIT/Utilities .
> PERL=/usr/local/gnu/bin/perl
> # Definition of libraries
> BLAS=
> LIBS= $(LAPACK) -lblas
>
> ####################################################################
> # For the parallel version
>
> # Location of the MPI library
> # Location of directory with header files *.h for parallel version
> # _BASE=/usr/local/mpich
> _BASE=/usr/lpp/ppe.poe
> FFLAGS_PAR=$(FFLAGS)
> ####################################################################
>
> # This is a last line in parallel makefile_macros ----------
>
>
> -----
> Ravinder  Abrol,  Ph. D.
> 25-143, Department of Physical Sciences
> IBM Thomas J. Watson Research Center
> Yorktown Heights, NY 10598
> Phone: 914-945-1617
> Email: rabrol@us.ibm.com
>
>
>
>
> Ms Gargi Dutta <gdutta@jncasr.ac.in>
> 04/16/2004 12:57 PM
> Please respond to
> forum
>
>
> To
> forum@abinit.org
> cc
>
> Subject
> [abinit-forum] Compilation problem : Abinit_4.2.4 (parallel use)
>
>
>
>
>
>
>
>  Hi,
>      i am having the following problem while compiling vAbinit_4.2.4 for
> parallel use. I have used  xlf90  compiler with the following flags :
>   -O3 -qarch=pwr3 -qstrict -bmaxdata:0x80000000 -qtune=pwr3 -qhot
>
>   The error is in the program "defs_xderive.par.f" in the directory
>  /Src_8seqpar  in the line
>
>              integer(MPI_OFFSET_KIND)  :: offset,posit
>
>       The following is the error :
>
> xlf90 -O3 -qarch=pwr3 -qstrict -bmaxdata:0x80000000 -qtune=pwr3 -qhot   -I
>  /usr/lpp/ppe.poe/include -c defs_xderive.par.f
> "defs_xderive.par.f", line 168.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 195.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 222.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 250.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 282.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 299.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 313.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 341.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> "defs_xderive.par.f", line 355.12: 1516-050 (S) _expression_ or initial
> value must be evaluated at compile time.
> ** defs_xderive   === End of Compilation 1 ===
> 1501-511  Compilation failed for file defs_xderive.par.f.
> make: 1254-004 The error code from the last command is 1.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 2.
>
>
> Stop.
> make: 1254-004 The error code from the last command is 2.
>
>
>   If anyone has come across such an error or can suggest a solution,
> please
>  let me know as soon as possible.
>
>  regards,
>  Gargi
>
>
>
>
>
>
>
>





Archive powered by MHonArc 2.6.16.

Top of Page