Hi,
I got a geant3 compilation error with root v5-20-00.
This error was not there when I was compiling geant3 with root v5-19-04.
Below you will find the error I got.
My colleague Ivana told me that a similar error was reported in this list by voeck root.cern.ch/phpBB2/viewtopic.php?t=5672
I contacted voeck but his problem appeared because when he upgraded ROOT and he forgot to delete the old source directory.
I have cross-checked that I have not mixed several root versions.
I’m under macosx leopard.
This is the configure for the root compilation
./configure macosx
–with-pythia6-uscore=SINGLE
–with-f77=gfortran --enable-globus
–enable-roofit --enable-minuit2 --enable-table
I got my gfortran from macresearch.org/node/4558
Any hint to understand the origin of this problem will be highly appreciated,
Thanks in advance,
Gines
PS. Compilation error:
TGeant3/TGeant3gu.cxx
Generating /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx
Error: cannot open file “typeinfo” /Users/ginesmartinez/Work/Root/v5-20-00/include/Rtypeinfo.h:33:
Error: Missing one of ‘
/’ expected at or after line 71.
Error: Unexpected end of file (G__fgetstream():2) /usr/include/sys/cdefs.h:495:
Error: class,struct,union or type __signed not defined /usr/include/i386/_types.h:37:
Error: class,struct,union or type __builtin_va_list not defined /usr/include/i386/_types.h:96:
Error: Symbol extern"C"{ #if __DARWIN_UNIX03 extern FILE*__stdinp is not defined in current scope /usr/include/stdio.h:167:
Error: Symbol type_info is not defined in current scope /Users/ginesmartinez/Work/Root/v5-20-00/include/TGenericClassInfo.h:33:
Error: Symbol fInfo is not defined in current scope /Users/ginesmartinez/Work/Root/v5-20-00/include/TGenericClassInfo.h:33:
Error: cannot open file “iosfwd” /Users/ginesmartinez/Work/Root/v5-20-00/include/Riosfwd.h:34:
Error: Missing one of ‘,;{(’ expected at or after line 5.
Error: Unexpected end of file (G__fgetstream_template():2) /usr/include/stdarg.h:10:
Error: Missing one of ‘{’ expected at or after line 10.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/stdarg.h:10:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TObject.h:148:
Error: Missing one of ‘{’ expected at or after line 96.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/string.h:152:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:355:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:356:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:358:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:359:
Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TString.h:360:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Internal warning: SaveFillAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttFill.h:48:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Internal warning: SaveLineAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttLine.h:52:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Internal warning: SaveTextAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttText.h:53:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Internal warning: SaveMarkerAttributes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TAttMarker.h:49:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGGC.h:110:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFont.h:216:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:110:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:189:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:200:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:223:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:234:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:268:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:301:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:313:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGLayout.h:329:
Error: cannot open file “iterator” /Users/ginesmartinez/Work/Root/v5-20-00/include/TList.h:33:
Error: no such template iteratorstd::bidirectional_iterator_tag,TObject*,std::ptrdiff_t,constTObject**,constTObject*& /Users/ginesmartinez/Work/Root/v5-20-00/include/TList.h:178:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Internal warning: SaveUserColor comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:317:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:318:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:439:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Internal warning: SavePrimitiveSubframes comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:440:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:452:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:463:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:570:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:603:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGFrame.h:672:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:139:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGCanvas.h:248:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:140:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:143:
Syntax Error: SavePrimitive Maybe missing ‘;’ /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:143:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:209:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Internal warning: SaveChildren comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:292:
Error: Syntax error /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Error: void type variable can not be declared /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Internal warning: SavePrimitive comment can not set /Users/ginesmartinez/Work/Root/v5-20-00/include/TGListTree.h:457:
Error: cannot open file “algorithm” /Users/ginesmartinez/Work/Root/v5-20-00/include/TMath.h:35:
Error: Missing one of ‘,;{(’ expected at or after line 10.
Error: Unexpected end of file (G__fgetstream_template():2) /usr/include/float.h:282:
Error: Missing one of ‘{’ expected at or after line 282.
Error: Unexpected end of file (G__fignorestream():3) /usr/include/float.h:282:
Error: cannot open file “iterator” /Users/ginesmartinez/Work/Root/v5-20-00/include/TObjArray.h:30:
Error: no such template iteratorstd::bidirectional_iterator_tag,TObject*,std::ptrdiff_t,constTObject**,constTObject*& /Users/ginesmartinez/Work/Root/v5-20-00/include/TObjArray.h:114:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx /Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.h !!!
Error: rootcint: error loading headers…
make: *** [/Users/ginesmartinez/Work/Geant3/v1-9-Root-v5-20-00/tgt_macosx/TGeant3/geant3Cint.cxx] Error 1
pb-d-128-141-42-20:v1-9-Root-v5-20-00 ginesmartinez$