GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » CMake and fortran
CMake and fortran [message #6539] Mon, 21 April 2008 11:21 Go to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Hello,
here in Gießen we have both gfortran and g77, but it seems cmake enables only and always gfortran:

-- Check for working C compiler: gcc
-- Check for working C compiler: gcc -- works
-- Check size of void*
-- Check size of void* - done
-- Check for working CXX compiler: c++
-- Check for working CXX compiler: c++ -- works
-- Check for working Fortran compiler: gfortran
-- Check for working Fortran compiler: gfortran -- works
-- Checking whether gfortran supports Fortran 90
-- Checking whether gfortran supports Fortran 90 -- yes


I would like to use only g77. I have tried to search deep in the code, but I have not found where it tries to find the fortran compiler.

So my question is: how can I let my cmake choosing g77 instead of gfortran?

(the answer "remove gfortran" is not allowed...)
Re: CMake and fortran [message #6542 is a reply to message #6539] Mon, 21 April 2008 11:38 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Stefano

Try to do an

> export FC=g77

before you do the cmake. If you don't have a clean build directory please delete CMakeCache.txt before you run cmake.

Ciao

Florian
Re: CMake and fortran [message #6543 is a reply to message #6542] Mon, 21 April 2008 11:56 Go to previous messageGo to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Thanks at all,
now I have g77 running and I will see if the error in compiling DpmEvtGen will occurr or not again.


[EDIT: nope, I have still the same problem...]

[Updated on: Mon, 21 April 2008 11:57]

Report message to a moderator

Re: CMake and fortran [message #6544 is a reply to message #6543] Mon, 21 April 2008 11:58 Go to previous messageGo to next message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Stefano

Both errors gone after the export FC?

Ciao

Florian
Re: CMake and fortran [message #6545 is a reply to message #6544] Mon, 21 April 2008 12:13 Go to previous message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *physik.uni-giessen.de
Mmmm,
unfortunately not, again the so.0.0 files are missing.

I will do some workaround to let it work.
Previous Topic: Bug in libPGen (DPM)
Next Topic: libPGen pgenerators
Goto Forum:
  


Current Time: Tue Oct 15 02:15:53 CEST 2024

Total time taken to generate the page: 0.00868 seconds