Home » PANDA » PandaRoot » Bugs, Fixes, Releases » [FIXED] Compilation Problem PndLmdDataFacade.cxx on SLC 5.10 (Boron)
[FIXED] Compilation Problem PndLmdDataFacade.cxx on SLC 5.10 (Boron) [message #16891] |
Tue, 01 July 2014 20:11 |
MartinJGaluska
Messages: 203 Registered: March 2010 Location: Germany
|
first-grade participant |
From: *physik.uni-giessen.de
|
|
Dear all,
I get a compilation error for the latest trunk on our local cluster using externals apr13.
Here is the relevant part, below you find more details.
/home/panda/pandaroot_jul14/trunk/lmd/LmdFit/LumiImpl/data/PndLmdDataFacade.cxx: In member function 'void PndLmdDataFacade::addFileList(std::string)':
/home/panda/pandaroot_jul14/trunk/lmd/LmdFit/LumiImpl/data/PndLmdDataFacade.cxx:58: error: no matching function for call to 'std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::string&)'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/fstream:442: note: candidates are: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/fstream:428: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/iosfwd:89: note: std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const std::basic_ifstream<char, std::char_traits<char> >&)
Toggle Spoiler
[ 94%] Building CXX object lmd/CMakeFiles/LmdFit.dir/LmdFit/LumiImpl/data/PndLmdDataFacade.cxx.o
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp: In constructor 'boost::property_tree::string_path<String, Translator>::string_path(typename String::value_type)':
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp:165: warning: declaration of 'separator' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp: In constructor 'boost::property_tree::string_path<String, Translator>::string_path(const String&, typename String::value_type, Translator)':
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp:172: warning: declaration of 'separator' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp: In constructor 'boost::property_tree::string_path<String, Translator>::string_path(const typename String::value_type*, typename String::value_type, Translator)':
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp:180: warning: declaration of 'separator' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/detail/index_m atcher.hpp: In member function 'void boost::multi_index::detail::index_matcher::algorithm_base<Allocator>::add_node_to_algorithm(void*) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/detail/index_m atcher.hpp:135: warning: declaration of 'n' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/detail/index_m atcher.hpp: In member function 'void boost::multi_index::detail::index_matcher::algorithm_base<Allocator>::finish_algorithm() const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/detail/index_m atcher.hpp:167: warning: declaration of 'n' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: In member function 'typename boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::nth_index_iterator<N>::type boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::project(IteratorType)':
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: 363: warning: declaration of 'index' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: In member function 'typename boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::nth_index_const_iterator<N>::type boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::project(IteratorType) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: 382: warning: declaration of 'index' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: In member function 'typename boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::index_iterator<Tag>::type boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::project(IteratorType)':
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: 417: warning: declaration of 'index' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: In member function 'typename boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::index_const_iterator<Tag>::type boost::multi_index::multi_index_container<Value, IndexSpecifierList, Allocator>::project(IteratorType) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index_container.hpp: 435: warning: declaration of 'index' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/sequenced_inde x.hpp: In member function 'bool boost::multi_index::detail::sequenced_index<SuperMeta, TagList>::modify(boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::sequenced_index_node <typename SuperMeta::type::node_type> >, Modifier, Rollback)':
/home/panda/fairsoft/apr13build/include/boost/multi_index/sequenced_inde x.hpp:351: warning: declaration of 'back' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp: In member function 'boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node <typename SuperMeta::type::node_type> > boost::multi_index::detail::ordered_index<KeyFromValue, Compare, SuperMeta, TagList, Category>::find(const CompatibleKey&, const CompatibleCompare&) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp:442: warning: declaration of 'comp' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp: In member function 'size_t boost::multi_index::detail::ordered_index<KeyFromValue, Compare, SuperMeta, TagList, Category>::count(const CompatibleKey&, const CompatibleCompare&) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp:454: warning: declaration of 'comp' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp: In member function 'boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node <typename SuperMeta::type::node_type> > boost::multi_index::detail::ordered_index<KeyFromValue, Compare, SuperMeta, TagList, Category>::lower_bound(const CompatibleKey&, const CompatibleCompare&) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp:470: warning: declaration of 'comp' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp: In member function 'boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node <typename SuperMeta::type::node_type> > boost::multi_index::detail::ordered_index<KeyFromValue, Compare, SuperMeta, TagList, Category>::upper_bound(const CompatibleKey&, const CompatibleCompare&) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp:485: warning: declaration of 'comp' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp: In member function 'std::pair<boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node <typename SuperMeta::type::node_type> >, boost::multi_index::detail::bidir_node_iterator<boost::multi_index::detail::ordered_index_node <typename SuperMeta::type::node_type> > > boost::multi_index::detail::ordered_index<KeyFromValue, Compare, SuperMeta, TagList, Category>::equal_range(const CompatibleKey&, const CompatibleCompare&) const':
/home/panda/fairsoft/apr13build/include/boost/multi_index/ordered_index. hpp:503: warning: declaration of 'comp' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/property_tree/ini_parser.h pp: In constructor 'boost::property_tree::ini_parser::ini_parser_error::ini_parser_error(co nst std::string&, const std::string&, long unsigned int)':
/home/panda/fairsoft/apr13build/include/boost/property_tree/ini_parser.h pp:51: warning: declaration of 'line' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/property_tree/ini_parser.h pp:51: warning: declaration of 'filename' shadows a member of 'this'
/home/panda/fairsoft/apr13build/include/boost/property_tree/ini_parser.h pp:51: warning: declaration of 'message' shadows a member of 'this'
/home/panda/pandaroot_jul14/trunk/lmd/LmdFit/LumiImpl/data/PndLmdDataFac ade.cxx: In member function 'void PndLmdDataFacade::addFileList(std::string)':
/home/panda/pandaroot_jul14/trunk/lmd/LmdFit/LumiImpl/data/PndLmdDataFac ade.cxx:58: error: no matching function for call to 'std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(std::string&)'
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/fst ream:442: note: candidates are: std::basic_ifstream<_CharT, _Traits>::basic_ifstream(const char*, std::_Ios_Openmode) [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/fst ream:428: note: std::basic_ifstream<_CharT, _Traits>::basic_ifstream() [with _CharT = char, _Traits = std::char_traits<char>]
/usr/lib/gcc/x86_64-redhat-linux/4.1.2/../../../../include/c++/4.1.2/ios fwd:89: note: std::basic_ifstream<char, std::char_traits<char> >::basic_ifstream(const std::basic_ifstream<char, std::char_traits<char> >&)
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp: In constructor 'boost::property_tree::string_path<String, Translator>::string_path(const typename String::value_type*, typename String::value_type, Translator) [with String = std::basic_string<char, std::char_traits<char>, std::allocator<char> >, Translator = boost::property_tree::id_translator<std::basic_string<char, std::char_traits<char>, std::allocator<char> > >]':
/home/panda/pandaroot_jul14/trunk/lmd/LmdFit/LumiImpl/data/PndLmdDataFac ade.cxx:310: instantiated from here
/home/panda/fairsoft/apr13build/include/boost/property_tree/string_path. hpp:180: warning: declaration of 'separator' shadows a member of 'this'
make[2]: *** [lmd/CMakeFiles/LmdFit.dir/LmdFit/LumiImpl/data/PndLmdDataFacade.cxx.o] Error 1
make[1]: *** [lmd/CMakeFiles/LmdFit.dir/all] Error 2
make: *** [all] Error 2
I assume the reason is an old version of gcc. Is there any work-around? Can I safely comment out some part of PandaRoot to get the latest trunk to compile and run some simulations on our cluster?
Or do I have to update gcc (or possibly the whole system)? (This is probably not even possible as the machines are also used for other purposes...)
Here some more info about the operating system:
$ uname -srv
Linux 2.6.18-371.4.1.el5 #1 SMP Thu Jan 30 13:11:18 CET 2014
$ cat /etc/*-release*
Scientific Linux CERN SLC release 5.10 (Boron)
Kind regards,
Martin
[Updated on: Wed, 02 July 2014 22:29] by Moderator Report message to a moderator
|
|
|
Goto Forum:
Current Time: Mon Nov 11 07:15:17 CET 2024
Total time taken to generate the page: 0.00861 seconds
|