Opened 11 years ago

Closed 10 years ago

#40248 closed defect (invalid)

root: token is not a valid binary operator in a preprocessor subexpression

Reported by: revkarol@… Owned by: mattiafrancescomoro@…
Priority: Normal Milestone:
Component: ports Version: 2.2.0
Keywords: Cc: cjones051073 (Chris Jones)
Port: root

Description

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.

Attachments (1)

main.log (485.5 KB) - added by revkarol@… 11 years ago.
log file

Download all attachments as: .zip

Change History (3)

Changed 11 years ago by revkarol@…

Attachment: main.log added

log file

comment:1 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: jonesc@… added
Owner: changed from macports-tickets@… to mattiafrancescomoro@…
Summary: port upgrade failsroot: token is not a valid binary operator in a preprocessor subexpression

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 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.

comment:2 Changed 10 years ago by mf2k (Frank Schima)

Resolution: invalid
Status: newclosed

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 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
Note: See TracTickets for help on using tickets.