[Rivet] rivet 2 on Mac OSX

Hannes Jung hannes.jung at cern.ch
Tue Jun 10 08:24:21 BST 2014


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>  -fno-common -DPIC -o .libs/libCDFcode_la-JetCluAlgorithm.o
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>: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>
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/b10e0b18/attachment.html>


More information about the Rivet mailing list