Build Dependency Issue in Lustre Mainline Linux
Just did a fresh git pull --rebase and tried to do 'make deb-pkg' with an Ubuntu config (which enables lustre). I got the following:
depmod: WARNING: found 2 modules in dependency cycles!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lnet/lnet/lnet.ko in dependency cycle!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lustre/libcfs/libcfs.ko in dependency cycle!./scripts/depmod.sh: line 57: 16836 Killed "$DEPMOD"
"$@" "$KERNELRELEASE" $SYMBOL_PREFIX
make[2]: *** [_modinst_post] Error 137
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
This was building fine in v4.3, so I suspect something after this tag is causing issue. (My HEAD is at 8e483ed13).
--chris
Dilger
Quoted 18 lines · lustre-devel on behalf of Chris J Arges
Just did a fresh git pull --rebase and tried to do 'make deb-pkg' with an Ubuntu config (which enables lustre). I got the following:
depmod: WARNING: found 2 modules in dependency cycles!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lnet/lnet/lnet.ko
in dependency cycle!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lustre/libcfs/libcfs.ko
in dependency cycle!./scripts/depmod.sh: line 57: 16836 Killed "$DEPMOD"
"$@" "$KERNELRELEASE" $SYMBOL_PREFIX
make[2]: *** [_modinst_post] Error 137
make[1]: *** [deb-pkg] Error 2
make: *** [deb-pkg] Error 2
Quoted 2 lines
This was building fine in v4.3, so I suspect something after this tag is causing issue. (My HEAD is at
8e483ed13).
Could you run git bisect to find the offending patch? The error messages don't really give very much to go on.
Cheers, Andreas
Signature · 4 lines
Andreas Dilger Lustre Software Architect Intel High Performance Data Division
Simmons
Quoted 4 lines
Just did a fresh git pull --rebase and tried to do 'make deb-pkg' with an Ubuntu config (which enables lustre). I got the following:
Quoted 8 lines
depmod: WARNING: found 2 modules in dependency cycles!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lnet/lnet/lnet.koin dependency cycle!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lustre/libcfs/libcfs.koin dependency cycle!./scripts/depmod.sh: line 57: 16836 Killed "$DEPMOD"
I solved your problem. If you delete IOC_LIBCFS_PING_TEST ioctl case from libcfs/libcfs/module.c it work again. That ioctl has not been is use for some time and it can be removed. What is happening is libcfs_nid2str is being called which requires lnet.ko now. This is a layer violation. I will be sending a patch very shortly.
Quoted 13 lines · James A.
Quoted 4 lines
Just did a fresh git pull --rebase and tried to do 'make deb-pkg' with an Ubuntu config (which enables lustre). I got the following:
Quoted 8 lines
depmod: WARNING: found 2 modules in dependency cycles!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lnet/lnet/lnet.koin dependency cycle!
depmod: WARNING:/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/drivers/staging/lustre/lustre/libcfs/libcfs.koin dependency cycle!./scripts/depmod.sh: line 57: 16836 Killed "$DEPMOD"
Quoted 4 lines
I solved your problem. If you delete
IOC_LIBCFS_PING_TESTioctl case fromlibcfs/libcfs/module.cit work again. That ioctl has not been is use for some time and it can be removed. What is happening islibcfs_nid2stris being called which requires lnet.ko now. This is a layer violation. I will be sending a patch very shortly.
Thanks, good to hear.
--chris