How to build on OSX 10.10 Yosimite
Moderators: silvia, selimgunay, Moderators
How to build on OSX 10.10 Yosimite
I put together a how to if anyone is interested:
https://gist.github.com/tgsoverly/81a80 ... -readme-md
Just a very opinionated opinion here but: why don't you guys use github for this code? It would be much easier to manage community contributions.
https://gist.github.com/tgsoverly/81a80 ... -readme-md
Just a very opinionated opinion here but: why don't you guys use github for this code? It would be much easier to manage community contributions.
Re: How to build on OSX 10.10 Yosemite
Thank you for the Yosemite contribution.
Last edited by hovey on Wed Aug 19, 2015 9:51 am, edited 1 time in total.
Re: How to build on OSX 10.10 Yosemite
Can someone with build knowledge lend a hand? The warnings indicate an illegal option, viz.,
...
... // tail of the terminal's response to 'make' ...
...
Making tclAppInit.o from tclAppInit.cpp
Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS -D_NOGRAPHICS -g -O0 -ffloat-store -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Users/Zeus/OpenSees/SRC/matrix -I/Users/Zeus/OpenSees/SRC/nDarray -I/Users/Zeus/OpenSees/SRC/tagged
...
... // etc., all the $(FE_INCLUDES)
...
I/Users/Zeus/OpenSees/SRC/../OTHER/Triangle -I/Users/Zeus/OpenSees/SRC/../OTHER/tetgen1.4.3 -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include/cxx -I/Users/Zeus/include -I/Users/Zeus/blitz -I/include -c tclAppInit.cpp -o tclAppInit.o
Wall: illegal option -- D
usage: wall [-g group] [file]
make[2]: [tclAppInit.o] Error 1 (ignored)
make[1]: g: No such file or directory
make[1]: [tcl] Error 1 (ignored)
Following is my System/Install:
* Mac OS X Yosemite Version 10.10.4
* Source from svn co svn://peera.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees
* // Checked out revision 6067
* Xcode version 6.4
* GMP 6.0.0
* MPFR 3.1.3
* MPC 1.0.3
* gcc 5.2
* Tcl/Tk 8.6.4
And my Makefile.def
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework.
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
PROGRAMMING_MODE = SEQUENTIAL
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
#DEBUG_MODE = NO_DEBUG
DEBUG_MODE = DEBUG
RELIABILITY = NO_RELIABILITY
BASE = /usr/local
FE = $(HOME)/OpenSees/SRC
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
GRAPHIC_LIBRARY =
AGL_OBJS =
#HAVE_BLAS = YES
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
HAVE_BLAS = NO
endif
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ifeq ($(HAVE_BLAS), YES)
BLASdir =
BLAS_LIBRARY =
CBLAS_LIBRARY =
endif
AMDdir = $(HOME)/OpenSees/OTHER/AMD
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
SUPERLU_DISTdir = $(HOME)/OpenSees/OTHER/SuperLU_DIST_2.5/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
METISdir = $(HOME)/OpenSees/OTHER/ITPACK
SRCdir = $(HOME)/OpenSees/SRC
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
DIRS = $(BLASdir) \
$(CBLASdir) \
$(CSPARSEdir) \
$(LAPACKdir) \
$(AMDdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(SRCdir) \
$(METISdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(METISdir) \
$(ITPACKdir)
DISTRIBUTED_SUPERLU_LIBRARY =
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
#CLAPACK_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/lapack_MAC.a
CLAPACK_LIBRARY =
#CLBLAS_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
CLBLAS_LIBRARY =
#LIBF2C_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
LIBF2C_LIBRARY =
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
AMD_LIBRARY = $(HOME)/lib/libAMD.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
ITPACK_LIBRARY = $(HOME)/lib/libItpack.a
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
TCL_LIBRARY = -framework Tcl -framework Tk
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(NDARRAY_LIBRARY) \
$(MATMOD_LIBRARY) \
$(LAPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(BLAS_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(ITPACK_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
#CC++ = /usr/bin/g++
#CC = /usr/bin/gcc
#FC = /usr/local/bin/gfortran
CBH_COMPILERS = /usr/local/gcc/bin
C++ = $(CBH_COMPILERS)/g++
CC = $(CBH_COMPILERS)/gcc
FC = $(CBH_COMPILERS)/gfortran
LINKER = $(CC++)
LINKFLAGS = -Wl
#LINKFLAGS = -Wl
else
CC++ = /usr/local/openmpi-1.2.6/bin/mpic++
CC = /usr/local/openmpi-1.2.6/bin/mpicc
FC = /usr/local/openmpi-1.2.6/bin/mpif77
LINKER = $(CC++)
LINKFLAGS = -L/usr/local/openmpi-1.2.6/lib /usr/local/openmpi-1.2.6/lib/libmpi.a
#LINKFLAGS = -Wl,-u,_munmap -Wl,-multiply_defined,suppress -Wl,-u,_mmap -Wl,-multiply_defined,suppress
endif
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
OS_FLAG = -D_MACOSX
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn $(OS_FLAG) -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -g -O0 -ffloat-store
CFLAGS = -Wall -O0 -g
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store -D_NO_PARALLEL_FILESYSTEM
CFLAGS = -Wall -O2
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
endif
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
HAVE_SCALAPACK = NO
SCALAPACK_INCLUDE =
SCALAPACK_LIB =
HAVE_MUMPS = NO
MUMPS_INCLUDE =
MUMPS_LIB =
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
HAVE_CUDA = NO
CUDA_DIR =
CUDA_FLAG =
CUDA_LIB =
ifeq ($(HAVE_CUDA),YES)
CUDA_DIR = /usr/local/cuda
CUDA_FLAG = -D_CUDA
#CUDA_LIB = -L$(CUDA_DIR)/lib -lcublas
CUDA_LIB = $(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinLapackSolver_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbsv.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrs.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrf.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtf2.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/slaswp.o \
-L$(CUDA_DIR)/lib -cublas -lcuda \
-L/usr/local/scalapack_installer_0.91/lib \
-lrefblas
CUDA_INCLUDE = -I$(CUDA_DIR)/include
endif
#FORTO = $(LAPACKdir)/fortran.o
FORTO =
MACHINE_NUMERICAL_LIBS = \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(ITPACK_LIBRARY) \
$(LAPACK_LIBRARY) \
$(CLAPACK_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
$(FORTO) \
$(CUDA_LIB) \
-ldl -L/usr/local/lib /usr/local/lib/libgfortran.a
MACHINE_SPECIFIC_LIBS = $(AGL_OBJS) -lssl
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSOE.o \
$(LAPACK_LIB) $(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
endif
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz \
-I$(CUDA_DIR)/include
else
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(FE)/../OTHER/SuperLU_DIST_2.0/SRC \
-I$(HOME)/include -I$(HOME)/blitz $(MUMPS_INCLUDE) -I$(CUDA_DIR)/include
endif
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Thank you.
cbh
...
... // tail of the terminal's response to 'make' ...
...
Making tclAppInit.o from tclAppInit.cpp
Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS -D_NOGRAPHICS -g -O0 -ffloat-store -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Users/Zeus/OpenSees/SRC/matrix -I/Users/Zeus/OpenSees/SRC/nDarray -I/Users/Zeus/OpenSees/SRC/tagged
...
... // etc., all the $(FE_INCLUDES)
...
I/Users/Zeus/OpenSees/SRC/../OTHER/Triangle -I/Users/Zeus/OpenSees/SRC/../OTHER/tetgen1.4.3 -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include/cxx -I/Users/Zeus/include -I/Users/Zeus/blitz -I/include -c tclAppInit.cpp -o tclAppInit.o
Wall: illegal option -- D
usage: wall [-g group] [file]
make[2]: [tclAppInit.o] Error 1 (ignored)
make[1]: g: No such file or directory
make[1]: [tcl] Error 1 (ignored)
Following is my System/Install:
* Mac OS X Yosemite Version 10.10.4
* Source from svn co svn://peera.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees
* // Checked out revision 6067
* Xcode version 6.4
* GMP 6.0.0
* MPFR 3.1.3
* MPC 1.0.3
* gcc 5.2
* Tcl/Tk 8.6.4
And my Makefile.def
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework.
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
PROGRAMMING_MODE = SEQUENTIAL
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
#DEBUG_MODE = NO_DEBUG
DEBUG_MODE = DEBUG
RELIABILITY = NO_RELIABILITY
BASE = /usr/local
FE = $(HOME)/OpenSees/SRC
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
GRAPHIC_LIBRARY =
AGL_OBJS =
#HAVE_BLAS = YES
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
HAVE_BLAS = NO
endif
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ifeq ($(HAVE_BLAS), YES)
BLASdir =
BLAS_LIBRARY =
CBLAS_LIBRARY =
endif
AMDdir = $(HOME)/OpenSees/OTHER/AMD
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
SUPERLU_DISTdir = $(HOME)/OpenSees/OTHER/SuperLU_DIST_2.5/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
METISdir = $(HOME)/OpenSees/OTHER/ITPACK
SRCdir = $(HOME)/OpenSees/SRC
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
DIRS = $(BLASdir) \
$(CBLASdir) \
$(CSPARSEdir) \
$(LAPACKdir) \
$(AMDdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(SRCdir) \
$(METISdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(METISdir) \
$(ITPACKdir)
DISTRIBUTED_SUPERLU_LIBRARY =
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
#CLAPACK_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/lapack_MAC.a
CLAPACK_LIBRARY =
#CLBLAS_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
CLBLAS_LIBRARY =
#LIBF2C_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
LIBF2C_LIBRARY =
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
AMD_LIBRARY = $(HOME)/lib/libAMD.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
ITPACK_LIBRARY = $(HOME)/lib/libItpack.a
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
TCL_LIBRARY = -framework Tcl -framework Tk
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(NDARRAY_LIBRARY) \
$(MATMOD_LIBRARY) \
$(LAPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(BLAS_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(ITPACK_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
#CC++ = /usr/bin/g++
#CC = /usr/bin/gcc
#FC = /usr/local/bin/gfortran
CBH_COMPILERS = /usr/local/gcc/bin
C++ = $(CBH_COMPILERS)/g++
CC = $(CBH_COMPILERS)/gcc
FC = $(CBH_COMPILERS)/gfortran
LINKER = $(CC++)
LINKFLAGS = -Wl
#LINKFLAGS = -Wl
else
CC++ = /usr/local/openmpi-1.2.6/bin/mpic++
CC = /usr/local/openmpi-1.2.6/bin/mpicc
FC = /usr/local/openmpi-1.2.6/bin/mpif77
LINKER = $(CC++)
LINKFLAGS = -L/usr/local/openmpi-1.2.6/lib /usr/local/openmpi-1.2.6/lib/libmpi.a
#LINKFLAGS = -Wl,-u,_munmap -Wl,-multiply_defined,suppress -Wl,-u,_mmap -Wl,-multiply_defined,suppress
endif
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
OS_FLAG = -D_MACOSX
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn $(OS_FLAG) -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -g -O0 -ffloat-store
CFLAGS = -Wall -O0 -g
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store -D_NO_PARALLEL_FILESYSTEM
CFLAGS = -Wall -O2
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
endif
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
HAVE_SCALAPACK = NO
SCALAPACK_INCLUDE =
SCALAPACK_LIB =
HAVE_MUMPS = NO
MUMPS_INCLUDE =
MUMPS_LIB =
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
HAVE_CUDA = NO
CUDA_DIR =
CUDA_FLAG =
CUDA_LIB =
ifeq ($(HAVE_CUDA),YES)
CUDA_DIR = /usr/local/cuda
CUDA_FLAG = -D_CUDA
#CUDA_LIB = -L$(CUDA_DIR)/lib -lcublas
CUDA_LIB = $(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinLapackSolver_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbsv.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrs.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrf.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtf2.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/slaswp.o \
-L$(CUDA_DIR)/lib -cublas -lcuda \
-L/usr/local/scalapack_installer_0.91/lib \
-lrefblas
CUDA_INCLUDE = -I$(CUDA_DIR)/include
endif
#FORTO = $(LAPACKdir)/fortran.o
FORTO =
MACHINE_NUMERICAL_LIBS = \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(ITPACK_LIBRARY) \
$(LAPACK_LIBRARY) \
$(CLAPACK_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
$(FORTO) \
$(CUDA_LIB) \
-ldl -L/usr/local/lib /usr/local/lib/libgfortran.a
MACHINE_SPECIFIC_LIBS = $(AGL_OBJS) -lssl
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSOE.o \
$(LAPACK_LIB) $(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
endif
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz \
-I$(CUDA_DIR)/include
else
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(FE)/../OTHER/SuperLU_DIST_2.0/SRC \
-I$(HOME)/include -I$(HOME)/blitz $(MUMPS_INCLUDE) -I$(CUDA_DIR)/include
endif
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Thank you.
cbh
Re: How to build on OSX 10.10 Yosimite
Chad,
thanks for the email .. this is more useful for others.
your compile command is starting off with Wall (which is the start of the C++FLAGS) .. so it is missing a definition of the CC++ compiler .. this is because you are missing a C in the line where you define the compiler .. in short instead of:
C++ = $(CBH_COMPILERS)/g++
it should be:
CC++ = $(CBH_COMPILERS)/g++
thanks for the email .. this is more useful for others.
your compile command is starting off with Wall (which is the start of the C++FLAGS) .. so it is missing a definition of the CC++ compiler .. this is because you are missing a C in the line where you define the compiler .. in short instead of:
C++ = $(CBH_COMPILERS)/g++
it should be:
CC++ = $(CBH_COMPILERS)/g++
Re: How to build on OSX 10.10 Yosemite
Frank, thank you for the reply. My error is anecdotal proof the 'copy/paste' pattern is often more robust than the 'manual transcribe' pattern.
I changed the my above-described Makefile.def as follows:
Zeus:OpenSees Zeus$ diff Makefile.def.2015-08-19 Makefile.def
154,157c154,159
< CBH_COMPILERS = /usr/local/gcc/bin
< C++ = $(CBH_COMPILERS)/g++
< CC = $(CBH_COMPILERS)/gcc
< FC = $(CBH_COMPILERS)/gfortran
---
> CBH_COMPILERS = /usr/local/gcc
> CBH_COMPILERS_BIN = $(CBH_COMPILERS)/bin
> CBH_COMPILERS_LIB = $(CBH_COMPILERS)/lib
> CC++ = $(CBH_COMPILERS_BIN)/g++
> CC = $(CBH_COMPILERS_BIN)/gcc
> FC = $(CBH_COMPILERS_BIN)/gfortran
319c321,322
< -ldl -L/usr/local/lib /usr/local/lib/libgfortran.a
---
> -ldl -L/usr/local/lib $(CBH_COMPILERS_LIB)/libgfortran.a
Zeus:OpenSees Zeus$
wherein I (also) preemptively caught a future link error with 'libgfortran.a' (as described in 'Troubleshooting' in https://gist.github.com/tgsoverly/81a80 ... -readme-md).
Zeus$ make
looks good except:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02
wherein <string.h> appears not get included, and several object files, particularly with Tcl involvement, appear to be missing.
Thank you for your assistance.
cbh
//////////////////////////////////////////////////////////////////////////////////////////
Zeus:OpenSees Zeus$ make
ar cqls /Users/Zeus/lib/libCBlas.a idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o drot.o dscal.o \
dgemv.o dsymv.o dtrsv.o dger.o dsyr2.o dmyblas2.o
ranlib /Users/Zeus/lib/libCBlas.a
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/Zeus/lib/libAMD.a(amd_dump.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/Zeus/lib/libAMD.a(amd_dump.o) has no symbols
Makefile:152: warning: overriding commands for target `.c.o'
../../../Makefile.def:253: warning: ignoring old commands for target `.c.o'
Makefile:155: warning: overriding commands for target `.f.o'
../../../Makefile.def:256: warning: ignoring old commands for target `.f.o'
ar cqls /Users/Zeus/lib/libSuperLU.a \
dgssv.o dgssvx.o dsp_blas2.o dsp_blas3.o dgscon.o dlangs.o dgsequ.o dlaqgs.o dpivotgrowth.o dgsrfs.o dgstrf.o dgstrs.o dcopy_to_ucol.o dsnode_dfs.o dsnode_bmod.o dpanel_dfs.o dpanel_bmod.o dreadhb.o dreadrb.o dreadtriple.o dcolumn_dfs.o dcolumn_bmod.o dpivotL.o dpruneL.o dmemory.o dutil.o dmyblas2.o dgsisx.o dgsitrf.o dldperm.o ilu_ddrop_row.o ilu_dsnode_dfs.o ilu_dcolumn_dfs.o ilu_dpanel_dfs.o ilu_dcopy_to_ucol.o ilu_dpivotL.o ddiagonal.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o lsame.o xerbla.o dlacon.o dlamch.o
ranlib /Users/Zeus/lib/libSuperLU.a
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
Unknown target BandGenLinSOE_Single.o, try: make help
make[4]: Nothing to be done for `all'.
Unknown target ProfileSPDLinSolverGather.o, try: make help
Unknown target ProfileSPDLinSOEGather.o, try: make help
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `law'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
Unknown target HardeningMaterial2.o, try: make help
Unknown target TclImpactMaterial.o, try: make help
Unknown target KinematicHardening.o, try: make help
Unknown target TclKinematicHardening.o, try: make help
Unknown target TclNewUnixialMaterial.o, try: make help
Unknown target PenaltyMaterial.o, try: make help
Unknown target WrappedMaterial.o, try: make help
Unknown target SecantMaterial.o, try: make help
Unknown target ConfinedConcrete02.o, try: make help
Making ModIMKPeakOriented02.o from ModIMKPeakOriented02.cpp
/usr/local/gcc/bin/g++ -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS -D_NOGRAPHICS -g -O0 -ffloat-store -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Users/Zeus/OpenSees/SRC/matrix -I/Users/Zeus/OpenSees/SRC/nDarray -I/Users/Zeus/OpenSees/SRC/tagged -I/Users/Zeus/OpenSees/SRC/damage -I/Users/Zeus/OpenSees/SRC/tcl -I/Users/Zeus/OpenSees/SRC/material -I/Users/Zeus/OpenSees/SRC/material/wall -I/Users/Zeus/OpenSees/SRC/material/uniaxial -I/Users/Zeus/OpenSees/SRC/material/uniaxial/fedeas -I/Users/Zeus/OpenSees/SRC/material/uniaxial/drain -I/Users/Zeus/OpenSees/SRC/material/uniaxial/snap -I/Users/Zeus/OpenSees/SRC/material/uniaxial/PY -I/Users/Zeus/OpenSees/SRC/material/uniaxial/limitState -I/Users/Zeus/OpenSees/SRC/material/uniaxial/limitState/limitCurve -I/Users/Zeus/OpenSees/SRC/material/uniaxial/backbone -I/Users/Zeus/OpenSees/SRC/material/state -I/Users/Zeus/OpenSees/SRC/material/state/stiffness -I/Users/Zeus/OpenSees/SRC/material/state/unloading -I/Users/Zeus/OpenSees/SRC/material/state/strength -I/Users/Zeus/OpenSees/SRC/material/nD -I/Users/Zeus/OpenSees/SRC/material/nD/soil -I/Users/Zeus/OpenSees/SRC/material/nD/feap -I/Users/Zeus/OpenSees/SRC/material/nD/Template3Dep -I/Users/Zeus/OpenSees/SRC/material/nD/NewTemplate3Dep -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdFlow -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdYield -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdEvolution -I/Users/Zeus/OpenSees/SRC/material/nD/cyclicSoil -I/Users/Zeus/OpenSees/SRC/material/nD/UWmaterials -I/Users/Zeus/OpenSees/SRC/material/nD/stressDilatancyModel -I/Users/Zeus/OpenSees/SRC/material/section -I/Users/Zeus/OpenSees/SRC/material/section/repres/cell -I/Users/Zeus/OpenSees/SRC/material/section/repres/patch -I/Users/Zeus/OpenSees/SRC/material/section/repres/reinfBar -I/Users/Zeus/OpenSees/SRC/material/section/repres/reinfLayer -I/Users/Zeus/OpenSees/SRC/material/section/repres/section -I/Users/Zeus/OpenSees/SRC/material/section/fiber -I/Users/Zeus/OpenSees/SRC/material/section/integration -I/Users/Zeus/OpenSees/SRC/material/section/yieldSurface -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/evolution -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/yieldSurfaceBC -I/Users/Zeus/OpenSees/SRC/material/ce234 -I/Users/Zeus/OpenSees/SRC/recorder -I/Users/Zeus/OpenSees/SRC/recorder/response -I/Users/Zeus/OpenSees/SRC/handler -I/Users/Zeus/OpenSees/SRC/database -I/Users/Zeus/OpenSees/SRC/renderer -I/Users/Zeus/OpenSees/SRC/convergenceTest -I/Users/Zeus/OpenSees/SRC/utility -I/Users/Zeus/OpenSees/SRC/actor -I/Users/Zeus/OpenSees/SRC/actor/channel -I/Users/Zeus/OpenSees/SRC/actor/message -I/Users/Zeus/OpenSees/SRC/actor/machineBroker -I/Users/Zeus/OpenSees/SRC/actor/objectBroker -I/Users/Zeus/OpenSees/SRC/actor/actor -I/Users/Zeus/OpenSees/SRC/actor/shadow -I/Users/Zeus/OpenSees/SRC/actor/address -I/Users/Zeus/OpenSees/SRC/tagged/storage -I/Users/Zeus/OpenSees/SRC/domain -I/Users/Zeus/OpenSees/SRC/domain/domain -I/Users/Zeus/OpenSees/SRC/domain/domain/single -I/Users/Zeus/OpenSees/SRC/domain/component -I/Users/Zeus/OpenSees/SRC/domain/component/storage -I/Users/Zeus/OpenSees/SRC/domain/domain/partitioned -I/Users/Zeus/OpenSees/SRC/domain/partitioner -I/Users/Zeus/OpenSees/SRC/domain/loadBalancer -I/Users/Zeus/OpenSees/SRC/domain/subdomain -I/Users/Zeus/OpenSees/SRC/domain/region -I/Users/Zeus/OpenSees/SRC/domain/node -I/Users/Zeus/OpenSees/SRC/domain/load -I/Users/Zeus/OpenSees/SRC/domain/pattern -I/Users/Zeus/OpenSees/SRC/domain/pattern/drm -I/Users/Zeus/OpenSees/SRC/domain/groundMotion -I/Users/Zeus/OpenSees/SRC/domain/constraints -I/Users/Zeus/OpenSees/SRC/domain/region -I/Users/Zeus/OpenSees/SRC/element -I/Users/Zeus/OpenSees/SRC/element/beam2d -I/Users/Zeus/OpenSees/SRC/element/beam3d -I/Users/Zeus/OpenSees/SRC/element/truss -I/Users/Zeus/OpenSees/SRC/element/fortran -I/Users/Zeus/OpenSees/SRC/element/feap -I/Users/Zeus/OpenSees/SRC/element/zeroLength -I/Users/Zeus/OpenSees/SRC/element/fourNodeQuad -I/Users/Zeus/OpenSees/SRC/element/triangle -I/Users/Zeus/OpenSees/SRC/element/PFEMElement -I/Users/Zeus/OpenSees/SRC/element/beamWithHinges -I/Users/Zeus/OpenSees/SRC/element/dispBeamColumn -I/Users/Zeus/OpenSees/SRC/element/dispBeamColumnInt -I/Users/Zeus/OpenSees/SRC/element/forceBeamColumn -I/Users/Zeus/OpenSees/SRC/element/generic -I/Users/Zeus/OpenSees/SRC/element/elasticBeamColumn -I/Users/Zeus/OpenSees/SRC/element/8nbrick -I/Users/Zeus/OpenSees/SRC/element/20nbrick -I/Users/Zeus/OpenSees/SRC/element/27nbrick -I/Users/Zeus/OpenSees/SRC/element/upU -I/Users/Zeus/OpenSees/SRC/element/UP_ucdavis -I/Users/Zeus/OpenSees/SRC/element/UP-ucsd -I/Users/Zeus/OpenSees/SRC/element/TotalLagrangianFD20NodeBrick -I/Users/Zeus/OpenSees/SRC/element/brick -I/Users/Zeus/OpenSees/SRC/element/shell -I/Users/Zeus/OpenSees/SRC/element/joint -I/Users/Zeus/OpenSees/SRC/element/elastomericBearing -I/Users/Zeus/OpenSees/SRC/element/frictionBearing -I/Users/Zeus/OpenSees/SRC/element/frictionBearing/frictionModel -I/Users/Zeus/OpenSees/SRC/element/adapter -I/Users/Zeus/OpenSees/SRC/element/twoNodeLink -I/Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn -I/Users/Zeus/OpenSees/SRC/element/UWelements -I/Users/Zeus/OpenSees/SRC/element/HUelements -I/Users/Zeus/OpenSees/SRC/analysis -I/Users/Zeus/OpenSees/SRC/analysis/analysis -I/Users/Zeus/OpenSees/SRC/analysis/handler -I/Users/Zeus/OpenSees/SRC/analysis/numberer -I/Users/Zeus/OpenSees/SRC/analysis/algorithm -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/eigenAlgo -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/equiSolnAlgo -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/accelerator -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/domainDecompAlgo -I/Users/Zeus/OpenSees/SRC/analysis/model -I/Users/Zeus/OpenSees/SRC/analysis/model/simple -I/Users/Zeus/OpenSees/SRC/analysis/method -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/penalty -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/lagrange -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/transformation -I/Users/Zeus/OpenSees/SRC/analysis/dof_grp -I/Users/Zeus/OpenSees/SRC/analysis/integrator -I/Users/Zeus/OpenSees/SRC/modelbuilder -I/Users/Zeus/OpenSees/SRC/modelbuilder/triangle -I/Users/Zeus/OpenSees/SRC/modelbuilder/tcl -I/Users/Zeus/OpenSees/SRC/system_of_eqn -I/Users/Zeus/OpenSees/SRC/system_of_eqn/eigenSOE -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/slowMatrix -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/bandSPD -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/profileSPD -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/fullGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/bandGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/sparseSYM -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/petsc -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/umfGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/diagonal -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/cg -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/BJsolvers -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/itpack -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/mumps -I/Users/Zeus/OpenSees/SRC/system_of_eqn/eigenSOE -I/Users/Zeus/OpenSees/SRC/graph/graph -I/Users/Zeus/OpenSees/SRC/graph/numberer -I/Users/Zeus/OpenSees/SRC/graph/partitioner -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/element -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/fiber -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/matrixutil -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/quadrule -I/Users/Zeus/OpenSees/SRC/coordTransformation -I/Users/Zeus/OpenSees/SRC/reliability/analysis -I/Users/Zeus/OpenSees/SRC/reliability/analysis/analysis -I/Users/Zeus/OpenSees/SRC/reliability/analysis/analysis/system -I/Users/Zeus/OpenSees/SRC/reliability/analysis/convergenceCheck -I/Users/Zeus/OpenSees/SRC/reliability/analysis/curvature -I/Users/Zeus/OpenSees/SRC/reliability/analysis/designPoint -I/Users/Zeus/OpenSees/SRC/reliability/analysis/direction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/gFunction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/gradient -I/Users/Zeus/OpenSees/SRC/reliability/analysis/hessian -I/Users/Zeus/OpenSees/SRC/reliability/analysis/meritFunction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/misc -I/Users/Zeus/OpenSees/SRC/reliability/analysis/randomNumber -I/Users/Zeus/OpenSees/SRC/reliability/analysis/rootFinding -I/Users/Zeus/OpenSees/SRC/reliability/analysis/sensitivity -I/Users/Zeus/OpenSees/SRC/reliability/analysis/stepSize -I/Users/Zeus/OpenSees/SRC/reliability/analysis/transformation -I/Users/Zeus/OpenSees/SRC/reliability/analysis/telm -I/Users/Zeus/OpenSees/SRC/reliability/domain -I/Users/Zeus/OpenSees/SRC/reliability/domain/components -I/Users/Zeus/OpenSees/SRC/reliability/domain/distributions -I/Users/Zeus/OpenSees/SRC/reliability/domain/filter -I/Users/Zeus/OpenSees/SRC/reliability/domain/modulatingFunction -I/Users/Zeus/OpenSees/SRC/reliability/domain/spectrum -I/Users/Zeus/OpenSees/SRC/reliability/domain/storage -I/Users/Zeus/OpenSees/SRC/reliability/domain/functionEvaluator -I/Users/Zeus/OpenSees/SRC/reliability/domain/performanceFunction -I/Users/Zeus/OpenSees/SRC/optimization/tcl -I/Users/Zeus/OpenSees/SRC/optimization/domain -I/Users/Zeus/OpenSees/SRC/optimization/domain/component -I/Users/Zeus/OpenSees/SRC/optimization/SNOPT -I/Users/Zeus/OpenSees/SRC/reliability/FEsensitivity -I/Users/Zeus/OpenSees/SRC/reliability/tcl -I/Users/Zeus/OpenSees/SRC/unittest -I/Users/Zeus/OpenSees/SRC/api -I/Users/Zeus/OpenSees/SRC -I/Users/Zeus/OpenSees/OTHER/SuperLU_4.1/SRC -I/Users/Zeus/OpenSees/SRC/package -I/Users/Zeus/OpenSees/SRC/../OTHER/AMD -I/Users/Zeus/OpenSees/SRC/../OTHER/CSPARSE -I/Users/Zeus/OpenSees/SRC/../OTHER/Triangle -I/Users/Zeus/OpenSees/SRC/../OTHER/tetgen1.4.3 -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include/cxx -I/Users/Zeus/include -I/Users/Zeus/blitz -I/include -c ModIMKPeakOriented02.cpp -o ModIMKPeakOriented02.o
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:182:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:200:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:218:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:116:12: warning: ‘ModIMKPeakOriented02::C_Fn’ will be initialized after [-Wreorder]
double C_Fn; // Updated:Filipe Ribeiro and Andre Barbosa
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:218:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02()’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:234:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02()
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:116:12: warning: ‘ModIMKPeakOriented02::C_Fn’ will be initialized after [-Wreorder]
double C_Fn; // Updated:Filipe Ribeiro and Andre Barbosa
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:234:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02()
^
ModIMKPeakOriented02.cpp: In member function ‘virtual int ModIMKPeakOriented02::setTrialStrain(double, double)’:
ModIMKPeakOriented02.cpp:509:16: warning: unused variable ‘a2’ [-Wunused-variable]
double a2 = Enrgtk-(Enrgtot-RSE);
^
ModIMKPeakOriented02.cpp: In member function ‘virtual Response* ModIMKPeakOriented02::setResponse(const char**, int, OPS_Stream&)’:
ModIMKPeakOriented02.cpp29: error: ‘strcmp’ was not declared in this scope
if ((strcmp(argv[0],"dres") == 0)) {
^
make[3]: *** [ModIMKPeakOriented02.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
Makefile:152: warning: overriding commands for target `.c.o'
../../../Makefile.def:253: warning: ignoring old commands for target `.c.o'
Makefile:155: warning: overriding commands for target `.f.o'
../../../Makefile.def:256: warning: ignoring old commands for target `.f.o'
ar cqls /Users/Zeus/lib/libSuperLU.a \
dgssv.o dgssvx.o dsp_blas2.o dsp_blas3.o dgscon.o dlangs.o dgsequ.o dlaqgs.o dpivotgrowth.o dgsrfs.o dgstrf.o dgstrs.o dcopy_to_ucol.o dsnode_dfs.o dsnode_bmod.o dpanel_dfs.o dpanel_bmod.o dreadhb.o dreadrb.o dreadtriple.o dcolumn_dfs.o dcolumn_bmod.o dpivotL.o dpruneL.o dmemory.o dutil.o dmyblas2.o dgsisx.o dgsitrf.o dldperm.o ilu_ddrop_row.o ilu_dsnode_dfs.o ilu_dcolumn_dfs.o ilu_dpanel_dfs.o ilu_dcopy_to_ucol.o ilu_dpivotL.o ddiagonal.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o lsame.o xerbla.o dlacon.o dlamch.o
ranlib /Users/Zeus/lib/libSuperLU.a
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclPatternCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclSeriesCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclSeriesIntegratorCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/groundMotion/TclGroundMotionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/limitState/TclLimitState.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/zeroLength/TclZeroLength.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/forceBeamColumn/TclForceBeamColumnCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/coordTransformation/TclGeomTransfCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclJoint2dCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclJoint3dCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclBeamColumnJointCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dYS.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dGNL.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclCyclicModelCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/yieldSurfaceBC/TclModelBuilderYieldSurfaceBCCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/evolution/TclModelBuilderYS_EvolutionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/damage/TclModelBuilderDamageModelCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/soil/TclUpdateMaterialStageCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/UP-ucsd/TclFourNodeQuadUPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/recorder/TclRecorderCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/TclElementCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/dispBeamColumnInt/TclDispBeamColumnIntCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elasticBeamColumn/TclElasticBeamCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/fourNodeQuad/TclFourNodeQuadCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/brick/TclTwenty_Node_BrickCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/brick/TclBrickCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclActuatorCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclActuatorCorotCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclAdapterCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/generic/TclGenericClientCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/generic/TclGenericCopyCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingBoucWenCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/feap/TclFeapElementCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/feap/TclFeapMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/beamWithHinges/TclBeamWithHingesBuilder.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/frictionModel/TclModelBuilderFrictionModelCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/PFEMElement/TclModelBuilder_addPFEMElement.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/PFEMElement/TclPFEMCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/backbone/TclModelBuilderBackboneCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/TclModelBuilderUniaxialMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/TclModelBuilderNDMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/section/yieldSurface/TclModelBuilderYS_SectionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/section/TclModelBuilderSectionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/component/TclUpdateMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/component/TclParameterCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/region/TclRegionCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/twoNodeLink/TclTwoNodeLinkCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclRJWatsonEQSCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/snap/TclSnapMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclFlatSliderCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingPlasticityCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingUFRPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclSingleFPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/fedeas/TclFedeasMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/drain/TclDrainMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/api/elementAPI_TCL.o: No such file or directory
g++: error: /Users/Zeus/lib/libOpenSees.a: No such file or directory
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
Zeus:OpenSees Zeus$
I changed the my above-described Makefile.def as follows:
Zeus:OpenSees Zeus$ diff Makefile.def.2015-08-19 Makefile.def
154,157c154,159
< CBH_COMPILERS = /usr/local/gcc/bin
< C++ = $(CBH_COMPILERS)/g++
< CC = $(CBH_COMPILERS)/gcc
< FC = $(CBH_COMPILERS)/gfortran
---
> CBH_COMPILERS = /usr/local/gcc
> CBH_COMPILERS_BIN = $(CBH_COMPILERS)/bin
> CBH_COMPILERS_LIB = $(CBH_COMPILERS)/lib
> CC++ = $(CBH_COMPILERS_BIN)/g++
> CC = $(CBH_COMPILERS_BIN)/gcc
> FC = $(CBH_COMPILERS_BIN)/gfortran
319c321,322
< -ldl -L/usr/local/lib /usr/local/lib/libgfortran.a
---
> -ldl -L/usr/local/lib $(CBH_COMPILERS_LIB)/libgfortran.a
Zeus:OpenSees Zeus$
wherein I (also) preemptively caught a future link error with 'libgfortran.a' (as described in 'Troubleshooting' in https://gist.github.com/tgsoverly/81a80 ... -readme-md).
Zeus$ make
looks good except:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02
wherein <string.h> appears not get included, and several object files, particularly with Tcl involvement, appear to be missing.
Thank you for your assistance.
cbh
//////////////////////////////////////////////////////////////////////////////////////////
Zeus:OpenSees Zeus$ make
ar cqls /Users/Zeus/lib/libCBlas.a idamax.o dasum.o daxpy.o dcopy.o ddot.o dnrm2.o drot.o dscal.o \
dgemv.o dsymv.o dtrsv.o dger.o dsyr2.o dmyblas2.o
ranlib /Users/Zeus/lib/libCBlas.a
make[1]: Nothing to be done for `all'.
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/Zeus/lib/libAMD.a(amd_dump.o) has no symbols
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib: file: /Users/Zeus/lib/libAMD.a(amd_dump.o) has no symbols
Makefile:152: warning: overriding commands for target `.c.o'
../../../Makefile.def:253: warning: ignoring old commands for target `.c.o'
Makefile:155: warning: overriding commands for target `.f.o'
../../../Makefile.def:256: warning: ignoring old commands for target `.f.o'
ar cqls /Users/Zeus/lib/libSuperLU.a \
dgssv.o dgssvx.o dsp_blas2.o dsp_blas3.o dgscon.o dlangs.o dgsequ.o dlaqgs.o dpivotgrowth.o dgsrfs.o dgstrf.o dgstrs.o dcopy_to_ucol.o dsnode_dfs.o dsnode_bmod.o dpanel_dfs.o dpanel_bmod.o dreadhb.o dreadrb.o dreadtriple.o dcolumn_dfs.o dcolumn_bmod.o dpivotL.o dpruneL.o dmemory.o dutil.o dmyblas2.o dgsisx.o dgsitrf.o dldperm.o ilu_ddrop_row.o ilu_dsnode_dfs.o ilu_dcolumn_dfs.o ilu_dpanel_dfs.o ilu_dcopy_to_ucol.o ilu_dpivotL.o ddiagonal.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o lsame.o xerbla.o dlacon.o dlamch.o
ranlib /Users/Zeus/lib/libSuperLU.a
make[2]: Nothing to be done for `all'.
make[2]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
Unknown target BandGenLinSOE_Single.o, try: make help
make[4]: Nothing to be done for `all'.
Unknown target ProfileSPDLinSolverGather.o, try: make help
Unknown target ProfileSPDLinSOEGather.o, try: make help
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `law'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[4]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
make[3]: Nothing to be done for `all'.
Unknown target HardeningMaterial2.o, try: make help
Unknown target TclImpactMaterial.o, try: make help
Unknown target KinematicHardening.o, try: make help
Unknown target TclKinematicHardening.o, try: make help
Unknown target TclNewUnixialMaterial.o, try: make help
Unknown target PenaltyMaterial.o, try: make help
Unknown target WrappedMaterial.o, try: make help
Unknown target SecantMaterial.o, try: make help
Unknown target ConfinedConcrete02.o, try: make help
Making ModIMKPeakOriented02.o from ModIMKPeakOriented02.cpp
/usr/local/gcc/bin/g++ -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS -D_NOGRAPHICS -g -O0 -ffloat-store -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers -I/Users/Zeus/OpenSees/SRC/matrix -I/Users/Zeus/OpenSees/SRC/nDarray -I/Users/Zeus/OpenSees/SRC/tagged -I/Users/Zeus/OpenSees/SRC/damage -I/Users/Zeus/OpenSees/SRC/tcl -I/Users/Zeus/OpenSees/SRC/material -I/Users/Zeus/OpenSees/SRC/material/wall -I/Users/Zeus/OpenSees/SRC/material/uniaxial -I/Users/Zeus/OpenSees/SRC/material/uniaxial/fedeas -I/Users/Zeus/OpenSees/SRC/material/uniaxial/drain -I/Users/Zeus/OpenSees/SRC/material/uniaxial/snap -I/Users/Zeus/OpenSees/SRC/material/uniaxial/PY -I/Users/Zeus/OpenSees/SRC/material/uniaxial/limitState -I/Users/Zeus/OpenSees/SRC/material/uniaxial/limitState/limitCurve -I/Users/Zeus/OpenSees/SRC/material/uniaxial/backbone -I/Users/Zeus/OpenSees/SRC/material/state -I/Users/Zeus/OpenSees/SRC/material/state/stiffness -I/Users/Zeus/OpenSees/SRC/material/state/unloading -I/Users/Zeus/OpenSees/SRC/material/state/strength -I/Users/Zeus/OpenSees/SRC/material/nD -I/Users/Zeus/OpenSees/SRC/material/nD/soil -I/Users/Zeus/OpenSees/SRC/material/nD/feap -I/Users/Zeus/OpenSees/SRC/material/nD/Template3Dep -I/Users/Zeus/OpenSees/SRC/material/nD/NewTemplate3Dep -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdFlow -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdYield -I/Users/Zeus/OpenSees/SRC/material/nD/FiniteDeformation/fdEvolution -I/Users/Zeus/OpenSees/SRC/material/nD/cyclicSoil -I/Users/Zeus/OpenSees/SRC/material/nD/UWmaterials -I/Users/Zeus/OpenSees/SRC/material/nD/stressDilatancyModel -I/Users/Zeus/OpenSees/SRC/material/section -I/Users/Zeus/OpenSees/SRC/material/section/repres/cell -I/Users/Zeus/OpenSees/SRC/material/section/repres/patch -I/Users/Zeus/OpenSees/SRC/material/section/repres/reinfBar -I/Users/Zeus/OpenSees/SRC/material/section/repres/reinfLayer -I/Users/Zeus/OpenSees/SRC/material/section/repres/section -I/Users/Zeus/OpenSees/SRC/material/section/fiber -I/Users/Zeus/OpenSees/SRC/material/section/integration -I/Users/Zeus/OpenSees/SRC/material/section/yieldSurface -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/evolution -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial -I/Users/Zeus/OpenSees/SRC/material/yieldSurface/yieldSurfaceBC -I/Users/Zeus/OpenSees/SRC/material/ce234 -I/Users/Zeus/OpenSees/SRC/recorder -I/Users/Zeus/OpenSees/SRC/recorder/response -I/Users/Zeus/OpenSees/SRC/handler -I/Users/Zeus/OpenSees/SRC/database -I/Users/Zeus/OpenSees/SRC/renderer -I/Users/Zeus/OpenSees/SRC/convergenceTest -I/Users/Zeus/OpenSees/SRC/utility -I/Users/Zeus/OpenSees/SRC/actor -I/Users/Zeus/OpenSees/SRC/actor/channel -I/Users/Zeus/OpenSees/SRC/actor/message -I/Users/Zeus/OpenSees/SRC/actor/machineBroker -I/Users/Zeus/OpenSees/SRC/actor/objectBroker -I/Users/Zeus/OpenSees/SRC/actor/actor -I/Users/Zeus/OpenSees/SRC/actor/shadow -I/Users/Zeus/OpenSees/SRC/actor/address -I/Users/Zeus/OpenSees/SRC/tagged/storage -I/Users/Zeus/OpenSees/SRC/domain -I/Users/Zeus/OpenSees/SRC/domain/domain -I/Users/Zeus/OpenSees/SRC/domain/domain/single -I/Users/Zeus/OpenSees/SRC/domain/component -I/Users/Zeus/OpenSees/SRC/domain/component/storage -I/Users/Zeus/OpenSees/SRC/domain/domain/partitioned -I/Users/Zeus/OpenSees/SRC/domain/partitioner -I/Users/Zeus/OpenSees/SRC/domain/loadBalancer -I/Users/Zeus/OpenSees/SRC/domain/subdomain -I/Users/Zeus/OpenSees/SRC/domain/region -I/Users/Zeus/OpenSees/SRC/domain/node -I/Users/Zeus/OpenSees/SRC/domain/load -I/Users/Zeus/OpenSees/SRC/domain/pattern -I/Users/Zeus/OpenSees/SRC/domain/pattern/drm -I/Users/Zeus/OpenSees/SRC/domain/groundMotion -I/Users/Zeus/OpenSees/SRC/domain/constraints -I/Users/Zeus/OpenSees/SRC/domain/region -I/Users/Zeus/OpenSees/SRC/element -I/Users/Zeus/OpenSees/SRC/element/beam2d -I/Users/Zeus/OpenSees/SRC/element/beam3d -I/Users/Zeus/OpenSees/SRC/element/truss -I/Users/Zeus/OpenSees/SRC/element/fortran -I/Users/Zeus/OpenSees/SRC/element/feap -I/Users/Zeus/OpenSees/SRC/element/zeroLength -I/Users/Zeus/OpenSees/SRC/element/fourNodeQuad -I/Users/Zeus/OpenSees/SRC/element/triangle -I/Users/Zeus/OpenSees/SRC/element/PFEMElement -I/Users/Zeus/OpenSees/SRC/element/beamWithHinges -I/Users/Zeus/OpenSees/SRC/element/dispBeamColumn -I/Users/Zeus/OpenSees/SRC/element/dispBeamColumnInt -I/Users/Zeus/OpenSees/SRC/element/forceBeamColumn -I/Users/Zeus/OpenSees/SRC/element/generic -I/Users/Zeus/OpenSees/SRC/element/elasticBeamColumn -I/Users/Zeus/OpenSees/SRC/element/8nbrick -I/Users/Zeus/OpenSees/SRC/element/20nbrick -I/Users/Zeus/OpenSees/SRC/element/27nbrick -I/Users/Zeus/OpenSees/SRC/element/upU -I/Users/Zeus/OpenSees/SRC/element/UP_ucdavis -I/Users/Zeus/OpenSees/SRC/element/UP-ucsd -I/Users/Zeus/OpenSees/SRC/element/TotalLagrangianFD20NodeBrick -I/Users/Zeus/OpenSees/SRC/element/brick -I/Users/Zeus/OpenSees/SRC/element/shell -I/Users/Zeus/OpenSees/SRC/element/joint -I/Users/Zeus/OpenSees/SRC/element/elastomericBearing -I/Users/Zeus/OpenSees/SRC/element/frictionBearing -I/Users/Zeus/OpenSees/SRC/element/frictionBearing/frictionModel -I/Users/Zeus/OpenSees/SRC/element/adapter -I/Users/Zeus/OpenSees/SRC/element/twoNodeLink -I/Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn -I/Users/Zeus/OpenSees/SRC/element/UWelements -I/Users/Zeus/OpenSees/SRC/element/HUelements -I/Users/Zeus/OpenSees/SRC/analysis -I/Users/Zeus/OpenSees/SRC/analysis/analysis -I/Users/Zeus/OpenSees/SRC/analysis/handler -I/Users/Zeus/OpenSees/SRC/analysis/numberer -I/Users/Zeus/OpenSees/SRC/analysis/algorithm -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/eigenAlgo -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/equiSolnAlgo -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/equiSolnAlgo/accelerator -I/Users/Zeus/OpenSees/SRC/analysis/algorithm/domainDecompAlgo -I/Users/Zeus/OpenSees/SRC/analysis/model -I/Users/Zeus/OpenSees/SRC/analysis/model/simple -I/Users/Zeus/OpenSees/SRC/analysis/method -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/penalty -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/lagrange -I/Users/Zeus/OpenSees/SRC/analysis/fe_ele/transformation -I/Users/Zeus/OpenSees/SRC/analysis/dof_grp -I/Users/Zeus/OpenSees/SRC/analysis/integrator -I/Users/Zeus/OpenSees/SRC/modelbuilder -I/Users/Zeus/OpenSees/SRC/modelbuilder/triangle -I/Users/Zeus/OpenSees/SRC/modelbuilder/tcl -I/Users/Zeus/OpenSees/SRC/system_of_eqn -I/Users/Zeus/OpenSees/SRC/system_of_eqn/eigenSOE -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/slowMatrix -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/bandSPD -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/profileSPD -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/fullGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/bandGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/sparseGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/sparseSYM -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/petsc -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/umfGEN -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/diagonal -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/cg -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/BJsolvers -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/itpack -I/Users/Zeus/OpenSees/SRC/system_of_eqn/linearSOE/mumps -I/Users/Zeus/OpenSees/SRC/system_of_eqn/eigenSOE -I/Users/Zeus/OpenSees/SRC/graph/graph -I/Users/Zeus/OpenSees/SRC/graph/numberer -I/Users/Zeus/OpenSees/SRC/graph/partitioner -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/element -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/fiber -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/matrixutil -I/Users/Zeus/OpenSees/SRC/element/nonlinearBeamColumn/quadrule -I/Users/Zeus/OpenSees/SRC/coordTransformation -I/Users/Zeus/OpenSees/SRC/reliability/analysis -I/Users/Zeus/OpenSees/SRC/reliability/analysis/analysis -I/Users/Zeus/OpenSees/SRC/reliability/analysis/analysis/system -I/Users/Zeus/OpenSees/SRC/reliability/analysis/convergenceCheck -I/Users/Zeus/OpenSees/SRC/reliability/analysis/curvature -I/Users/Zeus/OpenSees/SRC/reliability/analysis/designPoint -I/Users/Zeus/OpenSees/SRC/reliability/analysis/direction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/gFunction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/gradient -I/Users/Zeus/OpenSees/SRC/reliability/analysis/hessian -I/Users/Zeus/OpenSees/SRC/reliability/analysis/meritFunction -I/Users/Zeus/OpenSees/SRC/reliability/analysis/misc -I/Users/Zeus/OpenSees/SRC/reliability/analysis/randomNumber -I/Users/Zeus/OpenSees/SRC/reliability/analysis/rootFinding -I/Users/Zeus/OpenSees/SRC/reliability/analysis/sensitivity -I/Users/Zeus/OpenSees/SRC/reliability/analysis/stepSize -I/Users/Zeus/OpenSees/SRC/reliability/analysis/transformation -I/Users/Zeus/OpenSees/SRC/reliability/analysis/telm -I/Users/Zeus/OpenSees/SRC/reliability/domain -I/Users/Zeus/OpenSees/SRC/reliability/domain/components -I/Users/Zeus/OpenSees/SRC/reliability/domain/distributions -I/Users/Zeus/OpenSees/SRC/reliability/domain/filter -I/Users/Zeus/OpenSees/SRC/reliability/domain/modulatingFunction -I/Users/Zeus/OpenSees/SRC/reliability/domain/spectrum -I/Users/Zeus/OpenSees/SRC/reliability/domain/storage -I/Users/Zeus/OpenSees/SRC/reliability/domain/functionEvaluator -I/Users/Zeus/OpenSees/SRC/reliability/domain/performanceFunction -I/Users/Zeus/OpenSees/SRC/optimization/tcl -I/Users/Zeus/OpenSees/SRC/optimization/domain -I/Users/Zeus/OpenSees/SRC/optimization/domain/component -I/Users/Zeus/OpenSees/SRC/optimization/SNOPT -I/Users/Zeus/OpenSees/SRC/reliability/FEsensitivity -I/Users/Zeus/OpenSees/SRC/reliability/tcl -I/Users/Zeus/OpenSees/SRC/unittest -I/Users/Zeus/OpenSees/SRC/api -I/Users/Zeus/OpenSees/SRC -I/Users/Zeus/OpenSees/OTHER/SuperLU_4.1/SRC -I/Users/Zeus/OpenSees/SRC/package -I/Users/Zeus/OpenSees/SRC/../OTHER/AMD -I/Users/Zeus/OpenSees/SRC/../OTHER/CSPARSE -I/Users/Zeus/OpenSees/SRC/../OTHER/Triangle -I/Users/Zeus/OpenSees/SRC/../OTHER/tetgen1.4.3 -I/usr/include -I/usr/local/include -I/usr/local/include -I/usr/include/cxx -I/Users/Zeus/include -I/Users/Zeus/blitz -I/include -c ModIMKPeakOriented02.cpp -o ModIMKPeakOriented02.o
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:182:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:200:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02(int, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double, double)’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:218:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:116:12: warning: ‘ModIMKPeakOriented02::C_Fn’ will be initialized after [-Wreorder]
double C_Fn; // Updated:Filipe Ribeiro and Andre Barbosa
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:218:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02(int tag, double Ke0, double alfanPos, double alfanNeg, double my_pos, double my_neg, // Updated:Filipe Ribeiro and Andre Barbosa
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h: In constructor ‘ModIMKPeakOriented02::ModIMKPeakOriented02()’:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:143:12: warning: ‘ModIMKPeakOriented02::DNeg’ will be initialized after [-Wreorder]
double DNeg;
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:115:12: warning: ‘double ModIMKPeakOriented02::C_Fp’ [-Wreorder]
double C_Fp; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:234:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02()
^
In file included from ModIMKPeakOriented02.cpp:39:0:
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:116:12: warning: ‘ModIMKPeakOriented02::C_Fn’ will be initialized after [-Wreorder]
double C_Fn; // Updated:Filipe Ribeiro and Andre Barbosa
^
/Users/Zeus/OpenSees/SRC/material/uniaxial/ModIMKPeakOriented02.h:114:12: warning: ‘double ModIMKPeakOriented02::nFacto’ [-Wreorder]
double nFactor; // Updated:Filipe Ribeiro and Andre Barbosa
^
ModIMKPeakOriented02.cpp:234:1: warning: when initialized here [-Wreorder]
ModIMKPeakOriented02::ModIMKPeakOriented02()
^
ModIMKPeakOriented02.cpp: In member function ‘virtual int ModIMKPeakOriented02::setTrialStrain(double, double)’:
ModIMKPeakOriented02.cpp:509:16: warning: unused variable ‘a2’ [-Wunused-variable]
double a2 = Enrgtk-(Enrgtot-RSE);
^
ModIMKPeakOriented02.cpp: In member function ‘virtual Response* ModIMKPeakOriented02::setResponse(const char**, int, OPS_Stream&)’:
ModIMKPeakOriented02.cpp29: error: ‘strcmp’ was not declared in this scope
if ((strcmp(argv[0],"dres") == 0)) {
^
make[3]: *** [ModIMKPeakOriented02.o] Error 1
make[2]: *** [all] Error 2
make[1]: *** [all] Error 2
Makefile:152: warning: overriding commands for target `.c.o'
../../../Makefile.def:253: warning: ignoring old commands for target `.c.o'
Makefile:155: warning: overriding commands for target `.f.o'
../../../Makefile.def:256: warning: ignoring old commands for target `.f.o'
ar cqls /Users/Zeus/lib/libSuperLU.a \
dgssv.o dgssvx.o dsp_blas2.o dsp_blas3.o dgscon.o dlangs.o dgsequ.o dlaqgs.o dpivotgrowth.o dgsrfs.o dgstrf.o dgstrs.o dcopy_to_ucol.o dsnode_dfs.o dsnode_bmod.o dpanel_dfs.o dpanel_bmod.o dreadhb.o dreadrb.o dreadtriple.o dcolumn_dfs.o dcolumn_bmod.o dpivotL.o dpruneL.o dmemory.o dutil.o dmyblas2.o dgsisx.o dgsitrf.o dldperm.o ilu_ddrop_row.o ilu_dsnode_dfs.o ilu_dcolumn_dfs.o ilu_dpanel_dfs.o ilu_dcopy_to_ucol.o ilu_dpivotL.o ddiagonal.o superlu_timer.o util.o memory.o get_perm_c.o mmd.o sp_coletree.o sp_preorder.o sp_ienv.o relax_snode.o heap_relax_snode.o colamd.o ilu_relax_snode.o ilu_heap_relax_snode.o mark_relax.o mc64ad.o qselect.o lsame.o xerbla.o dlacon.o dlamch.o
ranlib /Users/Zeus/lib/libSuperLU.a
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclPatternCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclSeriesCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/pattern/TclSeriesIntegratorCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/groundMotion/TclGroundMotionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/limitState/TclLimitState.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/zeroLength/TclZeroLength.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/forceBeamColumn/TclForceBeamColumnCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/coordTransformation/TclGeomTransfCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclJoint2dCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclJoint3dCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/joint/TclBeamColumnJointCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dYS.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dGNL.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclCyclicModelCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/yieldSurfaceBC/TclModelBuilderYieldSurfaceBCCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/evolution/TclModelBuilderYS_EvolutionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/damage/TclModelBuilderDamageModelCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/soil/TclUpdateMaterialStageCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/UP-ucsd/TclFourNodeQuadUPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/recorder/TclRecorderCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/TclElementCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/dispBeamColumnInt/TclDispBeamColumnIntCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elasticBeamColumn/TclElasticBeamCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/fourNodeQuad/TclFourNodeQuadCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/brick/TclTwenty_Node_BrickCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/brick/TclBrickCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclActuatorCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclActuatorCorotCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/adapter/TclAdapterCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/generic/TclGenericClientCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/generic/TclGenericCopyCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingBoucWenCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/feap/TclFeapElementCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/feap/TclFeapMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/beamWithHinges/TclBeamWithHingesBuilder.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/frictionModel/TclModelBuilderFrictionModelCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/PFEMElement/TclModelBuilder_addPFEMElement.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/PFEMElement/TclPFEMCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/backbone/TclModelBuilderBackboneCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/TclModelBuilderUniaxialMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/nD/TclModelBuilderNDMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/section/yieldSurface/TclModelBuilderYS_SectionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/section/TclModelBuilderSectionCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/component/TclUpdateMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/component/TclParameterCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/domain/region/TclRegionCommands.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/twoNodeLink/TclTwoNodeLinkCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclRJWatsonEQSCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/snap/TclSnapMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclFlatSliderCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingPlasticityCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingUFRPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/element/frictionBearing/TclSingleFPCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/fedeas/TclFedeasMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/material/uniaxial/drain/TclDrainMaterialCommand.o: No such file or directory
g++: error: /Users/Zeus/OpenSees/SRC/api/elementAPI_TCL.o: No such file or directory
g++: error: /Users/Zeus/lib/libOpenSees.a: No such file or directory
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
Zeus:OpenSees Zeus$
Last edited by hovey on Wed Sep 02, 2015 9:03 am, edited 1 time in total.
Re: How to build on OSX 10.10 Yosimite
in SRC/Ops_Globals.h uncomment the #include <string.h> and probably stdlib while you are at it
Re: How to build on OSX 10.10 Yosemite
Frank, thanks for the reply!
Lines 41-42 of OPS_Globals.h as
#include <string.h>
#include <stdlib.h>
gets me over the aforementioned hurdle. Indeed, I see you made similar comments at
http://opensees.berkeley.edu/community/ ... ls#p104391
Sorry you had to repeat yourself, Frank.
~~~
When I get to the LINK stage, libOpenSees.a and libgfortran.a problems arose:
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
Undefined symbols for architecture x86_64:
"tetrahedralize(char*, tetgenio*, tetgenio*, tetgenio*, tetgenio*)", referenced from:
PFEMMesher3D::discretize(int, std::vector<PFEMMesher3D::Point, std::allocator<PFEMMesher3D::Point> > const&, std::vector<PFEMMesher3D::Facet, std::allocator<PFEMMesher3D::Facet> >, std::vector<PFEMMesher3D::Point, std::allocator<PFEMMesher3D::Point> > const&, double, int, std::vector<int, std::allocator<int> > const&, std::vector<double, std::allocator<double> > const&, Domain*, int&) in libOpenSees.a(PFEMMesher3D.o)
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::memorypool::~memorypool()", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
tetgenmesh::~tetgenmesh() in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::circumsphere(double*, double*, double*, double*, double*, double*)", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::PI", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::lu_decmp(double (*) [4], int, int*, double*, int)", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::arraypool::~arraypool()", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
tetgenmesh::~tetgenmesh() in libOpenSees.a(PFEMMesher3D.o)
"_finiteq", referenced from:
_write_float in libgfortran.a(write.o)
"_isnanq", referenced from:
_write_float in libgfortran.a(write.o)
"_quadmath_snprintf", referenced from:
_write_float in libgfortran.a(write.o)
"_signbitq", referenced from:
_write_float in libgfortran.a(write.o)
"_strtoflt128", referenced from:
__gfortrani_convert_real in libgfortran.a(read.o)
__gfortrani_convert_infnan in libgfortran.a(read.o)
"_triangulate", referenced from:
PFEMMesher2D::discretize(int, Vector const&, Vector const&, Vector const&, double, int, Vector const&, Vector const&, Vector const&, Domain*, int&) in libOpenSees.a(PFEMMesher2D.o)
PFEMMesher2D::doTriangulation(double, ID const&, ID const&, Domain*, ID&) in libOpenSees.a(PFEMMesher2D.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
Zeus:OpenSees Zeus$
I found partial solutions searching OpenSees posts for ‘PFEMMesher2D’ which led me to
http://opensees.berkeley.edu/community/ ... 2D#p104402
I thank both rafal and Dr. Michael H. Scott for their contributions to that post.
I updated my Makefile.def to include changes, pertaining to TRIANGLE_LIBRARY and TETGEN_LIBRARY, as recommended by Dr. Scott in
http://opensees.berkeley.edu/community/ ... ls#p104456
and I think I'm left with only the libgfortran.a link hurdles.
After Google searching, I found a couple nice articles:
http://osxdaily.com/2014/02/12/install- ... -mac-os-x/
https://developer.apple.com/library/mac ... ect.1.html
that helped me realize I wasn't picking up the CommandLineTools, viz.,
Zeus:bin Zeus$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Zeus:bin Zeus$ sudo xcode-select -s /Library/Developer/CommandLineTools/
Password:
Zeus:bin Zeus$ xcode-select -p
/Library/Developer/CommandLineTools
mentioned at the beginning of this post.
So, while I am making incremental progress, I'm not yet across the build/link finish line and would very much appreciate insight into clearing these hurdles. Thank you.
-cbh
Lines 41-42 of OPS_Globals.h as
#include <string.h>
#include <stdlib.h>
gets me over the aforementioned hurdle. Indeed, I see you made similar comments at
http://opensees.berkeley.edu/community/ ... ls#p104391
Sorry you had to repeat yourself, Frank.
~~~
When I get to the LINK stage, libOpenSees.a and libgfortran.a problems arose:
LIBRARIES BUILT ... NOW LINKING OpenSees PROGRAM
make[1]: Nothing to be done for `tcl'.
make[2]: Nothing to be done for `tcl'.
Undefined symbols for architecture x86_64:
"tetrahedralize(char*, tetgenio*, tetgenio*, tetgenio*, tetgenio*)", referenced from:
PFEMMesher3D::discretize(int, std::vector<PFEMMesher3D::Point, std::allocator<PFEMMesher3D::Point> > const&, std::vector<PFEMMesher3D::Facet, std::allocator<PFEMMesher3D::Facet> >, std::vector<PFEMMesher3D::Point, std::allocator<PFEMMesher3D::Point> > const&, double, int, std::vector<int, std::allocator<int> > const&, std::vector<double, std::allocator<double> > const&, Domain*, int&) in libOpenSees.a(PFEMMesher3D.o)
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::memorypool::~memorypool()", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
tetgenmesh::~tetgenmesh() in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::circumsphere(double*, double*, double*, double*, double*, double*)", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::PI", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::lu_decmp(double (*) [4], int, int*, double*, int)", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
"tetgenmesh::arraypool::~arraypool()", referenced from:
PFEMMesher3D::doTriangulation(std::vector<int, std::allocator<int> > const&, double, double, std::vector<int, std::allocator<int> > const&, Domain*, std::vector<int, std::allocator<int> >&) in libOpenSees.a(PFEMMesher3D.o)
tetgenmesh::~tetgenmesh() in libOpenSees.a(PFEMMesher3D.o)
"_finiteq", referenced from:
_write_float in libgfortran.a(write.o)
"_isnanq", referenced from:
_write_float in libgfortran.a(write.o)
"_quadmath_snprintf", referenced from:
_write_float in libgfortran.a(write.o)
"_signbitq", referenced from:
_write_float in libgfortran.a(write.o)
"_strtoflt128", referenced from:
__gfortrani_convert_real in libgfortran.a(read.o)
__gfortrani_convert_infnan in libgfortran.a(read.o)
"_triangulate", referenced from:
PFEMMesher2D::discretize(int, Vector const&, Vector const&, Vector const&, double, int, Vector const&, Vector const&, Vector const&, Domain*, int&) in libOpenSees.a(PFEMMesher2D.o)
PFEMMesher2D::doTriangulation(double, ID const&, ID const&, Domain*, ID&) in libOpenSees.a(PFEMMesher2D.o)
ld: symbol(s) not found for architecture x86_64
collect2: error: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make: *** [all] Error 2
Zeus:OpenSees Zeus$
I found partial solutions searching OpenSees posts for ‘PFEMMesher2D’ which led me to
http://opensees.berkeley.edu/community/ ... 2D#p104402
I thank both rafal and Dr. Michael H. Scott for their contributions to that post.
I updated my Makefile.def to include changes, pertaining to TRIANGLE_LIBRARY and TETGEN_LIBRARY, as recommended by Dr. Scott in
http://opensees.berkeley.edu/community/ ... ls#p104456
and I think I'm left with only the libgfortran.a link hurdles.
After Google searching, I found a couple nice articles:
http://osxdaily.com/2014/02/12/install- ... -mac-os-x/
https://developer.apple.com/library/mac ... ect.1.html
that helped me realize I wasn't picking up the CommandLineTools, viz.,
Zeus:bin Zeus$ xcode-select -p
/Applications/Xcode.app/Contents/Developer
Zeus:bin Zeus$ sudo xcode-select -s /Library/Developer/CommandLineTools/
Password:
Zeus:bin Zeus$ xcode-select -p
/Library/Developer/CommandLineTools
mentioned at the beginning of this post.
So, while I am making incremental progress, I'm not yet across the build/link finish line and would very much appreciate insight into clearing these hurdles. Thank you.
-cbh
Last edited by hovey on Wed Sep 02, 2015 9:05 am, edited 1 time in total.
Re: How to build on OSX 10.10 Yosimite
try adding
/usr/local/lib/libquadmath.a
to the end of MACHINE_NUMERICAL_LIBS
/usr/local/lib/libquadmath.a
to the end of MACHINE_NUMERICAL_LIBS
Re: How to build on OSX 10.10 Yosemite
Frank,
Build success!
Yes, that suggested worked, but with a slight modification because my libquadmath.a exists at
/usr/local/gcc/lib/
not
/usr/local/lib/
I am happy to provide a cleaned up version of my Makefile.def as a current (2015-08-28) candidate for OpenSees/MAKES/Makefile.def.MacOS10.10, if you have interested and if there is a mechanism for the community to contribute to the main source trunk.
In the interim, I post my working Makefile.def below. Thanks again!
-cbh
~~~~
###########################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework.
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
PROGRAMMING_MODE = SEQUENTIAL
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
#DEBUG_MODE = NO_DEBUG
DEBUG_MODE = DEBUG
RELIABILITY = NO_RELIABILITY
BASE = /usr/local
FE = $(HOME)/OpenSees/SRC
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
GRAPHIC_LIBRARY =
AGL_OBJS =
#HAVE_BLAS = YES
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
HAVE_BLAS = NO
endif
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ifeq ($(HAVE_BLAS), YES)
BLASdir =
BLAS_LIBRARY =
CBLAS_LIBRARY =
endif
AMDdir = $(HOME)/OpenSees/OTHER/AMD
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
SUPERLU_DISTdir = $(HOME)/OpenSees/OTHER/SuperLU_DIST_2.5/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
METISdir = $(HOME)/OpenSees/OTHER/ITPACK
SRCdir = $(HOME)/OpenSees/SRC
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
TRIANGLEdir = $(HOME)/OpenSees/OTHER/Triangle
TETGENdir = $(HOME)/Opensees/OTHER/tetgen1.4.3
DIRS = $(BLASdir) \
$(CBLASdir) \
$(CSPARSEdir) \
$(LAPACKdir) \
$(AMDdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(SRCdir) \
$(METISdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(METISdir) \
$(ITPACKdir) \
$(TRIANGLEdir) \
$(TETGENdir)
DISTRIBUTED_SUPERLU_LIBRARY =
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
#CLAPACK_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/lapack_MAC.a
CLAPACK_LIBRARY =
#CLBLAS_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
CLBLAS_LIBRARY =
#LIBF2C_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
LIBF2C_LIBRARY =
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
AMD_LIBRARY = $(HOME)/lib/libAMD.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
ITPACK_LIBRARY = $(HOME)/lib/libItpack.a
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
# CBH 2015-08-24 BEGIN
# Based on post by Michael H. Scott, regarding
# building error svn sources under Linux, 2015-08-19
# TRIANGLE_LIBRARY = $(libpath)/libTriangle.a
# TETGEN_LIBRARY = $(libpath)/libTetgen.a
TRIANGLE_LIBRARY = $(HOME)/lib/libTriangle.a
TETGEN_LIBRARY = $(HOME)/lib/libTetgen.a
# CBH 2015-08-24 END
TCL_LIBRARY = -framework Tcl -framework Tk
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(NDARRAY_LIBRARY) \
$(MATMOD_LIBRARY) \
$(LAPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(BLAS_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(ITPACK_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
#CC++ = /usr/bin/g++
#CC = /usr/bin/gcc
#FC = /usr/local/bin/gfortran
CBH_COMPILERS = /usr/local/gcc
CBH_COMPILERS_BIN = $(CBH_COMPILERS)/bin
CBH_COMPILERS_LIB = $(CBH_COMPILERS)/lib
CC++ = $(CBH_COMPILERS_BIN)/g++
CC = $(CBH_COMPILERS_BIN)/gcc
FC = $(CBH_COMPILERS_BIN)/gfortran
LINKER = $(CC++)
LINKFLAGS = -Wl
#LINKFLAGS = -Wl
else
CC++ = /usr/local/openmpi-1.2.6/bin/mpic++
CC = /usr/local/openmpi-1.2.6/bin/mpicc
FC = /usr/local/openmpi-1.2.6/bin/mpif77
LINKER = $(CC++)
LINKFLAGS = -L/usr/local/openmpi-1.2.6/lib /usr/local/openmpi-1.2.6/lib/libmpi.a
#LINKFLAGS = -Wl,-u,_munmap -Wl,-multiply_defined,suppress -Wl,-u,_mmap -Wl,-multiply_defined,suppress
endif
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
OS_FLAG = -D_MACOSX
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn $(OS_FLAG) -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -g -O0 -ffloat-store
CFLAGS = -Wall -O0 -g
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store -D_NO_PARALLEL_FILESYSTEM
CFLAGS = -Wall -O2
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
endif
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
HAVE_SCALAPACK = NO
SCALAPACK_INCLUDE =
SCALAPACK_LIB =
HAVE_MUMPS = NO
MUMPS_INCLUDE =
MUMPS_LIB =
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
HAVE_CUDA = NO
CUDA_DIR =
CUDA_FLAG =
CUDA_LIB =
ifeq ($(HAVE_CUDA),YES)
CUDA_DIR = /usr/local/cuda
CUDA_FLAG = -D_CUDA
#CUDA_LIB = -L$(CUDA_DIR)/lib -lcublas
CUDA_LIB = $(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinLapackSolver_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbsv.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrs.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrf.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtf2.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/slaswp.o \
-L$(CUDA_DIR)/lib -cublas -lcuda \
-L/usr/local/scalapack_installer_0.91/lib \
-lrefblas
CUDA_INCLUDE = -I$(CUDA_DIR)/include
endif
#FORTO = $(LAPACKdir)/fortran.o
FORTO =
MACHINE_NUMERICAL_LIBS = \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(ITPACK_LIBRARY) \
$(LAPACK_LIBRARY) \
$(CLAPACK_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
$(FORTO) \
$(CUDA_LIB) \
$(TRIANGLE_LIBRARY) \
$(TETGEN_LIBRARY) \
-ldl -L/usr/local/lib $(CBH_COMPILERS_LIB)/libgfortran.a $(CBH_COMPILERS_LIB)/libquadmath.a
MACHINE_SPECIFIC_LIBS = $(AGL_OBJS) -lssl
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSOE.o \
$(LAPACK_LIB) $(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
endif
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz \
-I$(CUDA_DIR)/include
else
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(FE)/../OTHER/SuperLU_DIST_2.0/SRC \
-I$(HOME)/include -I$(HOME)/blitz $(MUMPS_INCLUDE) -I$(CUDA_DIR)/include
endif
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)
Build success!
Yes, that suggested worked, but with a slight modification because my libquadmath.a exists at
/usr/local/gcc/lib/
not
/usr/local/lib/
I am happy to provide a cleaned up version of my Makefile.def as a current (2015-08-28) candidate for OpenSees/MAKES/Makefile.def.MacOS10.10, if you have interested and if there is a mechanism for the community to contribute to the main source trunk.
In the interim, I post my working Makefile.def below. Thanks again!
-cbh
~~~~
###########################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework.
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################
# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
PROGRAMMING_MODE = SEQUENTIAL
OpenSees_PROGRAM = $(HOME)/bin/OpenSees
OPERATING_SYSTEM = LINUX
#DEBUG_MODE = NO_DEBUG
DEBUG_MODE = DEBUG
RELIABILITY = NO_RELIABILITY
BASE = /usr/local
FE = $(HOME)/OpenSees/SRC
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
GRAPHIC_LIBRARY =
AGL_OBJS =
#HAVE_BLAS = YES
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
HAVE_BLAS = NO
endif
BLASdir = $(HOME)/OpenSees/OTHER/BLAS
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
BLAS_LIBRARY = $(HOME)/lib/libBlas.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ifeq ($(HAVE_BLAS), YES)
BLASdir =
BLAS_LIBRARY =
CBLAS_LIBRARY =
endif
AMDdir = $(HOME)/OpenSees/OTHER/AMD
LAPACKdir = $(HOME)/OpenSees/OTHER/LAPACK
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_4.1/SRC
SUPERLU_DISTdir = $(HOME)/OpenSees/OTHER/SuperLU_DIST_2.5/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/OpenSees/OTHER/METIS
METISdir = $(HOME)/OpenSees/OTHER/ITPACK
SRCdir = $(HOME)/OpenSees/SRC
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
TRIANGLEdir = $(HOME)/OpenSees/OTHER/Triangle
TETGENdir = $(HOME)/Opensees/OTHER/tetgen1.4.3
DIRS = $(BLASdir) \
$(CBLASdir) \
$(CSPARSEdir) \
$(LAPACKdir) \
$(AMDdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(SRCdir) \
$(METISdir) \
$(SUPERLUdir) \
$(ARPACKdir) \
$(UMFPACKdir) \
$(METISdir) \
$(ITPACKdir) \
$(TRIANGLEdir) \
$(TETGENdir)
DISTRIBUTED_SUPERLU_LIBRARY =
# %-------------------------------------------------------%
# | SECTION 3: LIBRARIES |
# | |
# | The following section defines the libraries that will |
# | be created and/or linked with when the libraries are |
# | being created or linked with. |
# %-------------------------------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries leave the
# libraries blank. You have to get your own copy of the tcl/tk
# library!!
#
# Note: For libraries that will be created (any in DIRS above)
# make sure the directory exsists where you want the library to go!
FE_LIBRARY = $(HOME)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(HOME)/lib/libndarray.a # BJ_UCD jeremic@ucdavis.edu
MATMOD_LIBRARY = $(HOME)/lib/libmatmod.a # BJ_UCD jeremic@ucdavis.edu
BJMISC_LIBRARY = $(HOME)/lib/libBJmisc.a # BJ_UCD jeremic@ucdavis.edu
LAPACK_LIBRARY = $(HOME)/lib/libLapack.a
#CLAPACK_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/lapack_MAC.a
CLAPACK_LIBRARY =
#CLBLAS_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
CLBLAS_LIBRARY =
#LIBF2C_LIBRARY = $(HOME)/OpenSees/OTHER/CLAPACK-3.1.1/blas_MAC.a
LIBF2C_LIBRARY =
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
AMD_LIBRARY = $(HOME)/lib/libAMD.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(HOME)/lib/libMetis.a
ITPACK_LIBRARY = $(HOME)/lib/libItpack.a
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a
# CBH 2015-08-24 BEGIN
# Based on post by Michael H. Scott, regarding
# building error svn sources under Linux, 2015-08-19
# TRIANGLE_LIBRARY = $(libpath)/libTriangle.a
# TETGEN_LIBRARY = $(libpath)/libTetgen.a
TRIANGLE_LIBRARY = $(HOME)/lib/libTriangle.a
TETGEN_LIBRARY = $(HOME)/lib/libTetgen.a
# CBH 2015-08-24 END
TCL_LIBRARY = -framework Tcl -framework Tk
# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(NDARRAY_LIBRARY) \
$(MATMOD_LIBRARY) \
$(LAPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(BLAS_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(ITPACK_LIBRARY)
# %---------------------------------------------------------%
# | SECTION 4: COMPILERS |
# | |
# | The following macros specify compilers, linker/loaders, |
# | the archiver, and their options. You need to make sure |
# | these are correct for your system. |
# %---------------------------------------------------------%
# Compilers
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
#CC++ = /usr/bin/g++
#CC = /usr/bin/gcc
#FC = /usr/local/bin/gfortran
CBH_COMPILERS = /usr/local/gcc
CBH_COMPILERS_BIN = $(CBH_COMPILERS)/bin
CBH_COMPILERS_LIB = $(CBH_COMPILERS)/lib
CC++ = $(CBH_COMPILERS_BIN)/g++
CC = $(CBH_COMPILERS_BIN)/gcc
FC = $(CBH_COMPILERS_BIN)/gfortran
LINKER = $(CC++)
LINKFLAGS = -Wl
#LINKFLAGS = -Wl
else
CC++ = /usr/local/openmpi-1.2.6/bin/mpic++
CC = /usr/local/openmpi-1.2.6/bin/mpicc
FC = /usr/local/openmpi-1.2.6/bin/mpif77
LINKER = $(CC++)
LINKFLAGS = -L/usr/local/openmpi-1.2.6/lib /usr/local/openmpi-1.2.6/lib/libmpi.a
#LINKFLAGS = -Wl,-u,_munmap -Wl,-multiply_defined,suppress -Wl,-u,_mmap -Wl,-multiply_defined,suppress
endif
AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =
# Compiler Flags
#
# NOTES:
# C++ FLAGS TAKE need _UNIX or _WIN32 for preprocessor dircetives
# - the _WIN32 for the Windows95/98 or NT operating system.
# C FLAGS used -DUSE_VENDOR_BLAS (needed in SuperLU) if UNIX in C++ FLAGS
#
OS_FLAG = -D_MACOSX
# modified as optimizaton currently causing problems with Steeln01 code
ifeq ($(DEBUG_MODE), DEBUG)
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn $(OS_FLAG) -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -g -O0 -ffloat-store
CFLAGS = -Wall -O0 -g
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
LINKER = $(CC++)
LINKFLAGS = -g -pg
else
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 -D_AMDn -D_MACOSX -D_HTTPS \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(MUMPS_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store -D_NO_PARALLEL_FILESYSTEM
CFLAGS = -Wall -O2
FFLAGS = -Wall -O -DCUBLAS -x f77-cpp-input --no-second-underscore
# Linker
endif
# Misc
MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh
# %---------------------------------------------------------%
# | SECTION 5: COMPILATION |
# | |
# | The following macros specify the macros used in |
# | to compile the source code into object code. |
# %---------------------------------------------------------%
.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o .cpp
#
# %------------------%
# | Default command. |
# %------------------%
#
.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"
#
# %-------------------------------------------%
# | Command to build .o files from .f files. |
# %-------------------------------------------%
#
.cpp.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.C.o:
@$(ECHO) Making $@ from $<
$(CC++) $(C++FLAGS) $(INCLUDES) -c $< -o $@
.c.o:
@$(ECHO) Making $@ from $<
$(CC) $(CFLAGS) -c $< -o $@
.f.o:
@$(ECHO) Making $@ from $<
$(FC) $(FFLAGS) -c $< -o $@
# %---------------------------------------------------------%
# | SECTION 6: OTHER LIBRARIES |
# | |
# | The following macros specify other libraries that must |
# | be linked with when creating executables. These are |
# | platform specific and typically order does matter!! |
# %---------------------------------------------------------%
HAVE_SCALAPACK = NO
SCALAPACK_INCLUDE =
SCALAPACK_LIB =
HAVE_MUMPS = NO
MUMPS_INCLUDE =
MUMPS_LIB =
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib
HAVE_CUDA = NO
CUDA_DIR =
CUDA_FLAG =
CUDA_LIB =
ifeq ($(HAVE_CUDA),YES)
CUDA_DIR = /usr/local/cuda
CUDA_FLAG = -D_CUDA
#CUDA_LIB = -L$(CUDA_DIR)/lib -lcublas
CUDA_LIB = $(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinSOE_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/BandGenLinLapackSolver_Single.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbsv.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrs.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtrf.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/sgbtf2.o \
$(FE)/system_of_eqn/linearSOE/bandGEN/slaswp.o \
-L$(CUDA_DIR)/lib -cublas -lcuda \
-L/usr/local/scalapack_installer_0.91/lib \
-lrefblas
CUDA_INCLUDE = -I$(CUDA_DIR)/include
endif
#FORTO = $(LAPACKdir)/fortran.o
FORTO =
MACHINE_NUMERICAL_LIBS = \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(AMD_LIBRARY) \
$(ITPACK_LIBRARY) \
$(LAPACK_LIBRARY) \
$(CLAPACK_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(CLBLAS_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY)\
$(FORTO) \
$(CUDA_LIB) \
$(TRIANGLE_LIBRARY) \
$(TETGEN_LIBRARY) \
-ldl -L/usr/local/lib $(CBH_COMPILERS_LIB)/libgfortran.a $(CBH_COMPILERS_LIB)/libquadmath.a
MACHINE_SPECIFIC_LIBS = $(AGL_OBJS) -lssl
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSOE.o \
$(LAPACK_LIB) $(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
$(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
$(DISTRIBUTED_SUPERLU_LIBRARY) $(MUMPS_LIB) $(SCALAP_LIB) $(METIS_LIBRARY) \
-L/usr/local/openmpi-1.2.6/lib -lmpi_cxx -lmpi_f77 -lmpi -lopen-rte -lopen-pal
endif
# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I$(HOME)/blitz \
-I$(CUDA_DIR)/include
else
MACHINE_INCLUDES = -I/usr/include \
-I/usr/local/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(FE)/../OTHER/SuperLU_DIST_2.0/SRC \
-I$(HOME)/include -I$(HOME)/blitz $(MUMPS_INCLUDE) -I$(CUDA_DIR)/include
endif
# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl
TCL_INCLUDES = -I/Library/Frameworks/Tcl.framework/Headers -I/Library/Frameworks/Tk.framework/Headers
INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)