Trying to build my project which uses CINT with gcc-13.2 on Ubuntu

@pcanal/@Wile_E_Coyote ,

the output of the suggested rootcint command is giving the below error:
rootcint -f …/…/LibCint/cint/src/G__cpp_SVP.cxx -c -I…/…/…/Base_Lib/msvp_com -I…/…/…/Common_Lib/ParameterHandler/Inc -I…/…/…/Base_Lib/Inc -I…/…/…/Common_Lib/MSVP_Namespace -I…/LibCint/cint/lib -I…/…/…/Base_Lib/CommonAPI -I…/LibCint -I…/…/…/Common_Lib/LibCint -I…/…/…/SCSI_Lib/Inc -I…/…/…/SCSI_Lib/scwl -I…/…/…/SCSI_Lib/scdbl -I…/…/…/SCSI_Lib/sdil -I…/…/…/Base_Lib/CoreLogger -I…/…/…/Base_Lib/MSVPConfiguration -I…/…/…/Base_Lib/CommonAPI -I…/…/…/OSAL -I…/…/…/Base_Lib/msvp_com -I…/…/…/Infusion_LIB -DG__REDIRECTIO -DG__SHAREDLIB -D_SCSI -DCINT_EXPORT -D__LINUX__ -DG__OSFDLL -DG__ANSI -DG__ERRORCALLBACK -DG__SIGNEDCHAR -DG__NEWSTDHEADER -D_CRT_SECURE_NO_DEPRECATE=1 -DG__CINT_VER6 -DG__NATIVELONGLONG -DG__P2FCAST -DG__STD_EXCEPTION -DG__HAVE_CONFIG -DG__NOMAKEINFO CintUtility.h SCSI_Cmd.h ParameterDictionary.h CommonAPI.h
Error: link requested for unknown class CintUtility G__auto283793LinkDef.h:7:
Error: link requested for unknown class SCSI_Cmd G__auto283793LinkDef.h:8:
Warning: Error occurred during reading source files
Warning: Error occurred during dictionary source generation
!!!Removing …/…/LibCint/cint/src/G__cpp_SVP.cxx …/…/LibCint/cint/src/G__cpp_SVP.h !!!
Error: rootcint: error loading headers…

How do i resolve this?

Hi @pcanal ,
I modified the Makefile to generate standalone CINT with 5.34 code base and was able to build the CINT binary with this.

But, I still see the below 2 list errors while compiling the .cxx file(with gcc-13.2) generated with this 5.34 CINT binary after applying the patch Apply patch for gcc 9 · root-project/root@348f30a · GitHub :
G__cpp_SVP.cxx:5720:131: error: ‘std::__cxx11::list<unsigned char>::iterator’ has no member named ‘operator==’; did you mean ‘operator=’?*
[build] 5720 | G__letint(result7, 103, (long) ((list<unsigned char,allocator<unsigned char*> >::iterator*) G__getstructoffset())->operator==((list<unsigned char,*
G__cpp_SVP.cxx:5726:131: error: ‘std::__cxx11::list<unsigned char>::iterator’ has no member named ‘operator!=’; did you mean ‘operator=’?*
[build] 5726 | G__letint(result7, 103, (long) ((list<unsigned char,allocator<unsigned char*> >::iterator*) G__getstructoffset())->operator!=(*(list<unsigned char**

I wanted to know if its really possible to compile these .cxx files with GCC-13.2?

Hi @pcanal / @Wile_E_Coyote ,

Any inputs for the above?

rootcint’s help menu states the last argument on the rootcint command line must be LinkDef.h.
But, we are not specifying it in the terminal. will that be the reason for failure?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.