下载安装nios2linux-1.4后编译出现如下错误,请问是是什么原因?
我用的 是de2板子,Cyclone (ep2c35),是不是不支持这块芯片?
编译结果:
------------------------------------------------
Microtronix Linux Extensions
Version 1.4, Built June 20, 2005
------------------------------------------------
make: Entering directory `/cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
no emulation specific options.
Using /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x as source for kernel
GEN /cygdrive/d/altera/kits/nios2_51/bin/eclipse/workspace/nios_linux/build/Makefile
CHK include/linux/version.h
CHK include/nios2_system.h
HOSTCC scripts/basic/fixdep
scripts/basic/.fixdep.d: done.
HOSTCC scripts/basic/split-include
scripts/basic/.split-include.d: done.
HOSTCC scripts/basic/docproc
scripts/basic/.docproc.d: done.
HOSTCC scripts/mod/mk_elfconfig
scripts/mod/.mk_elfconfig.d: done.
MKELF scripts/mod/elfconfig.h
HOSTCC scripts/mod/file2alias.o
scripts/mod/.file2alias.o.d: done.
HOSTCC scripts/mod/modpost.o
scripts/mod/.modpost.o.d: done.
HOSTCC scripts/mod/sumversion.o
scripts/mod/.sumversion.o.d: done.
HOSTLD scripts/mod/modpost
HOSTCC scripts/kallsyms
scripts/.kallsyms.d: done.
HOSTCC scripts/bin2c
scripts/.bin2c.d: done.
make[2]: `arch/nios2nommu/kernel/asm-offsets.s' is up to date.
CHK include/asm-nios2nommu/asm-offsets.h
CHK include/linux/compile.h
CC init/do_mounts_initrd.o
In file included from /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/include/linux/unistd.h:9,
from /cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x/init/do_mounts_initrd.c:2:
include2/asm/unistd.h:659: error: parse error before "setsid"
include2/asm/unistd.h:659: warning: return type defaults to `int'
include2/asm/unistd.h: In function `setsid':
include2/asm/unistd.h:659: error: `pid_t' undeclared (first use in this function)
include2/asm/unistd.h:659: error: (Each undeclared identifier is reported only once
include2/asm/unistd.h:659: error: for each function it appears in.)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:660: error: parse error before "off_t"
include2/asm/unistd.h:660: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `write':
include2/asm/unistd.h:660: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:660: error: `buf' undeclared (first use in this function)
include2/asm/unistd.h:660: error: `count' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:661: error: parse error before "off_t"
include2/asm/unistd.h:661: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `read':
include2/asm/unistd.h:661: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:661: error: `buf' undeclared (first use in this function)
include2/asm/unistd.h:661: error: `count' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:662: error: parse error before "lseek"
include2/asm/unistd.h:662: error: parse error before "off_t"
include2/asm/unistd.h:662: warning: return type defaults to `int'
include2/asm/unistd.h:662: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `lseek':
include2/asm/unistd.h:662: error: `fd' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `offset' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `count' undeclared (first use in this function)
include2/asm/unistd.h:662: error: `off_t' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:668: error: parse error before "waitpid"
include2/asm/unistd.h:668: error: parse error before "pid"
include2/asm/unistd.h:668: warning: return type defaults to `int'
include2/asm/unistd.h:668: warning: function declaration isn't a prototype
include2/asm/unistd.h: In function `waitpid':
include2/asm/unistd.h:668: error: `pid' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `wait_stat' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `options' undeclared (first use in this function)
include2/asm/unistd.h:668: error: `pid_t' undeclared (first use in this function)
include2/asm/unistd.h: At top level:
include2/asm/unistd.h:671: error: parse error before "wait"
include2/asm/unistd.h:672: warning: return type defaults to `int'
make[2]: *** [init/do_mounts_initrd.o] Error 1
make[1]: *** [init] Error 2
make: *** [_all] Error 2
make: Leaving directory `/cygdrive/d/altera/kits/nios2_51/bin/eclipse/plugins/com.microtronix.nios2linux.kernel_1.4.0/linux-2.6.x'
欢迎光临 电子技术论坛_中国专业的电子工程师学习交流社区-中电网技术论坛 (http://bbs.eccn.com/) | Powered by Discuz! 7.0.0 |