[LU-11335] Build failed for ubuntu-14.04 kernel 4.4.0.85.108 Created: 05/Sep/18  Updated: 02/Sep/23  Resolved: 02/Sep/23

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Artem Blagodarenko (Inactive) Assignee: WC Triage
Resolution: Won't Fix Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Build failed on 4.4.0-85.108  kernel (downloaded here https://launchpad.net/ubuntu/+source/linux/4.4.0-85.108) during applying LDISKFS patches

 

ln -s ../../ldiskfs/kernel_patches/patches linux-stage/patches

ln -s ../../ldiskfs/kernel_patches/series/ldiskfs-4.4.0-73-ubuntu14+16.series linux-stage/series

cd linux-stage && quilt push -a -q

Applying patch patches/sles12sp2/ext4-inode-version.patch

Applying patch patches/sles12sp2/ext4-lookup-dotdot.patch

Applying patch patches/sles12sp2/ext4-print-inum-in-htree-warning.patch

Applying patch patches/sles12sp2/ext4-prealloc.patch

Applying patch patches/sles12sp2/ext4-osd-iop-common.patch

Applying patch patches/ubuntu14+16/ext4-misc.patch

Applying patch patches/sles12sp2/ext4-mballoc-extra-checks.patch

Applying patch patches/sles12sp2/ext4-hash-indexed-dir-dotdot-update.patch

Applying patch patches/sles12sp2/ext4-kill-dx-root.patch

Applying patch patches/rhel7/ext4-mballoc-pa-free-mismatch.patch

Applying patch patches/ubuntu14+16/ext4-data-in-dirent-001.patch

Applying patch patches/ubuntu14+16/ext4-large-eas.patch

Applying patch patches/ubuntu14+16/ext4-disable-mb-cache-001.patch

Applying patch patches/rhel7/ext4-nocmtime.patch

Applying patch patches/ubuntu14+16/ext4-large-dir-001.patch

Applying patch patches/ubuntu14+16/ext4-pdirop-001.patch

Applying patch patches/sles12sp2/ext4-max-dir-size.patch

Applying patch patches/rhel7/ext4-remove-truncate-warning.patch

Applying patch patches/sles12sp2/ext4-corrupted-inode-block-bitmaps-handling-patches.patch

Applying patch patches/sles12sp2/ext4-give-warning-with-dir-htree-growing.patch

Applying patch patches/sles12sp2/ext4-mmp-brelse.patch

Applying patch patches/rhel7/ext4-jcb-optimization.patch

Applying patch patches/sles12sp2/ext4-attach-jinode-in-writepages.patch

1 out of 3 hunks FAILED

Patch patches/sles12sp2/ext4-attach-jinode-in-writepages.patch does not apply (enforce with -f)

make[2]: *** [sources] Error 1

make[2]: Leaving directory `/lustre/mnt/orig/cray-lustre/ldiskfs'

make[1]: *** [all-recursive] Error 1

make[1]: Leaving directory `/lustre/mnt/orig/cray-lustre'

make: *** [all] Error 2

 



 Comments   
Comment by Minh Diep [ 05/Sep/18 ]

artem_blagodarenko
Are you trying to build lustre server on ubuntu 14.04?

Comment by Artem Blagodarenko (Inactive) [ 06/Sep/18 ]

mdiep I get reported output when tried to build Lustre using ubuntu kernel sources on SL-based system. Now I rechecked this on
14.04.05 (last available 14.04 ubuntu distrib), but build still fails.

I followed this manual https://wiki.hpdd.intel.com/pages/viewpage.action?pageId=63968116

ln -s ../../ldiskfs/kernel_patches/patches linux-stage/patches
ln -s ../../ldiskfs/kernel_patches/series/ldiskfs-4.4.0-73-ubuntu14+16.series linux-stage/series
cd linux-stage && quilt push -a -q
Applying patch sles12sp2/ext4-inode-version.patch
Applying patch sles12sp2/ext4-lookup-dotdot.patch
Applying patch sles12sp2/ext4-print-inum-in-htree-warning.patch
Applying patch sles12sp2/ext4-prealloc.patch
Applying patch sles12sp2/ext4-osd-iop-common.patch
Applying patch ubuntu14+16/ext4-misc.patch
Applying patch sles12sp2/ext4-mballoc-extra-checks.patch
Applying patch sles12sp2/ext4-hash-indexed-dir-dotdot-update.patch
Applying patch sles12sp2/ext4-kill-dx-root.patch
Applying patch rhel7/ext4-mballoc-pa-free-mismatch.patch
Applying patch ubuntu14+16/ext4-data-in-dirent-001.patch
1 out of 29 hunks FAILED
Patch ubuntu14+16/ext4-data-in-dirent-001.patch does not apply (enforce with -f)
make[4]: *** [sources] Error 1
make[4]: Leaving directory `/lustre/mnt/orig/cray-lustre/ldiskfs'
make[3]: *** [all-recursive] Error 1
make[3]: Leaving directory `/lustre/mnt/orig/cray-lustre'
make[2]: *** [all] Error 2
make[2]: Leaving directory `/lustre/mnt/orig/cray-lustre'
make[1]: *** [build-stamp] Error 2
make[1]: Leaving directory `/lustre/mnt/orig/cray-lustre'
dpkg-buildpackage: error: debian/rules build gave error exit status 2
make: *** [debs] Error 2

 Here is steps I did based on manual

1. Download ubuntu kernel
#git clone git://kernel.ubuntu.com/ubuntu/ubuntu-trusty.git ubuntu-kernel
4.4.0-31-generic
#uname -r
#git tag | grep 4.4.0-31
#git checkout Ubuntu-lts-4.4.0-31.50_14.04.1
#cp /boot/config-4.4.0-31-generic .config
#touch .scmversion
#sed -i 's/^VERSION = .*/VERSION = 4/' Makefile
#sed -i 's/^PATCHLEVEL = .*/PATCHLEVEL = 4/' Makefile
#sed -i 's/^SUBLEVEL = .*/SUBLEVEL = 0/' Makefile
#sed -i 's/^EXTRAVERSION =.*/EXTRAVERSION = -31-generic/' Makefile
#make -j33
#./configure --with-linux=/root/ubuntu-kernel
--enable-server --enable-modules \
--enable-ldiskfs &&
#make debs -j $(nproc)

Tried with kernel 4.4.0-45
#git checkout Ubuntu-lts-4.4.0-45.66_14.04.1

same result.

Comment by Minh Diep [ 06/Sep/18 ]

I assume you ran autogen.sh?

Comment by Artem Blagodarenko (Inactive) [ 06/Sep/18 ]

mdiep yes. Didn't add this to command list, but yes, autopen.sh executed.

Comment by Alexander Zarochentsev [ 22/Feb/19 ]

I tried ubuntu 16.04 / 18.04 builds recently for https://review.whamcloud.com/#/c/21142 and it looks the build is not working:
1. Jenkings doesn't build Lustre server for ubuntu, see https://build.whamcloud.com/job/lustre-reviews/61988/ , despite I explicitly set serverdistro=ubbuntu1604 in gerrit request

2. an attempt to do provisioning test fails https://testing.whamcloud.com/test_sessions/28690c15-78e3-4b28-ac0a-a62f9ed06ec6 , which is expected b/c server build wasn't done.

3. and, finally, I tried to apply ldiskfs patches manually to the kernels linux_4.4.0-131.157 and got an error:

[zam@devvm1 linux-4.4]$ quilt push -q -a
Applying patch patches/sles12sp2/ext4-inode-version.patch
Applying patch patches/sles12sp2/ext4-lookup-dotdot.patch
Applying patch patches/sles12sp2/ext4-print-inum-in-htree-warning.patch
Applying patch patches/sles12sp2/ext4-prealloc.patch
Applying patch patches/sles12sp2/ext4-osd-iop-common.patch
Applying patch patches/ubuntu14+16/ext4-misc.patch
Applying patch patches/sles12sp2/ext4-mballoc-extra-checks.patch
1 out of 20 hunks FAILED
Patch patches/sles12sp2/ext4-mballoc-extra-checks.patch does not apply (enforce with -f)
[zam@devvm1 linux-4.4]$ 

for kernel 4.15.0-32.35 patches are ok:

[zam@devvm1 linux-4.15]$ quilt push -a -q
Applying patch patches/sles12sp2/ext4-inode-version.patch
Applying patch patches/sles12sp2/ext4-lookup-dotdot.patch
Applying patch patches/sles12sp2/ext4-print-inum-in-htree-warning.patch
Applying patch patches/sles12sp2/ext4-prealloc.patch
Applying patch patches/ubuntu18/ext4-osd-iop-common.patch
Applying patch patches/ubuntu18/ext4-misc.patch
Applying patch patches/ubuntu18/ext4-mballoc-extra-checks.patch
Applying patch patches/ubuntu18/ext4-hash-indexed-dir-dotdot-update.patch
Applying patch patches/ubuntu18/ext4-kill-dx-root.patch
Applying patch patches/rhel7/ext4-mballoc-pa-free-mismatch.patch
Applying patch patches/ubuntu18/ext4-data-in-dirent.patch
Applying patch patches/ubuntu18/ext4-nocmtime.patch
Applying patch patches/ubuntu18/ext4-pdirop.patch
Applying patch patches/sles12sp2/ext4-max-dir-size.patch
Applying patch patches/ubuntu18/ext4-remove-truncate-warning.patch
Applying patch patches/ubuntu18/ext4-corrupted-inode-block-bitmaps-handling-patches-001.patch
Applying patch patches/ubuntu18/ext4-give-warning-with-dir-htree-growing.patch
Applying patch patches/ubuntu18/ext4-jcb-optimization.patch
Applying patch patches/ubuntu18/ext4-attach-jinode-in-writepages.patch
Applying patch patches/ubuntu18/ext4-dont-check-before-replay.patch
Applying patch patches/rhel7/ext4-use-GFP_NOFS-in-ext4_inode_attach_jinode.patch
Applying patch patches/rhel7/ext4-export-orphan-add.patch
Applying patch patches/rhel7/ext4-mmp-dont-mark-bh-dirty.patch
Applying patch patches/ubuntu18/ext4-include-terminating-u32-in-size-of-xattr-entries-when-expanding-inodes.patch
Applying patch patches/sles12sp2/ext4-export-mb-stream-allocator-variables.patch
Now at patch patches/sles12sp2/ext4-export-mb-stream-allocator-variables.patch
[zam@devvm1 linux-4.15]$ 
Generated at Sat Feb 10 02:42:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.