DevOps Automation

DevOps Automation

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Linking error: multiple definition of `_atc_link'; e2s_RA6M1\TP.o:C:\PROGRA~2\Rational\TESTRE~1\targets\E2S_RA~1\lib/atc.c:162: first defined here

  • 1.  Linking error: multiple definition of `_atc_link'; e2s_RA6M1\TP.o:C:\PROGRA~2\Rational\TESTRE~1\targets\E2S_RA~1\lib/atc.c:162: first defined here

    Posted Tue December 13, 2022 10:26 PM
    Could be able to compile all the source files and generate object file, as part of linking process generation of binary creation(elf) using all generated object files getting linking error as multiple definition.

    c:/renesas/e2_studio/toolchains/gcc_armgcc-arm-none-eabi-10.3-2021.10/bin/../lib/gcc/arm-none-eabi/10.3.1/../../../../arm-none-eabi/bin/ld.exe: e2s_RA6M1\TP.o: in function `_atc_link':
    C:\PROGRA~2\Rational\TESTRE~1\targets\E2S_RA~1\lib/atc.c:162: multiple definition of `_atc_link'; e2s_RA6M1\TP.o:C:\PROGRA~2\Rational\TESTRE~1\targets\E2S_RA~1\lib/atc.c:162: first defined here

    atl_link(): .\e2s_RA6M1\SCI.elf file not created
    atl_link(): subroutine return value 1
    collect2.exe: error: ld returned 1 exit status
    Failed.

    similarly, facing error in few more RTRT variables 


    ------------------------------
    Harikishore reddy Gopalreddy
    ------------------------------


  • 2.  RE: Linking error: multiple definition of `_atc_link'; e2s_RA6M1\TP.o:C:\PROGRA~2\Rational\TESTRE~1\targets\E2S_RA~1\lib/atc.c:162: first defined here

    Posted Wed December 14, 2022 09:42 AM
    Hi,

    It's an error during the link with the runtime (TP.o), it might be a link order.
    How the runtime (TP.o) has been built? with what options?
    It's difficult to answer without the full build log and the context information (version of the product, TDP used,...)
    I think you can open a ticket through IBM Community Support Portal: https://www.ibm.com/mysupport/
    Regards,
    Yanis

    ------------------------------
    Yanis Bensemmane
    ------------------------------