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

Peter Skands peter.skands at monash.edu
Mon May 23 13:49:44 BST 2016


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 <//+61 3 990 53692>
E: peter.skands at monash.edu
W: skands.physics.monash.edu

—
Sent with Airmail

On 23 May 2016 at 8:57:54 PM, David Grellscheid (
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>
> W: skands.physics.monash.edu <http://skands.physics.monash.edu/>
>
>> Sent with Airmail
>
>
> _______________________________________________
> Rivet mailing list
> Rivet at projects.hepforge.org
> https://www.hepforge.org/lists/listinfo/rivet
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20160523/f21c9486/attachment.html>


More information about the Rivet mailing list