SampleAnalyzer fails to compile with clang
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MadAnalysis 5 |
Fix Released
|
Medium
|
Benjamin Fuks |
Bug Description
Hi,
With the latest version of MacOsX 'mavericks' and xcode, we found that MadAnalysis (1.19) does not
compile when compiling with clang.
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-
Thread model: posix
The errors are found in DataFormat/
because the operator * is returning a double (the dot product) and there is no double constructor for the class.
In gcc this does not produce a compiling error but we think is a bug.
We added a
ParticleBaseF
{ }
and fixed that problem but it failed with the following errors:
c -o JetClustering/
JetClustering/
myEvent.
/Applications/
_LIBCPP_
JetClustering/
myEvent.
/Applications/
_LIBCPP_
c++ -Wall -O3 -pthread -stdlib=libc++ -m64 -I/usr/
2 errors generated.
make: *** [JetClustering/
Could you please let us know what we could do to fix the problem?
Cheers,
Yi Cai and Aldo Saavedra
Changed in madanalysis5: | |
status: | Fix Committed → Fix Released |
Hi Yi and Aldo,
The problem is due to a change in the default c++ libraries in macos, and arise in v10.9 and more recent versions. This will be fixed with version 1.5.10 of madanalysis. 5. I will let you know when the patch will be available.
Cheers,
Benjamin