CosmoCoffee Forum Index CosmoCoffee

 
 FAQFAQ   SearchSearch  MemberlistSmartFeed   MemberlistMemberlist    RegisterRegister 
   ProfileProfile   Log inLog in 
Arxiv New Filter | Bookmarks & clubs | Arxiv ref/author:

CAMB:compile with gfortran for mac
 
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software
View previous topic :: View next topic  
Author Message
Andrea Maselli



Joined: 27 Sep 2008
Posts: 7
Affiliation: Università La Sapienza

PostPosted: September 28 2008  Reply with quote

Hi,
i'm an undergraduate student who has to work with cosmomc for his final work. I have to say it's the first time i work with fortran and i found some probems in compiling camb. The situation is the following:

-Macbook intel with macosx tiger
-gfortran compiler for mac
-I've set the makefile in camb directory as asked from my sistem profyle
-When i run "make" i draw the following problems:


gfc -O2 -c utils.F90
In file utils.F90:862

Temp%p => Arr(I)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:863

Arr(I)%p => Arr(J)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:863

Arr(I)%p => Arr(J)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:864

Arr(J)%p => Temp%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:814

Temp%p => Arr(I)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:815

Arr(I)%p => Arr(J)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:815

Arr(I)%p => Arr(J)%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:816

Arr(J)%p => Temp%p
1
Error: The upper bound in the last dimension must appear in the reference to the assumed size array 'arr' at (1).
In file utils.F90:882

use Lists
1
Fatal Error: Can't open module file 'lists.mod' for reading at (1): No such file or directory
make: *** [utils.o] Error 1

I don't know where is the mistake, could you please help me in finding it?
Thanks for your attention
Andrea Maselli
Back to top
View user's profile  
Antony Lewis



Joined: 23 Sep 2004
Posts: 675
Affiliation: University of Sussex

PostPosted: September 28 2008  Reply with quote

This is bug in gfortran - check you've got the latest version.
Back to top
View user's profile [ Hidden ] Visit poster's website
Andrea Maselli



Joined: 27 Sep 2008
Posts: 7
Affiliation: Università La Sapienza

PostPosted: September 29 2008  Reply with quote

I've downloaded a new version of gfortran but now there is another problem; the result is:

gfc -O2 -c utils.F90
/var/tmp//cc5VaMVR.s:3345:operands given don't match any known 386 instruction
/var/tmp//cc5VaMVR.s:3496:operands given don't match any known 386 instruction
/var/tmp//cc5VaMVR.s:4273:operands given don't match any known 386 instruction
/var/tmp//cc5VaMVR.s:4351:operands given don't match any known 386 instruction
/var/tmp//cc5VaMVR.s:6723:operands given don't match any known 386 instruction
/var/tmp//cc5VaMVR.s:10028:operands given don't match any known 386 instruction
make: *** [utils.o] Error 1


Thanks for the patience Andrea Maselli
Back to top
View user's profile  
Ivan Debono



Joined: 17 Apr 2007
Posts: 21
Affiliation: CEA Saclay

PostPosted: September 29 2008  Reply with quote

I'm also having problems compiling the latest version of CAMB. In my case I get the following:
—————–
In file subroutines.f90:7

use Precision
1
Fatal Error: Can't open module file 'precision.mod' at (1) for reading: No such file or directory
make: *** [subroutines.o] Error 1
———————

I'm using g95 as a compiler.
Back to top
View user's profile  
Ivan Debono



Joined: 17 Apr 2007
Posts: 21
Affiliation: CEA Saclay

PostPosted: September 29 2008  Reply with quote

Hmm, I've just re-downloaded CAMB and it compiled without a hitch.
Back to top
View user's profile  
Alexandra Abate



Joined: 25 Jan 2005
Posts: 2
Affiliation: UArizona

PostPosted: September 16 2011  Reply with quote

It was because when re-downloading you removed all files created during the build process - typing make clean should have worked too.
Back to top
View user's profile [ Hidden ]
Display posts from previous:   
Post new topic   Reply to topic    CosmoCoffee Forum Index -> Computers and software All times are GMT + 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group. Sponsored by WordWeb online dictionary and dictionary software.