Fork me on GitHub

Opened 10 years ago

Closed 10 years ago

#277 closed Bug (fixed)

Trouble compiling on Mavericks

Reported by: Tien-Tien Owned by:
Priority: minor Milestone:
Component: Delphes code Version: Delphes 3
Keywords: Cc:

Description

Hi Delphes team,

I have been trying to compile the latest version of Delphes on OSX 10.9.2 and run into the following error message:

>> Compiling external/tcl/tclObj.c
gcc: error: unrecognized command line option ‘-stdlib=libc++’
gcc: error: unrecognized command line option ‘-stdlib=libc++’
make: *** [tmp/external/tcl/tclObj.o] Error 1

I am running with gcc version 4.8.1 and architecture x86_64-apple-darwin12.5.0

Is this a problem with using libc++ instead of libstdc++? I am puzzled because it seems that others who run Mavericks are able to compile Delphes fine.

thanks.

Change History (2)

comment:1 by Pavel Demin, 10 years ago

This kind of message indicates that there is a problem with your XCode and ROOT installation.

This problem is discussed on the ROOT forum:

http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=17190&start=75

The solution is to

  • upgrade to the latest Xcode
  • install the latest command line tools
  • built the latest ROOT from sources
  • point all the environment variables to the correct ROOT installation directory


Recently, I've tested this solution myself.

Here is what I've done to correctly build ROOT and Delphes under Mac OS X 10.9:

  • installed ROOT 5.34.18 using the following commands:
    version=5.34.18
    export ROOTSYS=$HOME/root/root-${version}
    
    curl -O ftp://root.cern.ch/root/root_v${version}.source.tar.gz
    tar zxf root_v${version}.source.tar.gz
    
    cd root
    
    ./configure macosx --enable-gdml --enable-minuit2 --enable-roofit --enable-table --enable-unuran --disable-cocoa
    
    make -j 4
    make install
    
  • installed Delphes using the following commands:
    # setup ROOT environment variables
    export ROOTSYS=$HOME/root/root-5.34.18
    export PATH=$ROOTSYS/bin:$PATH
    export PYTHONPATH=$ROOTSYS/lib:$PYTHONPATH
    export DYLD_LIBRARY_PATH=$ROOTSYS/lib:$LD_LIBRARY_PATH
    
    wget http://cp3.irmp.ucl.ac.be/downloads/Delphes-3.1.2.tar.gz
    tar -zxf Delphes-3.1.2.tar.gz
    
    cd Delphes-3.1.2
    make -j 4
    

comment:2 by Pavel Demin, 10 years ago

Resolution: fixed
Status: newclosed

Problem was solved by pointing the environment variables to the correct compiler installation.

Note: See TracTickets for help on using tickets.