error on compiling Util/Denchar/Src

Asked by 翟明星 on 2020-08-19

 /public1/soft/gcc/9.1.0/bin/gfortran -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include /public1/home/sc50250/software/siesta-4.1-b4/Util/Denchar/Src/../../../Src/volcel.f
/public1/soft/gcc/9.1.0/bin/gfortran -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include wrout.f
/public1/soft/gcc/9.1.0/bin/gfortran -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include stsofr.f
/public1/soft/gcc/9.1.0/bin/gfortran -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include local_sys.f
/public1/soft/gcc/9.1.0/bin/gfortran -c -O2 -fPIC -ftree-vectorize -march=native -fopenmp -I/public1/home/sc50250/software/build/netcdf/4.7.4/include /public1/home/sc50250/software/siesta-4.1-b4/Util/Denchar/Src/../../../Src/nag.f
/public1/soft/gcc/9.1.0/bin/gfortran -o denchar \

-L/public1/home/sc50250/software/build/zlib/1.2.11/lib -Wl,-rpath=/public1/home/sc50250/software/build/zlib/1.2.11/lib -L/public1/home/sc50250/software/build/hdf5/1.10.4/lib -Wl,-rpath=/public1/home/sc50250/software/build/hdf5/1.10.4/lib -L/public1/home/sc50250/software/build/netcdf/4.7.4/lib -Wl,-rpath=/public1/home/sc50250/software/build/netcdf/4.7.4/lib m_uuid.o object_debug.o class_Sparsity.o class_OrbitalDistribution.o class_Data1D.o class_Data2D.o class_SpData1D.o class_SpData2D.o class_Geometry.o class_Pair_Data1D.o class_Fstack_Pair_Data1D.o class_Pair_Geometry_SpData2D.o class_Fstack_Pair_Geometry_SpData2D.o precision.o parallel.o debugmpi.o m_io.o alloc.o memoryinfo.o listsc.o atmparams.o atom_options.o atmfuncs.o atm_types.o radial.o spher_harm.o basis_io.o basis_types.o parallelsubs.o schecomm.o sparse_matrices.o interpolation.o files.o pseudopotential.o chemical.o xml.o domain_decom.o printmatrix.o qsort.o mmio.o pspltm1.o lenstr.o spatial.o timer_local.o atompla.o planed.o bessph.o chkdim.o dismin.o dot.o readpla.o readsts.o io.o iodm.o itochar.o length.o matvect.o memory.o colinear.o neighb.o pxf.o radfft.o m_fft_gpfa.o ranger.o readwavesx.o rhoofr.o wavofr.o redata_denchar.o local_reinit.o denchar.o volcel.o wrout.o stsofr.o local_sys.o nag.o libfdf.a
class_Data1D.o: In function `__class_ldata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x12c): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x134): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_ldata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x1ca): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x1d1): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_idata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x29c): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x2a4): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_idata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x33a): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x341): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_sdata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x40c): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x414): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_sdata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x4aa): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x4b1): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_ddata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x57c): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x584): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_ddata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x61a): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x621): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_cdata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x6ec): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x6f4): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_cdata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x79a): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x7a1): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_zdata1d_MOD_initializedata1d._omp_fn.0':
class_Data1D.F90:(.text+0x87c): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x884): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_zdata1d_MOD_newdata1dfromnakedarray._omp_fn.0':
class_Data1D.F90:(.text+0x92a): undefined reference to `omp_get_num_threads'
class_Data1D.F90:(.text+0x931): undefined reference to `omp_get_thread_num'
class_Data1D.o: In function `__class_ldata1d_MOD_initializedata1d':
class_Data1D.F90:(.text+0xb0d): undefined reference to `GOMP_parallel'
class_Data1D.o: In function `__class_ldata1d_MOD_newdata1dfromnakedarray':
class_Data1D.F90:(.text+0x1326): undefined reference to `GOMP_parallel'
class_Data1D.o: In function `__class_idata1d_MOD_initializedata1d':
class_Data1D.F90:(.text+0x17cd): undefined reference to `GOMP_parallel'
class_Data1D.o: In function `__class_idata1d_MOD_newdata1dfromnakedarray':
class_Data1D.F90:(.text+0x1fe6): undefined reference to `GOMP_parallel'
class_Data1D.o: In function `__class_sdata1d_MOD_initializedata1d':
class_Data1D.F90:(.text+0x248d): undefined reference to `GOMP_parallel'
class_Data1D.o:class_Data1D.F90:(.text+0x2ca6): more undefined references to `GOMP_parallel' follow
class_Data2D.o: In function `__class_ldata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0x12c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x134): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_ldata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0x202): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x209): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_idata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0x32c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x334): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_idata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0x402): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x409): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_sdata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0x52c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x534): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_sdata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0x602): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x609): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_ddata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0x72c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x734): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_ddata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0x802): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x809): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_cdata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0x92c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0x934): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_cdata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0xa12): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0xa19): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_zdata2d_MOD_initializedata2d._omp_fn.0':
class_Data2D.F90:(.text+0xb4c): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0xb54): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_zdata2d_MOD_newdata2dfromnakedarray._omp_fn.0':
class_Data2D.F90:(.text+0xc32): undefined reference to `omp_get_num_threads'
class_Data2D.F90:(.text+0xc39): undefined reference to `omp_get_thread_num'
class_Data2D.o: In function `__class_ldata2d_MOD_initializedata2d':
class_Data2D.F90:(.text+0xee5): undefined reference to `GOMP_parallel'
class_Data2D.o: In function `__class_ldata2d_MOD_newdata2dfromnakedarray':
class_Data2D.F90:(.text+0x17b9): undefined reference to `GOMP_parallel'
class_Data2D.o: In function `__class_idata2d_MOD_initializedata2d':
class_Data2D.F90:(.text+0x1cb5): undefined reference to `GOMP_parallel'
class_Data2D.o: In function `__class_idata2d_MOD_newdata2dfromnakedarray':
class_Data2D.F90:(.text+0x2589): undefined reference to `GOMP_parallel'
class_Data2D.o: In function `__class_sdata2d_MOD_initializedata2d':
class_Data2D.F90:(.text+0x2a85): undefined reference to `GOMP_parallel'
class_Data2D.o:class_Data2D.F90:(.text+0x3359): more undefined references to `GOMP_parallel' follow
basis_types.o: In function `__basis_types_MOD_basis_specs_transfer._omp_fn.0':
basis_types.f:(.text+0x1c6): undefined reference to `omp_get_num_threads'
basis_types.f:(.text+0x1d3): undefined reference to `omp_get_thread_num'
basis_types.f:(.text+0x27d): undefined reference to `GOMP_barrier'
basis_types.f:(.text+0x37c): undefined reference to `GOMP_barrier'
basis_types.f:(.text+0x47d): undefined reference to `GOMP_barrier'
basis_types.f:(.text+0x57d): undefined reference to `GOMP_barrier'
basis_types.f:(.text+0x67d): undefined reference to `GOMP_barrier'
basis_types.o:basis_types.f:(.text+0x77d): more undefined references to `GOMP_barrier' follow
basis_types.o: In function `__basis_types_MOD_basis_specs_transfer':
basis_types.f:(.text+0x3674): undefined reference to `GOMP_parallel'
libfdf.a(fdf.o): In function `__fdf_MOD_fdf_shutdown':
fdf.F90:(.text+0x9955): undefined reference to `GOMP_single_start'
libfdf.a(fdf.o): In function `__fdf_MOD_fdf_init':
fdf.F90:(.text+0x9df1): undefined reference to `GOMP_single_start'
fdf.F90:(.text+0x9dfa): undefined reference to `GOMP_barrier'
libfdf.a(fdf.o): In function `__fdf_MOD_fdf_shutdown':
fdf.F90:(.text+0x9962): undefined reference to `GOMP_barrier'
fdf.F90:(.text+0x99c8): undefined reference to `GOMP_barrier'
collect2: error: ld returned 1 exit status
make: *** [denchar] Error 1

Question information

Language:
English Edit question
Status:
Solved
For:
Siesta Edit question
Assignee:
No assignee Edit question
Solved by:
翟明星
Solved:
2020-08-19
Last query:
2020-08-19
Last reply:
翟明星 (mxzhai) said : #1

I have solved this problem. Add -fopenmp into the makefile, the make is completed.