[Rivet] Build errors for the peg and rivet on MacOSX 10.9

Andy Buckley andy.buckley at cern.ch
Thu Dec 19 16:49:08 GMT 2013


I'm not using clang. I guess that is the only difference. I'm surprised
we didn't already get any reports of problems on Macs, but I know some
of the Rivet developers with Macs are anyway using GCC.

Thanks for finding this and patching your build. It doesn't look like
there's anything we can really do in Rivet's build to automatically fix
this, and since we've anyway moved to using Cython it should be a
non-problem for future versions.

Thanks,
Andy


On 19/12/13 17:42, Pere Mato Vila wrote:
> Hi Andy, 
> 
>   Swig version 2.0.11 still have the problem. I have seen this issue https://github.com/swig/swig/issues/73 and if apply the patch then it seems to be working fine.
>   So, I do not understand how it works for you.
>  Cheers,
> 
> 		Pere
> 
> 
> On 19 Dec 2013, at 17:12, Andy Buckley <andy.buckley at cern.ch> wrote:
> 
>> Hi Pere,
>>
>> That sounds worth trying. It's worked fine with version 2.0.10 which is
>> installed on my laptop.
>>
>> Andy
>>
>>
>> On 19/12/13 11:08, Pere Mato Vila wrote:
>>> Hi Andy,
>>>
>>>  We are using a quite old version of swig 1.3.40. Would rivet work with a more recent version? 2.0.X? I will try to upgrade it and see what happens.
>>>  Cheers,
>>>
>>> 		Pere
>>>
>>> On 19 Dec 2013, at 10:25, Andy Buckley <andy.buckley at cern.ch> wrote:
>>>
>>>> Hi Pere, I've never seen that. I'm copying this to the Rivet email list
>>>> so that more developers know.
>>>>
>>>> That code is generated by SWIG, and has worked on other Macs (although
>>>> I'm not sure about whether it is built in XCode) so I'm guessing
>>>> something is a bit funny about the SWIG/compiler setup on your machine.
>>>>
>>>> 1.9.0 was the last release in the 1.x series, and in version 2.x we have
>>>> completely replaced SWIG by Cython for generating the Python interface.
>>>>
>>>> Andy
>>>>
>>>>
>>>> On 19/12/13 08:46, Pere Mato Vila wrote:
>>>>> Hi Any,
>>>>>
>>>>> I still have problems with version 1.9.0. It fails compilation with
>>>>>
>>>>> ./rivet/rivetwrap_wrap.cc:11786:20: error: no matching member function for call to 'erase'
>>>>> result = (arg1)->erase(arg2)
>>>>>          ~~~~~~~~^~~~~
>>>>> /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/../lib/c++/v1/vector:716:40: note: candidate function not viable: no known conversion from 'SwigValueWrapper<std::vector<std::pair<int, int> >::iterator>' to 'const_iterator' (aka '__wrap_iter<const_pointer>') for 1st argument
>>>>>   _LIBCPP_INLINE_VISIBILITY iterator erase(const_iterator __position)
>>>>>                                      ^
>>>>>
>>>>>
>>>>> The full log file is at  http://cdash.cern.ch/upload/716ba46642aa12d5b35e0bd499bc9a2e3bfa84f4/rivet-1.9.0-build.log
>>>>>
>>>>> Cheers,
>>>>>
>>>>> 		Pere
>>>>>
>>>>> On 17 Dec 2013, at 18:49, Andy Buckley <andy.buckley at cern.ch> wrote:
>>>>>
>>>>>> Hi Pere,
>>>>>>
>>>>>> I'm working on it at the moment. Hopefully it will be ready this week,
>>>>>> as there is not much left to do.
>>>>>>
>>>>>> Andy
>>>>>>
>>>>>>
>>>>>> On 17/12/13 12:25, Pere Mato Vila wrote:
>>>>>>> Hi Andy,
>>>>>>>
>>>>>>> Thanks. Any time estimate for 2.1.0?
>>>>>>> Cheers,
>>>>>>>
>>>>>>> 		Pere
>>>>>>>
>>>>>>> On Dec 17, 2013, at 1:37 AM, Andy Buckley <andy.buckley at cern.ch>
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Hi Pere,
>>>>>>>>
>>>>>>>> Rivet 1.8.3 is fixed by the 1.9.0 release. There will soon be a 2.1.0 to
>>>>>>>> replace 2.0.0, which will also fix it.
>>>>>>>>
>>>>>>>> For ThePEG I have no idea: best to contact the authors.
>>>>>>>>
>>>>>>>> Cheers,
>>>>>>>> Andy
>>>>>>>>
>>>>>>>>
>>>>>>>> On 16/12/13 17:23, Pere Mato Vila wrote:
>>>>>>>>> Dear Andy,
>>>>>>>>>
>>>>>>>>> We have setup regular builds of all the externals (and generators) on
>>>>>>>>> Mavericks OSX 10.9 using clang 5.0. ThePEG 1.8.1  and rivet 1.8.3 and
>>>>>>>>> 2.0.0  fail to build. The details can be found in the following links:
>>>>>>>>> thepeg-1.8.1-build.log
>>>>>>>>> <http://cdash.cern.ch/upload/af6be39cbcaae452fbcaad0636595714731fc80c/thepeg-1.8.1-build.log>
>>>>>>>>> rivet-1.8.3-build.log
>>>>>>>>> <http://cdash.cern.ch/upload/883fd5c83e474cd9b1a89d2a7735aa9f7cff8b24/rivet-1.8.3-build.log>
>>>>>>>>> rivet2-2.0.0-build.log
>>>>>>>>> <http://cdash.cern.ch/upload/c2d805a4e279bb80c43cc17eab22cca7d0efc134/rivet2-2.0.0-build.log>
>>>>>>>>>
>>>>>>>>> Can you have a look and tell us what to do. We can easily apply
>>>>>>>>> patches to existing versions or we can move to more recent versions if
>>>>>>>>> this is already fixed.
>>>>>>>>> Cheers,
>>>>>>>>>
>>>>>>>>> Pere
>>>>>>>>>
>>>>>>>>> -------------------------------------------------------------
>>>>>>>>> Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
>>>>>>>>>       e-mail: pere.mato at cern.ch <mailto:pere.mato at cern.ch>      tel:
>>>>>>>>> +41 22 76 78696
>>>>>>>>>       fax:  +41 22 76 68792            gsm: +41 76 48 70855
>>>>>>>>>
>>>>>>>>>
>>>>>>>>
>>>>>>>>
>>>>>>>> -- 
>>>>>>>> Dr Andy Buckley, Royal Society University Research Fellow
>>>>>>>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> -------------------------------------------------------------
>>>>>>> Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
>>>>>>>        e-mail: pere.mato at cern.ch      tel: +41 22 76 78696
>>>>>>>        fax:  +41 22 76 68792            gsm: +41 76 48 70855
>>>>>>>
>>>>>>>
>>>>>>
>>>>>>
>>>>>> -- 
>>>>>> Dr Andy Buckley, Royal Society University Research Fellow
>>>>>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
>>>>>
>>>>>
>>>>>
>>>>> -------------------------------------------------------------
>>>>> Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
>>>>>         e-mail: pere.mato at cern.ch      tel: +41 22 76 78696
>>>>>         fax:  +41 22 76 68792            gsm: +41 76 48 70855
>>>>>
>>>>>
>>>>
>>>>
>>>> -- 
>>>> Dr Andy Buckley, Royal Society University Research Fellow
>>>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
>>>
>>>
>>>
>>> -------------------------------------------------------------
>>> Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
>>>          e-mail: pere.mato at cern.ch      tel: +41 22 76 78696
>>>          fax:  +41 22 76 68792            gsm: +41 76 48 70855
>>>
>>>
>>
>>
>> -- 
>> Dr Andy Buckley, Royal Society University Research Fellow
>> Particle Physics Expt Group, University of Glasgow / PH Dept, CERN
> 
> 
> 
> -------------------------------------------------------------
> Pere Mato  CERN, PH Department, CH 1211 Geneva 23, Switzerland
>           e-mail: pere.mato at cern.ch      tel: +41 22 76 78696
>           fax:  +41 22 76 68792            gsm: +41 76 48 70855
> 
> 


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


More information about the Rivet mailing list