Author Topic: error in installing Feap85 on MacOS High Sierra 10.13.6  (Read 7024 times)

wangzh

  • Jr. Member
  • **
  • Posts: 10
error in installing Feap85 on MacOS High Sierra 10.13.6
« on: December 11, 2018, 05:41:25 AM »
I installed FEAP 8.5 on MacOS High Sierra,
but it gave an error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar: illegal option -- U
make[1]: *** No rule to make target `/Users/wangzh/SourceCode/feap85/Feap8_5.a', needed by `feap'.  Stop.
make: *** [feap] Error 2
Anybody has an idea about that?
Thanks in advance. ;

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #1 on: December 11, 2018, 01:02:13 PM »
What does it say at the bottom of your makefile.in for AR?

wangzh

  • Jr. Member
  • **
  • Posts: 10
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #2 on: December 11, 2018, 04:28:09 PM »
Thanks for your answer
AR = ar rvU

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #3 on: December 11, 2018, 09:36:23 PM »
delete the U

wangzh

  • Jr. Member
  • **
  • Posts: 10
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #4 on: December 12, 2018, 03:38:42 AM »
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

Prof. S. Govindjee

  • Administrator
  • FEAP Guru
  • *****
  • Posts: 1160
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #5 on: December 12, 2018, 06:21:34 AM »
You need to read the errors that the compiler is writing to the screen.   It is telling you exactly what the problem is.

I suggest deleting all the *.o and *.a files and starting over. 

Even better would be to simply delete you entire directory and download a new, clean tar/zip and reinstall from scratch.  This will ensure that you do not have a corrupted install directory.

wangzh

  • Jr. Member
  • **
  • Posts: 10
Re: error in installing Feap85 on MacOS High Sierra 10.13.6
« Reply #6 on: December 13, 2018, 02:42:22 AM »
Dear Prof. Govindjee,

Thanks for the kind instructions.
After deleting all the *.o and *.a files and starting over, run bfeap ,  now it work

Thank you again for your information.

Best regards,
Wang