compile from CVS on Linux, Debian Lenny

For posts concerning the documentation, errors, ommissions, general comments, etc.

Moderators: silvia, selimgunay, Moderators

Post Reply
pm1236
Posts: 3
Joined: Sat Feb 13, 2010 4:04 pm
Location: Boise State University
Contact:

compile from CVS on Linux, Debian Lenny

Post by pm1236 »

Build was going fine until this message from stderr:

/usr/local/src/lib/libOpenSees.a(AMDNumberer.o): In function `AMD::number(Graph&, int)':
AMDNumberer.cpp:(.text+0x18c): undefined reference to `amd_order'
collect2: ld returned 1 exit status
make[1]: *** [tcl] Error 1
make: *** [all] Error 2

Probably need to change Makefile.def, but exactly how? Make has not gone into OTHER/AMD at this point. Apparently this function is needed by SRC/graph/numberer/AMDNumberer.cpp

Same error on both a dual core AMD 64 bit and and Intel 32 bit platform.
Suggestions on how to proceed welcome. :shock:
pm1236
Posts: 3
Joined: Sat Feb 13, 2010 4:04 pm
Location: Boise State University
Contact:

Compiling OpenSees from CVS on Debian Linux

Post by pm1236 »

Solved my own problem. One has to edit the Makefile.def and add a AMD library. Lines include following additions/changes to LINUX8 master:

Section 2 Paths
AMDdir = $(HOME)/OpenSees/OTHER/AMD

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

Section 3 Libraries

AMD_LIBRARY = $(HOME)/lib/libAmd.a

Section 6 Other Libraries
MACHINE_NUMERICAL_LIBS = $(RELIABILITY_LIBRARY) -lm \
$(ARPACK_LIBRARY) \
$(SUPERLU_LIBRARY) \
$(UMFPACK_LIBRARY) \
$(LAPACK_LIBRARY) $(BLAS_LIBRARY) $(CBLAS_LIBRARY) \
$(GRAPHIC_LIBRARY) $(AMD_LIBRARY) \
-ldl -lgfortran -lpng -lssl
Unni Kartha G
Posts: 11
Joined: Sat Jul 18, 2009 11:16 pm
Location: Cochin University of Science and Technology
Contact:

this worked

Post by Unni Kartha G »

Thanks, This worked for me on debian
unnikartha
Post Reply