#40248: root: token is not a valid binary operator in a preprocessor subexpression -------------------------+----------------------------------- Reporter: revkarol@… | Owner: mattiafrancescomoro@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: | Keywords: Port: root | -------------------------+----------------------------------- Changes (by ryandesign@…): * cc: jonesc@… (added) * owner: macports-tickets@… => mattiafrancescomoro@… Comment: `clang` is installed; Xcode provides it. The relevant error in the log is: {{{ :info:build include/G__ci_fproto.h:19:19: error: token is not a valid binary operator in a preprocessor subexpression :info:build # if __has_warning("-Wreturn-type-c-linkage") :info:build ~~~~~~~~~~~~~^ }}} Searching Google for that error, I found previous discussion in [http://root.cern.ch/phpBB3/viewtopic.php?f=3&t=14614 the root forum]. There it was suggested that your clang may be too old and that you should upgrade it. What version of Xcode do you have? Get info on Xcode.app to find out. If it's less than 4.6.3, please upgrade (using the Mac App Store or Apple Developer web site). What version of clang do you have? Run `clang -v` to find out. If it's less than "Apple LLVM version 4.2 (clang-425.0.28) (based on LLVM 3.2svn)", please upgrade (open Xcode.app, go to the Preferences window, to the Downloads section, and install or upgrade the command line tools). If that fixes it, then we need to be blacklisting older versions of clang in the root port using the compiler_blacklist_versions portgroup. -- Ticket URL: <https://trac.macports.org/ticket/40248#comment:1> MacPorts <http://www.macports.org/> Ports system for OS X