It is currently Sun May 18, 2025 5:10 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 3 posts ] 
Author Message
 Post subject: compilation problem
PostPosted: Tue Jan 13, 2015 5:51 am 
Offline

Joined: Mon May 28, 2012 7:38 pm
Posts: 20
Dear all,
I met an error when compiling galprop in ubuntu 14.01. The error is as follows:

g77 -O3 -Wall -c -o WNEWTR_FUNC_aws.o WNEWTR_FUNC_aws.f
WNEWTR_FUNC_aws.f: In subroutine `set_sigma':
WNEWTR_FUNC_aws.f:32:
SUBROUTINE SET_SIGMA(CDR,FILENAME,FNLENGTH) ! IMOS20020502
1
WNEWTR_FUNC_aws.f:45: (continued):
CHARACTER*(FNLENGTH) FILENAME
2
Invalid declaration of or reference to symbol `fnlength' at (2) [initially seen at (1)]
WNEWTR_FUNC_aws.f: In function `sigma':
In file included from WNEWTR_FUNC_aws.f:0:
WNEWTR_FUNC_aws.f:200: warning: unused variable 'k'
WNEWTR_FUNC_aws.f:200: warning: unused variable 'j'
WNEWTR_FUNC_aws.f:200: warning: unused variable 'i'
make[2]: *** [WNEWTR_FUNC_aws.o] Error 1
make[2]: Leaving directory `/home/faust/Research/PROGRAM/CRPropagation/GALPROP_WORKSPACE/galprop/source'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/home/faust/Research/PROGRAM/CRPropagation/GALPROP_WORKSPACE/galprop'
make: *** [all] Error 2

I am a freshman and not sure about fortran.
Maybe g77 can not be used here, but I don't
know how to change the compiler.

Thank you very much for telling me what
the wrong is and how to fix it!


Top
 Profile  
 
 Post subject: Re: compilation problem
PostPosted: Tue Jan 13, 2015 8:36 am 
Offline

Joined: Wed May 17, 2006 7:02 am
Posts: 285
Location: MPE Garching
you need gfortran, and hence on the ./configure line include the following:
F77=gfortran

see e.g. the README of the current version at http://sourceforge.net/projects/galprop

_________________
Andy Strong, MPE


Top
 Profile  
 
 Post subject: Re: compilation problem
PostPosted: Tue Jan 13, 2015 8:40 pm 
Offline

Joined: Mon May 28, 2012 7:38 pm
Posts: 20
Thank you very much for your reply!
I have reinstalled a newer version of galprop.
It works.

Thank you very much!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: Google [Bot] and 1 guest


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group