Menu

make install issues building pocketsphinx for ARM

Help
2016-02-19
2016-02-24
  • Dale Richardson

    Dale Richardson - 2016-02-19

    Hi,

    I am attempting to build sphinxbase-5prealpha for the TI L-138 OMAP LCDK dev board. I'm using an Ubuntu 14.04 virtual machine running on Parallels as the host machine and cross-compiling for ARM. I was following along with the build/installation suggestions on this page: http://cmusphinx.sourceforge.net/wiki/tutorialpocketsphinx

    This is my first post here, and I hope I'm formatting it correctly...

    As mentioned in the above link, I updated the following dependencies:
    gcc, automake, autoconf, libtool, bison, swig at least version 2.0, python development package, pulseaudio development package

    The following are the commands I entered in order:

    parallels@ubuntu:~/ps/sphinxbase-5prealpha$ ./autogen.sh --host=arm-arago-linux-gnueabi --build=i686-linux-gnu --without-python
    
    ...
    
    parallels@ubuntu:~/ps/sphinxbase-5prealpha$ ./configure --host=arm-arago-linux-gnueabi --build=i686-linux-gnu --without-python
    
    ...
    
    parallels@ubuntu:~/ps/sphinxbase-5prealpha$ make
    
    ...
    
    parallels@ubuntu:~/ps/sphinxbase-5prealpha$ sudo make install
    

    The first 3 commands seem to have executed properly. I am receiving the following error messages after the make install command:

    libtool: relink: arm-arago-linux-gnueabi-gcc -std=gnu99 -shared  -fPIC -DPIC  -Wl,--whole-archive util/.libs/libsphinxutil.a fe/.libs/libsphinxfe.a feat/.libs/libsphinxfeat.a lm/.libs/libsphinxlm.a -Wl,--no-whole-archive  -Wl,-rpath -Wl,/home/parallels/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -lcap -ldbus-1 -ldl -L/usr/lib -lgdbm -L/home/parallels/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/arm-arago-linux-gnueabi/usr/lib -lpulsecommon-0.9.22 -lrt -lsndfile -lwrap -lpulse -lpulse-simple -lpthread -lm  -O2   -pthread -Wl,-soname -Wl,libsphinxbase.so.3 -o .libs/libsphinxbase.so.3.0.0
    /home/parallels/ps/sphinxbase-5prealpha/libtool: line 8968: arm-arago-linux-gnueabi-gcc: command not found
    libtool: install: error: relink `libsphinxbase.la' with the above command before installing it
    make[4]: *** [install-libLTLIBRARIES] Error 1
    make[4]: Leaving directory `/home/parallels/ps/sphinxbase-5prealpha/src/libsphinxbase'
    make[3]: *** [install-am] Error 2
    make[3]: Leaving directory `/home/parallels/ps/sphinxbase-5prealpha/src/libsphinxbase'
    make[2]: *** [install-recursive] Error 1
    make[2]: Leaving directory `/home/parallels/ps/sphinxbase-5prealpha/src/libsphinxbase'
    make[1]: *** [install-recursive] Error 1
    make[1]: Leaving directory `/home/parallels/ps/sphinxbase-5prealpha/src'
    make: *** [install-recursive] Error 1
    

    I thought this to be a path issue, but the location is in the path. I'm pretty new to Linux, and am having some trouble deciphering the error messages.

    Thanks in advance to anyone that can offer any assistance.

     

    Last edit: Nickolay V. Shmyrev 2016-02-19
  • Dale Richardson

    Dale Richardson - 2016-02-19

    Wow! Thanks for tips and the rapid response!
    I'm not sure I understand the solution to the linked post. I thought I installed the ARM toolchain when I installed the SDK from TI. It seems like autogen, configure, and make don't seem to have any trouble, but make install can't find it? How would one go about properly installing the compiler to avoid this issue?

     
    • Nickolay V. Shmyrev

      You need to run the command above from the command line and provide the output.

       
  • Dale Richardson

    Dale Richardson - 2016-02-20

    Thanks.

    Here is the output:

    arm-arago-linux-gnueabi-gcc: util/.libs/libsphinxutil.a: No such file or directory
    arm-arago-linux-gnueabi-gcc: fe/.libs/libsphinxfe.a: No such file or directory
    arm-arago-linux-gnueabi-gcc: feat/.libs/libsphinxfeat.a: No such file or directory
    arm-arago-linux-gnueabi-gcc: lm/.libs/libsphinxlm.a: No such file or directory
    
     
    • Nickolay V. Shmyrev

      Please run this command from the folder /home/parallels/ps/sphinxbase-5prealpha/src/libsphinxbase as make is doing.

       
  • Dale Richardson

    Dale Richardson - 2016-02-22

    Okay, I ran the command form the correct folder, and it executed without error. It also provided no terminal output.

     
    • Nickolay V. Shmyrev

      Maybe you can now run make again and see what happens.

       
      • Dale Richardson

        Dale Richardson - 2016-02-23

        Thanks. I gave it a shot, and I'm getting the same error as before. I posted the complete output in the output.txt file attached

         
        • Nickolay V. Shmyrev

          Ok, I understood the issue it seems, described here:

          https://lists.linuxfoundation.org/pipermail/llvmlinux/2013-January/000110.html

          since you are doing sudo, your path does not contain the path to compiler.

          Run this command as root and make sure you have PATH properly set for the root. Actually if you are cross-compiling, you do not need sudo on make install, you install into your home folder.

           
          • Dale Richardson

            Dale Richardson - 2016-02-23

            Thanks. I'm sorry to be such a pain... I appended the compiler path to /etc/environment, which now contains the following:

            PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/home/parallels/ti-sdk-omapl138-lcdk-01.00.00/linux-devkit/bin"
            

            The output of the make install is included in the attached output.txt file. It appears to be the same. I hope I've done what you suggested. It appears that I wasted my youth using Windows all these years when I should have been learning something useful...

             
            • Nickolay V. Shmyrev

              run make install without sudo. Add DESTDIR instead to install in your home folder.

              make install DESTDIR=/home/parallels/ps/install

               
  • Dale Richardson

    Dale Richardson - 2016-02-24

    Awesome! Thanks Nickolay!
    It is curious though that previously when I ran make install without sudo or sudo su, I received an access denied error, but it worked this time.

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.