Altera_Forum
Honored Contributor
20 years agoinitrd build error
hi
I have enabled initrd support in my kernel and while building I am getting following error (I am adding it below) , Can any body suggest something on it. I am pasting my .config file part also. thanks Ankur -------------------------------------------------------------------------------------------------- **.config file**# # Block devices# # CONFIG_BLK_DEV_FD is not set CONFIG_BLK_DEV_LOOP=y# CONFIG_BLK_DEV_CRYPTOLOOP is not set# CONFIG_BLK_DEV_NBD is not set CONFIG_BLK_DEV_RAM=y CONFIG_BLK_DEV_RAM_SIZE=4096 CONFIG_BLK_DEV_INITRD=y ------------------------------------------------------------------------------------------------- error CC init/do_mounts_initrd.o In file included from include/linux/unistd.h:9, from init/do_mounts_initrd.c:2: include/asm/unistd.h:659: error: parse error before "setsid" include/asm/unistd.h:659: warning: return type defaults to `int' include/asm/unistd.h: In function `setsid': include/asm/unistd.h:659: error: `pid_t' undeclared (first use in this function)include/asm/unistd.h:659: error: (Each undeclared identifier is reported only once include/asm/unistd.h:659: error: for each function it appears in.) include/asm/unistd.h: At top level: include/asm/unistd.h:660: error: parse error before "off_t" include/asm/unistd.h:660: warning: function declaration isn't a prototype include/asm/unistd.h: In function `write': include/asm/unistd.h:660: error: `fd' undeclared (first use in this function) include/asm/unistd.h:660: error: `buf' undeclared (first use in this function) include/asm/unistd.h:660: error: `count' undeclared (first use in this function)include/asm/unistd.h: At top level: include/asm/unistd.h:661: error: parse error before "off_t" include/asm/unistd.h:661: warning: function declaration isn't a prototype include/asm/unistd.h: In function `read': include/asm/unistd.h:661: error: `fd' undeclared (first use in this function) include/asm/unistd.h:661: error: `buf' undeclared (first use in this function) include/asm/unistd.h:661: error: `count' undeclared (first use in this function)include/asm/unistd.h: At top level: include/asm/unistd.h:662: error: parse error before "lseek" include/asm/unistd.h:662: error: parse error before "off_t" include/asm/unistd.h:662: warning: return type defaults to `int' include/asm/unistd.h:662: warning: function declaration isn't a prototype include/asm/unistd.h: In function `lseek': include/asm/unistd.h:662: error: `fd' undeclared (first use in this function) include/asm/unistd.h:662: error: `offset' undeclared (first use in this function) include/asm/unistd.h:662: error: `count' undeclared (first use in this function)include/asm/unistd.h:662: error: `off_t' undeclared (first use in this function)include/asm/unistd.h: At top level: include/asm/unistd.h:668: error: parse error before "waitpid" include/asm/unistd.h:668: error: parse error before "pid" include/asm/unistd.h:668: warning: return type defaults to `int' include/asm/unistd.h:668: warning: function declaration isn't a prototype include/asm/unistd.h: In function `waitpid': include/asm/unistd.h:668: error: `pid' undeclared (first use in this function) include/asm/unistd.h:668: error: `wait_stat' undeclared (first use in this function) include/asm/unistd.h:668: error: `options' undeclared (first use in this function) include/asm/unistd.h:668: error: `pid_t' undeclared (first use in this function)include/asm/unistd.h: At top level: include/asm/unistd.h:671: error: parse error before "wait" include/asm/unistd.h:672: warning: return type defaults to `int' make[1]: *** [init/do_mounts_initrd.o] Error 1 make: *** [init] Error 2