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.

PROCESSOR-SDK-AM62X: MCU-PLUS-SDK AM62X Compile error

Part Number: PROCESSOR-SDK-AM62X
Other Parts Discussed in Thread: SYSCONFIG

Tool/software:

Hello,

I'm compiling MCU-Plus-SDK for AM62x ver 09.02.01.06 under windows10 64bit environment.
I installed several packages under my environment and after that I built by using following command.

$ gmake -sj4 all

Then, I got following error.
----
Linking: am62x:a53ss0-0:freertos:gcc-aarch64 gpio_led_blink.release.out ...

.
.
Linking: am62x:a53ss0-0:freertos:gcc-aarch64 gpio_led_blink.release.out ...
Linking: am62x:a53ss0-0:freertos:gcc-aarch64 gpio_led_blink.release.out ...
collect2.exe: fatal error: CreateProcess: No such file or directory
compilation terminated.
makefile:164: recipe for target 'gpio_led_blink.release.out' failed
gmake[3]: *** [gpio_led_blink.release.out] Error 1
----

From above, it seems that kind of error of command line length limitation of windows envirnment.
However, I'm not sure which library cause this issue.
Do you have any solution to avoid this ?

Best Regards,

  • Hello Ryuuichi,

    Thanks for your query.

    collect2.exe: fatal error: CreateProcess: No such file or directory
    compilation terminated.
    makefile:164: recipe for target 'gpio_led_blink.release.out' failed
    gmake[3]: *** [gpio_led_blink.release.out] Error 1

    The above error message says that No such file or directory exists, but does not tell about the directory or file name.

    Can you please run the below command and narrow down the cause of issue?(i.e. don't use the -j4 flag)

    gmake -s all
    

    Please share the complete error logs after running the above command.

    Regards,

    Tushar

  • Hi Tushar-san,

    Here is result of "gmake -s all".

    ---
    C:\ti\mcu_plus_sdk_am62x_09_02_01_06>gmake -s all
    Generating SysConfig files ...
    Running script...
    Validating...
    Generating Code (example.syscfg)...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_dpl_config.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_dpl_config.h...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_drivers_config.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_drivers_config.h...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_drivers_open_close.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_drivers_open_close.h...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_pinmux_config.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_power_clock_config.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_board_config.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_board_config.h...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_board_open_close.c...
    Unchanged C:\ti\mcu_plus_sdk_am62x_09_02_01_06\examples\drivers\gpio\gpio_led_blink\am62x-sk\a53ss0-0_freertos\gcc-aarch64\generated\ti_board_open_close.h...
    .
    Linking: am62x:a53ss0-0:freertos:gcc-aarch64 gpio_led_blink.release.out ...
    collect2.exe: fatal error: CreateProcess: No such file or directory
    compilation terminated.
    makefile:164: recipe for target 'gpio_led_blink.release.out' failed
    gmake[3]: *** [gpio_led_blink.release.out] Error 1
    makefile.am62x:1256: recipe for target 'gpio_led_blink_am62x-sk_a53ss0-0_freertos_gcc-aarch64' failed
    gmake[2]: *** [gpio_led_blink_am62x-sk_a53ss0-0_freertos_gcc-aarch64] Error 2
    makefile.am62x:6: recipe for target 'all' failed
    gmake[1]: *** [all] Error 2
    makefile:62: recipe for target 'all' failed
    gmake: *** [all] Error 2

    C:\ti\mcu_plus_sdk_am62x_09_02_01_06>
    ----

    BR,

  • Hi Ryuuichi,

    Thanks for sharing the above logs.

    I can see that from the above error logs gmake is trying to find the collect2.exe file which is not present in your system. 

    Can you please confirm have you installed the required GCC compiler for AM62x MCU+SDK?

    Please refer GCC_AARCH64 

    Regards,

    Tushar

  • Hello,

    >Can you please confirm have you installed the required GCC compiler for AM62x MCU+SDK?
    Yes, I have already installed GCC compiler under "C:/ti" as shown below.
    "C:\ti\gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf"

    Best Regards,

  • Hello Ryuuichi,

    Thanks for the above confirmation.

    I have tried the above command and I am able to build the SDK.

    It might be possible that the compiler on your system is not installed properly.

    Can you please try re-installing the compiler and check whether you face the issue again or not?

    Please let us know the results.

    Regards,

    Tushar

  • Hello Tushar-san,

    Thank you for your reply.
    >Can you please try re-installing the compiler and check whether you face the issue again or not?

    I removed installed compiler and re-extracted by following procedure.

    1. Remove existing "gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf" folder manually.
    2. Re create "gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf" folder manually.
    3. Copy "gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf.tar.xz" under "gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf".
    4. Extract tar.xz file by using "Lhaz" tool.

    However, I also observed same result...
    Are you using CCS ver 12.7.0 ?
    I used CCS ver 12.7.1. Path which is described "imports.mak" is different from my environment. So I changed as shown below in my environment.
    >    CCS_PATH?=$(TOOLS_PATH)/ccs1271/ccs

    BR,

  • Hello Ryuuichi,

    Thanks for your reply.

    Can you please share the path the of collect2.exe file in your system?

    For me the path is "C:\ti\gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf\libexec\gcc\aarch64-none-elf\9.2.1\collect2.exe".

    Also can you please check all the extracted file have size > 0KB? If there are files with size 0KB then the zip is not extracted properly.

    Regards,

    Tushar

  • Hello,

    >Can you please share the path the of collect2.exe file in your system?
    Yes. I see above file under following directory.
    C:\ti\gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf\libexec\gcc\aarch64-none-elf\9.2.1

    collect2.exe file size is "2548kB"

    >Also can you please check all the extracted file have size > 0KB? If there are files with size 0KB then the zip is not extracted properly.
    Several files show 0KB. For example, below show 0kB

    C:\ti\gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf\aarch64-none-elf\bin\Id.exe
    C:\ti\gcc-arm-9.2-2019.12-mingw-w64-i686-aarch64-none-elf\aarch64-none-elf\lib\libg.a

    By the way, I could build correctly under linux environment. (Use same package version as windows.)

    BR,

  • Hello Ryuuichi,

    Thanks for your response.

    From above it seems like the tool you are using to extract the tar file is not working properly and is not able to extract the compiler correctly.

    Meanwhile I am attaching the required files below, Can you please replace the above mentioned files with the attached ones and try again?

    Files - ld.exelibg.a

    Please let us know the results.

    Regards,

    Tushar

  • Hello Tushar-san,

    Thank you for your reply.
    I installed another extraction tool which I used. After that I re-extract GCC compiler.
    Then I could build correctly under windows environment as well.
    So, I will close this thread. Thank you for your support.

    BR,