Page 1 of 1

CosmoMC/source makefile error

Posted: February 04 2021
by Trupti Vijay Patil
I am trying to run 'make' command in CosmoMC/source. Source Makefile contains
F90C = ifort
MPIF90C ?= mpif90
After running make, gfortran error appears.
After editing the Makefile with
mpif90 -f90=ifort
MPIF90C ?= mpiifort
I get this error : Makefile:29: *** missing separator. Stop. where I changed "F90C =ifort" to "mpif90 -f90=ifort"
I googled the error. It said something related tab which is out of my knowledge.
Can anyone have any idea what could have gone wrong??
Error screenshot and edited Makefile screenshot is attached.

Re: CosmoMC/source makefile error

Posted: February 05 2021
by Antony Lewis
This should be in the Computers and Software forum.

Re: CosmoMC/source makefile error

Posted: February 05 2021
by Trupti Vijay Patil
Thanks a lot.

Re: CosmoMC/source makefile error

Posted: February 05 2021
by Trupti Vijay Patil
Make command working fine after some changes in Makefile. But now I get the following error.:

ifort: command line warning #10006: ignoring unknown option
'-fallow-argument-mismatch'

Re: CosmoMC/source makefile error

Posted: February 05 2021
by Trupti Vijay Patil
This is an another error while running "make" in CosmoMC/source

ifort -mkl -O3 -no-prec-div -fpp -qopenmp -xHost -DCLIK -I../camb/fortran/Release -I/home/ryzen/CosmoMC/source/../camb/forutils/Release/ -I/home/ryzen/plc-3.01/include -module Release -IRelease/ -c ImportanceSampling.f90 -o Release/ImportanceSampling.o
ifort: error #10105: /opt/intel/oneapi/compiler/2021.1.1/linux/bin/intel64/../../bin/intel64/fortcom: core dumped
ifort: warning #10102: unknown signal(0)
ifort: error #10106: Fatal error in /opt/intel/oneapi/compiler/2021.1.1/linux/bin/intel64/../../bin/intel64/fortcom, terminated by unknown
compilation aborted for ImportanceSampling.f90 (code 1)
Error screenshot is attched.

Re: CosmoMC/source makefile error

Posted: February 08 2021
by Antony Lewis
If you have a crash in Intel Fortran, that's their bug - please report it to them.

Re: CosmoMC/source makefile error

Posted: May 22 2021
by Yu-Kuang Chu
Hi, I also encountered the same issue. I found that the problem is due to the flag -xHost. After removing it in the makefile, I can successfully compile it. By the way, I'm using ifort on a AMD Ryzen 9 5900X machine. I'm not sure whether it is a problem. Also, I've tried to report this issue to Intel: https://community.intel.com/t5/Intel-Fortran-Compiler/ifort-2021-2-0-compiling-error-for-cosmoMC/m-p/1282452/highlight/true#M155985