Re: [ROOT] Re: MacOSX 10.3 (Panther) , compile issue with TProofServ.cxx

From: Remi Mommsen (remigius.mommsen@cern.ch)
Date: Tue Nov 04 2003 - 18:21:25 MET


Hi Fons,

In case nobody else replied yet and you're still waiting for the 
Panther CDs. I installed Panther over the weekend, but haven't had time 
to compile root yet. However, here the difference of gcc 3.3 from 
Jaguar (10.2.8 with August Developer Update) and Panther:

Jaguar:
gcc -v ToolBox.cc
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1493)
  /usr/libexec/gcc/darwin/ppc/3.3/cc1plus -quiet -v -D__GNUC__=3 
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1493 
-D__DYNAMIC__ ToolBox.cc -D__GNUG__=3 -fPIC -quiet -dumpbase ToolBox.cc 
-auxbase ToolBox -version -D__private_extern__=extern -o 
/var/tmp//ccMg6NTJ.s
GNU C++ version 3.3 20030304 (Apple Computer, Inc. build 1493) 
(ppc-darwin)
	compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 
1493).
GGC heuristics: --param ggc-min-expand=30 --param 
ggc-min-heapsize=131072


Panther:
gcc -v ToolBox.cc
Reading specs from /usr/libexec/gcc/darwin/ppc/3.3/specs
Thread model: posix
gcc version 3.3 20030304 (Apple Computer, Inc. build 1495)
  /usr/libexec/gcc/darwin/ppc/3.3/cc1plus -quiet -v -D__GNUC__=3 
-D__GNUC_MINOR__=3 -D__GNUC_PATCHLEVEL__=0 -D__APPLE_CC__=1495 
-D__DYNAMIC__ ToolBox.cc -D__GNUG__=3 -fPIC -quiet -dumpbase ToolBox.cc 
-auxbase ToolBox -version -D__private_extern__=extern -o 
/var/tmp//cc4jMdrY.s
GNU C++ version 3.3 20030304 (Apple Computer, Inc. build 1495) 
(ppc-darwin)
	compiled by GNU C version 3.3 20030304 (Apple Computer, Inc. build 
1495).
GGC heuristics: --param ggc-min-expand=30 --param 
ggc-min-heapsize=131072

It seems the only difference is in the __APPLE_CC__ version number.

HTH,
		Remi


On Thursday, October 30, 2003, at 09:30  AM, Fons Rademakers wrote:

> Hi Eddy,
>
>   to keep thing working with Jaguar I need to know how we can
> distinguish between the two platforms. Try compiling with the gcc -v
> option to see what symbols are predefined for Panther and that were not
> for Jaguar.
>
> Looking forward to the Panther CD. :-)
>
> Cheers, Fons.
>
>
>
> On Thu, 2003-10-30 at 16:57, Edmond Offermann wrote:
>> Oops, lazy me
>> looking in TProofServ.cxx. The solution is obvious
>>
>>    37 //#if (defined(__FreeBSD__) && (__FreeBSD__ <
>> 4)) || defined(__APPLE__)
>>      38 #if (defined(__FreeBSD__) && (__FreeBSD__ <
>> 4))
>>
>> After this change Root compiles fine and my
>> root marks increase 25% :
>> G4 1.42 Ghz 1Gb Ram g++3.3
>>
>> fatman:~/src/ROOT/root-3.10.00/test> ./stress
>> ******************************************************************
>> *  Starting  R O O T - S T R E S S test suite with
>> 1000 events
>> ******************************************************************
>> Test  1 : Functions, Random Numbers, Histogram
>> Fits............. OK
>> Test  2 : Check size & compression factor of a Root
>> file........ OK
>> Test  3 : Purge, Reuse of gaps in
>> TFile......................... OK
>> Test  4 : Test of 2-d histograms, functions, 2-d
>> fits........... OK
>> Test  5 : Test graphics &
>> Postscript............................ OK
>> Test  6 : Test subdirectories in a Root
>> file.................... OK
>> Test  7 : TNtuple, selections, TCut, TCutG,
>> TEventList.......... OK
>> Test  8 : Trees split and compression
>> modes..................... OK
>> Test  9 : Analyze Event.root file of stress
>> 8................... OK
>> Test 10 : Create 10 files starting from
>> Event.root.............. OK
>> Test 11 : Test chains of Trees using the 10
>> files............... OK
>> Test 12 : Compare histograms of test 9 and
>> 11................... OK
>> Test 13 : Test merging files of a
>> chain......................... OK
>> Test 14 : Check correct rebuilt of Event.root in test
>> 13........ OK
>> Test 15 : Divert Tree branches to separate
>> files................ OK
>> Test 16 : CINT test (3 nested loops) with LHCb
>> trigger.......... OK
>> ******************************************************************
>> *  Darwin fatman.local 7.0.0 Darwin Kernel Version
>> 7.0.0: Wed
>> ******************************************************************
>> stress    : Total I/O =  705.1 Mbytes, I =  536.7, O =
>> 168.4
>> stress    : Compr I/O =  558.4 Mbytes, I =  426.6, O =
>> 131.8
>> stress    : Real Time =  71.74 seconds Cpu Time =
>> 69.64 seconds
>> ******************************************************************
>> *  ROOTMARKS = 524.9   *  Root3.10/01   20031030/945
>> ******************************************************************
>>
>> some Panther installation pointers:
>>
>> 1) Install MacOSX panther and the Xcode tools.
>>    I chose in "customize" also to install
>>    the X11 stuff
>> 2) Upgraded my fink stuff .
>>    No prisoners here, did rm -rf /sw .
>>    bootstrapped from the fink-0.6.0-full.tar.gz
>>    source .
>> 3) installed some other goodies through
>>    fink install xdvi
>>
>> --- Edmond Offermann <edmondoffermann@yahoo.com>
>> wrote:
>>> Dear all,
>>>
>>> Made a (smooth) jump to MacOSX 10.3 Panther but
>>> got a problem with the compilation of
>>> ROOT Version 3.10/01 (and the cvs version of today)
>>> in TProofServ.cxx, see below.
>>> Anybody solved this already ?
>>>
>>> compiler specs:
>>> ~/tmp> g++ -v
>>> Reading specs from
>>> /usr/libexec/gcc/darwin/ppc/3.3/specs
>>> Thread model: posix
>>> gcc version 3.3 20030304 (Apple Computer, Inc. build
>>> 1495)
>>>
>>> error message:
>>>
>>> g++ -O -pipe -W -Wall -fsigned-char -fno-common
>>> -I/usr/X11R6/include -Iinclude -DHAVE_CONFIG
>>> -I/Users/eddyo/include/root-3.10.00/
>>> -DPower_Macintosh -DDarwin -w  -pipe -fsigned-char
>>> -fno-common -fsigned-char      -g  -I./
>>> -I/sw/include  -o proof/src/TProofServ.o -c
>>> proof/src/TProofServ.cxx
>>> In file included from /usr/include/pthread.h:61,
>>>                  from
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h:37,
>>>                  from
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr.h:98,
>>>                  from
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/c++io.h:37,
>>>                  from
>>> /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:44,
>>>                  from
>>> /usr/include/gcc/darwin/3.3/c++/iosfwd:49,
>>>                  from include/Riosfwd.h:23,
>>>                  from include/TObject.h:40,
>>>                  from include/TApplication.h:29,
>>>                  from include/TProofServ.h:28,
>>>                  from proof/src/TProofServ.cxx:44:
>>> /usr/include/unistd.h:215: error: parse error before
>>> `,' token
>>> In file included from
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr.h:98,
>>>                  from
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/c++io.h:37,
>>>                  from
>>> /usr/include/gcc/darwin/3.3/c++/bits/fpos.h:44,
>>>                  from
>>> /usr/include/gcc/darwin/3.3/c++/iosfwd:49,
>>>                  from include/Riosfwd.h:23,
>>>                  from include/TObject.h:40,
>>>                  from include/TApplication.h:29,
>>>                  from include/TProofServ.h:28,
>>>                  from proof/src/TProofServ.cxx:44:
>>>
>> /usr/include/gcc/darwin/3.3/c++/ppc-darwin/bits/gthr-default.h:
>>> In function `
>>>    int flock(int, int)':
>>>
>>>
> -- 
> Org:    CERN, European Laboratory for Particle Physics.
> Mail:   1211 Geneve 23, Switzerland
> E-Mail: Fons.Rademakers@cern.ch              Phone: +41 22 7679248
> WWW:    http://www.rademakers.org/fons/      Fax:   +41 22 7679480
>
>


---------------------------------------------------------------------
Computers are like air-conditioners, they stop working properly when
you open Windows.                                         (Anonymous)

*********************************************************************
Remigius K. Mommsen                 e-mail: mommsen@slac.stanford.edu
University of California, Irvine       URL:    http://cern.ch/mommsen
c/o SLAC                             voice:        ++1 (650) 926-3595
2575 Sand Hill Road #35                fax:        ++1 (650) 926-3882
Menlo Park, CA 94025, US              home:        ++1 (650) 233-9041
*********************************************************************



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:16 MET