Re: [Cpip-develop] CPIPMain.py crash on actual code
Status: Alpha
Brought to you by:
cpip
From: cpip c. <cp...@go...> - 2014-10-05 20:17:10
|
Hi Chris, Did this work for you? Do you need any more help? Paul. On Wed, Oct 1, 2014 at 12:02 PM, cpip cpip <cp...@go...> wrote: > > Hi Chris, > > You need to provide CPIP with the location of the libc source code. The > problem is that CPIP can not see the definition of the macro SHLIB_COMPAT. > Undefined macros are treated as 0 as per the standard. > > You can provide a definition by using -D on the command line but the > better idea is configure CPIP so it can find one in your source. Googling > around suggests that SHLIB_COMPAT is defined in libc/include/shlib-compat.h > or glibc/include/shlib-compat.h and I notice that CPIP is complaining > earlier with this error: > ERROR <gnu/stubs-32.h>: No such file or directory > > This also suggests CPIP can not find the libc source. You need to add the > path to this (and any other) include with the -J option and that will allow > CPIP to find the libc source. I think this SO answer > <http://stackoverflow.com/questions/7412548/error-gnu-stubs-32-h-no-such-file-or-directory-while-compiling-nachos-source> > might be relevant. > > I realise the CPIP could make this clearer, I'll work on that. > > Let me know how you get on. > > Cheers, > > Paul. > > > On Tue, Sep 30, 2014 at 2:56 PM, Engelen, C.P.M. van (Chris) < > chr...@po...> wrote: > >> After reading the article about CPIP in InfoWorld (via the link >> provided by the CodeProject news letter), I got interested and decided to >> give it a try. >> >> After installing CPIP beta_02_2014-09-23-1659 in a Linux REDHAT >> 2.6.32-431.23.3.el6.x86_64 machine, I was able to successfully run CPIPMain >> om the main.cpp program in the demo directory., using python 2.7.8. >> However, when trying CPIPMain on an actual cpp source file, it ran about a >> minute on 100% CPU, then crashed with the following output: >> >> cvengel@itiu08 [15:44:15]> python2.7 /opt/CPIP/beta_02/cpip/CPIPMain.py >> -l 20 -p -o /home/cvengel/temp/CPIP/test/ggk -D __USE_STD_IOSTREAM -D >> _DEBUG -D _TRACE -D DONT_INCLUDETCL -D ACE_NDEBUG -J /usr/include -J >> /usr/include/c++/4.4.4 -J /usr/include/c++/4.4.4/x86_64-redhat-linux -J >> /usr/lib64/gcc/i686-pc-mingw32/4.4.6/include -I .. -I >> /home/cvengel/include -I /home/cvengel/workdir/gmslib/src -J >> /home/cvengel/workdir/gmslib/src/include -J >> /home/cvengel/workdir/gmslib/src/GmsApi -I . -J >> /usr/gmsdev/ACE/ACE_wrappers -J /home/cvengel/workdir/xerces-c-3.1.1/src -I >> /opt/ActiveTcl-8.4/include >> /home/cvengel/workdir/gmsapp/src/ggk/GgkInitialisatie.cpp >> 2014-09-30 15:44:51,396 INFO preprocessFileToOutput(): >> /home/cvengel/workdir/gmsapp/src/ggk/GgkInitialisatie.cpp >> 2014-09-30 15:44:51,397 INFO TU in HTML: >> 2014-09-30 15:44:51,397 INFO >> /home/cvengel/temp/CPIP/test/ggk/GgkInitialisatie.cpp.html >> 2014-09-30 15:44:51,901 ERROR <gnu/stubs-32.h>: No such file or >> directory at line=8, col=1 of file "/usr/include/gnu/stubs.h" >> Traceback (most recent call last): >> File "/opt/CPIP/beta_02/cpip/CPIPMain.py", line 1079, in <module> >> sys.exit(main()) >> File "/opt/CPIP/beta_02/cpip/CPIPMain.py", line 1050, in main >> preprocessFileToOutput(args[0], opts.output, jobSpec) >> File "/opt/CPIP/beta_02/cpip/CPIPMain.py", line 812, in >> preprocessFileToOutput >> incItuAnchors=True, >> File "/opt/CPIP/beta_02/cpip/Tu2Html.py", line 167, in processTuToHtml >> for t in theLex.ppTokens(incWs=True, minWs=True, >> condLevel=theCondLevel): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 493, in ppTokens >> for aTok in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1196, in _cppInclude >> for aTtt in self._genPpTokensRecursive(myGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 558, in >> _genPpTokensRecursive >> for aTtt in self._processCppDirective(myTtt, theGen): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 873, in >> _processCppDirective >> for aTok in mySubGenFn(theGen, myFlc): >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 1041, in _cppIf >> myBool, myStr = self._retIfEvalAndTokens(theGen) >> File "/opt/CPIP/beta_02/cpip/core/PpLexer.py", line 988, in >> _retIfEvalAndTokens >> self._fis.fileLineCol) >> File "/opt/CPIP/beta_02/cpip/core/CppDiagnostic.py", line 109, in >> undefined >> theLoc >> cpip.core.CppDiagnostic.ExceptionCppDiagnosticUndefined: Can not evaluate >> constant expression "SHLIB_COMPAT (libc, GLIBC_2_0, GLIBC_2_1)", error: >> Evaluation of " 0 (0, 0, 0) " gives error: 'int' object is not callable at >> line=512, col=1 of file "/usr/include/libio.h" >> >> I'm using python 2.7.8: >> Python 2.7.8 (default, Sep 30 2014, 15:04:29) >> [GCC 4.4.7 20120313 (Red Hat 4.4.7-4)] on linux2 >> >> Any suggestions? >> >> BTW: In the Unit Testing section the file name is incorrect, it should be >> in plural: *core/test/UnitTest**s**.py* >> >> Met vriendelijke groet, >> >> *Chris van Engelen *Software developer >> >> Politie | IV-organisatie | Divisie MDC | GMS >> Odijkerweg 25, 3972 NE Driebergen >> Postbus 238, 3970 AE Driebergen >> M 06 11956342 >> T 088 6620049 >> >> ------------------------- Disclaimer ---------------------------- De >> informatie verzonden met dit e-mailbericht (en bijlagen) is uitsluitend >> bestemd voor de geadresseerde(n) en zij die van de geadresseerde(n) >> toestemming kregen dit bericht te lezen. Kennisneming door anderen is niet >> toegestaan. De informatie in dit e-mailbericht (en bijlagen) kan >> vertrouwelijk van aard zijn en binnen het bereik van een >> geheimhoudingsplicht en/of een verschoningsrecht vallen. Indien dit >> e-mailbericht niet voor u bestemd is, wordt u verzocht de afzender daarover >> onmiddellijk te informeren en het e-mailbericht (en bijlagen) te >> vernietigen. >> ----------------------------------------------------------------- >> >> >> ------------------------------------------------------------------------------ >> Meet PCI DSS 3.0 Compliance Requirements with EventLog Analyzer >> Achieve PCI DSS 3.0 Compliant Status with Out-of-the-box PCI DSS Reports >> Are you Audit-Ready for PCI DSS 3.0 Compliance? Download White paper >> Comply to PCI DSS 3.0 Requirement 10 and 11.5 with EventLog Analyzer >> >> http://pubads.g.doubleclick.net/gampad/clk?id=154622311&iu=/4140/ostg.clktrk >> _______________________________________________ >> Cpip-develop mailing list >> Cpi...@li... >> https://lists.sourceforge.net/lists/listinfo/cpip-develop >> >> > |