[Nfd-dev] trouble building ndn-cxx on Raspberry Pi
Ashlesh Gawande (agawande)
agawande at memphis.edu
Tue Jul 25 10:36:46 PDT 2017
Most likely due to low memory available on the Pi. You can check "free -mh" during compilation.
I have been told that clang works better than g++ on the Pi.
Once clang is installed on the Pi, try:
CXX=clang++ ./waf configure
Ashlesh
________________________________
From: Nfd-dev <nfd-dev-bounces at lists.cs.ucla.edu> on behalf of Anthony Dowling <dowlinah at clarkson.edu>
Sent: Tuesday, July 25, 2017 12:29:10 PM
To: nfd-dev at lists.cs.ucla.edu
Subject: [Nfd-dev] trouble building ndn-cxx on Raspberry Pi
Hello all,
I am having difficulties compiling ndn-cxx on a Raspberry Pi 3. This is the error it gives me when I run waf after configuring it. What exactly is the issue here?
Thanks,
Anthony Dowling
pi at car3:~/ndn-cxx$ ./waf configure --boost-libs=/usr/lib/arm-linux-gnueabihf
Setting top to : /home/pi/ndn-cxx
Setting out to : /home/pi/ndn-cxx/build
Building static library : no
Building shared library : yes
Checking for 'g++' (C++ compiler) : /usr/bin/g++
Checking supported CXXFLAGS : -std=c++11
Checking supported CXXFLAGS : -O2 -g -pedantic -Wall -Wextra -Wnon-virtual-dtor -Wno-unused-parameter -fdiagnostics-color
Checking supported LINKFLAGS : -fuse-ld=gold -Wl,-O1
Checking for std::to_string : yes
Checking for std::vector::insert with const_iterator : yes
Checking for std::is_default_constructible : yes
Checking for std::is_nothrow_move_constructible : yes
Checking for std::is_nothrow_move_assignable : yes
Checking for program 'doxygen' : not found
Checking for program 'tar' : /bin/tar
Checking for program 'sphinx-build' : not found
Checking for program 'sh' : /bin/sh
Checking for library pthread : yes
Checking for library rt : yes
Checking for function getpass : yes
Checking for rtnetlink : yes
Checking for IFA_FLAGS : yes
Checking for program 'pkg-config' : /usr/bin/pkg-config
Checking for 'sqlite3' : yes
Checking Crypto++ lib : 5.6.1
Checking if CryptoPP library works : yes
Checking for OpenSSL lib : "OpenSSL 1.0.2g-fips 1 Mar 2016"
Checking if OpenSSL library works : yes
Checking boost includes : 1.58.0
Checking boost libs : ok
Checking the flags needed to use pthreads : -pthread
Checking for boost linkage : ok
'configure' finished successfully (1m5.645s)
pi at car3:~/ndn-cxx$ ./waf
Waf: Entering directory `/home/pi/ndn-cxx/build'
[ 22/202] Compiling tools/ndnsec/list.cpp
[ 24/202] Compiling tools/ndnsec/get-default.cpp
[ 25/202] Compiling tools/ndnsec/export.cpp
[ 26/202] Compiling tools/ndnsec/cert-gen.cpp
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
g++: internal compiler error: Killed (program cc1plus)
Please submit a full bug report,
with preprocessed source if appropriate.
See <file:///usr/share/doc/gcc-5/README.Bugs> for instructions.
Waf: Leaving directory `/home/pi/ndn-cxx/build'
Build failed
-> task in '../bin/ndnsec' failed (exit status 4):
{task 1986721712: cxx export.cpp -> export.cpp.1.o}
['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-pthread', '-I/home/pi/ndn-cxx/build/tools/ndnsec', '-I/home/pi/ndn-cxx/tools/ndnsec', '-I/home/pi/ndn-cxx/build/src', '-I/home/pi/ndn-cxx/src', '-I/usr/include', '-DNDEBUG', '-DBOOST_LOG_DYN_LINK', '../tools/ndnsec/export.cpp', '-c', '-o', '/home/pi/ndn-cxx/build/tools/ndnsec/export.cpp.1.o']
-> task in '../bin/ndnsec' failed (exit status 4):
{task 1986721520: cxx cert-gen.cpp -> cert-gen.cpp.1.o}
['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-pthread', '-I/home/pi/ndn-cxx/build/tools/ndnsec', '-I/home/pi/ndn-cxx/tools/ndnsec', '-I/home/pi/ndn-cxx/build/src', '-I/home/pi/ndn-cxx/src', '-I/usr/include', '-DNDEBUG', '-DBOOST_LOG_DYN_LINK', '../tools/ndnsec/cert-gen.cpp', '-c', '-o', '/home/pi/ndn-cxx/build/tools/ndnsec/cert-gen.cpp.1.o']
-> task in '../bin/ndnsec' failed (exit status 4):
{task 1986721776: cxx get-default.cpp -> get-default.cpp.1.o}
['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-pthread', '-I/home/pi/ndn-cxx/build/tools/ndnsec', '-I/home/pi/ndn-cxx/tools/ndnsec', '-I/home/pi/ndn-cxx/build/src', '-I/home/pi/ndn-cxx/src', '-I/usr/include', '-DNDEBUG', '-DBOOST_LOG_DYN_LINK', '../tools/ndnsec/get-default.cpp', '-c', '-o', '/home/pi/ndn-cxx/build/tools/ndnsec/get-default.cpp.1.o']
-> task in '../bin/ndnsec' failed (exit status 4):
{task 1986721968: cxx list.cpp -> list.cpp.1.o}
['/usr/bin/g++', '-O2', '-g', '-pedantic', '-Wall', '-Wextra', '-Wnon-virtual-dtor', '-Wno-unused-parameter', '-fdiagnostics-color', '-std=c++11', '-pthread', '-I/home/pi/ndn-cxx/build/tools/ndnsec', '-I/home/pi/ndn-cxx/tools/ndnsec', '-I/home/pi/ndn-cxx/build/src', '-I/home/pi/ndn-cxx/src', '-I/usr/include', '-DNDEBUG', '-DBOOST_LOG_DYN_LINK', '../tools/ndnsec/list.cpp', '-c', '-o', '/home/pi/ndn-cxx/build/tools/ndnsec/list.cpp.1.o']
pi at car3:~/ndn-cxx$
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.lists.cs.ucla.edu/pipermail/nfd-dev/attachments/20170725/e663ee10/attachment-0001.html>
More information about the Nfd-dev
mailing list