GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Error when compiling CbmTstHybridHitProducer.cxx
Error when compiling CbmTstHybridHitProducer.cxx [message #4386] Thu, 31 May 2007 09:49 Go to next message
Klaus Götzen is currently offline  Klaus Götzen
Messages: 293
Registered: June 2006
Location: GSI
first-grade participant
From: *ikf.physik.uni-frankfurt.de
Hi!

Again, after updating via svn, I get after a 'make clean' and the standard procedure this error messages:

.
.
.
../../pandaroot/mvd/tst/CbmTstHybridHitProducer.cxx: In member function `
CbmTstHit CbmTstHybridHitProducer::CalcGlobalPoint(std::vector<CbmTstPixel,
std::allocator<CbmTstPixel> >)':
../../pandaroot/mvd/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)
../../pandaroot/mvd/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 `/d/panda02/kgoetzen/pandasoft/build/mvd'
make: *** [install-recursive] Error 1

Let me again emphasize: We need a stable version in the repository!

Klaus
Re: Error when compiling CbmTstHybridHitProducer.cxx [message #4389 is a reply to message #4386] Thu, 31 May 2007 10:39 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,
I could not reproduce your error here in Gießen, but we had already this kind of problem.

The problem is that what is a "warning" for a compiler, becomes "error" for another compiler. In my case I received neither a warning message, and I can compile the whole pandaroot.

If you substitute at line 383 of the mvd/tst/CbmTstHybridHitProducer.cxx file the "12" with "12.", it should work, waiting for the official fix.

In eachc ase this "error" is quite strange... whch compiler version do you have?




[Updated on: Thu, 31 May 2007 10:40]

Report message to a moderator

Re: Error when compiling CbmTstHybridHitProducer.cxx [message #4390 is a reply to message #4386] Thu, 31 May 2007 10:43 Go to previous messageGo to next message
Jens Sören Lange is currently offline  Jens Sören Lange
Messages: 193
Registered: June 2005
first-grade participant
From: *physik.uni-giessen.de
Hi Klaus,

yes, you are right and we will have a stable release.

It just doesn't work to have the rule only to check in compiling code.

We discussed this yesterday, and the solution is:
Mohammad and Florian will set up an svn stable release branch. It will take a few days to figure out how to do that in svn. This will always be a snapshot of a revision which a.) compiles and b.) most (hopefully all) the macros will be working. I volunteered to check this for now, but Florian will also try to put the "does it compile" and "are the macros crashing root" tests into cmake for automatic tests.

Just give it a few days, please.

Until then: revision 715 is good.

Soeren
Re: Error when compiling CbmTstHybridHitProducer.cxx [message #4391 is a reply to message #4386] Thu, 31 May 2007 10:56 Go to previous messageGo to next message
Tobias Stockmanns is currently offline  Tobias Stockmanns
Messages: 489
Registered: May 2007
first-grade participant
From: *ikp.kfa-juelich.de
Hi Klaus,

I am sorry for this problem. But, as Stefano already said, this is only a warning in my compiler. I hope Ralf will fix this problem. I would do it by myself but I cannot upload my code to SVN.

Cheers,

Tobias

Re: Error when compiling CbmTstHybridHitProducer.cxx [message #4401 is a reply to message #4390] Thu, 31 May 2007 17:33 Go to previous message
Florian Uhlig is currently offline  Florian Uhlig
Messages: 424
Registered: May 2007
first-grade participant
From: *gsi.de
Hi Soeren

The automatic testing is set up. The problem in the moment is
that the machine which hosts the webserver for the dashboard is
not seen from outside GSI. This will change hopefully tomorrow.

Ciao

Florian

Previous Topic: MvdTrackCand missing?
Next Topic: TG4SDServices::GetVolumeID:
Goto Forum:
  


Current Time: Fri Nov 29 03:24:02 CET 2024

Total time taken to generate the page: 0.00710 seconds