CosmoMC/source makefile error

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Trupti Vijay Patil
Posts: 7
Joined: January 08 2021
Affiliation: PG

CosmoMC/source makefile error

Post by Trupti Vijay Patil » February 04 2021

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.
Attachments
Screenshot from 2021-02-02 14-55-45.png
Screenshot from 2021-02-02 14-55-45.png (301.6 KiB) Viewed 1482 times

Antony Lewis
Posts: 1704
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC/source makefile error

Post by Antony Lewis » February 05 2021

This should be in the Computers and Software forum.

Trupti Vijay Patil
Posts: 7
Joined: January 08 2021
Affiliation: PG

Re: CosmoMC/source makefile error

Post by Trupti Vijay Patil » February 05 2021

Thanks a lot.

Trupti Vijay Patil
Posts: 7
Joined: January 08 2021
Affiliation: PG

Re: CosmoMC/source makefile error

Post by Trupti Vijay Patil » February 05 2021

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'

Trupti Vijay Patil
Posts: 7
Joined: January 08 2021
Affiliation: PG

Re: CosmoMC/source makefile error

Post by Trupti Vijay Patil » February 05 2021

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.
Attachments
Screenshot from 2021-02-05 18-57-19.png
Screenshot from 2021-02-05 18-57-19.png (365.64 KiB) Viewed 1457 times

Antony Lewis
Posts: 1704
Joined: September 23 2004
Affiliation: University of Sussex
Contact:

Re: CosmoMC/source makefile error

Post by Antony Lewis » February 08 2021

If you have a crash in Intel Fortran, that's their bug - please report it to them.

Yu-Kuang Chu
Posts: 1
Joined: May 22 2021
Affiliation: Academia Sinica

Re: CosmoMC/source makefile error

Post by Yu-Kuang Chu » May 22 2021

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

Post Reply