This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

C6Run compile issues with emqbit example

Other Parts Discussed in Thread: OMAP-L138

Hello,

 

I recently downloaded and installed the DVSDK for OMAP-L138 under linux, version 4_01_00_09. When I try to compile the provided example program emqbit (located at ${DVSDK}/c6run_0_94_05_06/examples/c6runapp/emqbit, I run into several problems, which I describe here. The first few problems I am able to work around, but the last one I'm stuck on. Here are the steps I'm following:

  • Download and install dvsdk_omapl138-evm_4_01_00_09_setuplinux
  • Copy ${DVSDK}/c6run_0_94_05_06/examples/c6runapp/emqbit to my home directory on the host
  • Setup the environment:

source ${DVSDK}/linux-devkit/environment-setup

  • run make:

[linux-devkit]:~/emqbit2> make

c6runapp-cc -c -O3  -o dsp/main_cfft.o main_cfft.c

make: c6runapp-cc: Command not found

make: *** [dsp/main_cfft.o] Error 127

  • edit the Makefile adding the lines:

include $(DVSDK)/Rules.make

ARM_TOOLCHAIN_PATH=$(CSTOOL_DIR)

C6RUN_TOOLCHAIN_PATH=$(C6RUN_INSTALL_DIR)

  • run make:

[linux-devkit]:~/emqbit> make

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc  -o bench_dsp dsp/main_bench.o dsp/distance.o 

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 89: /usr/local/dvsdk/c6run_0_94_05_06/bin/../environment.sh: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 513: /bin/cl6x: No such file or directory

mv: cannot stat `bench_dsp.dsp_image.out': No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 527: /bin/strip6x: No such file or directory

od: bench_dsp.dsp: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 538: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 556: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc  -o cfft_dsp dsp/main_cfft.o dsp/cfft.o 

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 89: /usr/local/dvsdk/c6run_0_94_05_06/bin/../environment.sh: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 513: /bin/cl6x: No such file or directory

mv: cannot stat `cfft_dsp.dsp_image.out': No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 527: /bin/strip6x: No such file or directory

od: cfft_dsp.dsp: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 538: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 556: /bin/gcc: No such file or directory

/usr/local/arm-2009q1//bin/arm-none-linux-gnueabi-gcc  -lm -o bench_arm  gpp/main_bench.o gpp/distance.o 

/usr/local/arm-2009q1//bin/arm-none-linux-gnueabi-gcc  -lm -o cfft_arm gpp/main_cfft.o gpp/cfft.o

  • copy the ${DVSDK}/Rules.make to ${DVSDK}/c6run_0_94_05_06/environment.sh, and modify variables so they are exported as environment variables
  • run make again:

[linux-devkit]:~/emqbit> make

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc  -o bench_dsp dsp/main_bench.o dsp/distance.o 

error: cannot find file "/usr/local/dvsdk/c6run_0_94_05_06/lib/libc6rundsp.a"

"/tmp/084784AqJ2G", line 15: error: cannot find file

   "/usr/local/dvsdk/c6run_0_94_05_06/lib/c6rundsp.cmd"

warning: creating ".stack" section with default size of 0x400; use the -stack

   option to change the default size

warning: creating ".sysmem" section with default size of 0x400; use the -heap

   option to change the default size

error: errors encountered during linking; "bench_dsp.dsp_image.out" not built

mv: cannot stat `bench_dsp.dsp_image.out': No such file or directory

>>   error: errors occurred while reading bench_dsp.dsp


od: bench_dsp.dsp: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 538: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 556: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc  -o cfft_dsp dsp/main_cfft.o dsp/cfft.o 

error: cannot find file "/usr/local/dvsdk/c6run_0_94_05_06/lib/libc6rundsp.a"

"/tmp/08499eLVaij", line 15: error: cannot find file

   "/usr/local/dvsdk/c6run_0_94_05_06/lib/c6rundsp.cmd"

warning: creating ".stack" section with default size of 0x400; use the -stack

   option to change the default size

warning: creating ".sysmem" section with default size of 0x400; use the -heap

   option to change the default size

error: errors encountered during linking; "cfft_dsp.dsp_image.out" not built

mv: cannot stat `cfft_dsp.dsp_image.out': No such file or directory

>>   error: errors occurred while reading cfft_dsp.dsp


od: cfft_dsp.dsp: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 538: /bin/gcc: No such file or directory

/usr/local/dvsdk/c6run_0_94_05_06/bin/c6runapp-cc: line 556: /bin/gcc: No such file or directory

/usr/local/arm-2009q1//bin/arm-none-linux-gnueabi-gcc  -lm -o bench_arm  gpp/main_bench.o gpp/distance.o 

/usr/local/arm-2009q1//bin/arm-none-linux-gnueabi-gcc  -lm -o cfft_arm gpp/main_cfft.o gpp/cfft.o

 

And this is where I'm stuck. Does it look like I'm doing something wrong here?

 

Thanks in advance for any help!

 

Cheers,

John

  • John,

    I have a few recommendations that will hopefully help.  The first is that you may want to download the latest version of the tool (available here) and then follow the instructions here for integrating it into your current SDK installation. If you don't want to try a new version (though I highly recommend you do), you can follow the last two steps of the linked instructions to rebuild the C6run package and then setup the environment variables it requires to run.  At that point you should be able to copy an example to any location and build it using it's Makefile.  You can use the conventions of the included example Makefiles for finding the compiler tools, or you can add them to your path variable.

    If you follow all the linked instructions and still have an issue, please let us know.

    Regards, Daniel

  • hi daniel!

    i am having similar problems here. I am currently using DM816X evm and c6run_097_03_03, for compiling the hello_world example. I have followed the instructions given in http://processors.wiki.ti.com/index.php/Getting_Started_With_C6EZRun, but i am getting the following error.

    root@abb-lt-capacitor-linux:/home/abb/Desktop# c6runapp-cc -o hitesh /home/abb/Desktop/C6RUN_EXAMPLES/c6runapp/hello_world/hello_world.c
    error #10008-D: cannot find file
    "/usr/local/ezsdk/c6run_0_97_03_03/bin/../lib/c6run_dsp/libc6rundsp.a"
    "/tmp/24133KRP4e1", line 14: error #10008-D: cannot find file
    "/usr/local/ezsdk/c6run_0_97_03_03/bin/../lib/c6run_dsp/c6rundsp.cmd"
    warning #10210-D: creating ".stack" section with default size of 0x400; use the
    -stack option to change the default size
    warning #10210-D: creating ".sysmem" section with default size of 0x400; use
    the -heap option to change the default size
    error #10010: errors encountered during linking; "hitesh.dsp_image.out" not
    built
    i have modified the environment.sh to point to the all the valid TOOLCHAIN path before doing "source environment.sh". 
    do i require to re-make the libraries. ? any help here is appreciated

    thank you

    regards 
    hitesh