[PATCH 2/4] covoar: Use DWARF to map addresses to source files and lines.

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Sat May 5 21:54:39 UTC 2018


On 6 May 2018 at 03:05, Chris Johns <chrisj at rtems.org> wrote:

>
> On 6 May 2018, at 7:04 am, Vijay Kumar Banerjee <vijaykumar9597 at gmail.com>
> wrote:
>
>
> On 6 May 2018 at 02:25, Cillian O'Donnell <cpodonnell8 at gmail.com> wrote:
>
>>
>>
>> On 5 May 2018 at 21:12, Chris Johns <chrisj at rtems.org> wrote:
>>
>>>
>>>
>>> > On 6 May 2018, at 2:44 am, Joel Sherrill <joel at rtems.org> wrote:
>>> >
>>> > Looks similar to Cillian's failure. Chris will have to show me where
>>> libdwarf comes from. It needs to be supplied with RTEMS tools for
>>> consistency.
>>>
>>> You need to apply the patches against master. I added libdwarf to master
>>> the other day.
>>>
>>
>> That is applied to current master. I can see that libdwarf patch in the
>> log but it still has that
>>
> same here.
>
>
> Thank you for the fast response.
>
> Do you think a host version is being picked up before the rtemtoolkit one?
>
> Could you please check covoar’s wscript has the libdwarf path added?
>
> the path to elftoolchain/libdwarf is not added in covoar

> Also check waf with -v.
>
 after adding the path it gives the following error with -v

--
Waf: Entering directory
`/home/lunatic/development/rtems/test/rtems-tools/build'
[227/229] Linking build/tester/covoar/trace-converter
03:22:35 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/lunatic/development/rtems/test/rtems-tools/build/tester/covoar/trace-converter',
'-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld',
'-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']
[229/229] Linking build/tester/covoar/covoar
03:22:35 runner ['/usr/bin/g++', 'tester/covoar/covoar.cc.3.o',
'-o/home/lunatic/development/rtems/test/rtems-tools/build/tester/covoar/covoar',
'-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld',
'-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']
tester/covoar/libccovoar.a(DesiredSymbols.cc.1.o): In function
`Coverage::DesiredSymbols::determineSourceLines(Coverage::CoverageRanges*,
Coverage::ExecutableInfo*)':
/home/lunatic/development/rtems/test/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413:
undefined reference to
`rld::path::__xpg_basename(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/home/lunatic/development/rtems/test/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415:
undefined reference to
`rld::path::__xpg_basename(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status

tester/covoar/libccovoar.a(DesiredSymbols.cc.1.o): In function
`Coverage::DesiredSymbols::determineSourceLines(Coverage::CoverageRanges*,
Coverage::ExecutableInfo*)':
/home/lunatic/development/rtems/test/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413:
undefined reference to
`rld::path::__xpg_basename(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
/home/lunatic/development/rtems/test/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415:
undefined reference to
`rld::path::__xpg_basename(std::__cxx11::basic_string<char,
std::char_traits<char>, std::allocator<char> > const&)'
collect2: error: ld returned 1 exit status

Waf: Leaving directory
`/home/lunatic/development/rtems/test/rtems-tools/build'
Build failed
 -> task in 'trace-converter' failed with exit status 1:
{task 140105518570544: 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}
['/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/lunatic/development/rtems/test/rtems-tools/build/tester/covoar/trace-converter',
'-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld',
'-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']
 -> task in 'covoar' failed with exit status 1:
{task 140105518570784: cxxprogram covoar.cc.3.o -> covoar}
['/usr/bin/g++', 'tester/covoar/covoar.cc.3.o',
'-o/home/lunatic/development/rtems/test/rtems-tools/build/tester/covoar/covoar',
'-Wl,-Bstatic', '-Ltester/covoar', '-Lrtemstoolkit', '-lccovoar', '-lrld',
'-ldwarf', '-lelf', '-liberty', '-Wl,-Bdynamic']



>
> Thanks
> Chris
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180506/bf8fcca2/attachment-0001.html>


More information about the devel mailing list