OpenSeesSP build error

This forum is for issues related to parallel processing
and OpenSees using the new interpreters OpenSeesSP and OpenSeesMP

Moderator: selimgunay

Post Reply
ozgura
Posts: 36
Joined: Mon Apr 19, 2010 9:46 am
Location: Virginia Tech

OpenSeesSP build error

Post by ozgura »

Hello,

We could build OpenSees 2.2.1 (SP) on VT supercomputer before.We are trying to build version 2.2.2 now. We got the following error.

commands.cpp: In function ‘int OPS_SourceCmd(void*, Tcl_Interp*, int, Tcl_Obj*
const*)’:
commands.cpp:924: error: ‘Tcl_FSEvalFileEx’ was not declared in this scope
commands.cpp: In function ‘int specifySOE(void*, Tcl_Interp*, int, const
char**)’:

I will attach the makefile on the next post.

Thanks,
Ozgur
Ozgur Atlayan
Virginia Tech
ozgura
Posts: 36
Joined: Mon Apr 19, 2010 9:46 am
Location: Virginia Tech

Makefile

Post by ozgura »

#
# By Bharath Ramesh, 2010 Makefile.def
#
# Makefile.def for OpenSees built in parallel mode.
#

BASE = $(HOME)/SYSTEM-X/LINUX/OpenSees/OpenSeesSP
FE = $(BASE)/SRC
PROGRAMMING_MODE = PARALLEL
OpenSees_PROGRAM = $(BASE)/bin/OpenSees

ifeq ($(PROGRAMMING_MODE), PARALLEL)
OpenSees_PROGRAM = $(BASE)/bin/OpenSeesSP
endif

ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
OpenSees_PROGRAM = $(BASE)/bin/OpenSeesMP
endif

OPERATING_SYSTEM = LINUX
DEBUG_MODE = NO_DEBUG
GRAPHICS = NONE
RELIABILITY = NO_RELIABILITY

BLASdir = $(BASE)/OTHER/BLAS
CBLASdir = $(BASE)/OTHER/CBLAS
LAPACKdir = $(BASE)/OTHER/LAPACK
ARPACKdir = $(BASE)/OTHER/ARPACK
UMFPACKdir = $(BASE)/OTHER/UMFPACK
METISdir = $(BASE)/OTHER/METIS
SUPERLUdir = $(BASE)/OTHER/SuperLU_3.0/SRC
SUPERLU_DISTdir = $(BASE)/OTHER/SuperLU_DIST_2.0/SRC
SRCdir = $(BASE)/SRC

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

FE_LIBRARY = $(BASE)/lib/libOpenSees.a
NDARRAY_LIBRARY = $(BASE)/lib/libndarray.a
MATMOD_LIBRARY = $(BASE)/lib/libmatmod.a
BJMISC_LIBRARY = $(BASE)/lib/libBJmisc.a
BLAS_LIBRARY =
CBLAS_LIBRARY =
LAPACK_LIBRARY =
ARPACK_LIBRARY = $(BASE)/lib/libArpack.a
UMFPACK_LIBRARY = $(BASE)/lib/libUmfpack.a
METIS_LIBRARY = $(BASE)/lib/libMetis.a
SUPERLU_LIBRARY = $(BASE)/lib/libSuperLU.a
DISTRIBUTED_SUPERLU_LIBRARY = $(BASE)/lib/libDistributedSuperLU.a

WIPE_LIBS = $(FE_LIBRARY) \
$(NDARRAY_LIBRARY) \
$(MATMOD_LIBRARY) \
$(BJMISC_LIBRARY) \
$(ARPACK_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(METIS_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(DISTRIBUTED_SUPERLU_LIBRARY)

TCL_INCLUDES = /apps/packages/tcl_tk_8.5.9/include
TCL_LIBRARY = -L/apps/packages/tcl_tk_8.5.9/lib -ltcl8.5 -ltk8.5

MPI_BIN = /apps/packages/openmpi-1.3.2-32/bin

CC = $(MPI_BIN)/mpicc
CC++ = $(MPI_BIN)/mpic++
FC = $(MPI_BIN)/mpif90
F90 = $(MPI_BIN)/mpif90
FORTRAN = $(FC)
LINKER = $(CC++)

AR = ar
ARFLAGS = cqls
ARCH = ar
ARCHFLAGS = cqls
RANLIB = ranlib
RANLIBFLAGS =

DEBUG_FLAG =
GRAPHIC_FLAG = -D_NOGRAPHICS
GRAPHIC_LIBRARY =
RELIABILITY_FLAG =
RELIABILITY_LIBRARY =
PROGRAMMING_FLAG =

ifeq ($(PROGRAMMING_MODE), PARALLEL)
PROGRAMMING_FLAG = -D_PARALLEL_PROCESSING
endif

ifeq ($(PROGRAMMING_MODE), PARALLEL_INTERPRETERS)
PROGRAMMING_FLAG = -D_PARALLEL_INTERPRETERS
endif

CFLAGS = -Wall $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(PROGRAMMING_FLAG)
C++FLAGS = -Wall -O2 -D_LINUX -D_UNIX -D_TCL85 -ffloat-store $(GRAPHIC_FLAG) $(RELIABILITY_FLAG) $(DEBUG_FLAG) $(PROGRAMMING_FLAG)
FFLAGS = -Wall
LINKFLAGS = -rdynamic

MAKE = make
CD = cd
ECHO = echo
RM = rm
RMFLAGS = -f
SHELL = /bin/sh

.SUFFIXES:
.SUFFIXES: .C .c .f .f90 .cpp .o

.DEFAULT:
@$(ECHO) "Unknown target $@, try: make help"

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

.C.o:
$(CC++) $(C++FLAGS) $(INCLUDES) -c $<

.cpp.o:
$(CC++) $(C++FLAGS) $(INCLUDES) -c $<

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

.f77.o:
$(FC) $(FFLAGS) -c $<

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

GOTOBLAS_LIBRARY = /apps/packages/GotoBLAS2-1.13/single_threaded/lib/libgoto2.a
#PARALLEL_LIB = $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSuperLU.o \
# $(FE)/system_of_eqn/linearSOE/sparseGEN/DistributedSparseGenColLinSOE.o \
# $(FE)/system_of_eqn/linearSOE/sparseGEN/SparseGenColLinSolver.o

MACHINE_LINKLIBS = -L$(BASE)/lib
MACHINE_NUMERICAL_LIBS = -lm \
$(ARPACK_LIBRARY) \
$(DISTRIBUTED_SUPERLU_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(GOTOBLAS_LIBRARY) \
$(METIS_LIBRARY)

MACHINE_SPECIFIC_LIBS = -ldl -lieee -lgfortran -Wl,-rpath,/local/lib -lpng
MACHINE_INCLUDES = -I$(BASE)/include \
-I$(UMFPACKdir) \
-I$(SUPERLUdir) \
-I$(SUPERLU_DISTdir) \

include $(FE)/Makefile.incl

INCLUDES = $(MACHINE_INCLUDES) $(FE_INCLUDES) $(TCL_INCLUDES)
Ozgur Atlayan
Virginia Tech
fmk
Site Admin
Posts: 5884
Joined: Fri Jun 11, 2004 2:33 pm
Location: UC Berkeley
Contact:

Re: OpenSeesSP build error

Post by fmk »

did that commands.cpp file fix the problem?
huang109
Posts: 1
Joined: Sun Aug 21, 2011 5:47 pm

3

Post by huang109 »

Very good again vistadivine. Keep the posts coming.
Post Reply