c - Error compilling program with makefile on Linux with openmpi: undefined reference to symbol 'trunc@@GLIBC_2.2.5' -


i trying compile program on linux+openmpi using makefile got error: have looked @ answers similar issues can still fix it.

 mpicc  -lmpi -lm -ldl hh_visco.o hh_elastic.o abs_update.o absorb.o av_mue.o av_rho.o av_tau.o catseis.o check_fs.o checkfd.o comm_ini.o cpml_update.o exchange_par.o exchange_s_rsg.o exchange_s.o exchange_v.o sofi2d.o holbergcoeff.o info.o initproc.o json_parser.o matcopy.o matcopy_elastic.o merge.o mergemod.o note.o outseis.o outseis_glob.o operators_s.o operators_v.o pml_pro.o prepare_update_s.o psource.o rd_sour.o read_checkpoint.o read_par_json.o readdsk.o readmod_visco.o readmod_elastic.o receiver.o save_checkpoint.o saveseis.o saveseis_glob.o seismo_ssg.o snap_ssg.o sources.o splitrec.o splitsrc.o subgrid_bounds.o surface.o surface_elastic.o update_s_elastic_abs.o update_s_elastic_interior.o update_s_elastic_pml.o update_s_visc_abs.o update_s_visc_interior.o update_s_visc_pml.o update_v_abs.o update_v_interior.o update_v_pml.o util.o wavefield_update_s_el.o wavefield_update_s_visc.o wavefield_update_v.o wavelet.o write_par.o writedsk.o writemod.o zero_elastic.o zero_visc.o zero_pml_elastic.o zero_pml_visc.o -o ../bin/sofi2d     /usr/bin/ld: outseis.o: undefined reference symbol 'trunc@@glibc_2.2.5'     /usr/lib/gcc/x86_64-linux-gnu/4.8/../../../x86_64-linux-gnu/libm.so: error adding symbols: dso missing command line     collect2: error: ld returned 1 exit status make: *** [sofi2d] error 1 

the makefile below: suspect has missing library, can seems find how that.

the script run compilation is

#---- general compilation  cd ../src #make make clean make sofi2d cd ../par 

and makefile below (not entire)

# makefile sofi2d  #-------------------------------------------------------- # edit here:  # source code model generation # model file viscoelastic modeling l>0 model_v = hh_visco.c # model file elastic modeling l=0 model_e = hh_elastic.c # model file viscoelastic modeling (overnight built) model_bv = benchmod.c # model file elastic modeling l=0 (overnight built) model_be = benchmod_el.c exec= ../bin  exec= ../bin   # compiler (lam: cc=hcc, cray t3e: cc=cc)  # on linux cluster running lam #cc=hcc #lflags=-lm -lmpi  #cflags=-wall -o4  # on linux cluster running openmpi , on mac cc=mpicc lflags=-lm -lmpi  cflags=-wall -o3   # on cray t3e # cc=cc  # on scharnet system #cc=mpicc #lflags=-lm    # on hlrn system #cc=mpcc #lflags=-lm    # altix #cc=icc #cflags=-mp -o3 -ip0 #lflags=-lmpi -lm   # after line, no further editing should necessary # --------------------------------------------------------  .c.o:     $(cc) $(cflags) -c $< 


Comments

Popular posts from this blog

python - Selenium remoteWebDriver (& SauceLabs) Firefox moseMoveTo action exception -

html - How to custom Bootstrap grid height? -

transpose - Maple isnt executing function but prints function term -