Re: Compilation problem: ROOT 5.34.00

From: Thiago Tomei <Thiago.Tomei_at_cern.ch>
Date: Tue, 12 Jun 2012 17:48:43 -0300


Okay.

In any case, compilation without the cocoa thing proceeds smoothly, so it's not a showstopper. =)

Thiago

On Tue, Jun 12, 2012 at 5:43 PM, Timur Pocheptsov <Timur.Pocheptsov_at_cern.ch> wrote:
> I'm afrait, clang 1.7 is too old.
> ________________________________________
> From: owner-roottalk_at_root.cern.ch [owner-roottalk_at_root.cern.ch] on behalf of Thiago Tomei [Thiago.Tomei_at_cern.ch]
> Sent: 12 June 2012 22:41
> To: Christopher Rob Jones
> Cc: roottalk_at_root.cern.ch
> Subject: Re: [ROOT] Compilation problem: ROOT 5.34.00
>
> Hi Chris
>
> Yes, exactly, I wanted to try the new cocoa thing. The notes don't say
> that it is specific to clang, gcc > 4.7.x or anything to that effect.
> =(
>
> But I do have some version of clang available:
>
> trtomei_at_Thiago-Tomeis-MacBook:~ $ clang -v
> Apple clang version 1.7 (tags/Apple/clang-77) (based on LLVM 2.9svn)
> Target: x86_64-apple-darwin10
> Thread model: posix
>
> Is this good enough?
>
> Thiago
>
> On Tue, Jun 12, 2012 at 4:50 PM, Chris Jones <jonesc_at_hep.phy.cam.ac.uk> wrote:
>> 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
>>>
>>
>
>
>
> --
>    Thiago R. F. P Tomei - http://cern.ch/Thiago.Tomei
>    SPRACE - São Paulo Research and Analysis Center
>    CERN - European Organization for Nuclear Research
>

-- 
    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:48:51 CEST

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