Page 1 of 1

Error when compiling EFTCAMB

Posted: January 12 2017
by Juan Flores
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

Re: Error when compiling EFTCAMB

Posted: January 12 2017
by Antony Lewis
Try gfortran's -ffree-line-length-none