Opensees Debian 8

For developers writing C++, Fortran, Java, code who have questions or comments to make.

Moderators: silvia, selimgunay, Moderators

Post Reply
rtz
Posts: 3
Joined: Thu Mar 23, 2017 1:30 am

Opensees Debian 8

Post by rtz » Thu Mar 23, 2017 2:57 am

Hello,
We have an error compiling Opensees on Debian 8. The reported error underline the absence of the libOpenSees.a in the lib directory. Also by entering in the OpenSees/SRC/modelbuilder/tcl directory and executing a "make tcl" command we obtain the same error. Do You know if there is an error in our Makefile?
Initially the make command, in OpenSees directory, generates a lot of error (reported after the Makefile in this post) and we have solved this problem by typing make in every subdirectory.

---------------------------------------------------------------------------------------------------------------------------
[...]
g++: error: /home/camata/lib/libOpenSees.a: File o directory non esistente
Makefile:30: set di istruzioni per l'obiettivo "tcl" non riuscito
make[1]: *** [tcl] Errore 1
make[1]: uscita dalla directory "/home/camata/OpenSees/SRC/modelbuilder/tcl"
Makefile:48: set di istruzioni per l'obiettivo "all" non riuscito
make: *** [all] Errore 2

---------------------------------------------------------------------------------------------------------------------------

____Makefile___________________________________________________________________________
############################################################################
#
# Program: OpenSees
#
# Purpose: A Top-level Makefile to create the libraries needed
# to use the OpenSees framework. Works on Linux version 6.1
# and below.
#
# Written: fmk
# Created: 10/99
#
# Send bug reports, comments or suggestions to fmckenna@ce.berkeley.edu
#
############################################################################

# Instructuction for building OpenSees on Debian (6.0.x)
# using amazon EC-2 instance ami-a70655e2 us-west-1
# ssh to running instance using root@


# ssh in and type the following:
# mkdir lib
# mkdir bin
# apt-get update
# apt-get install subversion
# svn co svn://opensees.berkeley.edu/usr/local/svn/OpenSees/trunk OpenSees
# apt-get install emacs
# apt-get install make
# apt-get install tcl8.5
# apt-get install tcl8.5-dev
# apt-get install gcc
# apt-get install g++
# apt-get install gfortran
# cd OpenSees
# make

# if parallel
# apt-get install mpich2
# edit this file and change PROGAMMING MODE TO BE PARALLEL
#wget http://www.netlib.org/scalapack/scalapack.tgz
#wget http://www.netlib.org/blacs/mpiblacs.tgz

MPIdir = $(HOME)/PARALLEL/mpich3-install

# %---------------------------------%
# | SECTION 1: PROGRAM |
# %---------------------------------%
#
# Specify the location and name of the OpenSees interpreter program
# that will be created (if this all works!)

#PROGRAMMING_MODE = SEQUENTIAL
PROGRAMMING_MODE = PARALLEL
#PROGRAMMING_MODE = PARALLEL_INTERPRETERS

OpenSees_PROGRAM = $(HOME)/bin/OpenSees

ifeq ($(PROGRAMMING_MODE), PARALLEL)
OpenSees_PROGRAM = $(HOME)/bin/OpenSeesSP
endif
ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
OpenSees_PROGRAM = $(HOME)/bin/OpenSeesMP
endif

OPERATING_SYSTEM = LINUX
GRAPHICS = NONE
GRAPHIC_FLAG = -D_NOGRAPHICS
DEBUG_MODE = NO_DEBUG
RELIABILITY = NO_RELIABILITY


# %---------------------------------%
# | SECTION 2: PATHS |
# %---------------------------------%
#
# Note: if vendor supplied BLAS and LAPACK libraries or if you have
# any of the libraries already leave the directory location blank AND
# remove the directory from DIRS.

BASE = /usr/local
HOME = /home/camata
FE = $(HOME)/OpenSees/SRC

AMDdir = $(HOME)/OpenSees/OTHER/AMD
BLASdir = $(HOME)/PARALLEL/BLAS-3.6.0
CBLASdir = $(HOME)/OpenSees/OTHER/CBLAS
LAPACKdir = $(HOME)/PARALLEL/lapack-3.6.1
SUPERLUdir = $(HOME)/OpenSees/OTHER/SuperLU_5.1.1/SRC
ARPACKdir = $(HOME)/OpenSees/OTHER/ARPACK
UMFPACKdir = $(HOME)/OpenSees/OTHER/UMFPACK
METISdir = $(HOME)/PARALLEL/metis-5.1.0
CSPARSEdir = $(HOME)/OpenSees/OTHER/CSPARSE
SRCdir = $(HOME)/OpenSees/SRC


DIRS = $(SUPERLUdir) \
$(SUPERLU_DISTdir) \
$(ARPACKdir) \
$(CBLASdir) \
$(UMFPACKdir) \
$(AMDdir) \
$(METISdir) \
$(CSPARSEdir) \
$(SRCdir)

ifeq ($(PROGRAMMING_MODE), SEQUENTIAL)

DIRS = $(BLASdir) $(CBLASdir) $(LAPACKdir) $(AMDdir) $(CSPARSEdir) \
$(SUPERLUdir) $(ARPACKdir) $(UMFPACKdir) $(SRCdir) $(METISdir)

endif


# %-------------------------------------------------------%
# | 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
LAPACK_LIBRARY = $(HOME)/PARALLEL/lapack-3.6.1/liblapack.a
BLAS_LIBRARY = $(HOME)/PARALLEL/BLAS-3.6.0/blas.a
SUPERLU_LIBRARY = $(HOME)/lib/libSuperLU.a
CBLAS_LIBRARY = $(HOME)/lib/libCBlas.a
ARPACK_LIBRARY = $(HOME)/lib/libArpack.a
AMD_LIBRARY = $(HOME)/lib/libAMD.a
UMFPACK_LIBRARY = $(HOME)/lib/libUmfpack.a
METIS_LIBRARY = $(PARALLELdir)/parmetis-4.0.3/build/Linux-x86_64/libparmetis/libparmetis.a
TCL_LIBRARY = -ltcl8.5
BLITZ_LIBRARY = $(HOME)/blitz/lib/libblitz.a
GRAPHIC_LIBRARY =
CSPARSE_LIBRARY = $(HOME)/lib/libCSparse.a

# WATCH OUT .. These libraries are removed when 'make wipe' is invoked.
WIPE_LIBS = $(FE_LIBRARY) \
$(LAPACK_LIBRARY) \
$(BLAS_LIBRARY) \
$(CBLAS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_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
MPI_BIN = $(MPIdir)/bin
MPI_INC = -I$(MPIdir)/include
MPI_LIB = -L$(MPIdir)/lib

CC++ = $(MPI_BIN)/mpicxx
CC = $(MPI_BIN)/mpicc
FC = $(MPI_BIN)/mpif90
F90 = $(MPI_BIN)/mpif90
#FC77 = $(MPI_BIN)/mpif90
#FORTRAN = $(FC)



#CC++ = /usr/bin/g++
#CC = /usr/bin/gcc
#FC = /usr/bin/gfortran

AR = ar
ARFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =

PROGRAMMING_FLAG = -D_PARALLEL_PROCESSING
RELIABILITY_FLAG =


# 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
#

# modified as optimizaton currently causing problems with Steeln01 code
C++FLAGS = -Wall -D_LINUX -D_UNIX -D_TCL85 \
$(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) \
$(PROGRAMMING_FLAG) -O3 -ffloat-store
CFLAGS = -Wall -O2
FFLAGS = -Wall -O

# Linker
LINKER = $(CC++)
LINKFLAGS = -rdynamic


# 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!! |
# %---------------------------------------------------------%
MACHINE_LINKLIBS = -L$(BASE)/lib \
-L$(HOME)/lib

MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(CSPARSE_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(AMD_LIBRARY) $(GRAPHIC_LIBRARY)\
-ldl -lgfortran

MACHINE_SPECIFIC_LIBS =



# %---------------------------------------------------------%
# | SECTION 7: INCLUDE FILES |
# | |
# | The following macros specify include files needed for |
# | compilation. |
# %---------------------------------------------------------%
MACHINE_INCLUDES = -I/usr/include \
-I$(BASE)/include \
-I/usr/include/cxx \
-I$(HOME)/include -I/usr/include/blitz

# this file contains all the OpenSees/SRC includes
include $(FE)/Makefile.incl

#TCL_INCLUDES = -I/usr/includes/tcl-private/generic
TCL_INCLUDES = -I/usr/include/tcl8.5

INCLUDES = $(TCL_INCLUDES) $(FE_INCLUDES) $(MACHINE_INCLUDES)


--------------
Previous errors list
___________

/home/camata/OpenSees/SRC/domain/subdomain/ActorSubdomain.o
/home/camata/OpenSees/SRC/domain/subdomain/ShadowSubdomain.o
/home/camata/OpenSees/SRC/domain/pattern/TclPatternCommand.o
/home/camata/OpenSees/SRC/domain/pattern/TclSeriesCommand.o
/home/camata/OpenSees/SRC/domain/pattern/TclSeriesIntegratorCommand.o
/home/camata/OpenSees/SRC/domain/groundMotion/TclGroundMotionCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/limitState/TclLimitState.o
/home/camata/OpenSees/SRC/element/zeroLength/TclZeroLength.o
/home/camata/OpenSees/SRC/element/forceBeamColumn/TclForceBeamColumnCommand.o
/home/camata/OpenSees/SRC/coordTransformation/TclGeomTransfCommand.o
/home/camata/OpenSees/SRC/element/joint/TclJoint2dCommand.o
/home/camata/OpenSees/SRC/element/joint/TclJoint3dCommand.o
/home/camata/OpenSees/SRC/element/joint/TclBeamColumnJointCommand.o
/home/camata/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dYS.o
/home/camata/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclElement2dGNL.o
/home/camata/OpenSees/SRC/element/updatedLagrangianBeamColumn/TclCyclicModelCommands.o
/home/camata/OpenSees/SRC/material/yieldSurface/yieldSurfaceBC/TclModelBuilderYieldSurfaceBCCommand.o
/home/camata/OpenSees/SRC/material/yieldSurface/evolution/TclModelBuilderYS_EvolutionCommand.o
/home/camata/OpenSees/SRC/material/yieldSurface/plasticHardeningMaterial/TclModelBuilderYSPlasticMaterialCommand.o
/home/camata/OpenSees/SRC/damage/TclModelBuilderDamageModelCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/PY/TclPyTzQzMaterialCommand.o
/home/camata/OpenSees/SRC/material/nD/soil/TclUpdateMaterialStageCommand.o
/home/camata/OpenSees/SRC/element/UP-ucsd/TclFourNodeQuadUPCommand.o
/home/camata/OpenSees/SRC/recorder/TclRecorderCommands.o
/home/camata/OpenSees/SRC/element/TclElementCommands.o
/home/camata/OpenSees/SRC/element/dispBeamColumnInt/TclDispBeamColumnIntCommand.o
/home/camata/OpenSees/SRC/element/elasticBeamColumn/TclElasticBeamCommand.o
/home/camata/OpenSees/SRC/element/fourNodeQuad/TclFourNodeQuadCommand.o
/home/camata/OpenSees/SRC/element/brick/TclTwenty_Node_BrickCommand.o
/home/camata/OpenSees/SRC/element/brick/TclBrickCommand.o
/home/camata/OpenSees/SRC/element/adapter/TclActuatorCommand.o
/home/camata/OpenSees/SRC/element/adapter/TclActuatorCorotCommand.o
/home/camata/OpenSees/SRC/element/adapter/TclAdapterCommand.o
/home/camata/OpenSees/SRC/element/generic/TclGenericClientCommand.o
/home/camata/OpenSees/SRC/element/generic/TclGenericCopyCommand.o
/home/camata/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingBoucWenCommand.o
/home/camata/OpenSees/SRC/element/feap/TclFeapElementCommand.o
/home/camata/OpenSees/SRC/material/nD/feap/TclFeapMaterialCommand.o
/home/camata/OpenSees/SRC/element/beamWithHinges/TclBeamWithHingesBuilder.o
/home/camata/OpenSees/SRC/element/frictionBearing/frictionModel/TclModelBuilderFrictionModelCommand.o
/home/camata/OpenSees/SRC/element/PFEMElement/TclModelBuilder_addPFEMElement.o
/home/camata/OpenSees/SRC/element/PFEMElement/TclPFEMCommands.o
/home/camata/OpenSees/SRC/material/uniaxial/backbone/TclModelBuilderBackboneCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/TclModelBuilderUniaxialMaterialCommand.o
/home/camata/OpenSees/SRC/material/nD/TclModelBuilderNDMaterialCommand.o
/home/camata/OpenSees/SRC/material/section/yieldSurface/TclModelBuilderYS_SectionCommand.o
/home/camata/OpenSees/SRC/material/section/TclModelBuilderSectionCommand.o
/home/camata/OpenSees/SRC/domain/component/TclUpdateMaterialCommand.o
/home/camata/OpenSees/SRC/domain/component/TclParameterCommands.o
/home/camata/OpenSees/SRC/domain/region/TclRegionCommands.o
/home/camata/OpenSees/SRC/element/twoNodeLink/TclTwoNodeLinkCommand.o
/home/camata/OpenSees/SRC/element/frictionBearing/TclRJWatsonEQSCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/TclReinforcingSteel.o
/home/camata/OpenSees/SRC/material/uniaxial/snap/TclSnapMaterialCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/TclHyperbolicGapMaterial.o
/home/camata/OpenSees/SRC/element/frictionBearing/TclFlatSliderCommand.o
/home/camata/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingPlasticityCommand.o
/home/camata/OpenSees/SRC/element/elastomericBearing/TclElastomericBearingUFRPCommand.o
/home/camata/OpenSees/SRC/element/frictionBearing/TclSingleFPCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/fedeas/TclFedeasMaterialCommand.o
/home/camata/OpenSees/SRC/material/uniaxial/drain/TclDrainMaterialCommand.o
/home/camata/OpenSees/SRC/api/elementAPI_TCL.o

fmk
Site Admin
Posts: 5866
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: Opensees Debian 8

Post by fmk » Mon Mar 27, 2017 9:44 pm

does the lib directory exist? if not make one and try again.
if it does cd to SRC directory and type make there to find out why lib is not building

Post Reply