[Rivet] Compilation problem on Mac OSX 10.11 with Clang 3.7

Andy Buckley andy.buckley at cern.ch
Mon May 23 16:26:15 BST 2016


The only possible (I hope!) is that in YODA 1.6.x we return nan values 
from undefined stats operations, e.g. the variance of a bin with only 
one fill, rather than 0 or throwing an exception. The expectation is 
then that "downstream" tools will handle the nans appropriately.

I think the only thing that should be affected for Rivet is the 
plotting, which hasn't been updated to do nan-detection in version 
2.4.x. So if you do come across a case where your plot looks messed up 
and has "nan" written all over it, let us know: a very convenient way to 
work out what fixes need to be applied ;-)

Andy



On 23/05/16 13:56, David Grellscheid wrote:
> Hi Peter,
>
> I'm glad it works.
>
>> does now compile with 1.6.1 on my system. Have not given it a
>> thorough test run yet though.
>
> I don't expect major problems, other than the one you encountered already.
>
> See you,
>
>    David
>
>
>
> On 23/05/16 13:49, Peter Skands wrote:
>> Hi David, Andy
>>
>> Thanks so much for the help. The
>>
>> --enable-stdcxx11
>>
>> flag did the trick! And apologies for not noticing that Rivet 2.4.2
>> should be combined with Yoda 1.5.x. With the flag above, it does now
>> compile with 1.6.1 on my system. Have not given it a thorough test
>> run yet though.
>>
>> Cheers, Peter
>>
>> — *PETER SKANDS *Associate Professor
>>
>> *School of Physics and Astronomy *Monash University 10 College Walk,
>> Clayton Campus Melbourne, VIC 3800 Australia
>>
>> T: +61 3 990 53692 <tel://+61 3 990 53692> E: peter.skands at monash.edu
>> <mailto:peter.skands at monash.edu> W: skands.physics.monash.edu
>> <http://skands.physics.monash.edu/>
>>
>> — Sent with Airmail
>>
>> On 23 May 2016 at 8:57:54 PM, David Grellscheid
>> (david.grellscheid at durham.ac.uk
>> <mailto:david.grellscheid at durham.ac.uk>) wrote:
>>
>>> Hi Peter,
>>>
>>> can you please try --enable-stdcxx11 in the configure, then make
>>> clean; make?
>>>
>>> Thanks,
>>>
>>> David
>>>
>>>
>>> On 23/05/16 08:42, Peter Skands wrote:
>>>> Hi Riveteers,
>>>>
>>>> I’m trying to compile Rivet 2.4.2 on a Mac recently upgraded to
>>>> El Capitan, using Macport’s /opt/local/bin/clang++-mp-3.7
>>>> compiler. I am linking against Yoda 1.6.1, which installed
>>>> without problems.
>>>>
>>>> When trying to compile Rivet, however, I get three times the
>>>> following error which seem to go back to a Yoda header:
>>>>
>>>> In file included from Run.cc:3:
>>>>
>>>> In file included from ../../include/Rivet/AnalysisHandler.hh:8:
>>>>
>>>> In file included from ../../include/Rivet/Tools/RivetYODA.hh:9:
>>>>
>>>> In file included from
>>>> /usr/local/clang37/include/YODA/Histo1D.h:13:
>>>>
>>>> In file included from
>>>> /usr/local/clang37/include/YODA/Axis1D.h:8:
>>>>
>>>> */usr/local/clang37/include/YODA/Utils/BinSearcher.h:145:16:
>>>> **error: **no matching function for call to 'make_shared'*
>>>>
>>>> _est = std::make_shared<LinEstimator>(0, 0, 1);
>>>>
>>>> *               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~*
>>>>
>>>> */opt/local/libexec/llvm-3.7/bin/../include/c++/v1/memory:4793:1:
>>>> note: *candidate function [with _Tp = YODA::Utils::LinEstimator,
>>>>
>>>> _A0 = int, _A1 = int, _A2 = int] not viable: expects an l-value
>>>> for 1st argument
>>>>
>>>> make_shared(_A0& __a0, _A1& __a1, _A2& __a2)
>>>>
>>>> *^*
>>>>
>>>> */opt/local/libexec/llvm-3.7/bin/../include/c++/v1/memory:4769:1:
>>>> note: *candidate function template not viable: requires 0
>>>>
>>>> arguments, but 3 were provided
>>>>
>>>> make_shared()
>>>>
>>>> *^*
>>>>
>>>> */opt/local/libexec/llvm-3.7/bin/../include/c++/v1/memory:4777:1:
>>>> note: *candidate function template not viable: requires single
>>>>
>>>> argument '__a0', but 3 arguments were provided
>>>>
>>>> make_shared(_A0& __a0)
>>>>
>>>> *^*
>>>>
>>>> */opt/local/libexec/llvm-3.7/bin/../include/c++/v1/memory:4785:1:
>>>> note: *candidate function template not viable: requires 2
>>>>
>>>> arguments, but 3 were provided
>>>>
>>>> make_shared(_A0& __a0, _A1& __a1)
>>>>
>>>> *^*
>>>>
>>>> * * I attach the config.log from both Yoda and Rivet for
>>>> reference.
>>>>
>>>> Let me know if I can provide any additional logs or tests on my
>>>> system.
>>>>
>>>> All the best, Peter
>>>>
>>>> — *PETER SKANDS *Associate Professor
>>>>
>>>> *School of Physics and Astronomy *Monash University 10 College
>>>> Walk, Clayton Campus Melbourne, VIC 3800 Australia
>>>>
>>>> T: +61 3 990 53692 <tel://+61 3 990 53692> E:
>>>> peter.skands at monash.edu <mailto:peter.skands at monash.edu>
>>> <mailto:peter.skands at monash.edu <mailto:peter.skands at monash.edu>>
>>>> W: skands.physics.monash.edu <http://skands.physics.monash.edu>
>>> <http://skands.physics.monash.edu/>
>>>>
>>>> — Sent with Airmail
>>>>
>>>>
>>>> _______________________________________________ Rivet mailing
>>>> list Rivet at projects.hepforge.org
>>>> <mailto:Rivet at projects.hepforge.org>
>>>> https://www.hepforge.org/lists/listinfo/rivet
>>>>


-- 
Dr Andy Buckley, Lecturer / Royal Society University Research Fellow
Particle Physics Expt Group, University of Glasgow


More information about the Rivet mailing list