[MacPorts] #40248: port upgrade fails
#40248: port upgrade fails ------------------------+-------------------------------- Reporter: revkarol@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Keywords: | Port: root ------------------------+-------------------------------- It may be because I'm trying to use a variant, but I think it's failing to compile because it's trying to use clang as the compiler and that's not installed. -- Ticket URL: <https://trac.macports.org/ticket/40248> MacPorts <http://www.macports.org/> Ports system for OS X
#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
#40248: root: token is not a valid binary operator in a preprocessor subexpression -------------------------+----------------------------------- Reporter: revkarol@… | Owner: mattiafrancescomoro@… Type: defect | Status: closed Priority: Normal | Milestone: Component: ports | Version: 2.2.0 Resolution: invalid | Keywords: Port: root | -------------------------+----------------------------------- Changes (by mf2k@…): * status: new => closed * resolution: => invalid Comment: Is this still a problem with the latest version of root? If so, re-open this ticket and attach the new main.log. Also, this [wiki:FAQ#usrlocal bothers me] in your current log: {{{ :info:build * Configuration for unuran-1.8.0-root: :info:build * :info:build * Source directory: . :info:build * Installation directory: /usr/local }}} -- Ticket URL: <https://trac.macports.org/ticket/40248#comment:2> MacPorts <http://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts