2016-04-04 18:57 GMT+03:00 Joachim Reichel <joachim.reic...@gmx.de>: > Hi Ilya, > > could you please include an error message to ensure we are talking about the > same problem?
wget http://http.debian.net/debian/pool/main/c/cppcheck/cppcheck_1.72-1.debian.tar.xz http://http.debian.net/debian/pool/main/c/cppcheck/cppcheck_1.72.orig.tar.bz2 tar -xf ./cppcheck_1.72.orig.tar.bz2 cd cppcheck-1.72 tar -xf ../cppcheck_1.72-1.debian.tar.xz fakeroot ./debian/rules binary ------------------------------------------------------output----------------------------------------------------- dh binary --parallel --with python2 dh_testdir -O--parallel dh_auto_configure -O--parallel debian/rules override_dh_auto_build make[1]: Entering directory '/tmp/cppcheck-1.72' mv externals externals.disabled sed -i.nocppflags -e 's/\$(CXX) \$(CXXFLAGS)/$(CXX) $(CPPFLAGS) $(CXXFLAGS)/' Makefile dh_auto_build -- CFGDIR=/usr/share/cppcheck/cfg HAVE_RULES=yes TINYXML=-ltinyxml2 INCLUDE_FOR_LIB=-Ilib INCLUDE_FOR_CLI=-Ilib "INCLUDE_FOR_TEST=-Ilib -Icli" make[2]: Entering directory '/tmp/cppcheck-1.72' ccache g++ -Ilib -D_FORTIFY_SOURCE=2 -DCFGDIR=\"/usr/share/cppcheck/cfg\" -g -O2 -fstack-protector-strong -Wformat -Werror=format-security -DHAVE_RULES -DTIXML_USE_STL -c -o lib/astutils.o lib/astutils.cpp In file included from lib/astutils.cpp:21:0: lib/astutils.h:49:127: error: 'nullptr' was not declared in this scope const Token * astIsVariableComparison(const Token *tok, const std::string &comp, const std::string &rhs, const Token **vartok=nullptr); ^ In file included from lib/token.h:29:0, from lib/symboldatabase.h:32, from lib/astutils.cpp:22: lib/valueflow.h: In constructor 'ValueFlow::Value::Value(long long int)': lib/valueflow.h:36:69: error: 'nullptr' was not declared in this scope explicit Value(long long val = 0) : intvalue(val), tokvalue(nullptr), varvalue(val), condition(0), varId(0U), conditional(false), inconclusive(false), defaultArg(false), valueKind(ValueKind::Possible) {} ^ In file included from lib/token.h:29:0, from lib/symboldatabase.h:32, from lib/astutils.cpp:22: lib/valueflow.h:36:189: error: 'ValueKind' is not a class or namespace explicit Value(long long val = 0) : intvalue(val), tokvalue(nullptr), varvalue(val), condition(0), varId(0U), conditional(false), inconclusive(false), defaultArg(false), valueKind(ValueKind::Possible) {} ^ lib/valueflow.h: In constructor 'ValueFlow::Value::Value(const Token*, long long int)': lib/valueflow.h:37:72: error: 'nullptr' was not declared in this scope Value(const Token *c, long long val) : intvalue(val), tokvalue(nullptr), varvalue(val), condition(c), varId(0U), conditional(false), inconclusive(false), defaultArg(false), valueKind(ValueKind::Possible) {} ^ lib/valueflow.h:37:192: error: 'ValueKind' is not a class or namespace Value(const Token *c, long long val) : intvalue(val), tokvalue(nullptr), varvalue(val), condition(c), varId(0U), conditional(false), inconclusive(false), defaultArg(false), valueKind(ValueKind::Possible) {} ^ lib/valueflow.h: In member function 'void ValueFlow::Value::setKnown()': lib/valueflow.h:76:25: error: 'ValueKind' is not a class or namespace valueKind = ValueKind::Known; ^ ------------------------------------------------------/output----------------------------------------------------- more errors follow > > Also I don't understand "rules for rewriting makefiles are broken". Which > rules? > In cppcheck, or in ccache? Sorry, debian/rules were meant.