Nios® II Embedded Design Suite (EDS)
Support for Embedded Development Tools, Processors (SoCs and Nios® II processor), Embedded Development Suites (EDSs), Boot and Configuration, Operating Systems, C and C++
Announcements
Intel Support hours are Monday-Fridays, 8am-5pm PST, except Holidays. Thanks to our community members who provide support during our down time or before we get to your questions. We appreciate you!

Need Forum Guidance? Click here
Search our FPGA Knowledge Articles here.
12455 Discussions

nios2-linux-gnu-gcc: /include: No such file or directory

Altera_Forum
Honored Contributor II
889 Views

Hi everyone, 

I have convert the myqsys.sopcinfo to myqsys.dts,then fabricate my nios2 custom board in the uClinux-dist like this with the trunk branch! 

http://www.alterawiki.com/wiki/devicetree 

http://www.alterawiki.com/wiki/creating_a_nios_ii_design_with_an_mmu 

 

# cd /home/nios2-linux/uClinux-dist # git branch -l test-nios2 * trunk #  

 

cd uClinux-dist make menuconfig # select Altera,my_nios2. kernel config your FPGA. * NiosII board configuration * board configuration > 1. 3C120 dev board (3C120) 2. Nios Embedded Evaluation Kit (NEEK) 3. my nios2 custom board (MY_NIOS2) (NEW) choice: 3 

when I print the make command,the errors show: 

# make make -f tools/autotools.mk autotools-cache make: Entering directory `/home/nios2-linux/uClinux-dist' make: Nothing to be done for `autotools-cache'. make: Leaving directory `/home/nios2-linux/uClinux-dist' chmod +x tools/romfs-inst.sh tools/modules-alias.sh tools/build-udev-perms.sh . linux-2.6.x/.config; if ; then mkdir -p `dirname $CONFIG_INITRAMFS_SOURCE`; touch $CONFIG_INITRAMFS_SOURCE || exit 1; fi rm -f linux-2.6.x/usr/initramfs_data.cpio make ARCH=nios2 CROSS_COMPILE=nios2-linux-gnu- O=/home/nios2-linux/uClinux-dist/linux-2.6.x -j8 -C ../linux-2.6 || exit 1 make: Entering directory `/home/nios2-linux/linux-2.6' GEN /home/nios2-linux/uClinux-dist/linux-2.6.x/Makefile CHK include/linux/version.h CHK include/generated/utsrelease.h Using /home/nios2-linux/linux-2.6 as source for kernel CC scripts/mod/empty.o nios2-linux-gnu-gcc: /include: No such file or directory nios2-linux-gnu-gcc: /include: No such file or directory make: *** Error 1 make: *** Error 2 make: *** Error 2 make: *** Error 2 make: Leaving directory `/home/nios2-linux/linux-2.6' make: *** Error 1 

I have set the PATH in the .bash_profile 

# .bash_profile # Get the aliases and functions if ; then . ~/.bashrc fi # User specific environment and startup programs PATH=$PATH:$HOME/bin:/nios2-linux/toolchain-mmu/x86-linux2/bin export PATH unset USERNAME 

I have read this thread in the http://www.alteraforum.com/forum/showthread.php?t=29720 

but dont understand what is meaning of the ' you should not need CROSS_COMPILE or CONFIGURE_HOST' 

 

Kind Regards  

Fdsa
0 Kudos
0 Replies
Reply