[Pw_forum] How to compile pwscf on hp-ux ia64

Jun Dai jdai3 at mail.ustc.edu.cn
Thu Mar 13 14:34:04 CET 2008


Dear QE users,

my platform is HP-UX IA64, and i have modified the ~/iotk/src/Makefile by adding
"ARFLAGS=ruv", coz without this line i got "ar -k" error, but i still get the
following error, i checked the make.depend file in ~/PW, but i found the
dependence was right, the quantity ¡°startingpot¡± has defined in module
input_parameters, can anyone share a make.sys that works for this platform or
share some experinces. Thanks in advance!


f90 +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77  +DA2.0W +DS2.0W +noppu
-I../include -D__HP -D__FFTW -D__PARA -D__MPI -D__HP64  -D__USE_INTERNAL_FFTW
-I../Modules -I../PW -I../PH -I../iotk/src  -I/opt/mpi/include -c
compute_fes_grads.f90
/var/tmp//fciBAAa24949.f90
   external subroutine COMPUTE_FES_GRADS
     internal subroutine WRITE_RESTART
     internal function INTERRUPT_RUN
Error 1055 : In program unit COMPUTE_FES_GRADS variable STARTINGPOT has not been
given a type
Error 1055 : In program unit COMPUTE_FES_GRADS variable STARTINGWFC has not been
given a type
   external subroutine METADYN
     internal subroutine FREE_ENERGY_GRAD
     internal subroutine MOVE_TO_TARGET
   external subroutine RESET_INIT_MAG
   external subroutine ELECTRONIC_SCF

2 Errors
f90: error 213: Errors detected.
*** Error exit code 1

##########
my make.sys
##########
# System-dependent definitions for HP-PA RISC machines, HP-UX
# Contributed by Sergey Lisenkov, with help from Eyvaz Isaev
# and Joey Dieckhans. Software configuration:
# HP-UX >=11.0,  HP f90 compiler v >= 2.4, HP C compiler, MLIB
#
# Note that there is one version of MPI that requires the argument
#  "-stdio=i" in command line for reading from standard output

.SUFFIXES :
.SUFFIXES : .o .c .f .f90

.f90.o:
        $(F90) $(F90FLAGS) -c $<

.f.o:
        $(F77) $(FFLAGS) -c $<

.c.o:
        $(CC) $(CFLAGS) -c $<

# Use precompiled fftw library (version <= 2.1.5, NOT v.3!)
# In this case, specify also  how to load the fftw library (FFTW_LIB)
# and the path to the fftw.h include file (FFTW_INC_DIR). Example:
#  32-bit version
#FFTW_LIB     = -L/nethome/proffess/lib/fftw-2.1.5/32/lib -lfftw
#FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/32/include

#  64-bit version
# FFTW_LIB     = -L/nethome/proffess/lib/fftw-2.1.5/64/lib -lfftw
# FFTW_INC_DIR = /nethome/proffess/lib/fftw-2.1.5/64/include

# Add -D__HP64 to CPPFLAGS for 64-bit compilation
#CPPFLAGS     = -I../include -D__HP -D__FFTW -D__PARA -D__MPI -I$(FFTW_INC_DIR)
-D__HP64

## Use the local copy of fftw
CPPFLAGS     = -I../include -D__HP -D__FFTW -D__PARA -D__MPI -D__HP64 \
               -D__USE_INTERNAL_FFTW
               -D__USE_INTERNAL_FFTW

CC           = cc
MPICC        = mpicc
F90          = f90
MPIF90       = mpif90
F77          = $(F90)
MPIF77       = $(MPIF90)

# 32-bit      
#FFLAGS       = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 \
#               +DA2.0 +DS2.0
## 64-bit    
FFLAGS       = +O2 -w +cpp=yes +Odataprefetch +Onolimit +r8 +U77 \
               +DA2.0W +DS2.0W +noppu

F90FLAGS     = $(FFLAGS) $(CPPFLAGS) -I../Modules -I../PW -I../PH -I../iotk/src \
               -I/opt/mpi/include
FFLAGS_NOOPT = -O0

# 32-bit      
#CFLAGS       = $(CPPFLAGS) +O2 +DA2.0 +DS2.0 +DD32 +Odataprefetch +Onolimit
## 64-bit    
CFLAGS       = $(CPPFLAGS) +O2 +DA2.0W +DS2.0W +DD64 +Odataprefetch +Onolimit

## 32-bit      
# LIBS         = -L/opt/mlib/lib/pa2.0 -lveclib -llapack $(FFTW_LIB) -lm
-lpthread
## 64-bit    
LIBS         = -L/opt/mlib/lib/hpux64 -lveclib -llapack $(FFTW_LIB) -lm -lpthread

LD           = $(MPIF90)

# 32-bit
##LDFLAGS      = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
##               +U77 +DA2.0 +DS2.0 +O2
## 64-bit    
LDFLAGS      = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
## 64-bit
LDFLAGS      = ../flib/ptools.a ../flib/flib.a ../clib/clib.a \
               +U77 +DA2.0W +DS2.0W +O2

AR           = ar
ARFLAGS      = ruv
RANLIB       = echo





More information about the users mailing list