Re: Compilation problem: ROOT 5.34.00

From: Chris Jones <jonesc_at_hep.phy.cam.ac.uk>
Date: Tue, 12 Jun 2012 21:09:35 +0100


Hi,

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

Just to be clear, you are saying the cocoa backend can only be compiled with clang, not gcc ?

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 - 22:09:47 CEST

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