Error when compiling EFTCAMB

Use of Cobaya. camb, CLASS, cosmomc, compilers, etc.
Post Reply
Juan Flores
Posts: 1
Joined: January 11 2017
Affiliation: UG

Error when compiling EFTCAMB

Post by Juan Flores » January 12 2017

Hi,

When I compile EFTCAMB I have the following error:

EFT_main.f90:254:132:

*CP%Horava_lambda-2._dl*CP%Horava_xi)/(2._dl*CP%Horava_xi+2._dl-CP%Horava_eta))
1
Error: Line truncated at (1) [-Werror=line-truncation]
EFT_main.f90:254:132:

*CP%Horava_lambda-2._dl*CP%Horava_xi)/(2._dl*CP%Horava_xi+2._dl-CP%Horava_eta))
1
Error: ‘ho’ at (1) is not a member of the ‘cambparams’ structure
EFT_main.f90:317:132:

%Horava_lambda )*( Hdot - adotoa**2 )/( 2._dl +2._dl*CP%Horava_xi -CP%Horava_et
1
Error: Line truncated at (1) [-Werror=line-truncation]
EFT_main.f90:317:132:

%Horava_lambda )*( Hdot - adotoa**2 )/( 2._dl +2._dl*CP%Horava_xi -CP%Horava_et
1
Error: Expected a right parenthesis in expression at (1)
compilation terminated due to -fmax-errors=4.
Makefile_main:124: recipe for target 'Release/EFT_main.o' failed
make: *** [Release/EFT_main.o] Error 1


This is from the version of EFTCAMB that is downloaded from https://github.com/EFTCAMB/EFTCAMB_sources.

I also downloaded CAMB from https://github.com/cmbant/CAMB and used the EFTCAMB files that are downloaded from http://eftcamb.org/. I get the same error.

My Fortran compiler and OS are:

GNU Fortran (Ubuntu 5.4.0-6ubuntu1~16.04.4) 5.4.0

Any help would be pretty much appreciated.

Cheers!
Juan

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

Re: Error when compiling EFTCAMB

Post by Antony Lewis » January 12 2017

Try gfortran's -ffree-line-length-none

Post Reply