Linking Problem
Posted: Sat Nov 26, 2016 6:17 pm
Hi all,
I've been trying to compile yambo on a variety of systems and on one I receive errors which I'm not really sure what is going on.
Config.log is attached. Yambo is supposed to link against a system-wide netcdf but later seems to do something with a self-compiled one. And the first error about multiple mains I can't wrap my head around:
Appreciate any further insight into what I'm doing wrong.
Cheers,
Bjoern
I've been trying to compile yambo on a variety of systems and on one I receive errors which I'm not really sure what is going on.
Config.log is attached. Yambo is supposed to link against a system-wide netcdf but later seems to do something with a self-compiled one. And the first error about multiple mains I can't wrap my head around:
Code: Select all
>>>[Linking yambo]<<<
make[1]: Entering directory `/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver'
cd /oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver; /oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/sbin/moduledep.sh yambo_driver.o > /oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver/make.dep
make[1]: Leaving directory `/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver'
make[1]: Entering directory `/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver'
yambo_driver.F
driver.o: In function `main':
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/driver/driver.c:104: multiple definition of `main'
/opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/for_main.o:(.text+0x0): first defined here
/opt/intel/2016.3.210/compilers_and_libraries_2016.3.210/linux/compiler/lib/intel64_lin/for_main.o: In function `main':
(.text+0x2a): undefined reference to `MAIN__'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libpol_function.a(X_os.o): In function `x_os_':
X_os.f90:(.text+0x2e1a): undefined reference to `omp_set_lock_'
X_os.f90:(.text+0x3125): undefined reference to `omp_unset_lock_'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libmodules.a(mod_openmp.o): In function `openmp_mp_openmp_set_threads_':
mod_openmp.f90:(.text+0x53): undefined reference to `omp_set_num_threads_'
mod_openmp.f90:(.text+0x8e): undefined reference to `omp_set_num_threads_'
mod_openmp.f90:(.text+0xc1): undefined reference to `omp_set_num_threads_'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libmodules.a(mod_openmp.o): In function `openmp_mp_openmp_update_':
mod_openmp.f90:(.text+0x10c): undefined reference to `omp_get_thread_num_'
mod_openmp.f90:(.text+0x121): undefined reference to `omp_get_num_threads_'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libmodules.a(mod_openmp.o): In function `openmp_mp_openmp_locks_reset_':
mod_openmp.f90:(.text+0x1ca): undefined reference to `omp_destroy_lock_'
mod_openmp.f90:(.text+0x33f): undefined reference to `omp_init_lock_'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libmodules.a(mod_openmp.o): In function `openmp_mp_openmp_initialize_':
mod_openmp.f90:(.text+0x3b2): undefined reference to `omp_get_max_threads_'
mod_openmp.f90:(.text+0x3cd): undefined reference to `omp_get_thread_limit_'
mod_openmp.f90:(.text+0x3fa): undefined reference to `omp_set_dynamic_'
mod_openmp.f90:(.text+0x40c): undefined reference to `omp_set_nested_'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libnetcdf.a(libnetcdf5_la-nc5dispatch.o): In function `NC5_create':
(.text+0x6f): undefined reference to `ncmpi_create'
/oasis/projects/nsf/cob127/sneogi/timsteps/yambo-4.1.1-rev112/lib/libnetcdf.a(libnetcdf5_la-nc5dispatch.o): In function `NC5_open':
(.text+0x134): undefined reference to `ncmpi_open'
Cheers,
Bjoern