<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body class="" style="word-wrap:break-word" fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">
<div>Dear James and Chris,</div>
<div>                  Thank you so much for your kind help and support. <br>
</div>
<div>I do not wish to use HomeBrew as I do not wont Homebrew to update Python nor gcc for me.
<br>
</div>
<div><br>
</div>
<div><br>
</div>
<div>At the moments I install  2.6 without the "doc" folder using a Mac with (clang) gcc 4.2.1" and that is fine for me.
<br>
</div>
<div><br>
</div>
<div>Many Thanks, Sabah.<br>
</div>
<div>           <br>
<div style="font-family:Tahoma; font-size:13px"><font size="2"><span style="font-size:10pt">From Sabah Salih<br>
Particle Physics Group,<br>
The School of Physics and Astronomy,<br>
The University of Manchester,<br>
Schuster Laboratory,<br>
Brunswick Street,<br>
Manchester M13 9PL.<br>
Tel: +44 1612754171 or  x4171<br>
E-mail: sabah.salih@manchester.ac.uk</span></font></div>
</div>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF511731" style="direction: ltr;"><font size="2" face="Tahoma" color="#000000"><b>From:</b> James William Monk [james.william.monk@cern.ch]<br>
<b>Sent:</b> 20 August 2018 16:15<br>
<b>To:</b> Christian Gutschow<br>
<b>Cc:</b> Andy Buckley; James William Monk; Sabah Salih; rivet@projects.hepforge.org<br>
<b>Subject:</b> Re: [Rivet] ruvet and osx<br>
</font><br>
</div>
<div></div>
<div>Hi everyone,
<div class=""><br class="">
</div>
<div class="">I have now had a chance to test the 2.6.X branch installation, and the problem persists also with the vendor supplied toolchain (though possibly a different problem to the HomeBrew below).  I cannot understand how this was not an issue with 2.5
 though</div>
<div class=""><br class="">
</div>
<div class="">cheers,</div>
<div class=""><br class="">
</div>
<div class="">James</div>
<div class=""><br class="">
</div>
<div class=""><br class="">
<div>
<blockquote type="cite" class="">
<div class="">On 20 Aug 2018, at 11:55, Christian Gutschow <<a href="mailto:chris.g@cern.ch" class="" target="_blank" rel="noopener noreferrer">chris.g@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="" style="word-wrap:break-word; line-break:after-white-space">Hi,
<div class=""><br class="">
</div>
<div class="">sorry for having to come back to this so late. The removal of the additional ${PYTHON} is breaking the installation for Macs using Homebrew it seems (at least it did for me), since Homebrew is making its own Python installation the default. :/</div>
<div class=""><br class="">
</div>
<div class="">Cheers,</div>
<div class="">Chris<br class="">
<div class=""><br class="">
<blockquote type="cite" class="">
<div class="">On 30 Jul 2018, at 21:33, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" class="" target="_blank" rel="noopener noreferrer">andy.buckley@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<div class="">
<div class="">Is it relevant that the doc builds are explicitly called as $(PYTHON) $(srcdir)/mk-analyses-html etc., rather than just $(srcdir)/mk-analyses-html ? Maybe the implicit "shebang" execution is not such a problem... but I don't have a Mac to test
 on. It works fine on my Linux system without the $(PYTHON), though, so I've changed it to that and pushed the release-2-6-x head.</div>
<br class="">
<div class=""><em class="">Really</em> looking forward to getting past all these technical compatibility issues that crop up every time we approach this release!</div>
<br class="">
<div class="">Andy</div>
<br class="">
<div class="">
<div class="">
<table class="" cellspacing="0" cellpadding="0">
<tbody class="">
<tr class="">
<td colspan="2" class="">
<div class="" style="padding-bottom:15px">
<div class=""><strong class="">Dr Andy Buckley, Lecturer / Royal Society University Research Fellow</strong></div>
<div class="">Particle Physics Experiment Group, University of Glasgow</div>
</div>
</td>
</tr>
<tr class="">
<td class="" style="vertical-align:top"></td>
<td class="">
<div class="" style="font-size:0.9em; white-space:nowrap; border-left:2px solid gray; margin-left:20px; padding-left:20px">
<div class="">
<div class=""></div>
<div class=""></div>
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="gmail_quote_attribution">On Jul 30 2018, at 8:18 pm, James William Monk <<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>> wrote:</div>
<blockquote class=""><br class="">
<div class="">
<div class="">Thanks David,</div>
<br class="">
<div class="">How then does the rivet main executable work then? That is itself a python script that loads the Rivet libs. How does it manage to inherit the DYLD_LIBRARY_PATH</div>
<br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<br class="">
<blockquote class="">
<div class="">On 30 Jul 2018, at 17:28, David Grellscheid <<a href="mailto:david.grellscheid@durham.ac.uk" class="" target="_blank" rel="noopener noreferrer">david.grellscheid@durham.ac.uk</a>> wrote:</div>
<br class="">
<div class="">You've diagnosed it right. All programs in /usr/bin are considered protected, and will not be passed any DYLD environment. A python in /usr/local or /opt will work fine</div>
<br class="">
<div class="">Also, making the script executable does not help. The first line with the #! still calls either /usr/bin/env or /usr/bin/python with exactly the same issue</div>
<br class="">
<div class="">David (on house move teabreak)</div>
<br class="">
<br class="">
<br class="">
<br class="">
<div class="">On 30 July 2018 16:17:18 BST, James William Monk <<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>> wrote:</div>
<blockquote class="">
<div class="">Hi everyone,</div>
<br class="">
<div class="">Did we ever come across the problem that the mac System Integrity</div>
<div class="">Protection (SIP) does not pass on the DYLD_LIBRARY_PATH to a subprocess</div>
<div class="">if it thinks that subprocess is a “protected” process? I believe that</div>
<div class="">is the problem here, and is preventing the library path being set</div>
<div class="">correctly during the Rivet build because it spawns a python subprocess</div>
<div class="">that does not inherit the correct environment</div>
<br class="">
<div class="">It seems that if I do a python script to simply print the environment,</div>
<div class="">i.e.</div>
<br class="">
<div class="">import os</div>
<div class="">for key in os.environ.keys():</div>
<div class="">print key</div>
<br class="">
<div class="">then execute</div>
<br class="">
<div class="">foo=“bar” python test</div>
<div class="">(where test contains the script above)</div>
<br class="">
<div class="">Then I see that foo is detected in the environment. However, if I do</div>
<br class="">
<div class="">DYLD_LIBRARY_PATH=“bar” python test</div>
<br class="">
<div class="">Then DYLD_LIBRARY_PATH does not show up! Presumably SIP has decided</div>
<div class="">that the python subprocess must be protected from malicious setting of</div>
<div class="">the environment. I can see why they might think that is important,</div>
<div class="">since changing the path would potentially cause it to load a bad</div>
<div class="">version of some library. I can disable SIP to confirm this, but that</div>
<div class="">requires a reboot of my mac and is not something we should ask users to</div>
<div class="">do.</div>
<br class="">
<div class="">I think that the fix for this is that the mk-analysis-html script has</div>
<div class="">to be executable. That way it will inherit from the build environment,</div>
<div class="">not from the python subprocess whose environment has been wiped clean.</div>
<br class="">
<br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<br class="">
<blockquote class="">
<div class="">On 30 Jul 2018, at 16:36, James William Monk</div>
</blockquote>
<div class=""><<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>> wrote:</div>
<blockquote class=""><br class="">
<div class="">Hi Sabah,</div>
<br class="">
<div class="">There is a bug in the build system for the docs in Rivet 2.6 on mac.</div>
</blockquote>
<div class="">This issue has occurred before, but I only just remembered it. It</div>
<div class="">looks like David Grellscheid has tried to fix it in the past, but when</div>
<div class="">I use the updated Makefile.am from the doc dir, I still get the same</div>
<div class="">problem. I knew there was a reason I was still on Rivet 2.5.4 :)</div>
<blockquote class=""><br class="">
<div class="">It looks to me like there is a mistake in the setup for the</div>
</blockquote>
<div class="">environment needed for the python script mk-analysis-html. At least</div>
<div class="">one error is that it seems to have the PYTHONPATH pointing to the</div>
<div class="">installation prefix, but there is nothing there of course because Rivet</div>
<div class="">hasn’t been installed yet. Another error is that DYLD_LIBRARY_PATH is</div>
<div class="">not set. I tested this by modifying doc/mk-analysis-html by adding</div>
<blockquote class=""><br class="">
<div class="">print "Hello from mk-analysis-html. I think $PYTHONPATH = " +</div>
</blockquote>
<div class="">os.environ['PYTHONPATH']</div>
<blockquote class="">
<div class="">print "environ keys are"</div>
<div class="">for key in os.environ.keys():</div>
<div class="">print key</div>
<br class="">
<div class="">This problem is only related to the building of the documentation,</div>
</blockquote>
<div class="">but disabling doxygen doesn’t seem to help. I *think* if you plough on</div>
<div class="">regardless and do make install, you will get Rivet installed in your</div>
<div class="">prefix, just without the docs and the rivetenv.sh script.</div>
<blockquote class=""><br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<blockquote class="">
<div class="">On 28 Jul 2018, at 13:11, Sabah Salih <<a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">sabah.salih@manchester.ac.uk</a>></div>
</blockquote>
</blockquote>
<div class="">wrote:</div>
<blockquote class="">
<blockquote class=""><br class="">
<div class="">Dear James,</div>
<div class="">I am very grateful for your kind help</div>
<div class="">I tried to apply rivet-bootstrap content line by line via command</div>
</blockquote>
</blockquote>
<div class="">line</div>
<blockquote class="">
<blockquote class=""><br class="">
<div class="">YODA, HEPMC,... are fine</div>
<div class="">When I reached Rivet I get the following:</div>
<div class="">I attached the file which have the complete steps for RIVET</div>
<br class="">
<div class="">Many Thanks, Sabah.</div>
<br class="">
<br class="">
<br class="">
<div class="">File</div>
</blockquote>
</blockquote>
<div class="">"/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/__init__.py",</div>
<div class="">line 12, in <module></div>
<blockquote class="">
<blockquote class="">
<div class="">from rivet.core import *</div>
<div class="">ImportError:</div>
</blockquote>
</blockquote>
<div class="">dlopen(/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so,</div>
<div class="">10): Library not loaded: /tmp/rivet/local/lib/libRivet.dylib</div>
<blockquote class="">
<blockquote class="">
<div class="">Referenced from:</div>
</blockquote>
</blockquote>
<div class="">/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so</div>
<blockquote class="">
<blockquote class="">
<div class="">Reason: image not found</div>
<div class="">make[1]: *** [analyses.json] Error 1</div>
<div class="">make[1]: *** Waiting for unfinished jobs....</div>
<div class="">Using output file name 'analyses.html' and directory 'analyses'</div>
<div class="">Traceback (most recent call last):</div>
<div class="">File "mk-analysis-html", line 25, in <module></div>
<div class="">import rivet</div>
<div class="">File</div>
</blockquote>
</blockquote>
<div class="">"/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/__init__.py",</div>
<div class="">line 12, in <module></div>
<blockquote class="">
<blockquote class="">
<div class="">from rivet.core import *</div>
<div class="">ImportError:</div>
</blockquote>
</blockquote>
<div class="">dlopen(/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so,</div>
<div class="">10): Library not loaded: /tmp/rivet/local/lib/libRivet.dylib</div>
<blockquote class="">
<blockquote class="">
<div class="">Referenced from:</div>
</blockquote>
</blockquote>
<div class="">/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so</div>
<blockquote class="">
<blockquote class="">
<div class="">Reason: image not found</div>
<div class="">make[1]: *** [analyses.html] Error 1</div>
<div class="">make: *** [all-recursive] Error 1</div>
<br class="">
<div class="">ls -lh</div>
</blockquote>
</blockquote>
<div class="">/private/tmp/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/</div>
<blockquote class="">
<blockquote class="">
<div class="">total 312</div>
<div class="">-rw-r--r-- 1 admin wheel 351B 3 Oct 2017 __init__.py</div>
<div class="">-rw-r--r-- 1 admin wheel 598B 28 Jul 11:26 __init__.pyc</div>
<div class="">-rw-r--r-- 1 admin wheel 3.0K 6 Nov 2017 aopaths.py</div>
<div class="">-rwxr-xr-x 1 admin wheel 121K 28 Jul 11:15 core.so</div>
<div class="">-rw-r--r-- 1 admin wheel 7.8K 3 Oct 2017 plotinfo.py</div>
<div class="">-rw-r--r-- 1 admin wheel 2.5K 3 Oct 2017 spiresbib.py</div>
<div class="">-rw-r--r-- 1 admin wheel 6.9K 20 Nov 2017 util.py</div>
<br class="">
<br class="">
<div class="">Many Thanks, Sabah.</div>
<br class="">
<div class="">From Sabah Salih</div>
<div class="">Particle Physics Group,</div>
<div class="">The School of Physics and Astronomy,</div>
<div class="">The University of Manchester,</div>
<div class="">Schuster Laboratory,</div>
<div class="">Brunswick Street,</div>
<div class="">Manchester M13 9PL.</div>
<div class="">Tel: +44 1612754171 or x4171</div>
<div class=""><a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">E-mail: sabah.salih@manchester.ac.uk</a></div>
<br class="">
<div class="">________________________________________</div>
<div class="">From: James William Monk [<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>]</div>
<div class="">Sent: 25 July 2018 22:46</div>
<div class="">To: Sabah Salih</div>
<div class="">Cc: James William Monk; Andy Buckley; <a href="mailto:rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">
rivet@projects.hepforge.org</a></div>
<div class="">Subject: Re: [Rivet] ruvet and osx</div>
<br class="">
<div class="">Hi Sabah,</div>
<br class="">
<div class="">That error is just confirming that the Rivet lib is not present, I</div>
</blockquote>
</blockquote>
<div class="">presume because the build and/or installation failed. Do you see any</div>
<div class="">other error that looks like a build error? I’m not very familiar with</div>
<div class="">the bootstrap, so I can’t say whether it produces any build logs, or</div>
<div class="">where they would be, but we need to see the build failure message to</div>
<div class="">know why the libraries weren't built properly.</div>
<blockquote class="">
<blockquote class=""><br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<br class="">
<br class="">
<blockquote class="">
<div class="">On 25 Jul 2018, at 19:09, Sabah Salih</div>
</blockquote>
</blockquote>
</blockquote>
<div class=""><<a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">sabah.salih@manchester.ac.uk</a>> wrote:</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">Dear James,</div>
<div class="">Thank you so much.</div>
<div class="">Following your advice I did the following:</div>
<br class="">
<div class="">edit rivet-bootstrap</div>
<br class="">
<div class="">and changed</div>
<br class="">
<div class="">function conf { ./configure --prefix=$INSTALL_PREFIX "$@"; }</div>
<div class="">to</div>
<div class="">function conf { ./configure CC=/usr/bin/clang CXX=/usr/bin/clang++</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">--prefix=$INSTALL_PREFIX "$@"; }</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">and</div>
<div class="">./configure --prefix=$INSTALL_PREFIX</div>
<div class="">to</div>
<div class="">./configure CC=/usr/bin/clang CXX=/usr/bin/clang++</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">--prefix=$INSTALL_PREFIX</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">When I type</div>
<div class="">./rivet-bootstrap</div>
<br class="">
<div class="">I get this</div>
<div class="">File</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">"/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/__init__.py",</div>
<div class="">line 12, in <module></div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">from rivet.core import *</div>
<div class="">ImportError:</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">dlopen(/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so,</div>
<div class="">10): Library not loaded:</div>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/local/lib/libRivet.dylib</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Referenced from:</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Reason: image not found</div>
<div class="">make[1]: *** [analyses.json] Error 1</div>
<div class="">make[1]: *** Waiting for unfinished jobs....</div>
<div class="">Using output file name 'analyses.html' and directory 'analyses'</div>
<div class="">Traceback (most recent call last):</div>
<div class="">File "mk-analysis-html", line 25, in <module></div>
<div class="">import rivet</div>
<div class="">File</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">"/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/__init__.py",</div>
<div class="">line 12, in <module></div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">from rivet.core import *</div>
<div class="">ImportError:</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">dlopen(/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so,</div>
<div class="">10): Library not loaded:</div>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/local/lib/libRivet.dylib</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Referenced from:</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/Rivet-2.6.0/pyext/build/lib.macosx-10.13-intel-2.7/rivet/core.so</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Reason: image not found</div>
<div class="">make[1]: *** [analyses.html] Error 1</div>
<div class="">make: *** [all-recursive] Error 1</div>
<br class="">
<div class="">ls local/lib/libRivet.dylib</div>
<div class="">ls: local/lib/libRivet.dylib: No such file or directory</div>
<br class="">
<div class="">Many Thanks, Sabah.</div>
<br class="">
<br class="">
<div class="">From Sabah Salih</div>
<div class="">Particle Physics Group,</div>
<div class="">The School of Physics and Astronomy,</div>
<div class="">The University of Manchester,</div>
<div class="">Schuster Laboratory,</div>
<div class="">Brunswick Street,</div>
<div class="">Manchester M13 9PL.</div>
<div class="">Tel: +44 1612754171 or x4171</div>
<div class=""><a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">E-mail: sabah.salih@manchester.ac.uk</a></div>
<br class="">
<div class="">________________________________________</div>
<div class="">From: James William Monk [<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>]</div>
<div class="">Sent: 25 July 2018 13:57</div>
<div class="">To: Sabah Salih</div>
<div class="">Cc: James William Monk; Andy Buckley; <a href="mailto:rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">
rivet@projects.hepforge.org</a></div>
<div class="">Subject: Re: [Rivet] ruvet and osx</div>
<br class="">
<div class="">Hi Sabah,</div>
<br class="">
<div class="">No, there’s no need to cross compile here, we just need to make</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">sure it uses compilers and libs all from the same toolchain and doesn’t</div>
<div class="">mix and match system tools with homebrew tools. For example, to try to</div>
<div class="">use the system compiler you could try something like configuring Rivet</div>
<div class="">and its dependencies with the extra config option</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">./configure <usual config options> CC=/usr/bin/clang</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">CXX=/usr/bin/clang++</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">It looks like you prefer to use homebrew’s tools though. I don’t</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">know where they are located on your system, but the equivalent</div>
<div class="">configure command would be</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">./configure <usual config opts> CC=/path/to/brew/gcc</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">CXX=/path/to/brew/g++</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">where you fill in the paths to the brew installation versions of</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">gcc and g++. Of course, any Rivet dependencies (FastJet, GSL,</div>
<div class="">HepMC...) will also need to be configured in the same way first.</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">If you just want to run Rivet, as opposed to develop for it, I’d</div>
</blockquote>
</blockquote>
</blockquote>
<div class="">also suggest taking a look at the Docker distribution for mac:</div>
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class=""><a href="https://rivet.hepforge.org/trac/wiki/Docker" class="" target="_blank" rel="noopener noreferrer">https://rivet.hepforge.org/trac/wiki/Docker</a></div>
<br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<br class="">
<blockquote class="">
<div class="">On 25 Jul 2018, at 08:37, Sabah Salih</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class=""><<a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">sabah.salih@manchester.ac.uk</a>> wrote:</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">Dear James,</div>
<div class="">It is so nice to hear from you.</div>
<div class="">Thank you so much for your kind reply.</div>
<br class="">
<div class="">I just done</div>
<br class="">
<div class="">brew tap osx-cross/arm</div>
<div class="">brew tap osx-cross/avr</div>
<br class="">
<div class="">brew install arm-gcc-bin</div>
<br class="">
<div class="">brew install avr-gcc</div>
<div class="">This look like installing gcc8</div>
<br class="">
<div class="">Is this what you meant?</div>
<br class="">
<div class="">Many Tanks, Sabah.</div>
<br class="">
<div class="">From Sabah Salih</div>
<div class="">Particle Physics Group,</div>
<div class="">The School of Physics and Astronomy,</div>
<div class="">The University of Manchester,</div>
<div class="">Schuster Laboratory,</div>
<div class="">Brunswick Street,</div>
<div class="">Manchester M13 9PL.</div>
<div class="">Tel: +44 1612754171 or x4171</div>
<div class=""><a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">E-mail: sabah.salih@manchester.ac.uk</a></div>
<br class="">
<div class="">________________________________________</div>
<div class="">From: James William Monk [<a href="mailto:james.william.monk@cern.ch" class="" target="_blank" rel="noopener noreferrer">james.william.monk@cern.ch</a>]</div>
<div class="">Sent: 25 July 2018 01:10</div>
<div class="">To: Andy Buckley; Sabah Salih</div>
<div class="">Cc: <a href="mailto:rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">
rivet@projects.hepforge.org</a></div>
<div class="">Subject: Re: [Rivet] ruvet and osx</div>
<br class="">
<div class="">Hi,</div>
<br class="">
<div class="">From a bit of nurdling about on various fora, that error appears</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">to refer to an option that is present for clang, but not gcc. Clang is</div>
<div class="">the supplied default on mac. You have installed a separate gcc</div>
<div class="">toolchain via homebrew. What I can imagine may be happening is that</div>
<div class="">autotools is detecting the system clang and adding options</div>
<div class="">appropriately, but then the g++ command is now calling the gcc from</div>
<div class="">homebrew. For example, on my own mac I see</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">g++ --version</div>
<div class="">Configured with:</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">--prefix=/Applications/Xcode.app/Contents/Developer/usr</div>
<div class="">--with-gxx-include-dir=/usr/include/c++/4.2.1</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Apple LLVM version 9.1.0 (clang-902.0.39.2)</div>
<div class="">Target: x86_64-apple-darwin17.7.0</div>
<br class="">
<div class="">It’s possible you may be able to cure this with some appropriate</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">environment settings like</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">export CC=/usr/bin/clang</div>
<div class="">export CXX=/usr/bin/clang++</div>
<br class="">
<div class="">Which would try to force it to use the system clang compiler</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">consistently. Alternatively, try to point it to your homebrew compiler</div>
<div class="">location. You may also like to consider removing homebrew as another</div>
<div class="">solution - I don’t know what else it adds for you, but personally I</div>
<div class="">have never found those kinds of packaging systems helpful on a mac</div>
<div class="">precisely because they bring a second toolchain into play that is not</div>
<div class="">always entirely consistent with the system toolchain.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">cheers,</div>
<br class="">
<div class="">James</div>
<br class="">
<br class="">
<br class="">
<blockquote class="">
<div class="">On 25 Jul 2018, at 00:48, Andy Buckley <<a href="mailto:andy.buckley@cern.ch" class="" target="_blank" rel="noopener noreferrer">andy.buckley@cern.ch</a>></div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">wrote:</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">I'm afraid I don't use Macs, so am not sure what is best. Using</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">an earlier compiler might work; I'm a little surprised that autoreconf</div>
<div class="">did not help. Hopefully someone else on the Rivet team has a bit more</div>
<div class="">Mac experience and can help out.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">Andy</div>
<br class="">
<div class="">Dr Andy Buckley, Lecturer / Royal Society University Research</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">Fellow</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Particle Physics Experiment Group, University of Glasgow</div>
<div class="">On Jul 24 2018, at 4:52 pm, Sabah Salih</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class=""><<a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">sabah.salih@manchester.ac.uk</a>> wrote:</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<br class="">
<div class="">Dear Andy,</div>
<div class="">Thank you ever so much. The problem look like it is in</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">YODA.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">I did</div>
<br class="">
<div class="">cd YODA-1.7.0</div>
<br class="">
<div class="">autoreconf -i</div>
<div class="">make</div>
<br class="">
<div class="">that did not fix it</div>
<br class="">
<div class="">cd ..</div>
<div class="">this is where rivet-bootstrap</div>
<br class="">
<div class="">and rerun</div>
<br class="">
<div class="">./rivet-bootstrap</div>
<br class="">
<div class="">This did not fix it neither.</div>
<br class="">
<div class="">What is the best way to get rivet to work in a mac please.?</div>
<div class="">It does not have to be gcc8</div>
<br class="">
<div class="">Many thanks, Sabah</div>
<br class="">
<br class="">
<div class="">From Sabah Salih</div>
<div class="">Particle Physics Group,</div>
<div class="">The School of Physics and Astronomy,</div>
<div class="">The University of Manchester,</div>
<div class="">Schuster Laboratory,</div>
<div class="">Brunswick Street,</div>
<div class="">Manchester M13 9PL.</div>
<div class="">Tel: +44 1612754171 or x4171</div>
<div class=""><a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">E-mail: sabah.salih@manchester.ac.uk</a></div>
<div class="">From: Andy Buckley [<a href="mailto:andy.buckley@cern.ch" class="" target="_blank" rel="noopener noreferrer">andy.buckley@cern.ch</a>]</div>
<div class="">Sent: 19 July 2018 14:41</div>
<div class="">To: Sabah Salih</div>
<div class="">Cc: <a href="mailto:rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">
rivet@projects.hepforge.org</a></div>
<div class="">Subject: Re: [Rivet] ruvet and osx</div>
<br class="">
<div class="">Hi Sabah,</div>
<div class="">I have no idea about compilation with GCC 8 -- it looks like our</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">"autotools" build system assumes that a compiler flag will work, but</div>
<div class="">GCC 8 has removed it. I suspect that new versions of autotools would</div>
<div class="">fix it, but of course our existing tarball is built with an older</div>
<div class="">version.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">You could try building the (final) Rivet step by hand, first</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">rebuilding the autotools bits with a call to "autoreconf -i". It may</div>
<div class="">even be possible to re-run the bootstrap script after doing that, and</div>
<div class="">let it finish the build with the updated Makefiles.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">Andy</div>
<br class="">
<div class="">Dr Andy Buckley, Lecturer / Royal Society University Research</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">Fellow</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">Particle Physics Experiment Group, University of Glasgow</div>
<div class="">On Jul 19 2018, at 9:15 am, Sabah Salih</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class=""><<a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">sabah.salih@manchester.ac.uk</a>> wrote:</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<br class="">
<div class="">Dear All,</div>
<div class="">I am trying to install rivet in a max osx 10.13.6</div>
<div class="">I have</div>
<br class="">
<div class="">gcc --version</div>
<div class="">gcc (Homebrew GCC 8.1.0) 8.1.0</div>
<div class="">Copyright (C) 2018 Free Software Foundation, Inc.</div>
<div class="">This is free software; see the source for copying conditions.</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">There is NO</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">PARTICULAR PURPOSE.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">gfortran --version</div>
<div class="">GNU Fortran (Homebrew GCC 8.1.0) 8.1.0</div>
<div class="">Copyright (C) 2018 Free Software Foundation, Inc.</div>
<div class="">This is free software; see the source for copying conditions.</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">There is NO</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">PARTICULAR PURPOSE.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<div class="">g++ --version</div>
<div class="">g++ (Homebrew GCC 8.1.0) 8.1.0</div>
<div class="">Copyright (C) 2018 Free Software Foundation, Inc.</div>
<div class="">This is free software; see the source for copying conditions.</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">There is NO</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">warranty; not even for MERCHANTABILITY or FITNESS FOR A</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">PARTICULAR PURPOSE.</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class=""><br class="">
<br class="">
<div class="">I got rivet from the following url</div>
<br class="">
<div class="">wget</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class=""><a href="http://rivet.hepforge.org/hg/bootstrap/raw-file/2.6.0/rivet-bootstrap" class="" target="_blank" rel="noopener noreferrer">http://rivet.hepforge.org/hg/bootstrap/raw-file/2.6.0/rivet-bootstrap</a></div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">chmod +x rivet-bootstrap</div>
<br class="">
<div class="">After I run the following</div>
<div class="">./rivet-bootstrap</div>
<br class="">
<div class="">I get the following in the end</div>
<br class="">
<br class="">
<div class="">g++ -fno-strict-aliasing -fno-common -dynamic -g -Os -pipe</div>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
</blockquote>
<div class="">-fno-common -fno-strict-aliasing -fwrapv -DENABLE_DTRACE -DMACOSX</div>
<div class="">-DNDEBUG -Wall -Wstrict-prototypes -Wshorten-64-to-32 -DNDEBUG -g</div>
<div class="">-fwrapv -Os -Wall -Wstrict-prototypes -DENABLE_DTRACE -DNDEBUG</div>
<div class="">-I/usr/include -I/usr/include -pipe</div>
<div class="">-I/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/include</div>
<div class="">-I/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/include</div>
<div class="">-I/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/pyext/yoda</div>
<div class="">-I/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/pyext/yoda</div>
<div class="">-I/System/Library/Frameworks/Python.framework/Versions/2.7/include/python2.7</div>
<div class="">-c</div>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/pyext/yoda/util.cpp</div>
<div class="">-o</div>
<div class="">/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/pyext/build/temp.macosx-10.13-intel-2.7/Users/admin/madgraph/MG5_aMC_v2_6_3/rivet/YODA-1.7.0/pyext/yoda/util.o</div>
<div class="">-O3 -Wno-unused-but-set-variable -Wno-sign-compare</div>
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<blockquote class="">
<div class="">g++: error: unrecognized command line option '-Wshorten-64-to-32'</div>
<div class="">error: command 'g++' failed with exit status 1</div>
<div class="">make[2]: *** [all-local] Error 1</div>
<div class="">make[1]: *** [all-recursive] Error 1</div>
<div class="">make: *** [all-recursive] Error 1</div>
<br class="">
<br class="">
<div class="">What do I have to do to fix it please?</div>
<br class="">
<br class="">
<div class="">Maany Thanks, Sabah.</div>
<br class="">
<div class="">From Sabah Salih</div>
<div class="">Particle Physics Group,</div>
<div class="">The School of Physics and Astronomy,</div>
<div class="">The University of Manchester,</div>
<div class="">Schuster Laboratory,</div>
<div class="">Brunswick Street,</div>
<div class="">Manchester M13 9PL.</div>
<div class="">Tel: +44 1612754171 or x4171</div>
<div class=""><a href="mailto:sabah.salih@manchester.ac.uk" class="" target="_blank" rel="noopener noreferrer">E-mail: sabah.salih@manchester.ac.uk</a></div>
<div class="">_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
<div class="">_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
<br class="">
<div class="">_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
<br class="">
<div class="">_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
<br class="">
<div class=""><rivet-install.txt>_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
<br class="">
</blockquote>
</blockquote>
<div class="">_______________________________________________</div>
<div class="">Rivet mailing list</div>
<div class=""><a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a></div>
<div class=""><a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
</div>
</blockquote>
_______________________________________________<br class="">
Rivet mailing list<br class="">
<a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a><br class="">
<a href="https://www.hepforge.org/lists/listinfo/rivet" class="" target="_blank" rel="noopener noreferrer">https://www.hepforge.org/lists/listinfo/rivet</a></div>
</blockquote>
</div>
<br class="">
</div>
<br class="">
<br class="">
<div class="">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px; word-wrap:break-word">
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"><br class="Apple-interchange-newline">
<br class="">
</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"><br class="">
</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> —</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"><br class="">
</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> Dr. Christian Gütschow</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"><br class="">
</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> Department of Physics and Astronomy</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> University College London</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> Gower Street</div>
<div class="" style="color:rgb(34,34,34); font-family:arial,sans-serif"> London WC1E 6BT</div>
</div>
</div>
<br class="Apple-interchange-newline" style="font-family:Helvetica; font-size:12px; font-style:normal; font-weight:normal; letter-spacing:normal; text-align:start; text-indent:0px; text-transform:none; white-space:normal; word-spacing:0px">
<br class="Apple-interchange-newline">
</div>
</div>
</div>
</div>
</div>
</div>
<br class="">
</div>
_______________________________________________<br class="">
Rivet mailing list<br class="">
<a href="mailto:Rivet@projects.hepforge.org" class="" target="_blank" rel="noopener noreferrer">Rivet@projects.hepforge.org</a><br class="">
https://www.hepforge.org/lists/listinfo/rivet</div>
</blockquote>
</div>
<br class="">
</div>
</div>
</div>
</div>
</body>
</html>