From: Adrian M. W. <am...@in...> - 2010-11-17 17:27:08
|
Using gccxml newly exported from its CVS repository enables me to get further. PCSIM build is now progressing... On 17/11/10 17:26, Adrian M. Whatley wrote: > I've just had cause to build PCSIM on OpenSuse 11.2 once again. Although > this used to work, I now get the errors quoted below, the key line being > "error: '__builtin_fpclassify' was not declared in this scope". > > This looks like this bug here: http://www.vtk.org/Bug/view.php?id=10141 > so I'm hoping that using the latest gccxml will fix it. > > I'll let you know what happens! > > Adrian > > >> ******************************************* >> * GENERATING PY++ WRAPPER CPP FILES * >> ******************************************* >>>>>> cd /usr/src/packages/BUILD/pcsim-0.5.4/_build >>>>>> /usr/bin/gmake -j 2 generate_code >> gmake[1]: Entering directory `/usr/src/packages/BUILD/pcsim-0.5.4/_build' >> gmake[2]: Entering directory `/usr/src/packages/BUILD/pcsim-0.5.4/_build' >> gmake[3]: Entering directory `/usr/src/packages/BUILD/pcsim-0.5.4/_build' >> gmake[4]: Entering directory `/usr/src/packages/BUILD/pcsim-0.5.4/_build' >> Generating ../../python/pypcsim.h >> Generating ../../python/pypcsim/pypcsim.indicator.cpp >> /usr/lib/python2.6/site-packages/pygccxml/parser/declarations_cache.py:8: DeprecationWarning: the md5 module is deprecated; use hashlib instead >> import md5 >> >> INFO Parsing source file "pypcsim.h" ... >> >> INFO gccxml cmd: /usr/local/bin/gccxml --gccxml-cxxflags -pthread -fpermissive -I"." -I"/usr/src/packages/BUILD/pcsim-0.5.4/pcsim/simutils" -I"/usr/src/packages/BUILD/pcsim-0.5.4/pcsim/simcore" -I"/usr/src/packages/BUILD/pcsim-0.5.4/pcsim/construction" -I"/usr/src/packages/BUILD/pcsim-0.5.4/pcsim/neuroml" -I"/usr/src/packages/BUILD/pcsim-0.5.4/pcsim/simobjects" -I"/usr/src/packages/BUILD/pcsim-0.5.4/libxsd" -D"MPICH_IGNORE_CXX_SEEK" -D"BOOST_HAS_THREADS" -D"BOOST_PYTHON_MAX_ARITY=30" "pypcsim.h" -fxml="/tmp/tmprVfQbS.xml" >> /usr/lib/python2.6/site-packages/pygccxml/parser/source_reader.py:152: DeprecationWarning: os.popen4 is deprecated. Use the subprocess module. >> input_, output = os.popen4( command_line ) >> Traceback (most recent call last): >> File "/usr/src/packages/BUILD/pcsim-0.5.4/scripts/generate_boost_python_wrapper_code.py", line 143, in <module> >> encoding = 'utf-8' >> File "/usr/lib/python2.6/site-packages/pyplusplus/module_builder/builder.py", line 90, in __init__ >> , indexing_suite_version) >> File "/usr/lib/python2.6/site-packages/pyplusplus/module_builder/builder.py", line 144, in __parse_declarations >> decls = reader.read_files( files, compilation_mode ) >> File "/usr/lib/python2.6/site-packages/pygccxml/parser/project_reader.py", line 225, in read_files >> return self.__parse_file_by_file(files) >> File "/usr/lib/python2.6/site-packages/pygccxml/parser/project_reader.py", line 250, in __parse_file_by_file >> decls = reader.read_file( header ) >> File "/usr/lib/python2.6/site-packages/pygccxml/parser/source_reader.py", line 198, in read_file >> return self.read_gccxml_file( source_file ) >> File "/usr/lib/python2.6/site-packages/pygccxml/parser/source_reader.py", line 225, in read_gccxml_file >> raise error >> pygccxml.parser.source_reader.gccxml_runtime_error_t: Error occured while running GCC-XML: In file included from pypcsim.h:165: >> /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = float]': >> /usr/include/boost/functional/hash/detail/hash_float.hpp:172: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = float]' >> /usr/include/boost/functional/hash/hash.hpp:304: instantiated from here >> /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope >> /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = double]': >> /usr/include/boost/functional/hash/detail/hash_float.hpp:172: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = double]' >> /usr/include/boost/functional/hash/hash.hpp:309: instantiated from here >> /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope >> /usr/include/c++/4.4/cmath: In function 'typename __gnu_cxx::__enable_if<std::__is_arithmetic<_Tp>::__value, int>::__type std::fpclassify(_Tp) [with _Tp = long double]': >> /usr/include/boost/functional/hash/detail/hash_float.hpp:172: instantiated from 'size_t boost::hash_detail::float_hash_value(T) [with T = long double]' >> /usr/include/boost/functional/hash/hash.hpp:314: instantiated from here >> /usr/include/c++/4.4/cmath:501: error: '__builtin_fpclassify' was not declared in this scope >> > -- Adrian M. Whatley Institute of Neuroinformatics, University of Zurich and ETH Zurich Winterthurerstrasse 190, CH-8057 Zurich, Switzerland. Phone: +41 44 635 3067 Fax: +41 44 635 3053 Email: am...@in... WWW: http://www.ini.uzh.ch/~amw/ |