Skip to contentSkip to conversation

Build Dependency Issue in Lustre Mainline Linux

lustre-devel Chris J Arges 2 participants 4 messages Nov 5, 2015 – Nov 7, 2015

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
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/driver s/staging/lustre/lnet/lnet/lnet.ko
in dependency cycle!
depmod: WARNING:
/home/arges/src/kernel/linux/./debian/tmp/lib/modules/4.3.0+/kernel/driver s/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
#2 lore raw
In reply to Chris J Arges
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.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"

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.

#3 lore raw
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.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"

Quoted 4 lines

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.

Thanks, good to hear.
--chris