[Pkg-octave-devel] Bug#672029: dynare: FTBFS: ModelTree.cc:805:43: error: redeclaration of 'std::vector<int>::const_iterator it'

Lucas Nussbaum lucas at lucas-nussbaum.net
Tue May 8 11:51:07 UTC 2012


Source: dynare
Version: 4.2.5-1
Severity: serious
Tags: wheezy sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20120508 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part:
> g++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-Shocks.o `test -f 'Shocks.cc' || echo './'`Shocks.cc
> 
> (/usr/share/texmf/tex/latex/beamer/base/themes/color/beamercolorthemedefault.st
> y)
> (/usr/share/texmf/tex/latex/beamer/base/themes/inner/beamerinnerthemedefault.st
> y)
> (/usr/share/texmf/tex/latex/beamer/base/themes/outer/beamerouterthemedefault.st
> y))) (/usr/share/texmf/tex/latex/beamer/base/themes/theme/beamerthemeMadrid.sty
> (/usr/share/texmf/tex/latex/beamer/base/themes/color/beamercolorthemewhale.sty)
> 
> (/usr/share/texmf/tex/latex/beamer/base/themes/color/beamercolorthemeorchid.sty
> )
> (/usr/share/texmf/tex/latex/beamer/base/themes/inner/beamerinnerthemerounded.st
> y)
> (/usr/share/texmf/tex/latex/beamer/base/themes/outer/beamerouterthemeinfolines.
> sty)) (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.sty
> (/usr/share/texlive/texmf-dist/tex/generic/babel/english.ldf
> (/usr/share/texlive/texmf-dist/tex/generic/babel/babel.def)))
> (/usr/share/texlive/texmf-dist/tex/latex/base/inputenc.sty
> (/usr/share/texlive/texmf-dist/tex/latex/base/utf8.def
> StaticModel.cc: In member function 'void StaticModel::writeModelEquationsOrdered_M(const string&) const':
> StaticModel.cc:218:7: warning: variable 'nze' set but not used [-Wunused-but-set-variable]
> (/usr/share/texlive/texmf-dist/tex/latex/base/t1enc.dfu)
> (/usr/share/texlive/texmf-dist/tex/latex/base/ot1enc.dfu)
> (/usr/share/texlive/texmf-dist/tex/latex/base/omsenc.dfu)))
> (/usr/share/texlive/texmf-dist/tex/latex/psnfss/times.sty) (./preprocessor.aux)
> (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1phv.fd)
> *geometry* driver: auto-detecting
> *geometry* detected driver: pdftex
> (/usr/share/texlive/texmf-dist/tex/context/base/supp-pdf.mkii
> [Loading MPS to PDF converter (version 2006.09.02).]
> ) (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/epstopdf-base.sty
> (/usr/share/texlive/texmf-dist/tex/latex/oberdiek/grfext.sty)
> (/usr/share/texlive/texmf-dist/tex/latex/latexconfig/epstopdf-sys.cfg))
> ABD: EveryShipout initializing macros
> (/usr/share/texlive/texmf-dist/tex/latex/hyperref/nameref.sty
> (/usr/share/texlive/texmf-dist/tex/generic/oberdiek/gettitlestring.sty))
> (./preprocessor.out) (./preprocessor.out)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-basic-dicti
> onary/translator-basic-dictionary-English.dict)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-bibliograph
> y-dictionary/translator-bibliography-dictionary-English.dict)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-environment
> -dictionary/translator-environment-dictionary-English.dict)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-months-dict
> ionary/translator-months-dictionary-English.dict)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-numbers-dic
> tionary/translator-numbers-dictionary-English.dict)
> (/usr/share/texmf/tex/latex/beamer/base/translator/dicts/translator-theorem-dic
> tionary/translator-theorem-dictionary-English.dict) (./preprocessor.nav)
> [1{/var/lib/texmf/fonts/map/pdftex/updmap/pdftex.map}]
> <overview.png, id=78, 850.23529pt x 520.0606pt> <use overview.png> [2 <./overvi
> ew.png>] (./preprocessor.toc
> (/usr/share/texlive/texmf-dist/tex/latex/psnfss/ot1pcr.fd)) [3]
> (./preprocessor.toc) [4] [5]Converting image #7
> StaticModel.cc: In member function 'void StaticModel::writeStaticFile(const string&, bool, bool) const':
> StaticModel.cc:1275:30: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
> StaticModel.cc:1277:18: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
>  [6] [7] [8] [9] (./preprocessor.vrb) [10]
> (./preprocessor.vrb)
> Overfull \vbox (1.84177pt too high) detected at line 145
> [11] (./preprocessor.vrb
> (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsa.fd)
> (/usr/share/texlive/texmf-dist/tex/latex/amsfonts/umsb.fd)) [12]
> (./preprocessor.vrb) [13] (./preprocessor.vrbg++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-SigmaeInitialization.o `test -f 'SigmaeInitialization.cc' || echo './'`SigmaeInitialization.cc
> ) [14] (./preprocessor.vrb)
> DynamicModel.cc: In member function 'void DynamicModel::writeSparseDynamicMFile(const string&, const string&) const':
> DynamicModel.cc:1709:26: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
> DynamicModel.cc:2036:14: warning: ignoring return value of 'int chdir(const char*)', declared with attribute warn_unused_result [-Wunused-result]
> [15] [16] [17] (./preprocessor.vrb
> Overfull \hbox (2.08359pt too wide) in paragraph at lines 30--30
> []\OT1/pcr/m/n/8 class PositDefMatrix : public Matrix[] 
> ) [18]Converting image #54
>  [19] (./preprocessor.vrb)g++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-SymbolTable.o `test -f 'SymbolTable.cc' || echo './'`SymbolTable.cc
>  [20]
> <matrices.png, id=617, 599.41588pt x 359.93294pt> <use matrices.png> [21 <./mat
> rices.png>] [22] (./preprocessor.vrb
> Overfull \hbox (2.08359pt too wide) in paragraph at lines 32--32
> []\OT1/pcr/m/n/8 class PositDefMatrix : public Matrix[] 
> ) [23] (./preprocessor.vrb) [24] [25] [26] [27] (./preprocessor.tocg++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-SymbolList.o `test -f 'SymbolList.cc' || echo './'`SymbolList.cc
> ) [28]
> [29] [30] (./preprocessor.vrb) [31] (./preprocessor.vrb)Converting image #48
> ModelTree.cc: In member function 'equation_type_and_normalized_equation_t ModelTree::equationTypeDetermination(const std::map<std::pair<int, std::pair<int, int> >, ExprNode*>&, const std::vector<int>&, const std::vector<int>&, int) const':
> ModelTree.cc:421:15: warning: variable 'rhs' set but not used [-Wunused-but-set-variable]
>  [32] [33] [34]
> ModelTree.cc: In member function 'block_type_firstequation_size_mfs_t ModelTree::reduceBlocksAndTypeDetermination(const dynamic_jacob_map_t&, std::vector<std::pair<int, int> >&, const equation_type_and_normalized_equation_t&, const std::vector<int>&, const std::vector<int>&, std::vector<unsigned int>&, std::vector<unsigned int>&, std::vector<unsigned int>&, std::vector<unsigned int>&, std::vector<std::pair<std::pair<int, int>, std::pair<int, int> > >&)':
> ModelTree.cc:805:43: error: redeclaration of 'std::vector<int>::const_iterator it'
> ModelTree.cc:801:53: error: 'std::set<std::pair<int, int> >::const_iterator it' previously declared here
> (./preprocessor.vrb) [35] [36] (./preprocessor.tocg++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-ParsingDriver.o `test -f 'ParsingDriver.cc' || echo './'`ParsingDriver.cc
> ) [37] [38] [39] [40]
> [41] <expr.png, id=1184, 335.84294pt x 340.09412pt> <use expr.png> [42 <./expr.
> png>] [43] [44] [45]Converting image #6
>  [46]
> <expr-sharing.png, id=1320, 787.8847pt x 566.82353pt> <use expr-sharing.png>
> [47 <./expr-sharing.png>] [48] [49] [50] [51] (./preprocessor.toc) [52]
> [53] [54] (./preprocessor.toc) [55] [56]g++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-DataTree.o `test -f 'DataTree.cc' || echo './'`DataTree.cc
>  [57]g++ -DPACKAGE_NAME=\"dynare\" -DPACKAGE_TARNAME=\"dynare\" -DPACKAGE_VERSION=\"4.2.5\" -DPACKAGE_STRING=\"dynare\ 4.2.5\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"dynare\" -DVERSION=\"4.2.5\" -DHAVE_BOOST=/\*\*/ -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1 -DHAVE_STDLIB_H=1 -DHAVE_STRING_H=1 -DHAVE_MEMORY_H=1 -DHAVE_STRINGS_H=1 -DHAVE_INTTYPES_H=1 -DHAVE_STDINT_H=1 -DHAVE_UNISTD_H=1 -DHAVE_BOOST_GRAPH_ADJACENCY_LIST_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_TRIM_HPP=1 -DHAVE_BOOST_ALGORITHM_STRING_SPLIT_HPP=1 -DHAVE_BOOST_LEXICAL_CAST_HPP=1 -DBOOST_NO_HASH=/\*\*/ -DHAVE_BLAS=1 -DHAVE_LAPACK=1 -DHAVE_PTHREAD=1 -I.  -I/usr/include -I. -D_FORTIFY_SOURCE=2  -g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security -Wall -Wno-parentheses -c -o dynare_m-ModFile.o `test -f 'ModFile.cc' || echo './'`ModFile.cc
>  [58]Converting image #19
>  [59] [60] [61] [62]
> make[5]: *** [dynare_m-ModelTree.o] Error 1

The full build log is available from:
   http://people.debian.org/~lucas/logs/2012/05/08/dynare_4.2.5-1_unstable.log

A list of current common problems and possible solutions is available at 
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on about 50 AMD64 nodes
of the Grid'5000 platform, using a clean chroot.  Internet was not
accessible from the build systems.





More information about the Pkg-octave-devel mailing list