gccxml issue with boost

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gccxml issue with boost

Ben Newton
I'm having an issue running the api scan for some of my ns-3 code.  The
issue appears to be a problem with gccxml and the boost graph library.

When I include the following

#include <boost/graph/adjacency_list.hpp>

in a file that is in the module I am trying to scan, gccxml (version
0.9.0) returns the following

xml_find_template_parm encountered unsupported type identifier_node

This appears to be a known issue

https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15145&graph=dependency

but I see no solution.

Have other ns-3 developers experienced this issue?   Does anyone have a
work-around?  Any suggestions on how to overcome this? Can we not use parts
of boost with ns-3?

Thanks,
  Ben Newton
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gccxml issue with boost

Tom Henderson-2
On 10/06/2016 11:20 AM, Ben Newton wrote:

> I'm having an issue running the api scan for some of my ns-3 code.  The
> issue appears to be a problem with gccxml and the boost graph library.
>
> When I include the following
>
> #include <boost/graph/adjacency_list.hpp>
>
> in a file that is in the module I am trying to scan, gccxml (version
> 0.9.0) returns the following
>
> xml_find_template_parm encountered unsupported type identifier_node
>
> This appears to be a known issue
>
> https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15145&graph=dependency
>
> but I see no solution.
>
> Have other ns-3 developers experienced this issue?

Not that I've heard.

> Does anyone have a
> work-around?Any suggestions on how to overcome this? Can we not use parts
> of boost with ns-3?

Let me take off list to discuss with you and come back later.

- Tom

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gccxml issue with boost

Alex Afanasyev-2

> On Oct 6, 2016, at 4:52 PM, Tom Henderson <[hidden email]> wrote:
>
> On 10/06/2016 11:20 AM, Ben Newton wrote:
>> I'm having an issue running the api scan for some of my ns-3 code.  The
>> issue appears to be a problem with gccxml and the boost graph library.
>>
>> When I include the following
>>
>> #include <boost/graph/adjacency_list.hpp>
>>
>> in a file that is in the module I am trying to scan, gccxml (version
>> 0.9.0) returns the following
>>
>> xml_find_template_parm encountered unsupported type identifier_node
>>
>> This appears to be a known issue
>>
>> https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15145&graph=dependency
>>
>> but I see no solution.
>>
>> Have other ns-3 developers experienced this issue?
>
> Not that I've heard.

I've had many problems with apiscan and boost libraries.  In the end, I kind of gave up.  What I end up doing is avoided boost includes in any of the public headers that are scanned with apiscan.  There are many ways you can accomplish this and Tom may have already suggested you some.

--
Alex

>
>> Does anyone have a
>> work-around?Any suggestions on how to overcome this? Can we not use parts
>> of boost with ns-3?
>
> Let me take off list to discuss with you and come back later.
>
> - Tom
>


Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gccxml issue with boost

Tom Henderson-2
On 10/09/2016 01:02 AM, Alex Afanasyev wrote:

>
>> On Oct 6, 2016, at 4:52 PM, Tom Henderson <[hidden email]> wrote:
>>
>> On 10/06/2016 11:20 AM, Ben Newton wrote:
>>> I'm having an issue running the api scan for some of my ns-3
>>> code.  The issue appears to be a problem with gccxml and the
>>> boost graph library.
>>>
>>> When I include the following
>>>
>>> #include <boost/graph/adjacency_list.hpp>
>>>
>>> in a file that is in the module I am trying to scan, gccxml
>>> (version 0.9.0) returns the following
>>>
>>> xml_find_template_parm encountered unsupported type
>>> identifier_node
>>>
>>> This appears to be a known issue
>>>
>>> https://cmake.org/Bug/bug_relationship_graph.php?bug_id=15145&graph=dependency
>>>
>>>
>>>
but I see no solution.

>>>
>>> Have other ns-3 developers experienced this issue?
>>
>> Not that I've heard.
>
> I've had many problems with apiscan and boost libraries.  In the end,
> I kind of gave up.  What I end up doing is avoided boost includes in
> any of the public headers that are scanned with apiscan.  There are
> many ways you can accomplish this and Tom may have already suggested
> you some.
>

I wasn't able to reproduce that particular boost-graph scanning error
using gcc-4.9 (Ben's was gcc-4.8) so was suggesting to him to try 4.9
(and haven't heard back yet).  The other option is, as you suggest, to
avoid exposing that include in the scanned header, which might be
accomplished by wrapping the types involved in more conventional C++
types and moving the include to the implementation file (although I
don't know the API details in this case).

- Tom

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gccxml issue with boost

Ben Newton
Alex and Tom,
   Thanks again for your suggestions.  I am hesitant about upgrading the
compiler right now, so I will try the work-around for the time being, and
perhaps find a better solution or upgrade later.

Thanks,
   Ben Newton

On Sun, Oct 9, 2016 at 11:28 AM, Tom Henderson <[hidden email]> wrote:

> On 10/09/2016 01:02 AM, Alex Afanasyev wrote:
>
>>
>> On Oct 6, 2016, at 4:52 PM, Tom Henderson <[hidden email]> wrote:
>>>
>>> On 10/06/2016 11:20 AM, Ben Newton wrote:
>>>
>>>> I'm having an issue running the api scan for some of my ns-3
>>>> code.  The issue appears to be a problem with gccxml and the
>>>> boost graph library.
>>>>
>>>> When I include the following
>>>>
>>>> #include <boost/graph/adjacency_list.hpp>
>>>>
>>>> in a file that is in the module I am trying to scan, gccxml
>>>> (version 0.9.0) returns the following
>>>>
>>>> xml_find_template_parm encountered unsupported type
>>>> identifier_node
>>>>
>>>> This appears to be a known issue
>>>>
>>>> https://cmake.org/Bug/bug_relationship_graph.php?bug_id=1514
>>>> 5&graph=dependency
>>>>
>>>>
>>>>
>>>> but I see no solution.
>
>>
>>>> Have other ns-3 developers experienced this issue?
>>>>
>>>
>>> Not that I've heard.
>>>
>>
>> I've had many problems with apiscan and boost libraries.  In the end,
>> I kind of gave up.  What I end up doing is avoided boost includes in
>> any of the public headers that are scanned with apiscan.  There are
>> many ways you can accomplish this and Tom may have already suggested
>> you some.
>>
>>
> I wasn't able to reproduce that particular boost-graph scanning error
> using gcc-4.9 (Ben's was gcc-4.8) so was suggesting to him to try 4.9 (and
> haven't heard back yet).  The other option is, as you suggest, to avoid
> exposing that include in the scanned header, which might be accomplished by
> wrapping the types involved in more conventional C++ types and moving the
> include to the implementation file (although I don't know the API details
> in this case).
>
> - Tom
>
>
Loading...