CAMB:failure to compile fortran utils with Intel compilers

Use of Healpix, camb, CLASS, cosmomc, compilers, etc.
Post Reply
Ira *Wolfson
Posts: 67
Joined: January 24 2013
Affiliation: MPA
Contact:

CAMB:failure to compile fortran utils with Intel compilers

Post by Ira *Wolfson » November 10 2020

HI,

trying Intel compilers 19,18,17,15,14:
All yield the following:

Code: Select all

srv-13:~/data/CosmoMC-new> make
cd ./source && make cosmomc BUILD=MPI
make[1]: Entering directory '/afs/mpa/data/irawolf/CosmoMC-new/source'
/bin/sh: line 0: test: too many arguments
mkdir -p ReleaseMPI
cd ../camb/fortran && \
make --file=Makefile_main libcamb OUTPUT_DIR=ReleaseMPI \
    FORUTILSPATH=/afs/mpa/data/irawolf/CosmoMC-new/source/../camb/forutils
make[2]: Entering directory '/afs/mpa/data/irawolf/CosmoMC-new/camb/fortran'
/bin/sh: line 0: test: too many arguments
/bin/sh: line 0: test: too many arguments
make -C ReleaseMPI --no-print-directory -f../Makefile FORUTILS_SRC_DIR=.. libforutils.a
/bin/sh: -c: line 0: unexpected EOF while looking for matching `''
/bin/sh: -c: line 1: syntax error: unexpected end of file
make[5]: *** [../Makefile:49: compiler.ver] Error 1
make[4]: *** [Makefile:69: directories] Error 2
make[3]: *** [Makefile:32: ReleaseMPI] Error 2
make[2]: *** [Makefile_main:144: libforutils] Error 2
make[2]: Leaving directory '/afs/mpa/data/irawolf/CosmoMC-new/camb/fortran'
make[1]: *** [Makefile:317: camb] Error 2
make[1]: Leaving directory '/afs/mpa/data/irawolf/CosmoMC-new/source'
make: *** [Makefile:17: cosmomc] Error 2
This is out of the box master branch recursive clone.
gfortran works just fine but has a lot of runtime errors,
chief among them memory leaks.

Any insight?


Thanks

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

Re: CAMB:failure to compile fortran utils with Intel compilers

Post by Antony Lewis » November 10 2020

These look like unix errors not ifort?

Ira *Wolfson
Posts: 67
Joined: January 24 2013
Affiliation: MPA
Contact:

Re: CAMB:failure to compile fortran utils with Intel compilers

Post by Ira *Wolfson » November 10 2020

I totally agree.

However, when using the same exact release, after removing unloading Intel compilers (and openmpi compiled over intel),
and loading gfortran and openmpi over gfortran, everything works.

I would be happy to go with these, but as mentioned before, it seems there are either
memory leaks or other runtime errors that I cannot locate even with cosmomc_debug.

The "too many arguments" flag is usually when the makefile is ill-written, which is NOT the case here
(obviously, otherwise it wouldn't have worked with gfortran etc.)

-- Ira

Post Reply