Dear Prof. Govindjee,
Thank you for your reply and guidance.
I try AR = ar rv. it still does not work correctly. but it gave a message ,and the detail is
#-----------------------------------------------------------------------
ignoring file umacr12.o, file was built for unsupported file format ( 0x7F 0x45 0x4C 0x46 0x02 0x01 0x01 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 0x00 ) which is not the architecture being linked (x86_64): umacr12.o
Undefined symbols for architecture x86_64:
"_main", referenced from:
implicit entry/start for main executable
(maybe you meant: _main_thread)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make: [install] Error 1 (ignored)
#-----------------------------------------------------------------------
I think there are some problem in my makefile.in file, but I can not fix it. here is my makefile.in file
#------------------------------------------------------------------------
# To use this makefile the path for "$(FEAPHOME8_5)" must be set using
# setenv FEAPHOME8_5=/.... (in .chrc or .tchrc) or
# export FEAPHOME8_5=/.... (in .bashrc or file used)
# N.B. Information after the slash defines to FEAP directories.
#------------------------------------------------------------------------
# Set include file type to use: integer4 for 32 bit machines
# integer8 for 64 bit machines
# Use of integer8 files sets pointers to be integer*8 and all other
# integers to be integer*4. This limits the size of any single array to
# an integer*4 value (approx 4 GByte).
# Use of integer4 files sets all integers (including pointers) to be
# integer*4.
# N.B. If a compiler option is used that sets ALL integers to be
# integer*8, it is necessary to reset the ipr parameter to 'ipr = 1'
# in file 'feap85.f' located in the 'main' directory.
#
#------------------------------------------------------------------------
# arpack archive library (uncomment to use ARPACK eigensolver)
# ARCHIVELIB = $(FEAPHOME8_5)/packages/arpack/archive/libarchive.a
# arpack serial library (uncomment to use ARPACK eigensolver)
# ARPACKLIB = $(FEAPHOME8_5)/packages/arpack/libarpack.a
# No one should need these as you should have native libraries already
# (uncomment if you need a bare bones LAPACK and BLAS)
# Local lapack library (use if you do not have lapack already)
# LAPACKLIB = $(FEAPHOME8_5)/packages/lapack/liblapack.a
# Local blas library
# BLASLIB = $(FEAPHOME8_5)/packages/blas/libblas.a
#------------------------------------------------------------------------
# Location of feap include files
# Fortran includes
# (select either integer*4 or integer*8 based on your machine, add
# additional -I directories as needed, for example -I/opt/include in place of -I/sw/include)
# (integer*4 pointer case)
# FINCLUDE = $(FEAPHOME8_5)/include -I$(FEAPHOME8_5)/modules -I$(FEAPHOME8_5)/include/integer4
# (integer*8 pointer case)
FINCLUDE = $(FEAPHOME8_5)/include -I$(FEAPHOME8_5)/modules -I$(FEAPHOME8_5)/include/integer8
# C includes (some common options, pick as appropriate)
## CINCLUDE = /opt/local/include
# CINCLUDE = /usr/X11R6/include
# IGA include file locations (no need to change)
NINCLUDE = $(FEAPHOME8_5)/igafeap/include -I$(FEAPHOME8_5)/igafeap/modules
#------------------------------------------------------------------------
# Which MPI compilers to use for FE2 and parallel FEAP
# (Set to compiler names available on your computer)
# Parallel MPI Build
FFMPI = /usr/local/bin/mpif90
CCMPI = /usr/local/bin/mpicc
# Parallel FE2 Build
FFE2 = /usr/local/bin/mpif90
CCE2 = /usr/local/bin/mpicc
# Serial compiler names (set as appropriate for your computer)
# GNU Compiler Compilation
FF = gfortran
CC = gcc
# Intel compiler
# FF = ifort
# CC = icc
#------------------------------------------------------------------------
# Select optimization level to use for fortran and C
# (common options are given below)
# Gnu: gfortran/gcc compilers
# FFOPTFLAG = -O2 -Wall -J$(FEAPHOME8_5)/modules
# CCOPTFLAG = -O2 -Wall
FFOPTFLAG = -g -O2 -Wall -J$(FEAPHOME8_5)/modules
CCOPTFLAG = -g -O2 -Wall
# FFOPTFLAG = -g -Wall -J$(FEAPHOME8_5)/modules
# CCOPTFLAG = -g -Wall
# Intel: ifort/icc compilers
# FFOPTFLAG = -O2 -Warn all -J$(FEAPHOME8_5)/modules
# CCOPTFLAG = -O2 -Wall
# FFOPTFLAG = -g -O2 -Warn all -J$(FEAPHOME8_5)/modules
# CCOPTFLAG = -g -O2 -Wall
# FFOPTFLAG = -g -Warn all -J$(FEAPHOME8_5)/modules
# CCOPTFLAG = -g -Wall
#------------------------------------------------------------------------
# Source Types (generally this is blank)
FSOURCE =
CSOURCE =
#------------------------------------------------------------------------
# Source Extender (generally this just 'f' and 'c')
FEXT = f
CEXT = c
F90EXT = f90
#------------------------------------------------------------------------
# Other options to be used by the compiler (generally this is blank)
FOPTIONS =
COPTIONS =
#------------------------------------------------------------------------
# Set options to be used by the loader
# GNU
LDOPTIONS = -lblas -llapack -lm
# Loader options for FE2 build (assumes you are using openmpi, adjust as
# necessary)
# LDOPTIONSFE2 = -L/opt/local/lib/openmpi $(LDOPTIONS)
LDOPTIONSFE2 = -L$(PETSC_DIR)/$(PETSC_ARCH)/lib/openmpi $(LDOPTIONS)
#------------------------------------------------------------------------
# What archiving to use
AR = ar rv
#------------------------------------------------------------------------
# Archive name (no need to change)
ARFEAP = $(FEAPHOME8_5)/Feap8_5.a
#------------------------------------------------------------------------
# IgA Archive name (no need to change)
ARIFEAP = $(FEAPHOME8_5)/igafeap/libifeap8_5.a
#------------------------------------------------------------------------
Maybe you can give my a hint how to change the makefile.in to solve this problem.
Best regards,
Wang