RE: Compilation problem: ROOT 5.34.00

From: Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch>
Date: Tue, 12 Jun 2012 20:02:20 +0000


Hi. >I'm guessing, but it looks like something in the new (and as the release notes say 'work in progress' ;) ) cocoa backend is enabling this when it shouldn't ? *.mm files have a special rule to compile with unconditional C++11 option. As soon as I was asked to remove all C++11 constructs, I can also remove this option (you can also try this, it's in a Makefile, the rule for mm files) - we'll commit this changes into the 5-34 tomorrow. Even so, if you have an old version of clang you can not compile cocoa back-end, this is Objective-C++ and old compilers have a problem with some of names in ROOT's source code, like IsA, etc. >I just tried myself, on OSX 10.7, using gcc 4.7, and I get a different error if I try and enable the cocoa backend. >g++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual -fsigned-char -fno-common -Iinclude -pthread -ObjC++ -std=c++11 -o core/macosx/src/CocoaUtils.o -c /Users/chris/Projects/root/core/macosx/src/CocoaUtils.mm >cc1objplus: error: argument to '-O' should be a non-negative integer The code is to be compiled with clang. On 12 Jun 2012, at 4:39pm, Thiago Tomei wrote: > Greetings all > > Compilation of ROOT V5.34.00 is failing in my Mac OS X (Snow Leopard) > system with the following error: > > g++ -O2 -m64 -pipe -Wshadow -W -Wall -Woverloaded-virtual > -fsigned-char -fno-common -Iinclude -pthread -ObjC++ -std=c++11 > -o core/macosx/src/CocoaUtils.o -c > /Users/trtomei/root/core/macosx/src/CocoaUtils.mm > cc1objplus: error: unrecognized command line option "-std=c++11" > > Relevant information: > > $ g++ --version > i686-apple-darwin10-g++-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3) > Copyright (C) 2007 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. > > $ uname -a > Darwin Thiago-Tomeis-MacBook.local 10.8.0 Darwin Kernel Version > 10.8.0: Tue Jun 7 16:33:36 PDT 2011; > root:xnu-1504.15.3~1/RELEASE_I386 i386 > > Cheers, > Thiago > -- > Thiago R. F. P Tomei - http://cern.ch/Thiago.Tomei > SPRACE - São Paulo Research and Analysis Center > CERN - European Organization for Nuclear Research > Received on Tue Jun 12 2012 - 22:02:30 CEST

This archive was generated by hypermail 2.2.0 : Tue Jun 12 2012 - 23:50:01 CEST