<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Hi Andy
<div><br>
</div>
<div>thanks to you.... it was really great that you didn't give up....</div>
<div>I was already so frustrated...</div>
<div>It's really a nightmare with the changes on osx... </div>
<div><br>
</div>
<div>Thanks again.... now I can recommend also for CMS to </div>
<div>switch to Rivet 2.X</div>
<div><br>
</div>
<div>Cheers</div>
<div>Hannes</div>
<div><br>
</div>
<div><br>
<div>
<div>On 10.06.2014, at 21:23, Andy Buckley <<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">Hurrah! Thanks for the extra bits of the recipe. I'll check that the<br>
--no-check-certificate thing also works on Linux -- not needed in the<br>
Ubuntu/lxplus testing, so I guess it's another Mac vs. Linux difference<br>
in std command behaviours!<br>
<br>
Enjoy your working system, and sorry it took so long to get there :-)<br>
<br>
Andy<br>
<br>
<br>
On 10/06/14 19:38, Hannes Jung wrote:<br>
<blockquote type="cite">Hi Andy<br>
<br>
that a lot.... that was it,... it compiles and works...<br>
Puhhhhh<br>
<br>
<br>
So the point is:<br>
<br>
having in the PATH first everything from OSX and then /sw/bin <br>
(before I had it the other way around, and then it complained about<br>
python from fink)<br>
export PATH=$PATH:/sw/bin<br>
export CFLAGS=-Qunused-arguments<br>
export CPPFLAGS=-Qunused-arguments<br>
INSTALL_PREFIX=/Users/jung/jung/cvs/rivet2 CC=clang CXX=clang++<br>
./rivet-bootstrap<br>
<br>
and then of course your changes for fastjet and the Makefiles.<br>
Another thing, what I had to change in the bootstrap script was<br>
(including the --no-check-certifiate):<br>
<br>
function wget_untar { wget --no-check-certificate $1 -O- | tar xz; }<br>
<br>
<br>
Thanks so much... this is really great.... <br>
<br>
Have a nice evening<br>
<br>
Cheers<br>
<br>
<br>
<br>
<br>
On 10.06.2014, at 16:59, Andy Buckley <<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>>> wrote:<br>
<br>
<blockquote type="cite">On 10/06/14 16:07, Hannes Jung wrote:<br>
<blockquote type="cite">Dear Andy<br>
<br>
thanks for not giving up ...<br>
<br>
my build dir is:<br>
~/jung/cvs/rivet2/build> ls<br>
HepMC-2.06.09  README-hannes.bck  boost_1_55_0        <br>
boost_1_55_0.tar.gz.1  gsl-1.16         rivet-bootstrap-old<br>
README-hannes  YODA-1.1.0         boost_1_55_0.tar.gz  fastjet-3.0.6    <br>
   rivet-bootstrap  rivet-bootstrap.bck<br>
<br>
so I do not yet have Rivet..... are you sure the problem comes from the<br>
rivet completion ?<br>
</blockquote>
<br>
Aha, I read more carefully: we have the same bug in YODA's<br>
bin/Makefile.am, with the same suggested solution.<br>
<br>
So make that change in YODA and run "autoreconf -i" in the YODA-1.1.0<br>
dir; then go back to your build dir and run<br>
<br>
wget <a href="http://www.hepforge.org/archive/rivet/Rivet-2.1.2.tar.gz">http://www.hepforge.org/archive/rivet/Rivet-2.1.2.tar.gz</a> -O - |<br>
tar xf<br>
<br>
to get Rivet, and cd Rivet-2.1.2/bin and make the same change +<br>
autoreconf there. Finally, run the bootstrap one last (?) time; it<br>
should run the configure scripts again but not do any more downloading,<br>
nor any building until it gets to Rivet.<br>
<br>
I hope this will work, but it relies on your system autotools working.<br>
If it doesn't succeed let me know.<br>
<br>
Since there are no other fixes so far, no-one else has hit this issue,<br>
and it doesn't change the behaviour of a successful build, I am tempted<br>
to just "silently" remake the Rivet and YODA tarballs with this fix<br>
included. A bit naughty, but it's not worth a full release and ~everyone<br>
except Hannes will not notice at all! A more proper way is to make e.g.<br>
Rivet-2.1.2.post1, cf. Python's version scheme<br>
<a href="http://legacy.python.org/dev/peps/pep-0440/#post-releases">http://legacy.python.org/dev/peps/pep-0440/#post-releases</a> ... but I find<br>
it a bit ugly and confusing. Preferences, developers?<br>
<br>
Andy<br>
<br>
<br>
<blockquote type="cite">On 10.06.2014, at 15:58, Andy Buckley <<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>>> wrote:<br>
<br>
<blockquote type="cite">Hi Hannes. In answer to the last question... yes, but we're now very<br>
close! YODA and Rivet are fully building, including the Python modules<br>
so it's really the very last install step where something has gone<br>
wrong.<br>
<br>
The issue now is a bug on our side, but a very minor and strange one<br>
that I never heard of before. The installation of the bash_completion<br>
script only happens if $prefix/etc/bash_completion.d exists, and I guess<br>
that it has not existed for most Mac users so far. If it does exist then<br>
in bin/Makefile.am we install it like this:<br>
<br>
install --mode 644 rivet-completion $(bashcomp_dir)/; fi<br>
<br>
which works just fine on Linux. But on Macs the install command seems to<br>
take different arguments (argh!), so the installation falls over with<br>
the message that you got. I'm guessing here, but I think it will work<br>
for you if you replace that line in Makefile.am with this:<br>
<br>
$(install_sh_DATA) rivet-completion $(bashcomp_dir)/; fi<br>
<br>
Can you try this? Since the build has all completed, no need to re-run<br>
the bootstrap script: just cd into the Rivet-2.1.2 build dir, make the<br>
change, and call "make install". Cross fingers again ;-)<br>
<br>
Or you could delete your $prefix/etc/bash_completion.d directory, but<br>
that has downsides... and I'd like to know if this works. If so, it'll<br>
be fixed in the next release. Thanks for helping, and persevering...<br>
really close to success now!<br>
<br>
Andy<br>
<br>
<br>
<br>
<br>
On 10/06/14 15:42, Hannes Jung wrote:<br>
<blockquote type="cite">Dear Andy<br>
<br>
thanks a lot for the updates, now this works, but another error<br>
appears:<br>
.....<br>
running install_egg_info<br>
Removing build/yoda-1.1.0-py2.7.egg-info<br>
Writing build/yoda-1.1.0-py2.7.egg-info<br>
CC="clang" CXX="clang++" CXXFLAGS="-Wno-sign-compare<br>
-Wno-strict-prototypes" ARCHFLAGS=""  /usr/bin/python setup.py install<br>
--prefix=/Users/jung/software/rivet --force<br>
running install<br>
running build<br>
running build_py<br>
running build_ext<br>
running install_lib<br>
copying build/lib.macosx-10.9-intel-2.7/yoda/__init__.py -><br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda<br>
copying build/lib.macosx-10.9-intel-2.7/yoda/core.so -><br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda<br>
copying build/lib.macosx-10.9-intel-2.7/yoda/script_helpers.py -><br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda<br>
copying build/lib.macosx-10.9-intel-2.7/yoda/util.so -><br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda<br>
byte-compiling<br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda/__init__.py<br>
to __init__.pyc<br>
byte-compiling<br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda/script_helpers.py<br>
to script_helpers.pyc<br>
running install_egg_info<br>
Removing<br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda-1.1.0-py2.7.egg-info<br>
Writing<br>
/Users/jung/software/rivet/lib/python2.7/site-packages/yoda-1.1.0-py2.7.egg-info<br>
make[3]: Nothing to be done for `install-data-am'.<br>
Making install in tests<br>
make[2]: Nothing to be done for `install-exec-am'.<br>
make[2]: Nothing to be done for `install-data-am'.<br>
Making install in bin<br>
.././install-sh -c -d '/Users/jung/software/rivet/bin'<br>
/usr/bin/install -c yoda-config yodacnv yodamerge yodadiff yodahist<br>
yoda2aida yoda2flat aida2yoda aida2flat flat2yoda<br>
'/Users/jung/software/rivet/bin'<br>
if [[ -d "/Users/jung/software/rivet/etc/bash_completion.d" && -w<br>
"/Users/jung/software/rivet/etc/bash_completion.d" ]]; then \<br>
   install --mode 644 yoda-completion<br>
/Users/jung/software/rivet/etc/bash_completion.d/; fi<br>
install: illegal option -- -<br>
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]<br>
            [-o owner] file1 file2<br>
    install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]<br>
            [-o owner] file1 ... fileN directory<br>
    install -d [-v] [-g group] [-m mode] [-o owner] directory ...<br>
make[2]: *** [install-data-local] Error 64<br>
make[1]: *** [install-am] Error 2<br>
make: *** [install-recursive] Error 1<br>
~/jung/cvs/rivet2/build><br>
<br>
<br>
Hm.... is it only me, who has this enourmous problems with Rivet on a<br>
Mac ?<br>
<br>
Cheers<br>
Hannes<br>
<br>
<br>
<br>
On 10.06.2014, at 11:10, Andy Buckley <<a href="mailto:andy.buckley@cern.ch">andy.buckley@cern.ch</a><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>><br>
<<a href="mailto:andy.buckley@cern.ch">mailto:andy.buckley@cern.ch</a>>> wrote:<br>
<br>
<blockquote type="cite">Hi Hannes,<br>
<br>
Looks like this is a FastJet bug in OS X Mavericks, which was<br>
fixed last<br>
year. From <a href="http://fastjet.fr/all-releases.html:">http://fastjet.fr/all-releases.html:</a><br>
<br>
29 October 2013: fastjet-3.0.6 (manual, doxygen, fjcore) is a minor<br>
maintenance release. Main changes:<br>
fixed compilation issues for two plugins using clang (clang-500.2.79,<br>
Apple LLVM version 5.0 based on LLVM 3.3svn) under OS X 10.9<br>
(Mavericks)<br>
<br>
We hadn't updated the fastjet version in our bootstrap script, because<br>
until recently LCG had not installed releases later than 3.0.3,<br>
but I've<br>
done it now. Re-download the bootstrap and try again... hopefully<br>
it'll<br>
work this time.<br>
<br>
By the way, on Mavericks I think it is still necessary to set<br>
<br>
export CFLAGS=-Qunused-arguments<br>
export CPPFLAGS=-Qunused-arguments<br>
<br>
before running the bootstrap script, due to an OS X clang/Python bug:<br>
see <a href="http://stackoverflow.com/a/22322645/91808">http://stackoverflow.com/a/22322645/91808</a> if you want details.<br>
Otherwise it will fail late in the build as it tries to build the<br>
Rivet<br>
or YODA Python modules.<br>
<br>
Cheers,<br>
Andy<br>
<br>
<br>
<br>
On 10/06/14 09:24, Hannes Jung wrote:<br>
<blockquote type="cite">Dear Riveters<br>
<br>
still having problems to get rivet 2 installed on Mac OSX Mavericks<br>
<br>
following the advice of Andy at our CMS meeting on Friday, I tried<br>
to compile everything using clang and clang++ with the command:<br>
<br>
INSTALL_PREFIX=$HOME/software/rivet CC=clang CXX=clang++ MAKE="make<br>
-j8"<br>
./rivet-bootstrap<br>
<br>
<br>
but then I got an error on fastjet:<br>
<br>
libtool: compile:  clang++ -DHAVE_CONFIG_H -I.<br>
-I../../../include/fastjet -O3 -Wall -g -Woverloaded-virtual<br>
-DDROP_CGAL<br>
-I. -I./../../../include -MT libCDFcode_la-JetCluAlgorithm.lo -MD -MP<br>
-MF .deps/libCDFcode_la-JetCluAlgorithm.Tpo -c <a href="http://JetCluAlgorithm.cc">
JetCluAlgorithm.cc</a><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>>  -fno-common -DPIC -o<br>
.libs/libCDFcode_la-JetCluAlgorithm.o<br>
<a href="http://JetCluAlgorithm.cc">JetCluAlgorithm.cc</a> <<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>>:81:16: error: use of<br>
undeclared identifier 'abs'; did you<br>
  mean 'fabs'?<br>
      int dIEta = abs(iEtaSeedTower - iEtaPreClusterTower);<br>
                  ^~~<br>
                  fabs<br>
/usr/include/math.h:431:15: note: 'fabs' declared here<br>
extern double fabs(double);<br>
          ^<br>
<a href="http://JetCluAlgorithm.cc">JetCluAlgorithm.cc</a> <<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>><br>
<<a href="http://JetCluAlgorithm.cc">http://JetCluAlgorithm.cc</a>>:82:16: error: use of<br>
undeclared identifier 'abs'; did you<br>
  mean 'fabs'?<br>
      int dIPhi = abs(iPhiSeedTower - iPhiPreClusterTower);<br>
                  ^~~<br>
                  fabs<br>
/usr/include/math.h:431:15: note: 'fabs' declared here<br>
extern double fabs(double);<br>
          ^<br>
2 errors generated.<br>
make[3]: *** [libCDFcode_la-JetCluAlgorithm.lo] Error 1<br>
<br>
<br>
Any idea to solve this ?<br>
Is this just a Mac problem ?<br>
<br>
Thanks a lot<br>
Cheers<br>
Hannes<br>
<br>
<br>
<br>
***********************************************************************<br>
Hannes Jung<br>
Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                  <br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8994 3741<br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************<br>
<br>
<br>
<br>
<br>
<br>
<br>
_______________________________________________<br>
Rivet mailing list<br>
<a href="mailto:Rivet@projects.hepforge.org">Rivet@projects.hepforge.org</a> <<a href="mailto:Rivet@projects.hepforge.org">mailto:Rivet@projects.hepforge.org</a>><br>
<<a href="mailto:Rivet@projects.hepforge.org">mailto:Rivet@projects.hepforge.org</a>><br>
<<a href="mailto:Rivet@projects.hepforge.org">mailto:Rivet@projects.hepforge.org</a>><br>
<a href="https://www.hepforge.org/lists/listinfo/rivet">https://www.hepforge.org/lists/listinfo/rivet</a><br>
<br>
</blockquote>
<br>
<br>
-- <br>
Dr Andy Buckley, Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
</blockquote>
<br>
***********************************************************************<br>
Hannes Jung<br>
Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                  <br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8994 3741<br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Dr Andy Buckley, Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
</blockquote>
<br>
***********************************************************************<br>
Hannes Jung<br>
Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
<<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>><br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                  <br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8994 3741<br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Dr Andy Buckley, Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
</blockquote>
<br>
***********************************************************************<br>
Hannes Jung <br>
Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <<a href="mailto:Hannes.Jung@desy.de">mailto:Hannes.Jung@desy.de</a>>
<br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                  <br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8994 3741<br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
-- <br>
Dr Andy Buckley, Royal Society University Research Fellow<br>
Particle Physics Expt Group, University of Glasgow / PH Dept, CERN<br>
</blockquote>
</div>
<br>
<div>
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>***********************************************************************<br>
Hannes Jung <br>
Email: <a href="mailto:Hannes.Jung@desy.de">Hannes.Jung@desy.de</a> <br>
mobile :+49 40 8998 93741<br>
<a href="http://www.desy.de/~jung">http://www.desy.de/~jung</a>                                  <br>
Tel: +49 (0) 40 8998 3741         <br>
Fax: +49 (0) 40 8994 3741<br>
DESY, CMS 01B/02.213<br>
Notkestr.85, 22603 Hamburg, FRG   <br>
***********************************************************************</div>
<div><br>
</div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
</div>
</body>
</html>