<div dir="ltr"><div>Hi Athreya</div><div><br></div><div>Do not attempt to cross-compile with crosstool-ng et al. Compile natively and you can eliminate a lot of problems.</div><div><br></div><div>I have Debian packages built for ARMv7, published here:<br></div><div><span style="font-family:monospace">echo 'deb [trusted=yes] <a href="http://dl.bintray.com/yoursunny/named-data">http://dl.bintray.com/yoursunny/named-data</a> stretch main' | sudo tee /etc/apt/sources.list.d/named-data.list<br></span></div><div><br></div><div>The scripts are here: <a href="https://github.com/yoursunny/docker-nfd">https://github.com/yoursunny/docker-nfd</a></div><div>Basically, you launch a Docker container that has a complete ARMv7 operating system (Debian, Raspbian, etc), then execute every binary via QEMU.</div><div>This allows you to execute native binaries within ARMv7 operating system, but on a powerful Intel machine.<br></div><div><br></div><div>Yours, Junxiao<br></div><div dir="ltr"><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Sep 29, 2019 at 5:33 PM Athreya Nagaraj via Ndn-interest <<a href="mailto:ndn-interest@lists.cs.ucla.edu" target="_blank">ndn-interest@lists.cs.ucla.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi All<div><br></div><div>I'm trying to build the binaries of ndn-cxx in my linux 64-bit machine and hoping to compile it for raspberry pi 2. I've built crosstool-ng and have compiled the programs. However, I'm unable to link the symbols in the program. Here's the output of the program. I've used <a href="https://github.com/ath-90/discover-conf/blob/master/ndn.sh" target="_blank">this</a> shell script to run the compilation. Below are the lines that are causing the issue (Full log with verbose <a href="https://github.com/ath-90/discover-conf/blob/master/log-wo-pthread" target="_blank">here</a>).</div><div><br></div><div>/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/lib/gcc/arm-rpi-linux-gnueabihf/7.4.1/../../../../arm-rpi-linux-gnueabihf/bin/ld: tools/ndnsec/cert-dump.cpp.1.o: undefined reference to symbol 'pthread_getspecific@@GLIBC_2.4'<br>/home/ath/raspberrypi/x-tools/arm-rpi-linux-gnueabihf/arm-rpi-linux-gnueabihf/sysroot/lib/libpthread.so.0: error adding symbols: DSO missing from command line<br>collect2: error: ld returned 1 exit status<br></div><div><br></div><div>This seems to be an issue that the waf is unable to locate the pthread library. Could someone please guide me on how I can get the waf to recognize the pthread library? Also, I tried using the -pthread flag but it seems to introduce new linkage errors for some unknown reason. <a href="https://github.com/ath-90/discover-conf/blob/master/log-w-pthread" target="_blank">Here</a> is the output when I have included the -pthread in LDFLAGS.</div><div><br></div><div>Any help would be appreciated. </div><div><br></div><div>Regards</div><div>Athreya H N</div></div><br>
</blockquote></div></div>
</div>