GALPROP
https://galprop.stanford.edu/forum/

Galprop Ubuntu 9.10
https://galprop.stanford.edu/forum/viewtopic.php?f=6&t=82
Page 1 of 1

Author:  Andriy [ Thu Feb 25, 2010 9:11 am ]
Post subject:  Galprop Ubuntu 9.10

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?

Author:  avladim [ Tue Aug 24, 2010 5:03 pm ]
Post subject:  Re: Galprop Ubuntu 9.10

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

Author:  strong [ Wed Aug 25, 2010 8:58 am ]
Post subject:  Re: Galprop Ubuntu 9.10

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.

Author:  tomassetti [ Thu Nov 04, 2010 6:58 pm ]
Post subject:  Re: Galprop Ubuntu 9.10

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?

Page 1 of 1 All times are UTC - 8 hours [ DST ]
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/