nilfs compilation errors

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I am trying to compile the nilfs sources on Ubuntu but it is giving
compilation errors.

My kernel version is

----8<----
shubham@shubham-VirtualBox:~/work/nilfs/git_repo/nilfs2-module$ uname -r
3.0.0-12-generic
----8<----

I got the nilfs sources from the git repository:

----8<----
shubham@shubham-VirtualBox:~/work/nilfs$ git clone
git://github.com/nilfs-dev/nilfs2-module.git
----8<----

After getting the sources, i tried to compile the sources but i am
getting the following compilation errors:

----8<----
shubham@shubham-VirtualBox:~/work/nilfs/git_repo/nilfs2-module$ make
make -C fs
make[1]: Entering directory `/home/shubham/work/nilfs/git_repo/nilfs2-module/fs'
make -C /lib/modules/3.0.0-12-generic/build
SUBDIRS=/home/shubham/work/nilfs/git_repo/nilfs2-module/fs
BUILD_DIR=/home/shubham/work/nilfs/git_repo/nilfs2-module/fs modules
make[2]: Entering directory `/usr/src/linux-headers-3.0.0-12-generic'
  CC [M]  /home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.o
In file included from
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:28:0:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/nilfs.h: In
function ‘nilfs_init_acl’:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/nilfs.h:234:31:
error: dereferencing pointer to incomplete type
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c: In
function ‘nilfs_write_begin’:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:212:5:
warning: passing argument 1 of ‘block_write_begin’ from incompatible
pointer type [enabled by default]
include/linux/buffer_head.h:204:5: note: expected ‘struct
address_space *’ but argument is of type ‘struct file *’
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:212:5:
warning: passing argument 2 of ‘block_write_begin’ makes integer from
pointer without a cast [enabled by default]
include/linux/buffer_head.h:204:5: note: expected ‘loff_t’ but
argument is of type ‘struct address_space *’
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:212:5:
warning: passing argument 5 of ‘block_write_begin’ makes pointer from
integer without a cast [enabled by default]
include/linux/buffer_head.h:204:5: note: expected ‘struct page **’ but
argument is of type ‘unsigned int’
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:212:5:
warning: passing argument 6 of ‘block_write_begin’ from incompatible
pointer type [enabled by default]
include/linux/buffer_head.h:204:5: note: expected ‘int (*)(struct
inode *, sector_t,  struct buffer_head *, int)’ but argument is of
type ‘struct page **’
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:212:5:
error: too many arguments to function ‘block_write_begin’
include/linux/buffer_head.h:204:5: note: declared here
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c: At top level:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:302:2:
error: unknown field ‘sync_page’ specified in initializer
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:302:16:
error: ‘block_sync_page’ undeclared here (not in a function)
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c: In
function ‘nilfs_delete_inode’:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:721:3:
error: implicit declaration of function ‘clear_inode’
[-Werror=implicit-function-declaration]
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c: In
function ‘nilfs_setattr’:
/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.c:759:2:
error: implicit declaration of function ‘inode_setattr’
[-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

make[3]: *** [/home/shubham/work/nilfs/git_repo/nilfs2-module/fs/inode.o]
Error 1
make[2]: *** [_module_/home/shubham/work/nilfs/git_repo/nilfs2-module/fs]
Error 2
make[2]: Leaving directory `/usr/src/linux-headers-3.0.0-12-generic'
make[1]: *** [default] Error 2
make[1]: Leaving directory `/home/shubham/work/nilfs/git_repo/nilfs2-module/fs'
make: *** [fs] Error 2
----8<----

Is there any step that I am missing before compiling the code?

Regards,
Shubham
--
To unsubscribe from this list: send the line "unsubscribe linux-nilfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Filesystem Development]     [Linux BTRFS]     [Linux CIFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]

  Powered by Linux