Config cassandra client: Fix compile error in optimization build
Compile Error while making production build
In file included from /usr/include/c++/4.8/algorithm:62:0,
from /usr/include/boost/smart_ptr/shared_ptr.hpp:42,
from /usr/include/boost/shared_ptr.hpp:17,
from build/include/sandesh/sandesh_types.h:13,
from controller/src/ifmap/ifmap_server_show.cc:5:
/usr/include/c++/4.8/bits/stl_algo.h: In function ‘void std::inplace_merge(_BIter, _BIter, _BIter, _Compare) [with _BIter = __gnu_cxx::__normal_iterator<ConfigDBUUIDCacheEntry*, std::vector<ConfigDBUUIDCacheEntry> >; _Compare = boost::_bi::bind_t<bool, bool (*)(const ConfigDBUUIDCacheEntry&, const ConfigDBUUIDCacheEntry&), boost::_bi::list2<boost::arg<1>, boost::arg<2> > >]’:
/usr/include/c++/4.8/bits/stl_algo.h:3242:5: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
}
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-4.8/README.Bugs> for instructions.
Fix:
Remove the boost bind and pass function pointer to Sort method.
Reviewed: https:/ /review. opencontrail. org/30618 github. com/Juniper/ contrail- controller/ commit/ 15abf924b5a5437 372163967368254 3837b355cd
Committed: http://
Submitter: Zuul (<email address hidden>)
Branch: master
commit 15abf924b5a5437 372163967368254 3837b355cd
Author: Prakash Bailkeri <email address hidden>
Date: Thu Apr 20 11:48:45 2017 +0530
Config cassandra client: Fix compile error in optimization build
Compile Error while making production build
In file included from /usr/include/ c++/4.8/ algorithm: 62:0, boost/smart_ ptr/shared_ ptr.hpp: 42, boost/shared_ ptr.hpp: 17, sandesh/ sandesh_ types.h: 13, src/ifmap/ ifmap_server_ show.cc: 5: c++/4.8/ bits/stl_ algo.h: In function ‘void std::inplace_ merge(_ BIter, _BIter, _BIter, _Compare) [with _BIter = __gnu_cxx: :__normal_ iterator< ConfigDBUUIDCac heEntry* , std::vector< ConfigDBUUIDCac heEntry> >; _Compare = boost:: _bi::bind_ t<bool, bool (*)(const ConfigDBUUIDCac heEntry& , const ConfigDBUUIDCac heEntry& ), boost:: _bi::list2< boost:: arg<1>, boost::arg<2> > >]’: c++/4.8/ bits/stl_ algo.h: 3242:5: internal compiler error: Max. number of generated reload insns per insn is achieved (90)
from /usr/include/
from /usr/include/
from build/include/
from controller/
/usr/include/
/usr/include/
} //usr/share/ doc/gcc- 4.8/README. Bugs> for instructions.
^
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:/
Fix:
Remove the boost bind and pass function pointer to Sort method.
Change-Id: Ia513b3fc85ccea 189880b82d78b5a 155a29416ca
Related-bug: #1632470