Forum Discussion
Altera_Forum
Honored Contributor
22 years agoNiosII not finding nios2-elf-gcc
I installed altera Nios II and the uClinux kenel 2.6 distribution and tried to build a kernel and got the error that it couldn't find nios2-elf-gcc. This even after running Quartus II 4.0 as stated in the installation notes. Does the Microtonics or Altera Nios 1 files need to be removed first? Any other things I can try?
2 Replies
- Altera_Forum
Honored Contributor
You are right. I faced the same problem and I realized that the makefiles were pointing to the Nios I toolchain. I had to uninstall the Nios I to make everything work.
- Altera_Forum
Honored Contributor
I had the same problem (see my post on the forum).
To solve the problem, I have add the following lines in the kit_bash file (altera/kits/nios2) # add kit items to path if not already there# (happens if UI not run before SDK shell) tmp_nios_root=`safe_path $sopc_kit_nios2` if [ "${PATH//$tmp_nios_root\/bin\/fs2\/bin/}" == "$PATH" ] then PATH=$tmp_nios_root/bin:$tmp_nios_root/bin/nios2-gnutools/H-i686-pc-cygwin/bin:$tmp_nios_root/bin/fs2/bin:$PATH PERL5LIB=$tmp_nios_root/bin:$PERL5LIB fi unset tmp_nios_root Regards, Hans