Re: Compiling ROOT using egcs

From: Damir Buskulic (buskulic@lapp.in2p3.fr)
Date: Tue Dec 15 1998 - 14:33:32 MET


To compile, you must start with an already existing version of root. Try
to download one that matches as close as possible your system and then
download sources in the root dir. The include files in the cint
directory are not included in the root_sources file.

Cheers

Damir

Jonathan Hays wrote:
> 
> Hi,
> 
> I have recently started using the ROOT system and quickly
> discovered that if I wanted to use egcs to compile my own
> classes then I needed a version of the ROOT libraries etc
> also compiled with egcs....
> 
> Unable to find any binaries compiled with egcs I decided it
> might be an interesting (and maybe even useful) exercise
> to try and compile my own binaries...
> 
> I downloaded a copy of the sources for version 2.20/04 11/12/98
> from the ROOT webpages and after some fiddling with the Makefiles
> tried to compile....
> 
> I get the following errors:
> 
> During the generation of the dictionary BASE_G__Base2.cxx I get:
> Error: source file "iosenum.h" cannot open FILE:/afs/cern.ch/user/
> j/jhays/lepton/ROOT/ROOT_egcs/root/cint/include/iostream.h LINE:31
> 
> Then when it attempts to compile the generated dictionary the following
> error occurs:
> 
> (including the compiler line so you can see which options I have used)
> g++  -Wall -fPIC -fno-rtti -fno-exceptions -I/usr/openwin/include -c
> BASE_G__Base2.cxx
> 
> BASE_G__Base2.cxx: In function `int G__TStorage_SetReAllocHooks_6_1(struct
> G__value *, char *, struct G__param *, int)':
> BASE_G__Base2.cxx:248: no matching function for call to
> `TStorage::SetReAllocHooks (void * (**)(void *, size_t), void * (**)(void
> *, size_t, size_t))'
> 
> TStorage.h:56: candidates are: TStorage::SetReAllocHooks(void * (*)(void
> *, size_t), void * (*)(void *, size_t, size_t))
> 
> gmake: *** [BASE_G__Base2.o] Error 1
> 
> uname -a on my system generates the following output:
> SunOS cms6 5.5.1 Generic_103640-19 sun4m sparc SUNW,SPARCstation-20
> 
> and g++ -v the following:
> Reading specs from
> /usr/local/lib/gcc-lib/sparc-sun-solaris2.5.1/egcs-2.91.60/specs
> gcc version egcs-2.91.60 19981201 (egcs-1.1.1 release)
> 
> I would be grateful for any help anyone could offer to get this to
> compile (or point me to some egcs compiled binaries for my system)
> 
> Cheers,
> 
> Jon.
> 
> =====================================================
> Jonathan Hays
> 
> Studio 103                            CERN - HC/EP
> 36 Rue De L'Athenee                   E27900
> 1206 Geneve                           1211 Geneve 23
> Suisse                                Suisse
>                                       +41 22 7671546
> =====================================================

-- 
=====================================================================
| Damir Buskulic                  | Universite de Savoie/LAPP       |
|                                 | Chemin de Bellevue, B.P. 110    |
| Tel : +33 (0)450091600          | F-74941 Annecy-le-Vieux Cedex   |
| e-mail: buskulic@lapp.in2p3.fr  | FRANCE                          |
=====================================================================
mailto:buskulic@lapp.in2p3.fr



This archive was generated by hypermail 2b29 : Tue Jan 04 2000 - 00:34:41 MET