GSI Forum
GSI Helmholtzzentrum für Schwerionenforschung

Home » PANDA » PandaRoot » Bugs, Fixes, Releases » Bug under gcc 3.X compiler
Bug under gcc 3.X compiler [message #5165] Sat, 06 October 2007 12:11 Go to next message
StefanoSpataro is currently offline  StefanoSpataro
Messages: 2736
Registered: June 2005
Location: Torino
first-grade participant

From: *dip.t-dialin.net
Does somebody know what is going wrong on gcc 3.X machines?

[Top] [Configure] [Build|E|W]
Build Errors (7)
Error Build Log Line 266
File: tpc/tpcreco/TpcPatternRecoTask.cxx Line: 212
[ 49%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcConfMapRecoHit.o
[ 50%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcConfMapFit.o
[ 50%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcZSFit.o
[ 50%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcPatternRecoTask.o
/.../pandaroot/tpc/tpcreco/TpcPatternRecoTask.cxx: In
member function `virtual void TpcPatternRecoTask::Exec(const Option_t*)':
/.../pandaroot/tpc/tpcreco/TpcPatternRecoTask.cxx:212: error: call
of overloaded `fabs(bool)' is ambiguous
/usr/include/bits/mathcalls.h:182: error: candidates are: double fabs(double)Error Build Log Line 269
File: /usr/include/c++/3.3/cmath Line: 328
/usr/include/c++/3.3/cmath:328: error: long double
std::fabs(long double)Error Build Log Line 271
File: /usr/include/c++/3.3/cmath Line: 324
/usr/include/c++/3.3/cmath:324: error: float std::fabs(float)
Error Build Log Line 272
File: tpc/tpcreco/TpcPatternRecoTask.cxx Line: 213
/.../pandaroot/tpc/tpcreco/TpcPatternRecoTask.cxx:213: error: call
of overloaded `fabs(bool)' is ambiguous
/usr/include/bits/mathcalls.h:182: error: candidates are: double fabs(double)Error Build Log Line 275
File: /usr/include/c++/3.3/cmath Line: 328
/usr/include/c++/3.3/cmath:328: error: long double
std::fabs(long double)Error Build Log Line 277
File: /usr/include/c++/3.3/cmath Line: 324
/usr/include/c++/3.3/cmath:324: error: float std::fabs(float)
[ 50%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcConfTrackFinder.o
[ 50%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/test/TpcRecoTester.o
[ 51%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcPlanarRecoHit.o
/.../pandaroot/tpc/tpcreco/TpcPlanarRecoHit.cxx: In
constructor `TpcPlanarRecoHit::TpcPlanarRecoHit(TpcCluster*)':Error Build Log Line 295
File: Unknown Line: Unknown
[ 52%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcProximityHTCorrelator.o
[ 52%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcRiemannHTCorrelator.o
[ 52%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/TpcRiemannTrackingTask.o
[ 53%] Building CXX object tpc/tpcreco/CMakeFiles/tpcreco.dir/tpcrecoDict.o
Linking CXX shared library libtpcreco.so
c++: CMakeFiles/tpcreco.dir/TpcPatternRecoTask.o: No such file or directory
[ 53%] Built target tpcreco
[ 53%] Generating MvdDict.cxx, MvdDict.h
Scanning dependencies of target Mvd
[ 53%] Building CXX object mvd/CMakeFiles/Mvd.dir/MvdData/MvdDetIdPair.o
[ 53%] Building CXX object mvd/CMakeFiles/Mvd.dir/MvdData/MvdDigiPixel.o
[ 54%] Building CXX object mvd/CMakeFiles/Mvd.dir/MvdData/MvdDigiStrip.o
Re: Bug under gcc 3.X compiler [message #5170 is a reply to message #5165] Mon, 08 October 2007 11:48 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 changed some of the code (change or add include statements) to be compatible with root v5.16.
In TpcPatternRecoTask.cxx i add a

#include <cmath>
using std::fabs;

which results in the shown error message on systems with gcc 3.
The error occurs because you want to get the absolute value of a
boolean variable, but this function is not implemented and i don't
know if this makes sense.

Maybe Christian or Sebastian can have a look at the problem.


Ciao

Florian
Previous Topic: kill Particle and secondaries
Next Topic: compiling geane,recotask and trackrep
Goto Forum:
  


Current Time: Mon Nov 25 19:11:23 CET 2024

Total time taken to generate the page: 0.00876 seconds