This thread is locked.Only browsing is available.
Top Page > Browsing
openmx3.7 Installation problem
Date: 2013/05/24 14:44
Name: SH

Dear all,

Hi

When I'm trying to install openmx3.7, I've encountered a problem.

The error massages are as following:

elpa1.o: In function `elpa1_mp_tridiag_real_':
elpa1.f90:(.text+0x2b7): undefined reference to `mpi_comm_rank_'
elpa1.f90:(.text+0x2d6): undefined reference to `mpi_comm_size_'
elpa1.f90:(.text+0x2f5): undefined reference to `mpi_comm_rank_'
elpa1.f90:(.text+0x314): undefined reference to `mpi_comm_size_'
elpa1.f90:(.text+0x45a): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x48b): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x52c): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x55b): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x5fc): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x62b): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x6cc): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x6fb): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x798): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x7c7): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x92d): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0x95c): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0xa2b): undefined reference to `for_check_mult_overflow64'
elpa1.f90:(.text+0xa5a): undefined reference to `for_alloc_allocatable'
elpa1.f90:(.text+0x1111): undefined reference to `mpi_allreduce_'
elpa1.f90:(.text+0x144d): undefined reference to `mpi_bcast_'
elpa1.f90:(.text+0x1b21): undefined reference to `mpi_allreduce_'
elpa1.f90:(.text+0x1d52): undefined reference to `mpi_allreduce_'
elpa1.f90:(.text+0x2805): undefined reference to `for_dealloc_allocatable'
elpa1.f90:(.text+0x284e): undefined reference to `for_dealloc_allocatable'
elpa1.f90:(.text+0x289f): undefined reference to `for_dealloc_allocatable'
elpa1.f90:(.text+0x28f0): undefined reference to `for_dealloc_allocatable'
elpa1.f90:(.text+0x2941): undefined reference to `for_dealloc_allocatable'
elpa1.o:elpa1.f90:(.text+0x298d): more undefined references to `for_dealloc_allocatable' follow
...

The compiling step for the source code of openmx3.7 is OK. However when the complier 'mpicc' is linking to get the excutable file 'openmx', the error massages are popping up.

So I just changed CC to FC in the makefile and compiling
openmx: $(OBJS)
$(CC)---> to $(FC) $(OBJS) $(STACK) $(LIB) -lm -o openmx

I got some error massages like this:

openmx.o: In function `main':
openmx.c:(.text+0x0): multiple definition of `main'
/opt/intel/Compiler/11.1/059/lib/intel64/for_main.o:/export/users/nbtester/efi2linux_nightly/branch-11_1/20091013_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x0): first defined here
ld: Warning: size of symbol `main' changed from 80 in /opt/intel/Compiler/11.1/059/lib/intel64/for_main.o to 4416 in openmx.o
/opt/intel/Compiler/11.1/059/lib/intel64/for_main.o: In function `main':
/export/users/nbtester/efi2linux_nightly/branch-11_1/20091013_000000/libdev/frtl/src/libfor/for_main.c:(.text+0x38): undefined reference to `MAIN__'
make: *** [openmx] Error 1


How can I solve this problem?

Best regards,
SH
メンテ
Page: [1]

Re: openmx3.7 Installation problem ( No.1 )
Date: 2013/05/24 22:57
Name: T.V.T. Duy  <duytvt@jaist.ac.jp>

Hi,

Because the C compiler is used for linking, apparently this problem occurred because the C compiler does not know the locations of the Fortran's standard and MPI libraries. As a result, they should be specified explicitly in LIB.

As the first workaround, could you please add the following link options to LIB and try makefile again (FC in "$(FC) $(OBJS) $(STACK) $(LIB) -lm -o openmx" must be set back to CC):

LIB = ... -lmpi_f77 -lmpi_f90 -lifcore

If this does not work, please show your settings of CC, FC, and LIB so that we can suggest other tips.

Best regards,
T.V.T. Duy



メンテ
Re: openmx3.7 Installation problem ( No.2 )
Date: 2013/05/25 05:37
Name: SH

Dear T.V.T. Duy,

I really appreciate your reply.

It works correctly and I install the program without any problems.

Thanks again!

Best regards,
SH
メンテ
Re: openmx3.7 Installation problem ( No.3 )
Date: 2013/05/26 01:04
Name: Tamal Goswami

Dear all,

While installing openmx 3.7 I am facing the following error message

Cluster_DFT_ON2.c:(.text+0x6dfc): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x6e03): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x6e0f): undefined reference to `omp_get_num_procs'
Cluster_DFT_ON2.c:(.text+0x7896): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x789d): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x78a4): undefined reference to `omp_get_num_procs'
Cluster_DFT_ON2.c:(.text+0x7ae3): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x7aef): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x7afb): undefined reference to `omp_get_num_procs'
Cluster_DFT_ON2.c:(.text+0x85b7): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x85be): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x85c6): undefined reference to `omp_get_num_procs'
Cluster_DFT_ON2.c:(.text+0x88c8): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x88d4): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x88e0): undefined reference to `omp_get_num_procs'
Cluster_DFT_ON2.c:(.text+0x9061): undefined reference to `omp_get_thread_num'
Cluster_DFT_ON2.c:(.text+0x906d): undefined reference to `omp_get_num_threads'
Cluster_DFT_ON2.c:(.text+0x9079): undefined reference to `omp_get_num_procs'
........
........

Please suggest ways to overcome this difficulty

Best,
Tamal
メンテ
Re: openmx3.7 Installation problem ( No.4 )
Date: 2013/05/26 08:34
Name: T. Ozaki

Hi,

Please try to add the following compiler option for both the CC and FC:

For gnu compiler
-fopenmp

For icc compiler
-openmp

For pgi compiler
-mp

Disabling the OpenMP parallelism by adding -Dnoomp seems not to work.


Regards,

TO
メンテ
Re: openmx3.7 Installation problem ( No.5 )
Date: 2013/05/29 20:42
Name: Tamal Goswami  <tamal.nbu@gmail.com>

Respected Professor Ozaki,

Thank you very much for your reply. I can now run OpenMX-3.7 on my machine.

Sincerely,
Tamal
メンテ

Page: [1]