Astroroot: compile error: cannot open file typeinfo

Hello everyone,

I’m a systemsadministrator at SRON in the Netherlands having trouble building astroroot against ROOT on a Debian machine.

Reiner Rohlfs (the maker of AstroRoot) did not know the sollution to this problem and we thought to ask you. Here is what happens:

----- SNIP ----
Error: cannot open file "typeinfo"  /usr/local/root/include/Rtypeinfo.h:33:
Error: Unexpected EOF G__fgetstream():2 /usr/include/sys/cdefs.h:261:
Advice: You may need to use +P or -p option
Error: Symbol extern"C"{ # define __need_size_t # define __need_NULL # include<stddef is not defined in current scope  /usr/include/stdio.h:46:
Error: Failed to evaluate extern"C"{ # define __need_size_t # define __need_NULL # include<stddef> # include<bits/types
Error: Failed to evaluate extern"C"{ # define __need_size_t # define __need_NULL # include<stddef> # include<bits> # define __need_FILE # define __need___FILE #endif #if !defined __FILE_defined&& defined __need_FILE __BEGIN_NAMESPACE_STD typedef struct _IO_FILE FILE
Error: Unexpected EOF G__fignorestream():3 /usr/include/stdio.h:836:
Advice: You may need to use +P or -p option
----- SNIP ------

The complete error can be viewed here:
http://www.sron.nl/~mverwijs/files/astroroot/buildfail.log

More info about my setup:

Version info:
Astro Root Version: 4.1.2
Root version: 5.12.00
OS: Debian GNU/Linux 3.1 (Sarge)

Environmental settings:
LD_LIBRARY_PATH=/usr/local/root/include:/usr/include/root:/usr/include:/usr/local/root/lib
PFILES=/usr/local/root/pfiles
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/bin:/usr/local/root/bin
ROOTSYS=/usr/local/root
WORK_ENV=/usr/local/root

For Debian people amongst you, here is a list of packages installed:
http://www.sron.nl/~mverwijs/files/astroroot/dpkg-selections

I’ve configured ROOT with these options:
./configure --enable-minuit2 --enable-mathmore \
–enable-reflex --enable-cintex --enable-roofit \
–enable-mathmore --enable-python --enable-qt

GCC version 3.3 and 3.4 both give the same error. I haven’t tried 4.x.

Any help or instruction is greatly appreciated!

Kind regards,


Maarten Verwijs

(altered topic name)

There was a bug in the install target in the Makefile of ROOT 5.12.00. This lead to the cint include being misplaced (and led to the error you saw). Get the latest $ROOTSYS/Makefile and re-run the install.

Cheers,
Philippe

[quote=“pcanal”]There was a bug in the install target in the Makefile of ROOT 5.12.00. This lead to the cint include being misplaced (and led to the error you saw). Get the latest $ROOTSYS/Makefile and re-run the install.

Cheers,
Philippe[/quote]

Thanks Philippe!

It worked. Got the new Makefile from CVS. For others, here’s the url (quotes because of checkout making bbcode nervous):

http://root.cern.ch/viewcvs/checkout//Makefile?rev=HEAD&content-type=text/plain”

And here is the output of the make command:

------------ SNIP ------------------
/usr/src/astroroot/astroroot-4.1.2/ac_stuff/component_install -q  
make[2]: Leaving directory `/usr/src/astroroot/astroroot-4.1.2/tfdump'
make[1]: Leaving directory `/usr/src/astroroot/astroroot-4.1.2/tfdump'


  ************ everything compiled and installed successfully ***********

  executables are installed in                     : /usr/local/root/bin
  parameter files are installed in                 : /usr/local/root/pfiles
  F90 modules are installed in                     : /usr/local/root/f90mod
  documentation, help, .txt files are installed in : /usr/local/root/help
  C/C++ include .h files are installed in          : /usr/local/root/include
  .a, .so library files are installed in           : /usr/local/root/lib
  script files are installed in                    : /usr/local/root/share/default_scripts
  other shared files are installed in              : /usr/local/root/share
  FITS file template files are installed in        : /usr/local/root/templates

------------ SNIP ---------------