yaffs2 Build Error Using 2.6.31-14-generic #48-Ubuntu SMP Fri Oct 16 14:04:26 UTC 2009 i686 GNU/Linux
I Had installed GIT git version 1.6.3.3 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_09-b03) Java HotSpot(TM) Client VM (build 1.5.0_09-b03, mixed mode) repo version v1.7.3.1 (from git://android.git.kernel.org/tools/repo.git) git version 1.6.3.3 Python 2.6.4rc2 (r264rc2:75497, Oct 20 2009, 02:55:11) [GCC 4.4.1] Successfully Installed repo client and buld the code. Now downloaded the Android kernel using git command $ git clone git://android.git.kernel.org/kernel/common.git android- kernel Inside Android Kernel i used make menuconfig ---> Used option Load Alternate Configuration and selected my configuration that am using basically ARM , used the same CROSS_COMPILER path in .bashrc (myandroid/prebuilt/linux-x86/toolchain/ arm-eabi-4.2.1/bin) Now when i build the code i was getting these Errors. make fs/yaffs2/yaffs_fs.o fs/yaffs2/yaffs_fs.c:400: error: unknown field 'delete_inode' specified in initializer fs/yaffs2/yaffs_fs.c:400: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c:401: error: unknown field 'clear_inode' specified in initializer fs/yaffs2/yaffs_fs.c:401: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode': fs/yaffs2/yaffs_fs.c:799: error: implicit declaration of function 'clear_inode' fs/yaffs2/yaffs_fs.c: In function 'yaffs_setattr': fs/yaffs2/yaffs_fs.c:1823: error: implicit declaration of function 'inode_setattr' So i downloaded the recent yaffs2 folder using command git clone git://www.aleph1.co.uk/yaffs2' and copy it into fs/yaffs2/ and pasted it inide /android-kernel/fs/ make These Errors came up. CHK include/linux/version.h CHK include/generated/utsrelease.h make[1]: `include/generated/mach-types.h' is up to date. CALL scripts/checksyscalls.sh CHK include/generated/compile.h CC fs/yaffs2/yaffs_fs.o fs/yaffs2/yaffs_fs.c:37:26: error: linux/config.h: No such file or directory fs/yaffs2/yaffs_fs.c:187: error: unknown field 'prepare_write' specified in initializer fs/yaffs2/yaffs_fs.c:187: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c:188: error: unknown field 'commit_write' specified in initializer fs/yaffs2/yaffs_fs.c:188: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c:196: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c:229: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c:237: error: unknown field 'delete_inode' specified in initializer fs/yaffs2/yaffs_fs.c:237: warning: initialization from incompatible pointer type fs/yaffs2/yaffs_fs.c: In function 'yaffs_readlink': fs/yaffs2/yaffs_fs.c:263: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:267: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_follow_link': fs/yaffs2/yaffs_fs.c:287: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:291: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_lookup': fs/yaffs2/yaffs_fs.c:328: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:332: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:337: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_clear_inode': fs/yaffs2/yaffs_fs.c:396: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:411: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_delete_inode': fs/yaffs2/yaffs_fs.c:432: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:449: error: implicit declaration of function 'clear_inode' fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_flush': fs/yaffs2/yaffs_fs.c:458: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_readpage_nolock': fs/yaffs2/yaffs_fs.c:489: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_writepage': fs/yaffs2/yaffs_fs.c:589: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_FillInodeFromObject': fs/yaffs2/yaffs_fs.c:707: error: 'struct inode' has no member named 'i_blksize' fs/yaffs2/yaffs_fs.c:759: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_get_inode': fs/yaffs2/yaffs_fs.c:791: error: implicit declaration of function 'iget' fs/yaffs2/yaffs_fs.c:791: warning: assignment makes pointer from integer without a cast fs/yaffs2/yaffs_fs.c: In function 'yaffs_file_write': fs/yaffs2/yaffs_fs.c:808: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_readdir': fs/yaffs2/yaffs_fs.c:868: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_mknod': fs/yaffs2/yaffs_fs.c:962: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:965: error: 'struct task_struct' has no member named 'fsuid' fs/yaffs2/yaffs_fs.c:966: error: 'struct task_struct' has no member named 'fsgid' fs/yaffs2/yaffs_fs.c: In function 'yaffs_unlink': fs/yaffs2/yaffs_fs.c:1077: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1081: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_link': fs/yaffs2/yaffs_fs.c:1107: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1115: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_symlink': fs/yaffs2/yaffs_fs.c:1145: error: 'struct task_struct' has no member named 'fsuid' fs/yaffs2/yaffs_fs.c:1146: error: 'struct task_struct' has no member named 'fsgid' fs/yaffs2/yaffs_fs.c:1150: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1152: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_sync_object': fs/yaffs2/yaffs_fs.c:1179: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_rename': fs/yaffs2/yaffs_fs.c:1203: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1209: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1227: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1229: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_setattr': fs/yaffs2/yaffs_fs.c:1254: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1260: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1262: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c:1270: error: implicit declaration of function 'inode_setattr' fs/yaffs2/yaffs_fs.c: In function 'yaffs_statfs': fs/yaffs2/yaffs_fs.c:1278: error: 'struct inode' has no member named 'u' fs/yaffs2/yaffs_fs.c: In function 'yaffs_internal_read_super': fs/yaffs2/yaffs_fs.c:1527: warning: format '%d' expects type 'int', but argument 2 has type 'uint64_t' fs/yaffs2/yaffs_fs.c: In function 'init_yaffs_fs': fs/yaffs2/yaffs_fs.c:2061: error: 'proc_root' undeclared (first use in this function) fs/yaffs2/yaffs_fs.c:2061: error: (Each undeclared identifier is reported only once fs/yaffs2/yaffs_fs.c:2061: error: for each function it appears in.) fs/yaffs2/yaffs_fs.c: In function 'exit_yaffs_fs': fs/yaffs2/yaffs_fs.c:2107: error: 'proc_root' undeclared (first use in this function) make[2]: *** [fs/yaffs2/yaffs_fs.o] Error 1 make[1]: *** [fs/yaffs2] Error 2 make: *** [fs] Error 2 How do i resolve this, Please suggest some solution on this. Thank You. -- unsubscribe: android-kernel+unsubscr...@googlegroups.com website: http://groups.google.com/group/android-kernel