[SOLVED] pve-kernel 6.2.16-6-pve build issue

lialosiu

Member
Aug 10, 2022
4
0
6
Hello.

I want to build a kernel for patch mlx4_core drivers. but I got this error:


Code:
test -f "submodules/ubuntu-kernel/README" || git submodule update --init submodules/ubuntu-kernel
test -f "submodules/zfsonlinux/Makefile" || git submodule update --init --recursive submodules/zfsonlinux
rm -rf proxmox-kernel-6.2.16/modules/pkg-zfs proxmox-kernel-6.2.16/modules/tmp pkg-zfs.prepared
mkdir -p proxmox-kernel-6.2.16/modules/tmp
cp -a submodules/zfsonlinux/* proxmox-kernel-6.2.16/modules/tmp
cd proxmox-kernel-6.2.16/modules/tmp; make kernel
make[1]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp'
test -f "upstream/README.md" || git submodule update --init
rm -rf zfs-linux_2.1.12 zfs-linux_2.1.12.tmp
cp -a upstream zfs-linux_2.1.12.tmp
cp -a debian zfs-linux_2.1.12.tmp/debian
mv zfs-linux_2.1.12.tmp zfs-linux_2.1.12
tar czf zfs-linux_2.1.12.orig.tar.gz --exclude="zfs-linux_2.1.12/debian" zfs-linux_2.1.12
tar czf zfs-linux_.orig.tar.gz zfs-linux_2.1.12
cd zfs-linux_2.1.12; dpkg-buildpackage -S -uc -us -d
dpkg-buildpackage: info: source package zfs-linux
dpkg-buildpackage: info: source version 2.1.12-pve1
dpkg-buildpackage: info: source distribution bookworm
dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox.com>
 dpkg-source --before-build .
 fakeroot debian/rules clean
make[2]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
dh clean --with autoreconf,python3,sphinxdoc
   debian/rules override_dh_auto_clean
make[3]: Entering directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
find . -name .gitignore -delete
rm -rf zfs-2.1.12
dh_auto_clean
make[3]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
   dh_clean
make[2]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp/zfs-linux_2.1.12'
 dpkg-source -b .
dpkg-source: info: using source format '3.0 (quilt)'
dpkg-source: info: building zfs-linux using existing ./zfs-linux_2.1.12.orig.tar.gz
dpkg-source: info: using patch list from debian/patches/series
can't find file to patch at input line 16
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|From: Debian ZFS on Linux maintainers
| <pkg-zfsonlinux-devel@alioth-lists.debian.net>
|Date: Wed, 30 Jan 2019 15:12:04 +0100
|Subject: [PATCH] Check-for-META-and-DCH-consistency-in-autoconf
|
|Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
|---
| config/zfs-meta.m4 | 34 +++++++++++++++++++++++++++++-----
| 1 file changed, 29 insertions(+), 5 deletions(-)
|
|diff --git a/config/zfs-meta.m4 b/config/zfs-meta.m4
|index 20064a0fb..4d5f545ad 100644
|--- a/config/zfs-meta.m4
|+++ b/config/zfs-meta.m4
--------------------------
No file to patch.  Skipping patch.
3 out of 3 hunks ignored
dpkg-source: info: the patch has fuzz which is not allowed, or is malformed
dpkg-source: info: if patch '0001-Check-for-META-and-DCH-consistency-in-autoconf.patch' is correctly applied by quilt, use 'quilt refresh' to update it
dpkg-source: info: if the file is present in the unpacked source, make sure it is also present in the orig tarball
dpkg-source: error: LC_ALL=C patch -t -F 0 -N -p1 -u -V never -E -b -B .pc/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch/ --reject-file=- < zfs-linux_2.1.12.orig.9eIUBV/debian/patches/0001-Check-for-META-and-DCH-consistency-in-autoconf.patch subprocess returned exit status 1
dpkg-buildpackage: error: dpkg-source -b . subprocess returned exit status 2
make[1]: *** [Makefile:65: zfs-linux_2.1.12-pve1.dsc] Error 2
make[1]: Leaving directory '/home/lialosiu/projects/pve-kernel/proxmox-kernel-6.2.16/modules/tmp'
make: *** [Makefile:120: pkg-zfs.prepared] Error 2

git checkout:
Code:
HEAD detached at 9219ee1

git submodule:
Code:
 1e60c4f3601e8d00341d9a20756a742b90d68681 submodules/ubuntu-kernel (Ubuntu-6.2.0-25.25-933-g1e60c4f3601e)
 f5ed5be89a89ff5f7ee76c8caaf2115eac2d46c5 submodules/zfsonlinux (remotes/origin/HEAD)

can somebody give me some tips?:oops:
 
Hi,
what do the following commands show?
Code:
git submodule status --recursive
git status
Is submodules/zfsonlinux/upstream checked out at tags/zfs-2.1.12?
 
Hi,
what do the following commands show?
Code:
git submodule status --recursive
git status
Is submodules/zfsonlinux/upstream checked out at tags/zfs-2.1.12?

git show this:

Code:
➜  pve-kernel git:(9219ee1) ✗ git submodule status --recursive
 1e60c4f3601e8d00341d9a20756a742b90d68681 submodules/ubuntu-kernel (Ubuntu-6.2.0-25.25-933-g1e60c4f3601e)
 f5ed5be89a89ff5f7ee76c8caaf2115eac2d46c5 submodules/zfsonlinux (remotes/origin/HEAD)
-86783d7d92cf7a859464719a917fdff845b9a9e1 submodules/zfsonlinux/upstream
➜  pve-kernel git:(9219ee1) ✗ git status
HEAD detached at 9219ee1
Untracked files:
  (use "git add <file>..." to include in what will be committed)
        config-6.2.16.org
        patches/kernel/mlx4.patch
        proxmox-kernel-6.2.16/

nothing added to commit but untracked files present (use "git add" to track)

upstream look like empty.
I think that is the problem
 
Last edited:
Should be fixable running git submodule update --init --recursive submodules/zfsonlinux
 
Should be fixable running git submodule update --init --recursive submodules/zfsonlinux

emmm... I got error. no permission?

Code:
➜  pve-kernel git:(master) ✗ git submodule update --init --recursive submodules/zfsonlinux
error: Server does not allow request for unadvertised object 86783d7d92cf7a859464719a917fdff845b9a9e1
fatal: Fetched in submodule path 'submodules/zfsonlinux/upstream', but it did not contain 86783d7d92cf7a859464719a917fdff845b9a9e1. Direct fetching of that commit failed.
fatal:
fatal: Failed to recurse into submodule path 'submodules/zfsonlinux'
 
Last edited:
You can go to submodules/zfsonlinux/upstream and run git fetch --tags and try again (--init shouldn't be required anymore).
 
You can go to submodules/zfsonlinux/upstream and run git fetch --tags and try again (--init shouldn't be required anymore).
Oh good, it work now!
So many thanks for your help!

Code:
➜  pve-kernel git:(9219ee1) ✗ git submodule status --recursive
 1e60c4f3601e8d00341d9a20756a742b90d68681 submodules/ubuntu-kernel (Ubuntu-6.2.0-19.19-2232-g1e60c4f3601e)
 f5ed5be89a89ff5f7ee76c8caaf2115eac2d46c5 submodules/zfsonlinux (remotes/origin/HEAD)
 86783d7d92cf7a859464719a917fdff845b9a9e1 submodules/zfsonlinux/upstream (zfs-2.1.12)
 3331601f6dc50ef2c9779c1656218701b48b276c submodules/zfsonlinux/upstream/scripts/zfs-images (v1.0~3)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!