I finished compiling and now when I run it I get the following crash:<div><br></div><div><div>#0 0x0247864f in QMutex::lock ()</div><div>#1 0x02cb10e6 in QMutexLocker::relock (this=0xbfffdde8) at qmutex.h:116</div><div>#2 0x02cb1155 in QMutexLocker::QMutexLocker (this=0xbfffdde8, m=0x10) at qmutex.h:98</div>
<div>#3 0x02d7fd5c in KDevelop::RepositoryManager<KDevelop::ItemRepository<Repositories::StringData, Repositories::StringRepositoryItemRequest, KDevelop::ReferenceCounting, true, 0u, 524288u>, true, true>::createRepository (this=0x2e9df64) at repositories/itemrepository.h:189</div>
<div>#4 0x02d7fe6f in KDevelop::RepositoryManager<KDevelop::ItemRepository<Repositories::StringData, Repositories::StringRepositoryItemRequest, KDevelop::ReferenceCounting, true, 0u, 524288u>, true, true>::operator-> (this=0x2e9df64) at repositories/itemrepository.h:180</div>
<div>#5 0x02d7f3be in KDevelop::IndexedString::IndexedString (this=0xbfffdea4, string=@0xbfffdea8) at /Users/ccpasteur/dev/kdevplatform/language/duchain/indexedstring.cpp:68</div><div>#6 0x02d49e20 in KDevelop::Identifier::Identifier (this=0x2e9de34, id=@0xbfffdefc, start=0, takenRange=0x0) at /Users/ccpasteur/dev/kdevplatform/language/duchain/identifier.cpp:299</div>
<div>#7 0x02e04559 in __static_initialization_and_destruction_0 ()</div><div>#8 0x02e045d4 in global constructors keyed to _ZN8KDevelop20DUContextDynamicData24m_localDeclarationsMutexE ()</div><div>#9 0x8fe12f36 in __dyld__ZN16ImageLoaderMachO18doModInitFunctionsERKN11ImageLoader11LinkContextE ()</div>
<div>#10 0x8fe0e7e3 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div><div>#11 0x8fe0e775 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div><div>#12 0x8fe0e775 in __dyld__ZN11ImageLoader23recursiveInitializationERKNS_11LinkContextEj ()</div>
<div>#13 0x8fe0e8c9 in __dyld__ZN11ImageLoader15runInitializersERKNS_11LinkContextE ()</div><div>#14 0x8fe04102 in __dyld__ZN4dyld24initializeMainExecutableEv ()</div><div>#15 0x8fe07bcf in __dyld__ZN4dyld5_mainEPK11mach_headermiPPKcS5_S5_ ()</div>
<div>#16 0x8fe01872 in __dyld__ZN13dyldbootstrap5startEPK11mach_headeriPPKcl ()</div><div>#17 0x8fe01037 in __dyld__dyld_start ()</div><div><br></div><div>With the 'Bus error' mesage printed.</div><div><br></div><div>
Any idea where does this come from?</div><br><div class="gmail_quote">2008/12/23 Cédric PASTEUR <span dir="ltr"><<a href="mailto:cedric.pasteur.2006@polytechnique.org">cedric.pasteur.2006@polytechnique.org</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi,<div>I'm trying to compile KDevelop on Mac OS X. </div><div>I have a problem with DUChain and it's use of dense_hash_map with Key == Qt::HANDLE, which corresponds to a void* on Mac OS X (and an unsigned int on Linux).</div>
<div>But there is no hash<void*> in STL hash_fun.h </div><div><br></div><div>The fix I found was to add a template specialization;</div><div><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco;color:#aa0d91">
<span style="color:#000000"><span style="white-space:pre"> </span></span>template<span style="color:#000000"><></span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"> <span style="color:#aa0d91">struct</span> hash<<span style="color:#aa0d91">void</span>*></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"> {</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"><span style="white-space:pre"> </span>size_t</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco;color:#aa0d91"><span style="color:#000000"><span style="white-space:pre"> </span></span>operator<span style="color:#000000">()(</span>void<span style="color:#000000">* __x) </span>const</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco;color:#aa0d91"><span style="color:#000000"><span style="white-space:pre"> </span>{ </span>return<span style="color:#000000"> (</span>unsigned<span style="color:#000000"> </span>long<span style="color:#000000">)__x; }</span></p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"> };</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"><br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco">in hash_fun.h</p>
<p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco"><br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco">Is it the right way to fix this?</p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco">
<br></p><p style="margin:0.0px 0.0px 0.0px 0.0px;font:10.0px Monaco">Best regards</p></div>
</blockquote></div><br></div>