<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 7, 2018 at 6:01 AM, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">I have added the path to libdwarf here </div></blockquote><div><br></div><div>That worked for me to build but not to link.</div><div><br></div><div>I'm not sure why this rld symbol turned up missing on Centos 7.</div><div><br></div><div>====================================================</div><div><br></div><div><div>$ ./waf -v</div><div>Waf: Entering directory `/home/joel/rtems-work/rtems-tools/build'</div><div>[228/229] Linking build/tester/covoar/trace-converter</div><div>09:38:25 runner ['/usr/bin/g++', 'tester/covoar/TraceConverter.cc.2.o', 'tester/covoar/TraceList.cc.2.o', 'tester/covoar/TraceReaderBase.cc.2.o', 'tester/covoar/TraceReaderLogQEMU.cc.2.o', 'tester/covoar/TraceWriterBase.cc.2.o', 'tester/covoar/TraceWriterQEMU.cc.2.o', '-o/home/joel/rtems-work/rtems-tools/build/tester/covoar/trace-converter', '-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld', '-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']</div><div>[229/229] Linking build/tester/covoar/covoar</div><div>09:38:25 runner ['/usr/bin/g++', 'tester/covoar/covoar.cc.3.o', '-o/home/joel/rtems-work/rtems-tools/build/tester/covoar/covoar', '-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld', '-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']</div><div>tester/covoar/libccovoar.a(DesiredSymbols.cc.1.o): In function `Coverage::DesiredSymbols::determineSourceLines(Coverage::CoverageRanges*, Coverage::ExecutableInfo*)':</div><div>/home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413: undefined reference to `rld::path::__xpg_basename(std::string const&)'</div><div>/home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415: undefined reference to `rld::path::__xpg_basename(std::string const&)'</div><div>collect2: error: ld returned 1 exit status</div><div><br></div><div>tester/covoar/libccovoar.a(DesiredSymbols.cc.1.o): In function `Coverage::DesiredSymbols::determineSourceLines(Coverage::CoverageRanges*, Coverage::ExecutableInfo*)':</div><div>/home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413: undefined reference to `rld::path::__xpg_basename(std::string const&)'</div><div>/home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415: undefined reference to `rld::path::__xpg_basename(std::string const&)'</div><div>collect2: error: ld returned 1 exit status</div><div><br></div><div>Waf: Leaving directory `/home/joel/rtems-work/rtems-tools/build'</div><div>Build failed</div><div> -> task in 'trace-converter' failed with exit status 1: </div><div>        {task 34721616: cxxprogram TraceConverter.cc.2.o,TraceList.cc.2.o,TraceReaderBase.cc.2.o,TraceReaderLogQEMU.cc.2.o,TraceWriterBase.cc.2.o,TraceWriterQEMU.cc.2.o -> trace-converter}</div><div>['/usr/bin/g++', 'tester/covoar/TraceConverter.cc.2.o', 'tester/covoar/TraceList.cc.2.o', 'tester/covoar/TraceReaderBase.cc.2.o', 'tester/covoar/TraceReaderLogQEMU.cc.2.o', 'tester/covoar/TraceWriterBase.cc.2.o', 'tester/covoar/TraceWriterQEMU.cc.2.o', '-o/home/joel/rtems-work/rtems-tools/build/tester/covoar/trace-converter', '-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld', '-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']</div><div> -> task in 'covoar' failed with exit status 1: </div><div>        {task 34820256: cxxprogram covoar.cc.3.o -> covoar}</div><div>['/usr/bin/g++', 'tester/covoar/covoar.cc.3.o', '-o/home/joel/rtems-work/rtems-tools/build/tester/covoar/covoar', '-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld', '-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']</div></div><div>====================================================</div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><br></div><div>---</div><div><pre style="color:rgb(0,0,0);font-style:normal;font-variant-ligatures:normal;font-variant-caps:normal;font-weight:400;letter-spacing:normal;text-align:start;text-indent:0px;text-transform:none;word-spacing:0px;text-decoration-style:initial;text-decoration-color:initial;word-wrap:break-word;white-space:pre-wrap">diff --git a/tester/covoar/wscript b/tester/covoar/wscript
index 55d5ec9..dd4ad83 100644
--- a/tester/covoar/wscript
+++ b/tester/covoar/wscript
@@ -63,6 +63,7 @@ def build(bld):
     rtl_includes = [rtemstoolkit,
                    rtemstoolkit + '/elftoolchain/libelf',
                    rtemstoolkit + '/elftoolchain/common',
+                   rtemstoolkit + '/elftoolchain/libdwarf',
                    rtemstoolkit + '/libiberty']
     if bld.env.DEST_OS == 'win32':
         rtl_includes += [rtemstoolkit + '/win32']</pre><span class="gmail-HOEnZb"><font color="#888888"><br></font></span></div></div><div class="gmail_extra"><span class="gmail-HOEnZb"><font color="#888888"><br clear="all"><div><div class="gmail-m_9093139070613751218gmail_signature"><div dir="ltr"><div><div dir="ltr">-- vijay</div></div></div></div></div></font></span><div><div class="gmail-h5">
<br><div class="gmail_quote">On 7 May 2018 at 13:30, Vijay Kumar Banerjee <span dir="ltr"><<a href="mailto:vijaykumar9597@gmail.com" target="_blank">vijaykumar9597@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><div class="gmail_quote"><span>On 6 May 2018 at 13:29, Chris Johns <span dir="ltr"><<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On 6/5/18 5:28 pm, Vijay Kumar Banerjee wrote:<span><br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
On 6 May 2018 at 08:54, Chris Johns <<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a> <mailto:<a href="mailto:chrisj@rtems.org" target="_blank">chrisj@rtems.org</a>>> wrote:<br>
<br>
        Would you please try `waf clean build` to see if rebuilding<br>
        everything fixes this?<br>
<br>
still getting the same error .<br>
I'm using g++ 7.3.1 on fedora 27.<br>
</blockquote>
<br></span>
OK<span><br>
<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
If you have changed something in the code, can you please send a patch for the same ?<br>
</blockquote>
<br></span>
I have not changed anything. I do not have a Linux box to try.<span class="gmail-m_9093139070613751218m_3581814237704045480HOEnZb"><font color="#888888"><br>
<br></font></span></blockquote></span><div>I tried to do it afresh as well, it's still failing to build.</div><div>Can someone please try to build it in a linux system ? </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-m_9093139070613751218m_3581814237704045480HOEnZb"><font color="#888888">
Chris<br>
</font></span></blockquote></div><br></div></div>
</blockquote></div><br></div></div></div>
<br>______________________________<wbr>_________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/<wbr>mailman/listinfo/devel</a><br></blockquote></div><br></div></div>