It is currently Sun Nov 28, 2021 5:06 pm

All times are UTC - 8 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: Galprop Ubuntu 9.10
PostPosted: Thu Feb 25, 2010 9:11 am 
Offline

Joined: Wed Feb 24, 2010 1:22 pm
Posts: 1
Location: Wayne State University
I am not sure if this problem relevant for Ubuntu only, however I haven't encountered it on Red Hat. When trying to compile galprop I get the following error message:

andrey@ubuntu:~/Desktop/v50.1p$ make
f77 -fno-second-underscore -c -o antiproton.o antiproton.f
antiproton:
tan_ng:
cc1: warning: command line option "-fno-second-underscore" is valid for Fortran but not for C
/tmp/fort77-3586-1.c:172: error: conflicting types for ‘tan_ng__’
/tmp/fort77-3586-1.c:62: note: previous declaration of ‘tan_ng__’ was here
/usr/bin/f77: aborting compilation
make: *** [antiproton.o] Error 25


I am not a great expert in Linux. Any suggestions about where the fix is?


Top
 Profile  
 
 Post subject: Re: Galprop Ubuntu 9.10
PostPosted: Tue Aug 24, 2010 5:03 pm 
Offline
Site Admin

Joined: Wed Oct 21, 2009 6:30 pm
Posts: 47
Location: Stanford U.
Andriy,

I am sorry there was nobody to answer your question earlier. We were busy with a project that is now complete and may solve your problem. GALPROP WebRun http://galprop.stanford.edu/webrun/ allows you to run the code via a web browser, without installing it on your computer, and the most recent GALPROP version 54 is used in WebRun. Please check it out, and thank you for your interest in GALPROP!

Andrey

_________________
Andrey Vladimirov
http://galprop.stanford.edu/


Top
 Profile  
 
 Post subject: Re: Galprop Ubuntu 9.10
PostPosted: Wed Aug 25, 2010 8:58 am 
Offline

Joined: Wed May 17, 2006 7:02 am
Posts: 285
Location: MPE Garching
this is related to fort_interface1.cc
there you will see that there are two cases with single or double underlining for the fortran-c naming convention.
It depends on the compiler and/or OS.

Edit this routine as described in the header to see if it helps.
I don't know which case Ubuntu corresponds to, so just experiment.

In the latest version this should get done automagically I believe.

Sorry we still have fortran routines in there, we will try to eliminate them in future.

_________________
Andy Strong, MPE


Top
 Profile  
 
 Post subject: Re: Galprop Ubuntu 9.10
PostPosted: Thu Nov 04, 2010 6:58 pm 
Offline

Joined: Mon Jan 19, 2009 9:48 am
Posts: 19
Location: INFN Perugia
Hi Andriy,
try to compile with gfortran instead f77; it should work.


Andriy wrote:
I am not sure if this problem relevant for Ubuntu only, however I haven't encountered it on Red Hat. When trying to compile galprop I get the following error message:

andrey@ubuntu:~/Desktop/v50.1p$ make
f77 -fno-second-underscore -c -o antiproton.o antiproton.f
antiproton:
tan_ng:
cc1: warning: command line option "-fno-second-underscore" is valid for Fortran but not for C
/tmp/fort77-3586-1.c:172: error: conflicting types for ‘tan_ng__’
/tmp/fort77-3586-1.c:62: note: previous declaration of ‘tan_ng__’ was here
/usr/bin/f77: aborting compilation
make: *** [antiproton.o] Error 25


I am not a great expert in Linux. Any suggestions about where the fix is?


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

All times are UTC - 8 hours [ DST ]


Who is online

Users browsing this forum: No registered users 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