[Ndn-interest] Our Discussion over the Phone - Obuntu Mate and NFD

Saurab Dulal (sdulal) sdulal at memphis.edu
Thu Apr 4 20:43:53 PDT 2019


I guess your ndn-cxx is not the latest one. Recently, some change has been made in the scheduler (https://github.com/named-data/ndn-cxx/commit/a5f233e103453f6157715b0cec0997658c4ec075). I suggest you to compile the latest ndn-cxx and retry.

Saurab,




On Apr 4, 2019, at 10:20 PM, Ahmed Awad <ayawad at ualr.edu<mailto:ayawad at ualr.edu>> wrote:

hello guys
Iam in last step of installing NFD on raspberry pi 3 and i got this error below :

[154/154] Linking build/bin/nfdc
22:12:32 runner ['clang++-3.9', '-Wl,-O1', '-fuse-ld=gold', '-pthread', '-pthread', 'tools/nfdc/main.cpp.7.o', 'tools/nfdc/available-commands.cpp.6.o', 'tools/nfdc/channel-module.cpp.6.o', 'tools/nfdc/command-definition.cpp.6.o', 'tools/nfdc/command-parser.cpp.6.o', 'tools/nfdc/cs-module.cpp.6.o', 'tools/nfdc/execute-command.cpp.6.o', 'tools/nfdc/face-module.cpp.6.o', 'tools/nfdc/fib-module.cpp.6.o', 'tools/nfdc/find-face.cpp.6.o', 'tools/nfdc/format-helpers.cpp.6.o', 'tools/nfdc/forwarder-general-module.cpp.6.o', 'tools/nfdc/help.cpp.6.o', 'tools/nfdc/rib-module.cpp.6.o', 'tools/nfdc/status-report.cpp.6.o', 'tools/nfdc/status.cpp.6.o', 'tools/nfdc/strategy-choice-module.cpp.6.o', 'core/city-hash.cpp.2.o', 'core/config-file.cpp.2.o', 'core/log-config-section.cpp.2.o', 'core/network-predicate.cpp.2.o', 'core/network.cpp.2.o', 'core/privilege-helper.cpp.2.o', 'core/rtt-estimator.cpp.2.o', 'core/scope-prefix.cpp.2.o', '-o/home/pi/NFD/build/bin/nfdc', '-Wl,-Bstatic', '-L/usr/lib/arm-linux-gnueabihf', '-Wl,-Bdynamic', '-L/usr/local/lib', '-L/usr/lib/arm-linux-gnueabihf', '-lndn-cxx', '-lboost_system', '-lboost_program_options', '-lboost_chrono', '-lboost_date_time', '-lboost_filesystem', '-lboost_thread', '-lboost_log', '-lcrypto', '-lsqlite3', '-lrt', '-lpthread', '-lboost_system', '-lboost_program_options', '-lboost_filesystem', '-lrt', '-lresolv']
../tools/ndn-autoconfig/main.cpp:93: error: undefined reference to 'ndn::util::scheduler::Scheduler::schedule(boost::chrono::duration<long long, boost::ratio<1ll, 1000000000ll> >, std::function<void ()>)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

../daemon/face/lp-reassembler.cpp:117: error: undefined reference to 'ndn::util::scheduler::Scheduler::schedule(boost::chrono::duration<long long, boost::ratio<1ll, 1000000000ll> >, std::function<void ()>)'
../daemon/face/tcp-channel.cpp:87: error: undefined reference to 'ndn::util::scheduler::Scheduler::schedule(boost::chrono::duration<long long, boost::ratio<1ll, 1000000000ll> >, std::function<void ()>)'
../daemon/face/tcp-transport.cpp:140: error: undefined reference to 'ndn::util::scheduler::Scheduler::schedule(boost::chrono::duration<long long, boost::ratio<1ll, 1000000000ll> >, std::function<void ()>)'
../daemon/face/unicast-udp-transport.cpp:113: error: undefined reference to 'ndn::util::scheduler::Scheduler::schedule(boost::chrono::duration<long long, boost::ratio<1ll, 1000000000ll> >, std::function<void ()>)'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

Waf: Leaving directory `/home/pi/NFD/build'
Build failed
 -> task in 'ndn-autoconfig' failed with exit status 1:


Please Advise me with this one

Thank you so much for your previous advises


Ahmed Awad



On Thu, Apr 4, 2019 at 6:03 PM Ashlesh Gawande (agawande) <agawande at memphis.edu<mailto:agawande at memphis.edu>> wrote:
Either try with python2.7:
CXX=clang++-3.9 python2.7 ./waf configure
python2.7 ./waf
sudo python2.7 ./waf install

or

uninstall sphinx (not necessary for compilation - only if you want to generate the documentation website like: https://named-data.net/doc/ndn-cxx/current/) and then configure, compile, and install again.

Ashlesh
________________________________
From: Ahmed Awad <ayawad at ualr.edu<mailto:ayawad at ualr.edu>>
Sent: Thursday, April 4, 2019 12:41 AM
To: Ashlesh Gawande (agawande)
Cc: Seshadri Mohan
Subject: Re: Our Discussion over the Phone - Obuntu Mate and NFD

Hello Ashlesh
i follwed the steps above in two os (rasbain , ubuntu mate )and i got this error

[203/206] Processing sphinx_build [man]: docs/manpages/ndn-client.conf.rst docs/manpages/ndn-log.rst docs/manpages/ndnsec-cert-dump.rst docs/manpages/ndnsec-cert-gen.rst docs/manpages/ndnsec-cert-install.rst docs/manpages/ndnsec-delete.rst docs/manpages/ndnsec-export.rst docs/manpages/ndnsec-get-default.rst docs/manpages/ndnsec-import.rst docs/manpages/ndnsec-key-gen.rst docs/manpages/ndnsec-list.rst docs/manpages/ndnsec-set-default.rst docs/manpages/ndnsec-sign-req.rst docs/manpages/ndnsec-unlock-tpm.rst docs/manpages/ndnsec.rst docs/conf.py -> build/docs/manpages/ndnsec.1 build/docs/manpages/ndnsec-cert-dump.1 build/docs/manpages/ndnsec-cert-gen.1 build/docs/manpages/ndnsec-cert-instal.1 build/docs/manpages/ndnsec-delete.1 build/docs/manpages/ndnsec-export.1 build/docs/manpages/ndnsec-get-default.1 build/docs/manpages/ndnsec-import.1 build/docs/manpages/ndnsec-key-gen.1 build/docs/manpages/ndnsec-list.1 build/docs/manpages/ndnsec-set-default.1 build/docs/manpages/ndnsec-sign-req.1 build/docs/manpages/ndnsec-unlock-tpm.1 build/docs/manpages/ndn-client.conf.5 build/docs/manpages/ndn-log.7

00:31:37 runner ['/usr/local/bin/sphinx-build', '-D', 'version=0.6.5-17-g5437aa2', '-D', 'release=0.6.5-17-g5437aa2', '-q', '-b', 'man', '-d', '/home/yahya/ndn-cxx/build/docs/manpages/.doctrees', '/home/yahya/ndn-cxx/docs', '/home/yahya/ndn-cxx/build/docs/manpages']

Exception occurred:
  File "/usr/local/lib/python3.5/dist-packages/sphinxcontrib/doxylink/doxylink.py", line 235, in create_role
    app.warn(standout('Could not find tag file %s. Make sure your `doxylink` config variable is set correctly.' % tag_filename))
AttributeError: 'Sphinx' object has no attribute 'warn'
The full traceback has been saved in /tmp/sphinx-err-bsouexiq.log, if you want to report the issue to the developers.
Please also report this if it was a user error, so that a better error message can be provided next time.
A bug report can be filed in the tracker at <https://github.com/sphinx-doc/sphinx/issues>. Thanks!

Waf: Leaving directory `/home/yahya/ndn-cxx/build'
Build failed


Regards
Ahmed Awad
PhD Candidate in Telecommunication and Networking Track/ Systems Engineering Dept.
University of Arkansas at Little Rock
501-940-9048<tel:501-940-9048>


On Tue, Apr 2, 2019 at 10:51 PM Seshadri Mohan <sxmohan at ualr.edu<mailto:sxmohan at ualr.edu>> wrote:
Hi Ashlesh,
Thank you for your help.
Dr. Seshadri Mohan
Professor, Systems Engineering Department, EIT 546
University of Arkansas at Little Rock
2801 S University Avenue
Little Rock, AR 72204
Tel: (501) 683 7475
Fax: (501) 569-8698
http://web.ualr.edu/sxmohan<http://syen.ualr.edu/sxmohan>


On Tue, Apr 2, 2019 at 4:21 PM Ashlesh Gawande (agawande) <agawande at memphis.edu<mailto:agawande at memphis.edu>> wrote:
The easiest way that I know of to install ndn-cxx and NFD on the Pi is from source on raspbian OS using clang (not the default gcc as it requires extending swap and is up to 10 times slower). Example:
sudo apt install clang-3.9
CXX=clang++-3.9 ./waf configure
(please see: https://named-data.net/doc/ndn-cxx/current/INSTALL.html#customizing-the-compiler)
(other instructions are same for ndn-cxx and NFD).

Another option is cross-compiling (outdated - but steps should be similar):
https://redmine.named-data.net/projects/ndn-embedded/wiki/Cross-compiling_NDN_projects_for_Raspberry_Pi

Ashlesh
________________________________
From: Lan Wang (lanwang)
Sent: Tuesday, April 2, 2019 2:39 PM
To: Seshadri Mohan
Cc: Ahmed Awad; Ashlesh Gawande (agawande)
Subject: Re: Our Discussion over the Phone - Obuntu Mate and NFD

Hi Prof. Mohan,

It was nice to talk to you.  I’m cc’ing Ashlesh Gawande who can answer Ahmed’s questions about the installation.  In addition, there is an ndn-interest mailing list he can jin to ask such questions (https://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest).

Lan

On Apr 2, 2019, at 2:32 PM, Seshadri Mohan <sxmohan at ualr.edu<mailto:sxmohan at ualr.edu>> wrote:

Dear Professor Wang,

It was my pleasure talking to you over the phone just now. As I explained to you over the phone, Ahmed Awad is my doctoral student working on a research problem in the area of connected vehicles.  He has been trying to install NFD on raspberry pi 3 with Rasbian or Ubuntu mate or Ubuntu server without success. If you  could provide Ahmed with a contact who could help him as well as any documentation you can provide, that will be very much appreciated.

Again, thank you for your help.

Best regards,
Seshadri Mohan
Dr. Seshadri Mohan
Professor, Systems Engineering Department, EIT 546
University of Arkansas at Little Rock
2801 S University Avenue
Little Rock, AR 72204
Tel: (501) 683 7475
Fax: (501) 569-8698
http://web.ualr.edu/sxmohan<http://syen.ualr.edu/sxmohan>

_______________________________________________
Ndn-interest mailing list
Ndn-interest at lists.cs.ucla.edu<mailto:Ndn-interest at lists.cs.ucla.edu>
http://www.lists.cs.ucla.edu/mailman/listinfo/ndn-interest

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/ndn-interest/attachments/20190405/265208fe/attachment-0001.html>


More information about the Ndn-interest mailing list