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.

Compiler/diagnostic messages/10198

Other Parts Discussed in Thread: ASH

folks,

I am using Beaglebone ,import the examples to the CCS V6.2 .

I am getting Error which is  " Compiler/diagnostic messages/10198 "

Remedy

To work around this bug, add below two directives to the assembly source file.
- .retain tells the linker to keep this section (.text)
- .retainrefs additionally tells the linker to retain sections that reference this.

 .cdecls C,LIST,  "device.h"
;------------------------------------------------------------------------------
            .text                           ; Program Start
            .retain 
            .retainrefs  
;------------------------------------------------------------------------------

It is not clear solution and has no guide how and where to apply the Directives .
Could you please step by step explain it ?

Thanks
Ash
  • The explanation you refer to is here.  Note it presumes "you are building an ELF project with only assembly source files".  Is that actually the case?  I suspect not.  I know you are working with ...

    Ash Golestani said:
    I am using Beaglebone ,import the examples to the CCS V6.2 .

    I'm not familiar with these examples.  Where did you obtain them?  Supply a web link if possible.  Exactly which example are you building?

    Thanks and regards,

    -George

  • Hi ,

    I am developing simple program on BBB " gpioLEDBlink" which provided by " AM335X_StarterWare_02_00_01_01" .

    I opened another ticket to add AM335X_StarterWare_02_00_01_01 on my resource explorer :

    "Adding to my resource "AM335X_StarterWare_02_00_01_01 "

    e2e.ti.com/.../1998679

    TI support has suggested to import the project which I did.

    I am trying to compile the project and getting error and Advice for the error on CCS v6.2 .

    So the Advice is populated by CCS that initially I had question .

    I found the Lib source ASM files .

    I really don't know what file and where in the file should get update with remedy !

    Could you please help .

    Thanks

    Ashkan Golestani

  • Something pretty unusual is occurring.  But I cannot figure it out from what I see so far.  Please do a complete rebuild.  In CCS, right click on the name of the project and select Project Rebuild.  Then capture all the output in the Console (not Problems) view.  Use the icon titled Copy Build Log to save all of the Console output in a text file.  Be sure to give that file the extension .txt.  Then attach it to your next post.

    Thanks and regards,

    -George

  • Thanks for following up

    Here is the copy of the Console:

    **** Build of configuration Debug for project gpioLEDBlink ****
    
    "C:\\TI\\ccsv6\\utils\\bin\\gmake" -k -j 8 -s all -O 
    'Building file: C:/Users/agolestani/workspace_v6_2/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    'Invoking: ARM Compiler'
    'Finished building: C:/Users/agolestani/workspace_v6_2/AM335X_StarterWare_02_00_01_01/examples/beaglebone/gpio/gpioLEDBlink.c'
    ' '
    'Building target: ../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out'
    'Invoking: ARM Linker'
    <Linking>
    warning #10366-D: automatic library build: using library
       "C:\TI\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\lib\rtsv7A8_A_le_eabi.lib" for
       the first time, so it must be built.  This may take a few minutes.
    gmake.exe[1]: warning: -jN forced in submake: disabling jobserver mode.
          0 [main] sh 34932 sync_with_child: child 15344(0x1D0) died before initialization with status code 0xC0000142
     278430 [main] sh 34932 sync_with_child: *** child state waiting for longjmp
    /usr/bin/sh: fork: Resource temporarily unavailable
    gmake.exe[1]: *** [library] Error 128
    >> ERROR: mklib: gmake error during rtsv7A8_A_le_eabi.lib build
    warning #10207-D: automatic RTS selection:  resolving index library "libc.a" to
       "rtsv7A8_A_le_eabi.lib", but "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
    warning #10202-D: no suitable entry-point found; setting to 0
    error #10010: errors encountered during linking;
       "../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpi
       oLEDBlink.out" not built
    gmake: *** [../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out] Error 1
    Makefile:1937: recipe for target 'library' failed
    
    >> Compilation failure
    makefile:144: recipe for target '../../../../../../../binary/armv7a/cgt_ccs/am335x/beaglebone/gpio/Debug/gpioLEDBlink.out' failed
    gmake: Target 'all' not remade because of errors.
    
    **** Build Finished ****
    

  • That's very strange; I've never seen that failure mode before.  Please try this: open a command window and execute the following command:

    C:\TI\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\lib\mklib --pattern=rtsv7A8_A_le_eabi.lib

  • Here is the result :

    C:\TI\ccsv6\tools\compiler\ti-cgt-arm_5.2.5\lib>mklib --pattern=rtsv7A8_A_le_eabi.lib
    armcl array_del.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_del.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl array_new.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_new.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl array_nodel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_nodel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl array_nonew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_nonew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl array_pdel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_pdel.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl array_pnew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl array_pnew.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl delete.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl delete.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    armcl delnothrow.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet  -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me  -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj
    process_begin: CreateProcess(NULL, armcl delnothrow.cpp -O --embed_icode --keep_asm --diag_warning=225 --quiet -mv7A8 --abi=eabi --fp_mode=strict --no_visible_enums -c --ti_lib --keep_unneeded_types=false -me -fg --rtti --building_runtime -Ic:/ti/ccsv6/tools/compiler/ti-cgt~1.5/lib/src -fr c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -fs c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj -ft c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj, ...) failed.
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_del.obj] Error 2
    make.exe: *** Waiting for unfinished jobs....
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_new.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_nodel.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_nonew.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_pdel.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/array_pnew.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/delete.obj] Error 2
    make (e=2): The system cannot find the file specified.
    make.exe: *** [c:/users/agoles~1/appdata/local/temp/tiaa4d~1/obj/delnothrow.obj] Error 2
    >> ERROR: mklib: gmake error during rtsv7A8_A_le_eabi.lib build

  • Many Thanks !
    It compile it correctly now .

    Regards
    Ashkan
  • Actually it can Compile it with T1 v16.6.0.STS
    Still has a problem with TI v5.2.5
    It is strange !