• Join
  • Sign In with my.TI Login
Texas Instruments
  • Products
  • Applications
  • Tools & Software
  • Support & Community
  • Sample & Buy
  • About TI
Sample & Purchase Cart Sample & Purchase Cart
  • Search
  • Advanced
TI E2E™ Community
  • Support Forums
  • Blogs
  • Groups
  • Videos
  • 简体中文
  • More ...
TI Home » TI E2E Community » Support Forums » Digital Signal Processors (DSP) » OMAP™ Processors » OMAP-L13x, AM1x and C674x Processors Forum » c6runapp-cc command not found
Share
OMAP™ Processors
  • Forums
  • Announcements
Options
  • Subscribe via RSS
Resources
  • OMAP-L1x DSP+ARM9™-based Processors Product Folder
  • OMAP3525/30 DSP+ARM Cortex™-A8-based SOCs Product Folder

  • Top OMAPL Wiki Links
  • OMAPL3x Schematic Review Checklist
  • OMAPL13x Boot resources

  • OMAPL Document Resources
  • OMAPL137 Technical reference manual
  • OMAPL138 Technical reference manual
  • OMAPL Boot loader App Notes
  • Forums

    c6runapp-cc command not found

    This question is answered
    Jeff Richmond
    Posted by Jeff Richmond
    on Apr 27 2011 21:01 PM
    Prodigy90 points

    I have installed the newest C6Run into my DVSDK directory and set it up by modyfing Rules.make and Makefile, making c6run, then doing 'source c6run.../environment.sh'. However when I try to run the examples, I get the error: c6runapp-cc command not found. Also I am running 10.04 LTS 32 bit. Any advice?

    beagleboard C6Run
    Report Abuse
    • Reply
    You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    All Replies
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 27 2011 21:52 PM
      Genius15085 points

      Jeff,

      The environment setup script does not add the bin directory of the c6run install in the PATH environment variable, but rather defines a new variable, C6RUN_TOOLCHAIN_PATH.  The example Makefiles use that if it is defined.  Feel free to edit the environment script to actually edit the PATH as follows:

      export PATH=$(C6RUN_TOOLCHAIN_PATH)/bin:$PATH

      One extra word of caution is to exit whatever terminal window you are in and then start a new one to make sure you are not accidentally picking up old variables that pointed to an old install.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      C6Run
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on Apr 27 2011 23:44 PM
      Prodigy90 points

      I tried doing: export PATH=/usr/local/dvsdk/C6Run_0_97_03_03/bin:$PATH

      But I still get the error. Also, when I open a new terminal and do echo $PATH, that directory is no longer there, is that normal?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 28 2011 08:24 AM
      Genius15085 points

      You have source the environment variables or set the path each time you open a new terminal window.  I would try calling the c6runapp-cc tool using the absolute path and see what happens.  That will tell us if we are just seeing a problem with the PATHs or if there is some other issue with the tool (i.e. not set as executable, not finding the correct shell, etc.).

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      C6Run
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on Apr 28 2011 12:04 PM
      Prodigy90 points

      I copied one of the examples to C6Run/lib and doing 'sudo make' still doesnt work. However it will work when I do something like ./c6runapp-cc hello_world.c, but not just 'c6runapp-cc hello_world.c'. I also added the commands in environment.sh to .bashrc, so the variables are set each time a new terminal is opened. However I still get the error when trying to execute elsewhere.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on Apr 28 2011 12:07 PM
      Prodigy90 points

      Another thought, in the setup instructions it says to 'make c6run' then 'source environment.sh'. Is there no 'make install' that needs to be done?

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 29 2011 17:54 PM
      Genius15085 points

      Jeff,

      I just started from scratch and ran the following after opening a new terminal window and entering the C6Run_0_97_03_03 directory:

      1. 'make get_components'

      2. 'make omapl138_config'

      3. 'vi platforms/omapl138/platforms.mak' (did this to make sure I was pointing to the correct paths for the Linux kernel and u-boot source in the DVSDK 4.01 I have installed)

      4. 'make everything' (this passed and built the backend GPP library, the backend DSP library, and the required DSPLink and CMEM kernel modules)

      5. Then I edited the environment.sh script ('vi ./environment.sh') and added the following lines to the end of that file:

      PATH=${C6RUN_TOOLCHAIN_PATH}/bin:$PATH

      export PATH

      6. 'source ./environment.sh'

       

      At that point I can run c6runapp and the other tools without any issues.  For example, without changing directories out of the top-level of the C6Run install, I did the following:

      'c6runapp-cc -o hello examples/c6runapp/hello_world/hello_world.c'

      I can also call the full path and the relative path

      './bin/c6runapp-cc -o hello1 examples/c6runapp/hello_world/hello_world.c'

      '/home/daniel/C6Run_0_97_03_03/bin/c6runapp -o hello2 examples/c6runapp/hello_world/hello_world.c'

       

      Finally I did change directory into the hello_world example:

      'cd examples/c6runapp/hello_world/'

      'c6runapp-cc -o hello3 hello_world.c'

       

      That all works, so I'm don't think I'm able to reproduce the same issue you are seeing.

      If you follow all of the above and still are having problems, can you provide some more info about your host system? I'm assuming you are on Ubuntu 10.04, using the bash shell as the DVSDK requires.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on Apr 29 2011 17:57 PM
      Genius15085 points

      Jeff Richmond

      Another thought, in the setup instructions it says to 'make c6run' then 'source environment.sh'. Is there no 'make install' that needs to be done?

      There is an 'install' target in the top-level makefile that will copy the required binary components out of the source/build tree to a destination that you specify.  I just never use it because I would then need to edit the environment.sh script for the new location or add the tools to the path.  I'm lazy and I just leave everything in the same source/build tree.

      Regards, Daniel

       

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on Apr 29 2011 19:35 PM
      Prodigy90 points

      This is the same process I was trying before, but I retried it and still get the error. It does work to use the absolute path and do './c6run...', so I guess I'll just use it that way for now. I am on Ubuntu 10.04 LTS 32 bit.

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on Apr 29 2011 20:07 PM
      Prodigy90 points

      OK I think I have it partially working now, atleast the c6run calls work. However when I try to make the examples ie for hello_world I just do 'make' and I get the error:

      "hello_world.c", line 40: fatal error #5: could not open source file "stdio.h"
      1 fatal error detected in the compilation of "hello_world.c".
      Compilation terminated.

      Probably because I'm not root. But then when I do 'sudo make' I get the error:

      jeff@jeff-ubuntu10-04:~/C6Run_0_97_03_03/examples/c6runapp/hello_world$ sudo make
      c6runapp-cc -O3 -o hello_world_dsp hello_world.c
      make: c6runapp-cc: Command not found
      make: *** [dsp] Error 127

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on May 03 2011 11:30 AM
      Verified Answer
      Verified by Daniel Allred
      Genius15085 points

      Jeff,

      I think you have some fundamental permission issues.  For reference, I install all of my components, including the ARM and DSP compilers, beneath my home directory as myself, not as sudo.  Since starting this practice, I have not had any issues, though prior to this I have seen strange and unexplainable like those you are reporting.

      The issue you mentioned with 'sudo make' is not unexpected, since when you run sudo the environment, including the PATH variable, comes from the root user.  There is a way to get around this, but I can't remember it right now.

      You shouldn't need to use sudo.  I highly recommend trying to install everything under your standard user account, and into your home directory.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Jeff Richmond
      Posted by Jeff Richmond
      on May 04 2011 14:14 PM
      Prodigy90 points

      Yea you were right Daniel thanks. One more quick question:

       

      If I'm configuring the DVSDK for Angstrom on Beagleboard xM rev B, which has the DM3730 processor, would I want to use the DM3730 config, or just stick the the beagleboard-xM?

      DVSDK beagleboard C6Run
      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Daniel Allred
      Posted by Daniel Allred
      on May 05 2011 14:22 PM
      Genius15085 points

      The main (only?) difference between the two is the system memory map.  The DM3730 one corresponds to what you would use for the DVSDK 4.x product. The Beagleboard one is not really aligned with any particular use case.  You could modify either one to suit your own needs and use it.

      Regards, Daniel

      ----------------------------------------------------------------------------------------------------------
      Please click the
      Verify Answer button on this post if it answers your question.
      ----------------------------------------------------------------------------------------------------------

       

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    • Martin Weiss Hansen
      Posted by Martin Weiss Hansen
      on May 30 2012 06:35 AM
      Prodigy40 points

      I am having the same problem. I am not really sure how to solve it. When I do "make examples" I get

      make[3]: Entering directory `/home/martin/beagleboard/c6run/C6Run_0_98_03_03/examples/c6runlib/emqbit' /home/martin/beagleboard/c6run/C6Run_0_98_03_03/bin/c6runlib-cc -c -O3 -o dsp_lib/cfft.o cfft.c "/tmp/06522ACJBda", ERROR! at EOF: [E1500] file access error: failed to open "dsp_lib/cfft.o" for writing "/tmp/06522ACJBda", ERROR! : [E1000] Failed to write object file : dsp_lib/cfft.o

      If I do "sudo make examples" I get errors like

      make[3]: Entering directory `/home/martin/beagleboard/c6run/C6Run_0_98_03_03/examples/c6runapp/cio_example' c6runapp-cc -O3 -o cio_example_dsp cio_example.c make[3]: c6runapp-cc: Command not found make[3]: *** [dsp] Error 127

      I am using this guide: http://processors.wiki.ti.com/index.php/Getting_Started_With_C6Run_On_Beagleboard

      I suppose the problem lies with environment.sh. Before I edited the file, the ARM_TOOLCHAIN_PATH was the same as the C6RUN_TOOLCHAIN_PATH. I supposed this was wrong since in Rules.mak I have ARM_TOOLCHAIN_PATH pointing to the directory of the ARM cross-compiler that I'm using (CodeSourcery).

      Report Abuse
      • Reply
      You have posted to a forum that requires a moderator to approve posts before they are publicly available.
    TI E2E™ Community
    • Support Forums
    • Blogs
    • Videos
    • Groups
    • Site Support & Feedback
    • Settings
    TI E2E™ Community Groups
    • TI University Program
    • Make the Switch
    • Microcontroller Projects
    • Motor Drive & Control
    Other Communities
    • Deyisupport
    • Designsomething.org
    • beagleboard.org
    • TI on Element 14
    • TI on TechXchangeSM
    Other Technical & Support Resources
    • WEBENCH® Design Center
    • Product Information Centers
    • Technical Documents
    • TI Design Network
    • TI Technical Articles
    • TI Training

    All content and materials on this site are provided "as is". TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with regard to these materials, including but not limited to all implied warranties and conditions of merchantability, fitness for a particular purpose, title and non-infringement of any third party intellectual property right. TI and its respective suppliers and providers of content make no representations about the suitability of these materials for any purpose and disclaim all warranties and conditions with respect to these materials. No license, either express or implied, by estoppel or otherwise, is granted by TI. Use of the information on this site may require a license from a third party, or a license from TI.

    Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms of Use of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms of Use of this site. TI, its suppliers and providers of content reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

    Follow Us Texas Instruments on Facebook Texas Instruments on Twitter Texas Instruments on LinkedIn Texas Instruments on Google+
    TI Worldwide | Contact Us | my.TI Login | Site Map | Corporate Citizenship | mobile m.ti.com (Mobile Version)

    TI is a global semiconductor design and manufacturing company. Innovate with 100,000+ analog ICs and
    embedded processors, along with software, tools and the industry’s largest sales/support staff.

    © Copyright 1995-2013 Texas Instruments Incorporated. All rights reserved.
    Trademarks | Privacy Policy | Terms of Use