Programmable Devices
CPLDs, FPGAs, SoC FPGAs, Configuration, and Transceivers
Announcements
FPGA community forums and blogs on community.intel.com are migrating to the new Altera Community and are read-only. For urgent support needs during this transition, please visit the FPGA Design Resources page or contact an Altera Authorized Distributor.

nios2-elf-ld

Altera_Forum
Honored Contributor II
2,115 Views

I am trying to load getting_started_s(provided by Altera) source code using Altera Monitor Program on DE2 board. But, when I am trying to compile it, I'm getting following error: 

 

Compiling source files... 

nios2-elf-as --gstabs -I E:/altera/91/nios2eds/components/altera_nios2/sdk/inc -I E:/altera/91/nios2eds/bin/University_Program/NiosII_Computer_Systems/DE2/DE2_Basic_Computer/app_software/getting_started_s E:/altera/91/nios2eds/bin/University_Program/NiosII_Computer_Systems/DE2/DE2_Basic_Computer/app_software/getting_started_s/getting_started.s -o E:/altera/91/nios2eds/bin/University_Program/NiosII_Computer_Systems/DE2/DE2_Basic_Computer/app_software/getting_started_s/getting_started.s.o  

/usr/bin/bash: line 0: igncr: invalid option name 

Linking... 

nios2-elf-ld --defsym nasys_program_mem=0x400 --defsym nasys_data_mem=0x400 --section-start .exceptions=0x20 --section-start .reset=0x0 -e _start -u _start --script e:/altera/91/quartus/../University_Program/Monitor_Program/build/nios_as_build.ld -g -o E:/altera/91/nios2eds/bin/University_Program/NiosII_Computer_Systems/DE2/DE2_Basic_Computer/app_software/getting_started_s/getting_started.elf E:/altera/91/nios2eds/bin/University_Program/NiosII_Computer_Systems/DE2/DE2_Basic_Computer/app_software/getting_started_s/getting_started.s.o  

/usr/bin/bash: line 0: igncr: invalid option name 

Compilation stopped. 

 

Kindly suggest some solution. 

 

Mumble.
0 Kudos
4 Replies
Altera_Forum
Honored Contributor II
1,351 Views

Hi Mumble, 

 

I found this link (http://cygwin.com/ml/cygwin-announce/2006-12/msg00026.html). 

 

Keep in mind that the Altera monitor program is _not_ the recommended flow and is not (well) maintained from release to release. The recommended flow is to either use the command line based software build tools (SBT) or one of the two supported GUI flows (Software Build Tools for Eclipse or Nios II IDE). 

 

You may want to ensure that you're using the correct version of the Altera tools as the monitor is only meant to work with specific Altera tool versions. 

 

Regards, 

 

-slacker
0 Kudos
Altera_Forum
Honored Contributor II
1,351 Views

I used the link provided by you but I am still getting the same error. Do you think there can be some problem with the installation path of altera Monitor Program?

0 Kudos
Altera_Forum
Honored Contributor II
1,351 Views

Hi Mumble, 

 

As I mentioned, it may have to do with the version of Altera tools (I'm not referring to the Monitor here) that you have installed. The monitor program apparently expects that bash support the igncr option, which is not a very good assumption. You must find a version of Altera tools which have a version of bash that supports this option or, from what I see, this just won't work. 

 

Regards, 

 

-slacker
0 Kudos
Altera_Forum
Honored Contributor II
1,351 Views

One more thing...if you have a SHELLOPTS environment variable that's defined as "igncr", then get rid of it as that is what's causing your problem...

0 Kudos
Reply