Problem solved! I had to remove a macports directory from my path that had the improper MPI library, and at last the code is working. Thanks so much to everyone for your friendly and prompt suggestions - I appreciate it very much. Dick
On Tue, Aug 23, 2016 at 4:51 PM, Richard G French <rfre...@wellesley.edu> wrote: > 2415 rfrench@cosmos> mpicc -show > > gcc -I/usr/local/include -L/usr/local/lib -lmpi > > 2416 rfrench@cosmos> which mpicc > > /usr/local/bin/mpicc > > > I'll get rid of the mpich-mp stuff and give it another try! > > > > On Tue, Aug 23, 2016 at 4:40 PM, Reuti <re...@staff.uni-marburg.de> wrote: > >> Hi, >> >> Am 23.08.2016 um 21:43 schrieb Richard G French: >> >> > Hi, all - >> > I'm trying to build the SPH code Gadget2 (http://wwwmpa.mpa-garching.mp >> g.de/gadget/) under OS X 10.11.6 and I am getting the following type of >> error: >> > >> > 222 rfrench@cosmos> make >> > >> > mpicc main.o run.o predict.o begrun.o endrun.o global.o timestep.o >> init.o restart.o io.o accel.o read_ic.o ngb.o system.o allocate.o >> density.o gravtree.o hydra.o driftfac.o domain.o allvars.o potential.o >> forcetree.o peano.o gravtree_forcetest.o pm_periodic.o pm_nonperiodic.o >> longrange.o -g -L/opt/local/lib/mpich-mp -L/usr/local/lib -lgsl >> -lgslcblas -lm -L/usr/local/lib -lrfftw_mpi -lfftw_mpi -lrfftw -lfftw >> -o Gadget2 >> >> By default the `mpicc` should add all necessary libraries to compile and >> link the application. But I wonder why you speak about mpich-mp as this is >> a different implementation of MPI, not Open MPI. Also the default location >> of Open MPI isn't mpich-mp. >> >> - what does: >> >> $ mpicc -show >> $ which mpicc >> >> output? >> >> - which MPI library was used to build the parallel FFTW? >> >> -- Reuti >> >> >> > Undefined symbols for architecture x86_64: >> > >> > "_ompi_mpi_byte", referenced from: >> > >> > _read_parameter_file in begrun.o >> > >> > _compute_global_quantities_of_system in global.o >> > >> > _restart in restart.o >> > >> > _write_file in io.o >> > >> > _read_file in read_ic.o >> > >> > _find_files in read_ic.o >> > >> > _density in density.o >> > >> > ...... >> > >> > I built the mpich library using >> > >> > cd openmpi-2.0.0/ >> > >> > >> > ./configure >> > >> > >> > sudo make all install >> > >> > which installed the libraries in >> > >> > >> > /opt/local/lib/mpich-mp >> > >> > >> > >> > I can't seem to track down the library that contains ompi_mpi_byte. >> > >> > >> > >> > Any suggestions would be welcome. Thanks! >> > >> > Dick French >> > >> > >> > >> > >> > -- >> > Richard G. French >> > McDowell and Whiting Professor of Astrophysics >> > Chair of the Astronomy Department, Wellesley College >> > Director of the Whitin Observatory >> > Cassini Mission to Saturn Radio Science Team Leader >> > Wellesley, MA 02481-8203 >> > (781) 283-3747 >> > _______________________________________________ >> > users mailing list >> > users@lists.open-mpi.org >> > https://rfd.newmexicoconsortium.org/mailman/listinfo/users >> >> _______________________________________________ >> users mailing list >> users@lists.open-mpi.org >> https://rfd.newmexicoconsortium.org/mailman/listinfo/users >> > > > > -- > > Richard G. French > > McDowell and Whiting Professor of Astrophysics > > Chair of the Astronomy Department, Wellesley College > > Director of the Whitin Observatory > > Cassini Mission to Saturn Radio Science Team Leader > > Wellesley, MA 02481-8203 > > (781) 283-3747 > -- Richard G. French McDowell and Whiting Professor of Astrophysics Chair of the Astronomy Department, Wellesley College Director of the Whitin Observatory Cassini Mission to Saturn Radio Science Team Leader Wellesley, MA 02481-8203 (781) 283-3747
_______________________________________________ users mailing list users@lists.open-mpi.org https://rfd.newmexicoconsortium.org/mailman/listinfo/users