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.

CCS 5.3 on Linux: linker errors on hello world example for BeagleBone.

Other Parts Discussed in Thread: AM3359

Hello,

I've installed CCS 5.3 on Linux to test drive development for BeagleBone/AM335x platform. I've created ccs project and using hello world demo as a template. I've not touched the code and just build, but build fails with:


**** Build of configuration Debug for project testBeagle ****

/opt/ti/ccsv5/utils/bin/gmake -k all
Building file: ../hello.c
Invoking: ARM Compiler
"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --include_path="/opt/ti/ccsv5/tools/compiler/arm_5.0.1/include" --define=am3359 --diag_warning=225 --display_error_number --diag_wrap=off --preproc_with_compile --preproc_dependency="hello.pp"  "../hello.c"
Finished building: ../hello.c
 
Building target: testBeagle.out
Invoking: ARM Linker
"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/bin/armcl" -mv7A8 --code_state=32 --abi=eabi -me -g --define=am3359 --diag_warning=225 --display_error_number --diag_wrap=off -z --stack_size=0x800 -m"testBeagle.map" --heap_size=0x800 -i"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib" -i"/opt/ti/ccsv5/tools/compiler/arm_5.0.1/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --rom_model -o "testBeagle.out"  "./hello.obj" -l"libc.a" "../AM3359.cmd"
<Linking>
warning #10366-D: automatic library build: using library "/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib" for the first time, so it must be built.  This may take a few minutes.
>> ERROR: mklib: could not open /opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib for writing: Permission denied
warning #10207-D: automatic RTS selection:  resolving index library "libc.a" to "/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib", but "/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib" was not found
error #10198-D: no input section is linked in
warning #10062-D: entry-point symbol "_c_int00" undefined

>> Compilation failure
warning #10202-D: no suitable entry-point found; setting to 0
error #10010: errors encountered during linking; "testBeagle.out" not built
gmake: *** [testBeagle.out] Error 1
gmake: Target `all' not remade because of errors.

**** Build Finished ****

this looks like something is wrong with the code bundled with CCS which is being build for the hello world example. Is there any work around for this? Or even proper fix which I can try?

Thanks a lot!
Karel


  • Hi Karel,

    Karel Gardas said:
    >> ERROR: mklib: could not open /opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib for writing: Permission denied
    warning #10207-D: automatic RTS selection:  resolving index library "libc.a" to "/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib", but "/opt/ti/ccsv5/tools/compiler/arm_5.0.1/lib/rtsv7A8_A_le_eabi.lib" was not found

    It looks like some permissions problem in your environment. CCS needed to build the run-tile library but it could not write it to the default location. So the library was never generated and the link failed. What kind of permissions do you have? And with what permissions did you install CCS?

    Thanks

    ki

  • Hi Ki,

    you do have very good eyes! Indeed, good catch, I've completely overlooked this. Anyway, this is an nice issue to report since CCS 5.3 requires root priviledges in order to install JTAG drivers. So I've used root to install whole CCS 5.3, but then use it as an ordinary user. As this is my workstation, I've solved this now with chmod a+w -R /opt/ti but I guess this is not the option for everyone. Perhaps a message for CCS 5.x development team?

    Anyway, thanks a lot for your fast help! I've succeed in using BBone builtin JTAG with CCS 5.3 on Linux, which is great!
    Karel

  • Karel Gardas said:
    Anyway, this is an nice issue to report since CCS 5.3 requires root priviledges in order to install JTAG drivers. So I've used root to install whole CCS 5.3, but then use it as an ordinary user. As this is my workstation, I've solved this now with chmod a+w -R /opt/ti but I guess this is not the option for everyone. Perhaps a message for CCS 5.x development team?

    Yes, this is quite a "gotcha" and something we need to handle better (or at least clearly document).

    Anyway glad to hear everything is working now!

  • I have the same issue under CCS5.5. Why doesn't this latest version solve the old issue?

     

    Building target: time_estimation.out Invoking: C6000 Linker "/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/bin/cl6x" -mv6600 --abi=eabi -O3 -ms0 -g --rtti --cpp_default --gcc --define=__TI_CCS_PROJECT__ --display_error_number --diag_warning=225 --diag_wrap=off --gen_func_subsections=on -z -m"time_estimation.map" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/lib" -i"/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/include" --reread_libs --warn_sections --display_error_number --diag_wrap=off --xml_link_info="time_estimation_linkInfo.xml" --rom_model --trampolines=on --unused_section_elimination=on --strict_compatibility=on --minimize_trampolines=postorder -o "time_estimation.out" "../C6678_unified.cmd" -l"./configPkg/linker.cmd"  "./tools_winfir.obj" "./tools_math.obj" "./dve_task.obj" "./dsp_warp_swirls.obj" "./dsp_warp_ripples.obj" "./dsp_warp_pageturn.obj" "./dsp_warp_pagepeel.obj" "./dsp_warp_general.obj" "./dsp_chnl_prprc.obj" "./dsp_chnl_postp.obj" "./dsp_chnl_panel.obj" "./dsp_chnl_gcalc.obj" "./dsp_chnl_filter.obj" "./dsp_atop.obj" "./constraints.obj" "./all_main.obj" -l"libc.a" <Linking> warning #10366-D: automatic library build: using library "/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/lib/rts6600_elf_eh.lib" for the first time, so it must be built.  This may take a few minutes. >> ERROR: mklib: could not open /opt/ti/ccsv5/tools/compiler/c6000_7.4.4/lib/rts6600_elf_eh.lib for writing: Permission denied warning #10207-D: automatic RTS selection:  resolving index library "libc.a" to "/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/lib/rts6600_elf_eh.lib", but "/opt/ti/ccsv5/tools/compiler/c6000_7.4.4/lib/rts6600_elf_eh.lib" was not found