https://redmine.named-data.net/https://redmine.named-data.net/favicon.ico?14759811232014-09-11T06:16:46ZNDN project issue tracking systemNFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48262014-09-11T06:16:46ZJunxiao Shi
<ul></ul><p>There might be an inconsistency between TPM and PIB. Try:</p>
<pre><code>rm -rf $HOME/.ndn
</code></pre>
<p>Note: you'll lose all key pairs by executing this command.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48272014-09-11T06:24:35ZDavide Pesavento
<ul></ul><p>Junxiao Shi wrote:</p>
<blockquote>
<p>rm -rf $HOME/.ndn</p>
</blockquote>
<p>Still fails in the same way after running the above command.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48282014-09-11T06:30:13ZDavide Pesavento
<ul><li><strong>Priority</strong> changed from <i>Urgent</i> to <i>Low</i></li></ul><p>A <code>./waf distclean</code> fixed it. I suspect an issue with precompiled headers. Or waf is unable to understand the dependencies and figure out what needs to be recompiled.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48292014-09-11T06:35:44ZJunxiao Shi
<ul><li><strong>Category</strong> set to <i>Build</i></li></ul><p>Whenever the library is upgraded, <code>./waf clean</code> is needed in NFD and other projects that includes the library in pre-compiled header.</p>
<p>Is there a way to detect a change of installed library (not only ndn-cxx but also other libraries such as Boost), and recompile pre-compiled header?</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48302014-09-11T09:18:35ZDavide Pesavento
<ul></ul><p>I thought a mechanism to do that was already in place. If not, PCHs are horribly broken. Given the risk, I'm not sure if it makes sense to have PCHs enabled by default...</p>
<p>Anyway, feel free to close this bug. Sorry for the noise.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48312014-09-11T09:33:45ZJunxiao Shi
<ul><li><strong>Subject</strong> changed from <i>nfd segfaults on startup</i> to <i>PCH should detect ndn-cxx upgrade</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/4831/diff?detail_id=4713">diff</a>)</li><li><strong>Assignee</strong> set to <i>Alex Afanasyev</i></li><li><strong>Target version</strong> set to <i>v0.3</i></li></ul> NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48362014-09-11T12:53:29ZAlex Afanasyev
<ul></ul><p>This is not a pch problem and the problem doesn't actually exists with clang (clang detects if header files included in pch has been changed and aborts compilation, gcc ignores that).</p>
<p>But again. This is not pch problem at all. Even if there was no pch, waf (and I believe autoconf as well, but I could be wrong) wouldn't try to detect if any external dependency has changed. In waf it was consciously done in order to prevent huge overhead in maintaining state for every single external dependency file. While it is inconvenience (especially with gcc), I don't see it as any kind of bug.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=48392014-09-11T14:39:03ZJunxiao Shi
<ul></ul><p>I agree it's not PCH problem. Could we compare ndn-cxx/version.hpp, and recompile everything if it's changed?</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=58242014-11-06T08:29:54ZJunxiao Shi
<ul><li><strong>Subject</strong> changed from <i>PCH should detect ndn-cxx upgrade</i> to <i>Waf should detect ndn-cxx upgrade</i></li><li><strong>Description</strong> updated (<a title="View differences" href="/journals/5824/diff?detail_id=5573">diff</a>)</li><li><strong>Assignee</strong> deleted (<del><i>Alex Afanasyev</i></del>)</li></ul><p>I think it's easier to add a note to <code>docs/INSTALL.rst</code>, <strong>Build</strong> section:</p>
<blockquote>
<p>If you are working on a source repository that has been compiled before, and you have upgraded one of the dependencies, please execute <code>./waf distclean</code> to clear object files and start over.</p>
</blockquote>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=68262014-12-16T13:37:15ZAlex Afanasyev
<ul><li><strong>Status</strong> changed from <i>New</i> to <i>Code review</i></li><li><strong>Assignee</strong> set to <i>Alex Afanasyev</i></li><li><strong>% Done</strong> changed from <i>0</i> to <i>100</i></li></ul><p>Updated INSTALL.rst and not planning to do anything else for this task.</p>
NFD - Bug #1980: Waf should detect ndn-cxx upgradehttps://redmine.named-data.net/issues/1980?journal_id=68462014-12-17T14:03:40ZAlex Afanasyev
<ul><li><strong>Status</strong> changed from <i>Code review</i> to <i>Closed</i></li></ul>