Fwd: [PATCH 2/4] covoar: Use DWARF to map addresses to source files and lines.
Cillian O'Donnell
cpodonnell8 at gmail.com
Mon May 7 17:27:58 UTC 2018
Yeah I'm seeing the same as Joel, at least were further then we were :).
I've been mostly working on the rtems-tester support, so just to give an
update. I spent all day Saturday and today on it. It's taking longer than
expected, re-orienting myself and deciding what is needed and not needed
now with the changes in covoar. The problems are not difficult, it's just
taking some time re-organizing everything. My time is limited during the
week, so it'll probably be next weekend before I can finish it off. Vijay
if you have time during the week I could push what I have and you could
take a stab at some of them and then I could it finish off next weekend if
you haven't already.
On 7 May 2018 at 15:40, Joel Sherrill <joel at rtems.org> wrote:
>
>
> On Mon, May 7, 2018 at 6:01 AM, Vijay Kumar Banerjee <
> vijaykumar9597 at gmail.com> wrote:
>
>> I have added the path to libdwarf here
>>
>
> That worked for me to build but not to link.
>
> I'm not sure why this rld symbol turned up missing on Centos 7.
>
> ====================================================
>
> $ ./waf -v
> Waf: Entering directory `/home/joel/rtems-work/rtems-tools/build'
> [228/229] Linking build/tester/covoar/trace-converter
> 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']
> [229/229] Linking build/tester/covoar/covoar
> 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']
> tester/covoar/libccovoar.a(DesiredSymbols.cc.1.o): In function
> `Coverage::DesiredSymbols::determineSourceLines(Coverage::CoverageRanges*,
> Coverage::ExecutableInfo*)':
> /home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413:
> undefined reference to `rld::path::__xpg_basename(std::string const&)'
> /home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415:
> undefined reference to `rld::path::__xpg_basename(std::string 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/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:413:
> undefined reference to `rld::path::__xpg_basename(std::string const&)'
> /home/joel/rtems-work/rtems-tools/build/../tester/covoar/DesiredSymbols.cc:415:
> undefined reference to `rld::path::__xpg_basename(std::string const&)'
> collect2: error: ld returned 1 exit status
>
> Waf: Leaving directory `/home/joel/rtems-work/rtems-tools/build'
> Build failed
> -> task in 'trace-converter' failed with exit status 1:
> {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}
> ['/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']
> -> task in 'covoar' failed with exit status 1:
> {task 34820256: cxxprogram covoar.cc.3.o -> covoar}
> ['/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']
> ====================================================
>
>
>>
>> ---
>>
>> 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']
>>
>>
>>
>> -- vijay
>>
>> On 7 May 2018 at 13:30, Vijay Kumar Banerjee <vijaykumar9597 at gmail.com>
>> wrote:
>>
>>>
>>> On 6 May 2018 at 13:29, Chris Johns <chrisj at rtems.org> wrote:
>>>
>>>> On 6/5/18 5:28 pm, Vijay Kumar Banerjee wrote:
>>>>
>>>>> On 6 May 2018 at 08:54, Chris Johns <chrisj at rtems.org <mailto:
>>>>> chrisj at rtems.org>> wrote:
>>>>>
>>>>> Would you please try `waf clean build` to see if rebuilding
>>>>> everything fixes this?
>>>>>
>>>>> still getting the same error .
>>>>> I'm using g++ 7.3.1 on fedora 27.
>>>>>
>>>>
>>>> OK
>>>>
>>>> If you have changed something in the code, can you please send a patch
>>>>> for the same ?
>>>>>
>>>>
>>>> I have not changed anything. I do not have a Linux box to try.
>>>>
>>>> I tried to do it afresh as well, it's still failing to build.
>>> Can someone please try to build it in a linux system ?
>>>
>>>> Chris
>>>>
>>>
>>>
>>
>> _______________________________________________
>> devel mailing list
>> devel at rtems.org
>> http://lists.rtems.org/mailman/listinfo/devel
>>
>
>
> _______________________________________________
> devel mailing list
> devel at rtems.org
> http://lists.rtems.org/mailman/listinfo/devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20180507/9b1ee597/attachment-0002.html>
More information about the devel
mailing list