|
From: | David |
Subject: | Re: [Discuss-gnuradio] GNURadio build swig code fail on USB |
Date: | Mon, 18 Sep 2017 17:18:04 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
oops, USB mount should be # mount /dev/sda1 /mnt On 18/09/17 17:09, David wrote:
Hi Cinaed, OS is installed on SD card (no emmc).I built UHD, as odroid user, on the USB drive, cmake, make, sudo make install. Works fine.Then try to build GNURadio, as odroid user, on USB drive, cmake, make... then the permission denied. Tried building as root (after blowing away the build dir contents), cmake, make, then the permission denied.Then build GNURadio, as odroid user, on SD card, cmake, make, sudo make install. Works fine.Weird thing is, then I can then do make OK on the USB drive. Is there some persistent info stored in odroid home dir, or elsewhere?Because if I do make uninstall on the SD card, I can't then do a make on the USB drive for same reason (after blowing the build dir away).I want to build on the USB drive so that I have all the build-able source on the USB, in case I have to re-instate the OS, flexibility, and reduced download time (as I have had to do several times due to power issues causing corruptions on the SD card. This is probably sorted now I have a good PSU, but also to reduce wear on the SD card.fstab mount:UUID=eb5f2117-4e3c-459d-9f58-ef87e6428a25 /home/odroid ext4 defaults,noatime,user 0 2yet mounting as # mount /dev/sdd1 /mnt make no difference. Thank you, Dave On 18/09/17 07:02, Cinaed Simson wrote:On 09/17/2017 06:29 AM, David wrote:Hi Cinaed, Sorry no, USB build was first, after clean install of OS, then UHD.Just to be clear, you re-installed the os on the odroid and not the usb drive? Have you built the UHD software on the usb drive? Blow away the build directory and try it again. If it fails, try it as root. Look at the log files dmesg /var/log/messages /var/log/syslogOnly "cmake .. " disabled component left was gr-comedi.Type apt-get install libcomedi-devI think this may be a file-system thing, maybe how it is mounted? DaveHow did you mount it? Type mountAre you using usb drive, sdcard and emmc card simultaneously on the droid?If you are, try removing the sdcard and build it as root on the usb drive.If worse comes to worse, tar the gnuradio installation on the sdcard and transfer it the usb drive. Then setup a link to so it matches the path to the gnuradio root. -- CinaedOn 16/09/17 21:44, Cinaed Simson wrote:My guess is the sdcard version is installed and when your try to build the USB version, the paths are getting confused. I'd recommend doing a make uninstallfor the sdcard version, build the USB version, remove the USB stick thenre-install the sdcard version make install To uninstall gnuradio you have to have a complete build directory. -- Cinaed On 09/16/2017 07:48 AM, David wrote:Hello Kyeong, Thanks for the reply, It's ext4, the OS is Ubuntu, Doing lsattr, for example: address@hidden:/mnt# lsattr -------------e-- ./uhd -------------e-- ./lost+found -------------e-- ./gnuradio -------------e-- ./gnuradio.broken Don't know if that is relevant, includes the permission denied files, and mounted: UUID=eb5f2117-4e3c-459d-9f58-ef87e6428a25 /home/odroid ext4 defaults,noatime,user 0 2 Maybe a clue, Regards, Dave On 16/09/17 15:31, Kyeong Su Shin wrote:Hello David: How is your USB drive formatted? Is it using ext3/4, or something equivalent (POSIX-style)? Regards, Kyeong Su Shin On Sat, Sep 16, 2017 at 4:50 AM, David <address@hidden <mailto:address@hidden>> wrote: Hi All, Building GNURadio on a mounted USB drive (on an Odroid ARM device), fails here: Scanning dependencies of target _pmt_swig_doc_tag [ 9%] Building CXX object gnuradio-runtime/swig/CMakeFiles/_pmt_swig_doc_tag.dir/_pmt_swig_doc_tag.cpp.o [ 9%] Linking CXX executable _pmt_swig_doc_tag [ 9%] Built target _pmt_swig_doc_tag Scanning dependencies of target pmt_swig_swig_doc [ 9%] Generating doxygen xml for pmt_swig_doc docs /bin/sh: 1: *./_pmt_swig_doc_tag: Permission denied*gnuradio-runtime/swig/CMakeFiles/pmt_swig_swig_doc.dir/build.make:72:recipe for target 'gnuradio-runtime/swig/pmt_swig_doc_swig_docs/xml/index.xml' failed make[2]: *** [gnuradio-runtime/swig/pmt_swig_doc_swig_docs/xml/index.xml] Error 126 CMakeFiles/Makefile2:1287: recipe for target 'gnuradio-runtime/swig/CMakeFiles/pmt_swig_swig_doc.dir/all' failed make[1]: *** [gnuradio-runtime/swig/CMakeFiles/pmt_swig_swig_doc.dir/all] Error 2 Makefile:160: recipe for target 'all' failed make: *** [all] Error 2 address@hidden:~/gnuradio/build$ find . -name _pmt_swig_doc_tag ./gnuradio-runtime/swig/_pmt_swig_doc_tag address@hidden:~/gnuradio/build$ *ls -l ./gnuradio-runtime/swig/_pmt_swig_doc_tag** -rwxrwxr-x 1 odroid odroid 8164 Sep 16 11:01 ./gnuradio-runtime/swig/_pmt_swig_doc_tag* * * *Whereas, building on the local SD card works!* Scanning dependencies of target runtime_swig_swig_doc [ 11%] Built target runtime_swig_swig_doc Scanning dependencies of target pmt_swig_swig_doc [ 11%] Built target pmt_swig_swig_doc Scanning dependencies of target _pmt_swig_swig_tag [ 11%] Building CXX object gnuradio-runtime/swig/CMakeFiles/_pmt_swig_swig_tag.dir/_pmt_swig_swig_tag.cpp.o [ 11%] Linking CXX executable _pmt_swig_swig_tag [ 11%] Built target _pmt_swig_swig_tagAnyone encountered this, or knows why building swig on mounted USBdrive fails please? Thanks, Dave _______________________________________________ Discuss-gnuradio mailing list address@hidden <mailto:address@hidden> https://lists.gnu.org/mailman/listinfo/discuss-gnuradio <https://lists.gnu.org/mailman/listinfo/discuss-gnuradio>_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio_______________________________________________ Discuss-gnuradio mailing list address@hidden https://lists.gnu.org/mailman/listinfo/discuss-gnuradio
[Prev in Thread] | Current Thread | [Next in Thread] |