[ROOT] Compiling on linux

From: Edward Chen (edward@SLAC.stanford.edu)
Date: Wed Jul 17 2002 - 22:10:48 MEST


Hi - I'm trying to install ROOT 3.03/06 on a PC running RH7.2 with
gcc2.95.2.  This is the configuration we have at Caltech, so I don't have
much say in the matter.

It doesn't like there is a binary available for this particular
configuration, so I decided to compile the source.  I downloaded the
complete source tree, and followed the instructions (gzip, setenv
ROOTSYS,./configure linux, gmake).

I get problems at the gmake stage:

First, lots of files can't be found.  Here are some examples from the
gmake output:

Makefile:274: cint/src/auxu.d: No such file or directory
Makefile:274: cint/src/cast.d: No such file or directory
Makefile:274: cint/src/debug.d: No such file or directory
Makefile:274: cint/src/decl.d: No such file or directory
Makefile:274: cint/src/disp.d: No such file or directory
Makefile:274: cint/src/dump.d: No such file or directory
Makefile:274: cint/src/end.d: No such file or directory
Makefile:274: cint/src/error.d: No such file or directory
Makefile:274: cint/src/expr.d: No such file or directory
Makefile:274: cint/src/fread.d: No such file or directory
Makefile:274: cint/src/func.d: No such file or directory
Makefile:274: cint/src/g__cfunc.d: No such file or directory
Makefile:274: cint/src/gcoll.d: No such file or directory

Second, the gmake fails:

gcc -O -pipe -Wall -fPIC -Iinclude  -D_REENTRANT -o cint/main/G__setup.o
-c cint/main/G__setup.c
g++ -O -pipe -Wall -Woverloaded-virtual -fPIC -Iinclude  -DG__REGEXP
-DG__UNIX -DG__SHAREDLIB -DG__OSFDLL -DG__ROOT -DG__REDIRECTIO
-D_REENTRANT -o cint/src/Api.o -c cint/src/Api.cxx
In file included from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/iostream.h:31,
                 from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/stl_algobase.h:53,
                 from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/stl_tree.h:56,
                 from
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/set:31,
                 from cint/src/Api.cxx:399:
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:
In method `struct streampos streambuf::pubseekoff(long long int,
ios::seek_dir, int = 3)':
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:362:
conversion from `__off64_t' to non-scalar type `streampos' requested
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:
In method `struct streampos streambuf::pubseekpos(_G_fpos64_t, int = 3)':
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:364:
`struct streampos' used where a `long long int' was expected
/usr/local/lib/gcc-lib/i686-pc-linux-gnu/2.95.2/../../../../include/g++-3/streambuf.h:364:
warning: control reaches end of non-void function
`streambuf::pubseekpos(_G_fpos64_t, int)'
gmake: *** [cint/src/Api.o] Error 1

Any ideas what is wrong?  Thanks for any help.

-Ed



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:00 MET