[Rivet] rivet 2 on Mac OSX

Hannes Jung hannes.jung at cern.ch
Tue Jun 10 14:42:07 BST 2014


Dear Andy

thanks a lot for the updates, now this works, but another error appears:
.....
running install_egg_info
Removing build/yoda-1.1.0-py2.7.egg-info
Writing build/yoda-1.1.0-py2.7.egg-info
CC="clang" CXX="clang++" CXXFLAGS="-Wno-sign-compare -Wno-strict-prototypes" ARCHFLAGS=""  /usr/bin/python setup.py install --prefix=/Users/jung/software/rivet --force
running install
running build
running build_py
running build_ext
running install_lib
copying build/lib.macosx-10.9-intel-2.7/yoda/__init__.py -> /Users/jung/software/rivet/lib/python2.7/site-packages/yoda
copying build/lib.macosx-10.9-intel-2.7/yoda/core.so -> /Users/jung/software/rivet/lib/python2.7/site-packages/yoda
copying build/lib.macosx-10.9-intel-2.7/yoda/script_helpers.py -> /Users/jung/software/rivet/lib/python2.7/site-packages/yoda
copying build/lib.macosx-10.9-intel-2.7/yoda/util.so -> /Users/jung/software/rivet/lib/python2.7/site-packages/yoda
byte-compiling /Users/jung/software/rivet/lib/python2.7/site-packages/yoda/__init__.py to __init__.pyc
byte-compiling /Users/jung/software/rivet/lib/python2.7/site-packages/yoda/script_helpers.py to script_helpers.pyc
running install_egg_info
Removing /Users/jung/software/rivet/lib/python2.7/site-packages/yoda-1.1.0-py2.7.egg-info
Writing /Users/jung/software/rivet/lib/python2.7/site-packages/yoda-1.1.0-py2.7.egg-info
make[3]: Nothing to be done for `install-data-am'.
Making install in tests
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
Making install in bin
 .././install-sh -c -d '/Users/jung/software/rivet/bin'
 /usr/bin/install -c yoda-config yodacnv yodamerge yodadiff yodahist yoda2aida yoda2flat aida2yoda aida2flat flat2yoda '/Users/jung/software/rivet/bin'
if [[ -d "/Users/jung/software/rivet/etc/bash_completion.d" && -w "/Users/jung/software/rivet/etc/bash_completion.d" ]]; then \
      install --mode 644 yoda-completion /Users/jung/software/rivet/etc/bash_completion.d/; fi
install: illegal option -- -
usage: install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 file2
       install [-bCcpSsv] [-B suffix] [-f flags] [-g group] [-m mode]
               [-o owner] file1 ... fileN directory
       install -d [-v] [-g group] [-m mode] [-o owner] directory ...
make[2]: *** [install-data-local] Error 64
make[1]: *** [install-am] Error 2
make: *** [install-recursive] Error 1
~/jung/cvs/rivet2/build>


Hm.... is it only me, who has this enourmous problems with Rivet on a Mac ?

Cheers
Hannes



On 10.06.2014, at 11:10, Andy Buckley <andy.buckley at cern.ch<mailto:andy.buckley at cern.ch>> wrote:

Hi Hannes,

Looks like this is a FastJet bug in OS X Mavericks, which was fixed last
year. From http://fastjet.fr/all-releases.html:

29 October 2013: fastjet-3.0.6 (manual, doxygen, fjcore) is a minor
maintenance release. Main changes:
fixed compilation issues for two plugins using clang (clang-500.2.79,
Apple LLVM version 5.0 based on LLVM 3.3svn) under OS X 10.9 (Mavericks)

We hadn't updated the fastjet version in our bootstrap script, because
until recently LCG had not installed releases later than 3.0.3, but I've
done it now. Re-download the bootstrap and try again... hopefully it'll
work this time.

By the way, on Mavericks I think it is still necessary to set

export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments

before running the bootstrap script, due to an OS X clang/Python bug:
see http://stackoverflow.com/a/22322645/91808 if you want details.
Otherwise it will fail late in the build as it tries to build the Rivet
or YODA Python modules.

Cheers,
Andy



On 10/06/14 09:24, Hannes Jung wrote:
Dear Riveters

still having problems to get rivet 2 installed on Mac OSX Mavericks

following the advice of Andy at our CMS meeting on Friday, I tried
to compile everything using clang and clang++ with the command:

INSTALL_PREFIX=$HOME/software/rivet CC=clang CXX=clang++ MAKE="make -j8"
./rivet-bootstrap


but then I got an error on fastjet:

libtool: compile:  clang++ -DHAVE_CONFIG_H -I.
-I../../../include/fastjet -O3 -Wall -g -Woverloaded-virtual -DDROP_CGAL
-I. -I./../../../include -MT libCDFcode_la-JetCluAlgorithm.lo -MD -MP
-MF .deps/libCDFcode_la-JetCluAlgorithm.Tpo -c JetCluAlgorithm.cc<http://JetCluAlgorithm.cc>
<http://JetCluAlgorithm.cc>  -fno-common -DPIC -o
.libs/libCDFcode_la-JetCluAlgorithm.o
JetCluAlgorithm.cc<http://JetCluAlgorithm.cc> <http://JetCluAlgorithm.cc>:81:16: error: use of
undeclared identifier 'abs'; did you
     mean 'fabs'?
         int dIEta = abs(iEtaSeedTower - iEtaPreClusterTower);
                     ^~~
                     fabs
/usr/include/math.h:431:15: note: 'fabs' declared here
extern double fabs(double);
             ^
JetCluAlgorithm.cc<http://JetCluAlgorithm.cc> <http://JetCluAlgorithm.cc>:82:16: error: use of
undeclared identifier 'abs'; did you
     mean 'fabs'?
         int dIPhi = abs(iPhiSeedTower - iPhiPreClusterTower);
                     ^~~
                     fabs
/usr/include/math.h:431:15: note: 'fabs' declared here
extern double fabs(double);
             ^
2 errors generated.
make[3]: *** [libCDFcode_la-JetCluAlgorithm.lo] Error 1


Any idea to solve this ?
Is this just a Mac problem ?

Thanks a lot
Cheers
Hannes



***********************************************************************
Hannes Jung
Email: Hannes.Jung at desy.de<mailto:Hannes.Jung at desy.de> <mailto:Hannes.Jung at desy.de>
mobile :+49 40 8998 93741
http://www.desy.de/~jung
Tel: +49 (0) 40 8998 3741
Fax: +49 (0) 40 8994 3741
DESY, CMS 01B/02.213
Notkestr.85, 22603 Hamburg, FRG
***********************************************************************






_______________________________________________
Rivet mailing list
Rivet at projects.hepforge.org<mailto:Rivet at projects.hepforge.org>
https://www.hepforge.org/lists/listinfo/rivet



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

***********************************************************************
Hannes Jung
Email: Hannes.Jung at desy.de<mailto:Hannes.Jung at desy.de>
mobile :+49 40 8998 93741
http://www.desy.de/~jung
Tel: +49 (0) 40 8998 3741
Fax: +49 (0) 40 8994 3741
DESY, CMS 01B/02.213
Notkestr.85, 22603 Hamburg, FRG
***********************************************************************




-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.hepforge.org/lists-archive/rivet/attachments/20140610/a92db47f/attachment.html>


More information about the Rivet mailing list