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 "symbol redifined" error

Other Parts Discussed in Thread: OMAP-L138

I'm working with C6run on the OMAP-L138, and I have been able to build the examples fine.  However, when I try to build another application I have, I receive the following error.  Any ideas why this would be?  Thanks.

/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/Timer.o Timer.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/State.o State.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/System.o System.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/RrtNode.o RrtNode.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/RrtTree.o RrtTree.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/Astolfi.o Astolfi.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc -c -O3 --static_template_instantiation  --C6Run:debug  -o dsp/Main.o Main.cpp
/home/david/C6Run_0_94_05_06//bin/c6runapp-cc  -o planner_dsp dsp/Timer.o dsp/State.o dsp/System.o dsp/RrtNode.o dsp/RrtTree.o dsp/Astolfi.o dsp/Main.o
error: symbol "__dtors_ptr" redefined: first defined in
   "/home/david/C6Run_0_94_05_06/bin/../lib/libc6rundsp.a<C6Run_exit.obj>";
   redefined in
   "/home/david/toolchains/TI_CGT_C6000_7.0.4/lib/rts6740.lib<exit.obj>"
error: symbol "___TI_enable_exit_profile_output" redefined: first defined in
   "/home/david/C6Run_0_94_05_06/bin/../lib/libc6rundsp.a<C6Run_exit.obj>";
   redefined in
   "/home/david/toolchains/TI_CGT_C6000_7.0.4/lib/rts6740.lib<exit.obj>"
error: symbol "_exit" redefined: first defined in
   "/home/david/C6Run_0_94_05_06/bin/../lib/libc6rundsp.a<C6Run_exit.obj>";
   redefined in
   "/home/david/toolchains/TI_CGT_C6000_7.0.4/lib/rts6740.lib<exit.obj>"
error: symbol "__cleanup_ptr" redefined: first defined in
   "/home/david/C6Run_0_94_05_06/bin/../lib/libc6rundsp.a<C6Run_exit.obj>";
   redefined in
   "/home/david/toolchains/TI_CGT_C6000_7.0.4/lib/rts6740.lib<exit.obj>"
error: errors encountered during linking; "planner_dsp.dsp_image.out" not
   built
mv: cannot stat `planner_dsp.dsp_image.out': No such file or directory
>>   error: errors occurred while reading planner_dsp.dsp

od: planner_dsp.dsp: No such file or directory
_dsp_program_data_.c:3: error: expected expression before 'const'
arm-none-linux-gnueabi-gcc: _dsp_program_data_.o: No such file or directory

  • David,

    It looks like you are trying to build C++ code, which has not been tested for the C6Run tool.  So I can't clearly state why you are seeing the errors you are seeing.  If you are willing to share the actual code (or reduce it to a simple reproducible test case), we will take a look at it.  You can (should?) also file a tracker report on the external gforge site.

    Thanks, Daniel

    P.S. In the future, please tag any C6Run related forum posts with 'C6Run' so I can find it easier.