Forum Discussion
Altera_Forum
Honored Contributor
16 years agonios2-elf-ld
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.4 Replies
- Altera_Forum
Honored Contributor
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...
- Altera_Forum
Honored Contributor
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 - Altera_Forum
Honored Contributor
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?
- Altera_Forum
Honored Contributor
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