LAM/MPI logo

LAM/MPI General User's Mailing List Archives

  |   Home   |   Download   |   Documentation   |   FAQ   |   all just in this list

From: Tree (tree.csc_at_[hidden])
Date: 2009-03-27 12:51:33


Dear All
Thank you for your help first.

I have a problem to compile LAMMPS under LAM-MPI 7.1.3 environment on my
Macbook (OS X 10.5)
Compiling is okay, but after that it gives an error.

     ./lmp_mac_reax_mpi
    dyld: Symbol not found: _ompi_request_null
    Referenced from: /usr/lib/libmpi_cxx.0.dylib
    Expected in: dynamic lookup

I think this is related to dynamic linker, so I added the below one to my
profile,

     export DYLD_LIBRARY_PATH=$DYLD_LIBRARY_PATH:/usr/local/lib:/usr/lib
     export
DYLD_FALLBACK_LIBRARY_PATH=$DYLD_FALLBACK_LIBRARY_PATH:/usr/local/lib:/usr/lib

Could you please help me on this issue?

BTW, Makefile for LAMMPS (one of Molecular Dynamics code) is
==============================

SHELL = /bin/sh

# System-specific settings

FFTW = /usr/local

CC = c++
CCFLAGS = -O -MMD -MG -DFFT_FFTW -I../../lib/reax -I${FFTW}/include \
                -DOMPI_SKIP_MPICXX
DEPFLAGS = -M
LINK = c++
LINKFLAGS = -O -L${FFTW}/lib -L../../lib/reax -L/usr/lib
#USRLIB = -lfftw -lreax -llammpio -llammpi++ -lpmpi -llamf77mpi -lmpi
-llam \
# -lutil -pthread
USRLIB = -lfftw -lreax -lmpi -lpmpi -lutil -llam -llammpi++
SYSLIB = -lgfortran
SIZE = size

# Link rule

$(EXE): $(OBJ)
        $(LINK) $(LINKFLAGS) $(OBJ) $(USRLIB) $(SYSLIB) -o $(EXE)
        $(SIZE) $(EXE)

# Compilation rules

%.o:%.cpp
        $(CC) $(CCFLAGS) -c $<

# Individual dependencies

DEPENDS = $(OBJ:.o=.d)
-include $(DEPENDS)
===========================================

Thank you!!!