This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

/bin/sh: 1: aarch64-elf-gcc.exe: not found

The issue:

I cannot build my project because o get this error message:

/bin/sh: 1: aarch64-elf-gcc.exe: not found

In window - preferences - Arm DS -Toolchain:

I have added GCC 8.3.0 [aarch64-elf] toolchain that I downloaded from the official website: gcc-arm-8.3-2019.03-x86_64-aarch64-elf

When I open the project properties, in the C/C++ Build-Tool Chain Editor the current toolchain is GCC 8.3.0 [aarch64-elf], I also see a list of used tools:

GCC C Compiler 8.3.0 [aarch64-elf]
GCC C++ Compiler 8.3.0 [aarch64-elf]
GCC Assembler 8.3.0 [aarch64-elf]
GCC C Linker 8.3.0 [aarch64-elf]
GCC C++ Linker 8.3.0 [aarch64-elf]

As you can see, it has the compiler there. I dont understand how else would iI provide the compiler so it would be seen by ARM Ds.

Seems like arm ds does not see the .exe file, or it just simply is not there. Could you please help me figure it out?

Parents
  • Just to give you more of the context of the error:

    The compiler is invoked, and after that the file is finished building. Then the Assembler was invoked and after that I get that .exe wasnt found.



    Invoking: GCC C Compiler 8.3.0 [aarch64-elf]
    aarch64-elf-gcc -mcpu=cortex-a53 -DSTANDALONE -DENABLE_ARM_FP -I"/home/mariag/developmentstudio-workspace/ECworkspace/tx/Common/inc" -I"/home/mariag/developmentstudio-workspace/ECworkspace/tx/A53/inc" -O0 -g -Wall -MMD -MP -MF"Common/src/txe_timer_info_get.d" -MT"Common/src/txe_timer_info_get.o" -c -o "Common/src/txe_timer_info_get.o" "../Common/src/txe_timer_info_get.c"
    Invoking: GCC Assembler 8.3.0 [aarch64-elf]

    aarch64-elf-gcc.exe -mcpu=cortex-a53 -DEL1 -g -c -o "A53/src/tx_initialize_low_level.o" "../A53/src/tx_initialize_low_level.S"
    Building file: ../A53/src/tx_thread_context_restore.S
    Finished building: ../Common/src/txe_thread_entry_exit_notify.c
    /bin/sh: 1: aarch64-elf-gcc.exe: not found
    Building file: ../A53/src/tx_thread_context_save.S
    Finished building: ../Common/src/txe_thread_priority_change.c
    make: *** [A53/src/subdir.mk:44: A53/src/tx_initialize_low_level.o] Error 127

Reply
  • Just to give you more of the context of the error:

    The compiler is invoked, and after that the file is finished building. Then the Assembler was invoked and after that I get that .exe wasnt found.



    Invoking: GCC C Compiler 8.3.0 [aarch64-elf]
    aarch64-elf-gcc -mcpu=cortex-a53 -DSTANDALONE -DENABLE_ARM_FP -I"/home/mariag/developmentstudio-workspace/ECworkspace/tx/Common/inc" -I"/home/mariag/developmentstudio-workspace/ECworkspace/tx/A53/inc" -O0 -g -Wall -MMD -MP -MF"Common/src/txe_timer_info_get.d" -MT"Common/src/txe_timer_info_get.o" -c -o "Common/src/txe_timer_info_get.o" "../Common/src/txe_timer_info_get.c"
    Invoking: GCC Assembler 8.3.0 [aarch64-elf]

    aarch64-elf-gcc.exe -mcpu=cortex-a53 -DEL1 -g -c -o "A53/src/tx_initialize_low_level.o" "../A53/src/tx_initialize_low_level.S"
    Building file: ../A53/src/tx_thread_context_restore.S
    Finished building: ../Common/src/txe_thread_entry_exit_notify.c
    /bin/sh: 1: aarch64-elf-gcc.exe: not found
    Building file: ../A53/src/tx_thread_context_save.S
    Finished building: ../Common/src/txe_thread_priority_change.c
    make: *** [A53/src/subdir.mk:44: A53/src/tx_initialize_low_level.o] Error 127

Children
  • Hi Maria

    My name is Stephen and I work at Arm.

    Are you using Arm DS on a Linux platform?  If so, there is no such file as "aarch64-elf-gcc.exe", it will be named "aarch64-elf-gcc" instead.  Did you create the project files yourself, or have you received them from someone who might have created them on a Windows platform?  I can re-create the issue you see by modifying the build command for the GCC Assembler in the Project Properties, adding a ".exe" (see screenshot below).  For you to resolve this issue, simply remove the ".exe", then Apply and Close.



    Hope this helps,

    Stephen

  • Yes, that was exactly what I needed! It helped. I was trying to build the threadX sample projects. When I made the changes you suggested it worked. (Now I have a different error message though ;D)

    Thank you!