This thread is locked.Only browsing is available.
Top Page > Browsing
Problem about 'make DosMain'
Date: 2020/05/07 22:02
Name: Liu Jie   <15284076358@163.com>

Dear developers,
i'm trying to calculate the DOS.But when i was compiling ,there was a problem as follows:

mpicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/mkl/include/fftw -I./elpa-2018.05.001 -o DosMain.o -c DosMain.c
gcc: unrecognized option '-no-prec-div'
gcc: unrecognized option '-qopenmp'
gcc: language HOST not recognized
gcc: language HOST not recognized
gcc: DosMain.c: linker input file unused because linking not done
mpicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/mkl/include/fftw -I./elpa-2018.05.001 -c Inputtools.c
gcc: unrecognized option '-no-prec-div'
gcc: unrecognized option '-qopenmp'
gcc: language HOST not recognized
gcc: language HOST not recognized
gcc: Inputtools.c: linker input file unused because linking not done
mpicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/mkl/include/fftw -I./elpa-2018.05.001 -c malloc_multidimarray.c
gcc: unrecognized option '-no-prec-div'
gcc: unrecognized option '-qopenmp'
gcc: language HOST not recognized
gcc: language HOST not recognized
gcc: malloc_multidimarray.c: linker input file unused because linking not done
mpicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/mkl/include/fftw -I./elpa-2018.05.001 -o Tetrahedron_Blochl.o -c Tetrahedron_Blochl.c
gcc: unrecognized option '-no-prec-div'
gcc: unrecognized option '-qopenmp'
gcc: language HOST not recognized
gcc: language HOST not recognized
gcc: Tetrahedron_Blochl.c: linker input file unused because linking not done
mpicc -O3 -xHOST -ip -no-prec-div -qopenmp -I/opt/intel/mkl/include/fftw -I./elpa-2018.05.001 -o DosMain DosMain.o Inputtools.o malloc_multidimarray.o Tetrahedron_Blochl.o -lm
gcc: DosMain.o: No such file or directory
gcc: Inputtools.o: No such file or directory
gcc: malloc_multidimarray.o: No such file or directory
gcc: Tetrahedron_Blochl.o: No such file or directory
gcc: unrecognized option '-no-prec-div'
gcc: unrecognized option '-qopenmp'
make: *** [DosMain] Error 1

it says 'no such file or directory' in the end.but i found there was still the problem when i downloaded the latest package openmx3.9 into my computer.so i want to know how to solve it.thanks for your answers very much.
メンテ
Page: [1]

Re: Problem about 'make DosMain' ( No.1 )
Date: 2020/05/08 03:57
Name: Naoya Yamaguchi

Hi,

You need to edit "CC" "FC", and "LIB" of "makefile" in a directory "source" before executing "make DosMain".
You can refer to the following:
http://www.openmx-square.org/openmx_man3.9/node14.html
http://www.openmx-square.org/tech_notes/OpenMX-Compile.pdf

And, because "CC" "FC", and "LIB" depend on machines, you should set appropriate settings for your machine to the three variables.

Regards,
Naoya Yamaguchi
メンテ
Re: Problem about 'make DosMain' ( No.2 )
Date: 2020/05/08 16:41
Name: Liu Jie  <15284076358@163.com>

Thank you Naoya Yamaguchi!

Best wishes,
Liu Jie
メンテ

Page: [1]