Re: Errors when compiling DosMain V3.4 ( No.1 ) |
- Date: 2008/07/01 16:53
- Name: Denis Music <music@mch.rwth-aachen.de>
- Dear Prof. Ozaki and OpenMX users,
I've just tried to install the 3.4 version following the same procedure as for the 3.3 version. Unfortunately there are many errors, such as: openmx.o: In function `main': openmx.c:(.text+0x232): undefined reference to `omp_set_num_threads' truncation.o: In function `Trn_System': truncation.c:(.text+0xb020): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xb028): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xb030): undefined reference to `omp_get_num_procs' truncation.c:(.text+0xbd3b): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xbd43): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xbd4b): undefined reference to `omp_get_num_procs' truncation.c:(.text+0xcb98): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xcba0): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xcba8): undefined reference to `omp_get_num_procs' truncation.o: In function `Estimate_Trn_System': truncation.c:(.text+0xcd5f): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xcd67): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xcd6f): undefined reference to `omp_get_num_procs' truncation.o: In function `Set_RMI': truncation.c:(.text+0xdac3): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xdacb): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xdad3): undefined reference to `omp_get_num_procs' truncation.o: In function `LT': truncation.c:(.text+0xe190): undefined reference to `omp_get_thread_num' truncation.c:(.text+0xe198): undefined reference to `omp_get_num_threads' truncation.c:(.text+0xe1a0): undefined reference to `omp_get_num_procs' etc.. There seems to be a problem with this version. Does anybody know how to go around it? With best regards, Denis
|
Re: Errors when compiling DosMain V3.4 ( No.2 ) |
- Date: 2008/07/01 23:24
- Name: T. Ozaki
- Dear Yonghong Zhao,
I am afraid that I cannot reproduce your error in my computational environment. How about ver.3.3 ? If someone encouters the same problem, please let us know your solution.
Dear Denis,
Can you add -Dnoomp, -openmp, or -mp as compiler option ? Since the codes in Ver. 3.4 have been parallelized using OpenMP and MPI, a relevant compiler option about OpenMP has to be added.
Best regards,
TO
|
Re: Errors when compiling DosMain V3.4 ( No.3 ) |
- Date: 2008/07/02 15:18
- Name: Denis Music <music@mch.rwth-aachen.de>
- Great, thanks a lot. The installation went through and the runtest was OK.
With best regards, Denis
|
Re: Errors when compiling DosMain V3.4 ( No.4 ) |
- Date: 2008/07/15 17:30
- Name: Yonghong Zhao <yongh_zhao518@163.com>
- Dear Prof. Ozaki,
After I "make clean", I tried to compile the code again, and the errors vanished.
Best Regards,
Zhao
|
Re: Errors when compiling DosMain V3.4 ( No.5 ) |
- Date: 2008/09/28 20:43
- Name: Kyriakos Kachrimanis
- Dear Prof. Ozaki and openmx users,
while openmx3.4 compiled without problems on cygwin, the make DosMain command returns the following error:
DosMain.o:Dos.main.c:(.text+0x1788): undefined reference to '_OrderE0' DosMain.o:Dos.main.c:(.text+0x1868): undefined reference to '_ATM_Dos' DosMain.o:Dos.main.c:(.text+0x32ec): undefined reference to '_OrderE' DosMain.o:Dos.main.c:(.text+0x1788): undefined reference to '_ATM_Spectrum' collect2: ld returned 1 exit status make: *** [DosMain] Error 1
The compiler options used in the Makefile are the following:
CC = gcc -Dnompi -openmp -Dblaswrap -O3 -I/usr/include STACK = -Wl,--heap,9000000,--stack,9000000 LIB =-L/lib -llapack -lblas -lg2c -lI77 -lfftw3 -static
Could anyone provide some help? Thanks in advance.
PS: In openmx3.3 the DosMain program can be easily compiled on my system.
|
Re: Errors when compiling DosMain V3.4 ( No.6 ) |
- Date: 2008/10/24 23:04
- Name: Zsolt
Dear All,
Make clean will not clear these files:
DosMain.o Tetrahedron_Blochl.o polB.o
Please remove them manually before recompilation.
yours, Zsolt
|
Re: Errors when compiling DosMain V3.4 ( No.7 ) |
- Date: 2008/10/25 01:25
- Name: Kyriakos Kachrimanis
- Thanks a lot for the advice. It worked!
|