Error:Could not find a task generator for the name 'ns3-location-service'

3,084 views
Skip to first unread message

Reena

unread,
Nov 4, 2014, 8:43:13 AM11/4/14
to ns-3-...@googlegroups.com
hi

I am trying to patch GPSR protocol in NS 3.21. After executing command ./waf build,i am getting folowing error:

Waf: Entering directory `/home/reena/ns3/ns-allinone-3.16/ns-3.16/build'
Could not find a task generator for the name 'ns3-location-service'

Please help to remove this error.

Thanks in advance



Tom Henderson

unread,
Nov 4, 2014, 8:49:15 AM11/4/14
to ns-3-...@googlegroups.com
This is likely a syntax problem with one or more of your wscripts. It
seems from your message that you are mixing versions between ns-3.16 and
ns-3.21 (possibly the GPSR is from ns-3.16 and you are trying to build
it within ns-3.21).

You may need to upgrade the wscript syntax in the GPSR modules. Where
it says this in ns-3.16:

headers = bld.new_task_gen(features=['ns3header'])

it should say this in ns-3.21:

headers = bld(features='ns3header')

and where it says this in ns-3.16:

bld.add_subdirs('examples')

it should say this in ns-3.21:

bld.recurse('examples')







reena kasana

unread,
Nov 4, 2014, 9:42:15 AM11/4/14
to ns-3-...@googlegroups.com
Thanks for replying

I am using NS3.16. I wrote NS3.21 by mistake(initially,i installed 3.21)
I am attaching screenshot of terminal window and wscript of gpsr. i checked wscript syntex as per your reply.
I didn't found any mistake.









--
You received this message because you are subscribed to a topic in the Google Groups "ns-3-users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/ns-3-users/A7IUrtewgmU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to ns-3-users+unsubscribe@googlegroups.com.
To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--


ReeNa
wscript
Screenshot from 2014-11-05 00:31:49.png

Konstantinos

unread,
Nov 4, 2014, 9:51:46 AM11/4/14
to ns-3-...@googlegroups.com
Dear Reena

The GPSR patch comprises two NS-3 modules: gpsr and location-service
Make sure that you have both of them in your /src folder

reena kasana

unread,
Nov 4, 2014, 12:16:52 PM11/4/14
to ns-3-...@googlegroups.com
Thanks Konstantinos. you were right. I forgot to put location-service folder in /src.

Now , i am getting following error:
In file included from ./ns3/internet-stack-helper.h:29:0,
                 from ./ns3/csma-star-helper.h:27,
                 from ../src/csma-layout/model/csma-star-helper.cc:21:
./ns3/ipv4-l3-protocol.h:119:23: error: invalid covariant return type for ‘virtual ns3::Ptr<ns3::Ipv4L4Protocol> ns3::Ipv4L3Protocol::GetProtocol(int) const’
./ns3/ipv4.h:355:29: error:   overriding ‘virtual ns3::Ptr<ns3::IpL4Protocol> ns3::Ipv4::GetProtocol(int) const’

Please tell how to remove this error
Note: Screenshot attached

To unsubscribe from this group and all its topics, send an email to ns-3-users+...@googlegroups.com.

To post to this group, send email to ns-3-...@googlegroups.com.
Visit this group at http://groups.google.com/group/ns-3-users.
For more options, visit https://groups.google.com/d/optout.



--


ReeNa
Screenshot from 2014-11-05 03:06:24.png

Tom Henderson

unread,
Nov 4, 2014, 1:12:24 PM11/4/14
to ns-3-...@googlegroups.com
On 11/04/2014 06:42 AM, reena kasana wrote:
> Thanks for replying
>
> I am using NS3.16. I wrote NS3.21 by mistake(initially,i installed 3.21)
> I am attaching screenshot of terminal window and wscript of gpsr. i
> checked wscript syntex as per your reply.
> I didn't found any mistake.

Yes, Konstantinos is right, the error you were having was due to missing
module, not an incorrect wscript. The sign of an old wscript formatting
(which changed between ns-3.16 and ns-3.17 release) would be the
following error:

headers = bld.new_task_gen(features=['ns3header'])
AttributeError: 'BuildContext' object has no attribute 'new_task_gen'

- Tom

Ali Javeed

unread,
Apr 9, 2019, 9:05:47 AM4/9/19
to ns-3-users
I have same problem, could you help me? "Could not find a task generator for the name 'ns3-fncs'

Akanksha k

unread,
Oct 22, 2020, 8:38:31 AM10/22/20
to ns-3-users
I am trying to install NR-U into ns-3-dev repo for installing 5G LENA.  After executing command ./Waf build, I am getting following error:

Waf: Entering directory '/home/ns3/desktop/ns-3.32/build'
Error: Could not find a task generator for the name 'ns3-nr-u-master' 

Please help to remove this error.  

thanks in advance.
(ps: I don't know which wscript folder to edit)
Reply all
Reply to author
Forward
0 new messages