GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Compilation Bug at GSI cluster
Compilation Bug at GSI cluster [message #4424] Mon, 04 June 2007 16:51 Go to next message
Aida Galoyan is currently offline  Aida Galoyan
Messages: 79
Registered: May 2007
Location: Dubna
continuous participant
From: *jinr.ru
Hi all,
I have given error at compilation of pandaroot at my account
in GSI cluster(lxi001.gsi.de).
>>>
tst/CbmTstHybridHitProducer.cxx: In member function `CbmTstHit
CbmTstHybridHitProducer::CalcGlobalPoint(std::vector<CbmTstPixel,
std::allocator<CbmTstPixel> >)':
tst/CbmTstHybridHitProducer.cxx:383: error: call of overloaded `sqrt(int)' is
ambiguous
/usr/include/bits/mathcalls.h:157: error: candidates are: double sqrt(double)
/usr/include/c++/3.3/cmath:550: error: long double
std::sqrt(long double)
/usr/include/c++/3.3/cmath:546: error: float std::sqrt(float)
tst/CbmTstHybridHitProducer.cxx:383: error: call of overloaded `sqrt(int)' is
ambiguous
/usr/include/bits/mathcalls.h:157: error: candidates are: double sqrt(double)
/usr/include/c++/3.3/cmath:550: error: long double
std::sqrt(long double)
/usr/include/c++/3.3/cmath:546: error: float std::sqrt(float)
make[1]: *** [CbmTstHybridHitProducer.lo] Error 1
make[1]: Leaving directory `/u/galoyan/pandaroot3/pandaroot/mvd'
make: *** [all-recursive] Error 1
>>>

Any suggestion?
Thanks, Aida



Re: Compilation Bug at GSI cluster [message #4425 is a reply to message #4424] Mon, 04 June 2007 16:58 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
Hi,
it was already reported about this semi-bug (semi because it appears not in all the machines, it depends on the compiler).

If you modify line 383 of tst/CbmTstHybridHitProducer.cxx, you have to substitute "sqrt(12)" with "sqrt(12.)" and it will work.

Unfortunately only Thobias can commit code in tst directory, and it seems it was not available before.
Try and see if this helps or not. We will try to fix this as soon as possible.

Re: Compilation Bug at GSI cluster [message #4429 is a reply to message #4425] Tue, 05 June 2007 08:43 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Stefano

I fixed the problem and commit the changes to SVN.


Ciao

Florian
Previous Topic: TG4SDServices::GetVolumeID:
Next Topic: new code released for tpc
Goto Forum:
  


Current Time: Mon Nov 25 17:56:56 CET 2024

Total time taken to generate the page: 0.00759 seconds