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.
compile from CVS on Linux, Debian Lenny
Moderators: silvia, selimgunay, Moderators
Compiling OpenSees from CVS on Debian Linux
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
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
-
- Posts: 11
- Joined: Sat Jul 18, 2009 11:16 pm
- Location: Cochin University of Science and Technology
- Contact: