rtems-tools build errors after coverage tools patches

Cillian O'Donnell cpodonnell8 at gmail.com
Mon May 29 09:39:33 UTC 2017


Thanks Joel! So rld-process.h couldn't find the typedef. It took a while
for that to sink in... Spent yesterday focusing on '..build system changes'
. I thought the problem was in covoar/wscript, read alot about waf
(Probably be useful later on).

I added #include "rld.h" in rtemstoolkit/rld-process.h and that was it,
build successful, happy days!

On 28 May 2017 at 10:28, Joel Sherrill <joel at rtems.org> wrote:

> The namespace rld is the RTEMS loader. The type rld::strings is
> defined in rld.h.  This is a case where either grep or a tool like
> cscope is very handy. :)
>
> $ grep strings *.h
>
> rld.h:  typedef std::vector < std::string > strings;
>
> The question is whether the file includes rld.h or not. And whether the
> code you are modifying has the include path to see that file.
>
> The code and waf infrastructure has progressed since the patches you
> are starting with so expect some breakage, build system changes, etc..
>
> That should be enough to find the issue but Chris may have more
> insight when he is awake.
>
> --joel
>
> On Sat, May 27, 2017 at 5:28 PM, Cillian O'Donnell <cpodonnell8 at gmail.com>
> wrote:
>
>> Ok sorry I've just realised the const strings split(...) function is
>> obviously something else with the split bit.
>>
>> For the problem line void write_lines (const rld::strings& ss);
>>
>> If I remove 'const' I get
>> ../rtl-host/rld-process.h:175:30: error: ‘rld::strings’ has not been
>> declared
>>        void write_lines (rld::strings& ss);
>>
>> If I change to 'const' to 'void' I get
>> ../rtl-host/rld-process.h:175:42: error: expected unqualified-id before
>> ‘&’ token
>>        void write_lines (void rld::strings& ss);
>>                                           ^
>> ../rtl-host/rld-process.h:175:42: error: expected ‘)’ before ‘&’ token
>> ../rtl-host/rld-process.h:175:42: error: expected ‘;’ at end of member
>> declaration
>> ../rtl-host/rld-process.h:175:44: error: ‘ss’ does not name a type
>>        void write_lines (void rld::strings& ss);
>>
>> If I remove the line completely just to see will it run without it
>> [146/147] Linking build/tester/covoar/covoar
>> /usr/bin/ld: cannot find -lrld
>> /usr/bin/ld: cannot find -liberty
>> /usr/bin/ld: cannot find -lelf
>> collect2: error: ld returned 1 exit status
>>
>> I can't really think of anything else to try, any hints at all would be
>> great.
>>
>> Thanks,
>>
>> Cillian.
>>
>> _______________________________________________
>> 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/20170529/4ccdf74b/attachment.html>


More information about the devel mailing list