Forum Discussion

csnsssn's avatar
csnsssn
Icon for New Contributor rankNew Contributor
2 years ago

Help Needed: Error "nios2-elf-as.exe: not found" while Assembling Nios II Program

Hello everyone,

I'm encountering an issue while trying to assemble a Nios II program using the Nios II Command Shell. The specific error message I receive is:

```

nios2-elf-as.exe --gstabs -I "C:/intelFPGA_lite/21.1/nios2eds/components/altera_nios2/sdk/inc/" simple_program.s -o simple_program.s.o
/bin/sh: 1: nios2-elf-as.exe: not found
make: *** [amp.mk:79: simple_program.s.o] Error 127

```

I'm not sure if there's a specific step I'm missing or if there's an issue with my environment setup.

Could someone please guide me on how to resolve this issue? Any suggestions or insights would be greatly appreciated.

Thank you in advance for your help!

8 Replies

  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi csnsssn,


    Did you run the Nios II command shell first in your terminal?

    You can find the Nios II Command Shell.bat in the Nio2eds folder in your quartus installation file.


    Thanks.

    Regards,

    Aik Eu


  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi csnsssn,


    May I know if there is any follow up from the previous comment?


    Thanks.

    Regards,

    Aik Eu


    • csnsssn's avatar
      csnsssn
      Icon for New Contributor rankNew Contributor
      Hi Aik Eu,

      Thank you for your suggestion.

      I ran the Nios II Command Shell as you advised. I have also tried using the older version of the monitor program (version 18.1), and it successfully compiled the program. However, the issue persists with the newer version (21.1), and I'm still encountering the same error.

      Any further guidance or suggestions would be greatly appreciated.

      Thank you for your help!
  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi csnsssn,


    May I know any further follow up from the issue?


    Thanks.

    Regards,

    Aik Eu


    • csnsssn's avatar
      csnsssn
      Icon for New Contributor rankNew Contributor
      Thank you for your help!

      I followed your advice, and everything is working fine now. The issue has been resolved. I appreciate your assistance!
  • aikeu's avatar
    aikeu
    Icon for Regular Contributor rankRegular Contributor

    Hi csnsssn,


    Glad to know that the issue has been resolved. I now transition this thread to community support. If you have a new question, Please login to ‘https://supporttickets.intel.com/s/?language=en_US’, view details of the desire request, and post a feed/response within the next 15 days to allow me to continue to support you. After 15 days, this thread will be transitioned to community support. The community users will be able to help you on your follow-up questions.



    Thanks.

    Regards,

    Aik Eu


  • hello sir i got the same error in my computer also can u resolve the issue sir

    nios2-elf-as.exe --gstabs -I "C:/intelFPGA/23.1std/nios2eds/components/altera_nios2/sdk/inc/" simple_program.s -o simple_program.s.o
    amp.mk:78: recipe for target 'simple_program.s.o' failed
    /bin/sh: 1: nios2-elf-as.exe: not found
    make: *** [simple_program.s.o] Error 127

    i got this error in intel fpga monitor program

    i am installed quartus prime 23.1 std version and installed 21.1 intel fpga monitor program because in intel fpga monitor program only two version are available 18.1 and 21.1 so give me clarity that version is supported for quartus 23.1 std version or because of version change only i got this error please give me relpy sir