Re: Compilation problem: ROOT 5.34.00

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Tue, 12 Jun 2012 20:50:56 +0100


Hi,

What configure arguments did you use ? Looks like you tried to enable the new cocoa graphical backend, which in turn appears to try and use std=c++11. I think this is only supposed to be enabled if you ran with --enable-c++11

c++11 Build using C++11 compatible mode, requires gcc > 4.7.x or clang

which will not work with the old gcc 4.2.1 system compiler.

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 ?

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 make: *** [core/macosx/src/CocoaUtils.o] Error 1

macmini ~/Projects/root > g++ --version
g++ (MacPorts gcc47 4.7.0_3) 4.7.0
Copyright (C) 2012 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.

Chris

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 - 21:51:09 CEST

This archive was generated by hypermail 2.2.0 : Wed Jun 13 2012 - 05:50:02 CEST