[Quickfix-developers] Linux, g++ 3.3.4: Internal Compiler Errors
Brought to you by:
orenmnero
From: James W. <wi...@wi...> - 2004-10-16 13:05:44
|
Folks, When compiling QuickFIX 1.8.0 and when compiling my applications that use it, I'm repeatedly encountering internal compiler errors. I frequently see messages like: free(): invalid pointer 0x8dcb250! free(): invalid pointer 0x8dc9610! during the compiles, and often such as the following, from my own application: ----- begin text ----- /opt/MarketCASTDev/support/include/quickfix/SessionSettings.h: In function ` void __static_initialization_and_destruction_0(int, int)': /opt/MarketCASTDev/support/include/quickfix/SessionSettings.h:62: internal compiler error: in verify_local_live_at_start, at flow.c:601 Please submit a full bug report, with preprocessed source if appropriate. See <URL:http://gcc.gnu.org/bugs.html> for instructions. For Debian GNU/Linux specific bug reporting instructions, see <URL:file:///usr/share/doc/gcc-3.3/README.Bugs>. ----- end text ----- Here is an example from an attempted compile of QF 1.9.2: ----- begin text ----- g++ -DHAVE_CONFIG_H -I. -I. -I../../.. -I.. -g -O2 -I/usr/include/stlport -I/opt/RAIDD/db/mysql/include/mysql -I/usr/include/libxml2 -I/include -I/include/linux -O0 -g -MT MessagesTestCase.lo -MD -MP -MF .deps/MessagesTestCase.Tpo -c MessagesTestCase.cpp -fPIC -DPIC -o .libs/MessagesTestCase.o In file included from ../Message.h:33, from MessagesTestCase.h:26, from MessagesTestCase.cpp:27: /usr/include/stlport/stl/_tree.h: In member function `typename _Traits::reference _STL::_Rb_tree_iterator<_Value, _Traits>::operator*() const [with _Value = _STL::pair<const _STL::string, _STL::set<int, _STL::less<int>, _STL::allocator<int> > >, _Traits = _STL::_Const_traits<_STL::pair<const _STL::string, _STL::set<int, _STL::less<int>, _STL::allocator<int> > > >]': Internal compiler error: Error reporting routines re-entered. Please submit a full bug report, with preprocessed source if appropriate. For Debian GNU/Linux specific bug reporting instructions, see <URL:http://gcc.gnu.org/bugs.html>. ----- end text ----- Has anyone else seen this behavior? I'm running Debian testing (i.e. Sarge) fully up to date; g++ is at pkg version 3.3.4-13. The errors seem to be very random. Sometimes, if I execute make several times, everything will eventually compile to a working application, but who knows if it's *really* a working application? I mainly see this in my own applications, but have also seen it, more sporadically, when compiling QuickFIX itself. Perhaps the fact that I'm linking in and making use of some C libraries, specifically xml2 v 2.6.11 and glib v 2.4.4, that is making the problem worse, but I don't see any reason why I shouldn't be able to use these libs in a C++ app. I'm trying to figure out if I've got a corrupted install of the compiler that's causing this, or maybe bad RAM, or something else. If my experience isn't unique, I'd feel a little better (I think)... thanks, Jim |