facebook/flashcache — Issue #33: Module compile and start errors
Author: easyjohn
Created: 2011-10-15 17:53:43+00:00
State: open

Cant start flashcache module.

# modprobe flashcache
FATAL: Error inserting flashcache (/lib/modules/2.6.36-gentoo-r5/extra/flashcache/flashcache.ko): Unknown symbol in module, or unknown parameter (see dmesg)

# tail /var/log/messages
2011.10.15 21:50:37 store1(kern.warning) kernel: flashcache: Unknown symbol __divdi3 (err 0)
2011.10.15 21:50:37 store1(kern.warning) kernel: flashcache: Unknown symbol __umoddi3 (err 0)
2011.10.15 21:50:37 store1(kern.warning) kernel: flashcache: Unknown symbol __udivdi3 (err 0)

Compile errors and warnings:
facebook-flashcache-5d28979 # make install
fatal: Not a git repository (or any of the parent directories): .git
grep: /etc/redhat-release: No such file or directory
make -C src KERNEL_TREE=/lib/modules/2.6.36-gentoo-r5/build PWD=/usr/src/facebook-flashcache-5d28979/src install
grep: /etc/redhat-release: No such file or directory
make[1]: Entering directory `/usr/src/facebook-flashcache-5d28979/src'
make -C /lib/modules/2.6.36-gentoo-r5/build M=/usr/src/facebook-flashcache-5d28979/src modules V=0
make[2]: Entering directory `/usr/src/linux-2.6.36-gentoo-r5'
grep: /etc/redhat-release: No such file or directory
CC [M] /usr/src/facebook-flashcache-5d28979/src/flashcache_conf.o
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_writeback_md_store':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:246: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:271: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:327: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_writethrough_create':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:366: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:366: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:372: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:372: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'unsigned int'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:372: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:372: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_writeback_create':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:427: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:452: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:452: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:459: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:459: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'unsigned int'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:459: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:459: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:522: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:550: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:590: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_writeback_load':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:636: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:687: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:687: warning: format '%ld' expects type 'long int', but argument 3 has type 'unsigned int'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:687: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:687: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:727: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:828: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_ctr':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:997: warning: format '%lu' expects type 'long unsigned int *', but argument 3 has type 'sector_t *'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_dtr_stats_print':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:1295: warning: format '%lu' expects type 'long unsigned int', but argument 6 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:1295: warning: format '%lu' expects type 'long unsigned int', but argument 10 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c: In function 'flashcache_status_table':
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:1497: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:1502: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_conf.c:1506: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
CC [M] /usr/src/facebook-flashcache-5d28979/src/flashcache_main.o
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_io_callback':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:189: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_do_pending_error':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:350: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_md_write_kickoff':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:684: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_md_write_done':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:787: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:826: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_kcopyd_callback':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:945: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_dirty_writeback':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:992: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1007: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_read_hit':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1232: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_read_miss':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1284: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_write_miss':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1527: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_write_hit':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1590: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_kcopyd_callback_sync':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1765: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_dirty_writeback_sync':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1807: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1822: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c: In function 'flashcache_uncached_io_complete':
/usr/src/facebook-flashcache-5d28979/src/flashcache_main.c:1965: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
CC [M] /usr/src/facebook-flashcache-5d28979/src/flashcache_subr.o
CC [M] /usr/src/facebook-flashcache-5d28979/src/flashcache_ioctl.o
CC [M] /usr/src/facebook-flashcache-5d28979/src/flashcache_procfs.o
LD [M] /usr/src/facebook-flashcache-5d28979/src/flashcache.o
Building modules, stage 2.
grep: /etc/redhat-release: No such file or directory
MODPOST 1 modules
WARNING: "__udivdi3" [/usr/src/facebook-flashcache-5d28979/src/flashcache.ko] undefined!
WARNING: "__umoddi3" [/usr/src/facebook-flashcache-5d28979/src/flashcache.ko] undefined!
WARNING: "__divdi3" [/usr/src/facebook-flashcache-5d28979/src/flashcache.ko] undefined!
CC /usr/src/facebook-flashcache-5d28979/src/flashcache.mod.o
LD [M] /usr/src/facebook-flashcache-5d28979/src/flashcache.ko
make[2]: Leaving directory `/usr/src/linux-2.6.36-gentoo-r5'
install -o root -g root -m 0755 -d /lib/modules/2.6.36-gentoo-r5/extra/flashcache/
install -o root -g root -m 0755 flashcache.ko /lib/modules/2.6.36-gentoo-r5/extra/flashcache/
depmod -a
make -C utils all
make[2]: Entering directory `/usr/src/facebook-flashcache-5d28979/src/utils'
cc -c -I.. -I. -DCOMMIT_REV="\"\"" -g flashcache_create.c -o flashcache_create.o
flashcache_create.c: In function 'main':
flashcache_create.c:247: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
flashcache_create.c:247: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
flashcache_create.c:247: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
flashcache_create.c:250: warning: format '%lu' expects type 'long unsigned int', but argument 2 has type 'sector_t'
flashcache_create.c:250: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
flashcache_create.c:296: warning: format '%d' expects type 'int', but argument 6 has type 'sector_t'
flashcache_create.c:301: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
flashcache_create.c:301: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
flashcache_create.c:321: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
flashcache_create.c:321: warning: format '%lu' expects type 'long unsigned int', but argument 8 has type 'sector_t'
flashcache_create.c:321: warning: format '%lu' expects type 'long unsigned int', but argument 9 has type 'sector_t'
flashcache_create.c:321: warning: format '%lu' expects type 'long unsigned int', but argument 10 has type 'int'
flashcache_create.c:321: warning: format '%lu' expects type 'long unsigned int', but argument 11 has type 'sector_t'
cc flashcache_create.o -o flashcache_create
cc -c -I.. -I. -DCOMMIT_REV="\"\"" -g flashcache_destroy.c -o flashcache_destroy.o
cc flashcache_destroy.o -o flashcache_destroy
cc -c -I.. -I. -DCOMMIT_REV="\"\"" -g flashcache_load.c -o flashcache_load.o
flashcache_load.c: In function 'main':
flashcache_load.c:168: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
flashcache_load.c:168: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
flashcache_load.c:173: warning: format '%lu' expects type 'long unsigned int', but argument 4 has type 'sector_t'
flashcache_load.c:173: warning: format '%lu' expects type 'long unsigned int', but argument 5 has type 'sector_t'
flashcache_load.c:183: warning: format '%lu' expects type 'long unsigned int', but argument 3 has type 'sector_t'
cc flashcache_load.o -o flashcache_load
make[2]: Leaving directory `/usr/src/facebook-flashcache-5d28979/src/utils'
make -C utils install
make[2]: Entering directory `/usr/src/facebook-flashcache-5d28979/src/utils'
install -d -m 755 /sbin/
install -m 755 flashcache_create flashcache_destroy flashcache_load /sbin/
make[2]: Leaving directory `/usr/src/facebook-flashcache-5d28979/src/utils'
make[1]: Leaving directory `/usr/src/facebook-flashcache-5d28979/src'