[SOLVED] pve-kernel git outdated

Feni

Active Member
Jun 22, 2017
35
17
28
36
Hi there, I'm trying to compile proxmox from git to include my own patch. However, both the pve-kernel and pve-kernel-meta gits point to a outdated release (5.1) with a 4.13 (artful) kernel instead of 4.15 (bionic):

Code:
root@pve:/usr/src# git clone git://git.proxmox.com/git/pve-kernel.git
Cloning into 'pve-kernel'...
remote: Counting objects: 2941, done.
remote: Compressing objects: 100% (835/835), done.
remote: Total 2941 (delta 2100), reused 2941 (delta 2100)
Receiving objects: 100% (2941/2941), 11.75 MiB | 23.48 MiB/s, done.
Resolving deltas: 100% (2100/2100), done.
root@pve:/usr/src# cd pve-kernel
root@pve:/usr/src/pve-kernel# make
gcc --version|grep "6\.3" || false
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
test -f "submodules/ubuntu-artful/README" || git submodule update --init submodules/ubuntu-artful
Submodule 'submodules/ubuntu-artful' (git://git.proxmox.com/git/mirror_ubuntu-artful-kernel) registered for path 'submodules/ubuntu-artful'
Cloning into '/usr/src/pve-kernel/submodules/ubuntu-artful'...

Also, just running the makefile gives me an error. Perhaps because the installed version is newer than the compiling version?
Code:
root@pve:/usr/src# git clone git://git.proxmox.com/git/pve-kernel.git
Cloning into 'pve-kernel'...
remote: Counting objects: 2941, done.
remote: Compressing objects: 100% (835/835), done.
remote: Total 2941 (delta 2100), reused 2941 (delta 2100)
Receiving objects: 100% (2941/2941), 11.75 MiB | 23.48 MiB/s, done.
Resolving deltas: 100% (2100/2100), done.
root@pve:/usr/src# cd pve-kernel
root@pve:/usr/src/pve-kernel# make
gcc --version|grep "6\.3" || false
gcc (Debian 6.3.0-18+deb9u1) 6.3.0 20170516
test -f "submodules/ubuntu-artful/README" || git submodule update --init submodules/ubuntu-artful
Submodule 'submodules/ubuntu-artful' (git://git.proxmox.com/git/mirror_ubuntu-artful-kernel) registered for path 'submodules/ubuntu-artful'
Cloning into '/usr/src/pve-kernel/submodules/ubuntu-artful'...
Submodule path 'submodules/ubuntu-artful': checked out '37760d263aa0faf63fd6abfd1250d38f666db5aa'
test -f "submodules/zfsonlinux/Makefile" || git submodule update --init submodules/zfsonlinux
Submodule 'submodules/zfsonlinux' (git://git.proxmox.com/git/zfsonlinux) registered for path 'submodules/zfsonlinux'
Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux'...
Submodule path 'submodules/zfsonlinux': checked out 'cabb465d41a695d4db17729628e6694a645c083e'
(test -f "submodules/zfsonlinux/zfs-debian/debian/changelog" && test -f "/debian/changelog") || (cd submodules/zfsonlinux; git submodule update --init)
Submodule 'spl-debian' (git://git.proxmox.com/git/mirror_spl-debian) registered for path 'spl-debian'
Submodule 'zfs-debian' (git://git.proxmox.com/git/mirror_zfs-debian) registered for path 'zfs-debian'
Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux/spl-debian'...
Cloning into '/usr/src/pve-kernel/submodules/zfsonlinux/zfs-debian'...
Submodule path 'spl-debian': checked out 'e6b66753ff444e6d10e5d9dd24c54451e3a2fba3'
Submodule path 'zfs-debian': checked out '6f627d8999e930b974be14ab6462c04de30b9ec2'
rm -rf build/ubuntu-artful ubuntu-artful.prepared
mkdir -p build
cp -a submodules/ubuntu-artful build/ubuntu-artful
cat build/ubuntu-artful/debian.master/config/config.common.ubuntu build/ubuntu-artful/debian.master/config/amd64/config.common.amd64 build/ubuntu-artful/debian.master/config/amd64/config.flavour.generic > config-4.13.16.org
cp config-4.13.16.org build/ubuntu-artful/.config
sed -i build/ubuntu-artful/Makefile -e 's/^EXTRAVERSION.*$/EXTRAVERSION=-3-pve/'
rm -rf build/ubuntu-artful/debian build/ubuntu-artful/debian.master
cd build/ubuntu-artful; for patch in ../../patches/kernel/*.patch; do patch -p1 < ${patch}; done
patching file scripts/mkcompile_h
patching file net/bridge/br_stp_if.c
patching file Documentation/admin-guide/kernel-parameters.txt
patching file drivers/pci/quirks.c
patching file virt/kvm/kvm_main.c
patching file include/linux/cgroup-defs.h
patching file kernel/cgroup/cgroup-v1.c
patching file kernel/cgroup/cpuset.c
patching file drivers/infiniband/core/mad.c
patching file drivers/infiniband/core/security.c
patching file arch/x86/kvm/svm.c
patching file net/sched/em_nbyte.c
patching file include/net/pkt_cls.h
patching file arch/x86/kvm/vmx.c
patching file drivers/edac/sb_edac.c
patching file kernel/sched/wait.c
patching file arch/x86/kernel/cpu/bugs.c
patching file include/linux/module.h
patching file kernel/module.c
patching file scripts/mod/modpost.c
patching file include/net/net_namespace.h
patching file net/ipv4/tcp.c
patching file net/ipv4/tcp_timer.c
patching file net/sctp/protocol.c
patching file net/sctp/ipv6.c
patching file fs/lockd/svc.c
patching file fs/ocfs2/aops.c
patching file fs/ocfs2/alloc.c
patching file fs/ocfs2/alloc.h
patching file fs/ocfs2/aops.c
patching file mm/shmem.c
patching file mm/huge_memory.c
patching file scripts/Makefile.build
patching file net/core/neighbour.c
patching file arch/x86/kernel/early-quirks.c
patching file drivers/iommu/intel-iommu.c
touch ubuntu-artful.prepared
rm -rf build/modules/e1000e-3.3.6 e1000e-3.3.6.prepared
mkdir -p build/modules/e1000e-3.3.6
tar --strip-components=1 -C build/modules/e1000e-3.3.6 -xf e1000e-3.3.6.tar.gz
cd build/modules/e1000e-3.3.6; patch -p1 < ../../../patches/intel/intel-module-gcc6-compat.patch
patching file src/Makefile
Hunk #1 succeeded at 121 (offset -2 lines).
cd build/modules/e1000e-3.3.6; patch -p1 < ../../../patches/intel/e1000e/e1000e_4.10_max-mtu.patch
patching file src/netdev.c
Hunk #1 succeeded at 6738 (offset 14 lines).
Hunk #2 succeeded at 8274 (offset 19 lines).
touch e1000e-3.3.6.prepared
rm -rf build/modules/igb-5.3.5.10 igb-5.3.5.10.prepared
mkdir -p build/modules/igb-5.3.5.10
tar --strip-components=1 -C build/modules/igb-5.3.5.10 -xf igb-5.3.5.10.tar.gz
cd build/modules/igb-5.3.5.10; patch -p1 < ../../../patches/intel/igb/igb_4.10_max-mtu.patch
patching file src/e1000_defines.h
patching file src/igb_main.c
Hunk #1 succeeded at 2863 (offset 11 lines).
Hunk #2 succeeded at 5847 (offset 11 lines).
cd build/modules/igb-5.3.5.10; patch -p1 < ../../../patches/intel/igb/igb_4.12_compat.patch
patching file src/igb_main.c
touch igb-5.3.5.10.prepared
rm -rf build/modules/ixgbe-5.3.3 ixgbe-5.3.3.prepared
mkdir -p build/modules/ixgbe-5.3.3
tar --strip-components=1 -C build/modules/ixgbe-5.3.3 -xf ixgbe-5.3.3.tar.gz
touch ixgbe-5.3.3.prepared
rm -rf build/modules/pkg-spl pkg-spl.prepared
mkdir -p build/modules/pkg-spl
cp -a submodules/zfsonlinux/spl-debian/* build/modules/pkg-spl
cd build/modules/pkg-spl; for patch in ../../../submodules/zfsonlinux/spl-debian/../spl-patches/*.patch; do patch -p1 < ${patch}; done
patching file debian/control
patching file debian/control.in
patching file debian/rules
touch pkg-spl.prepared
rm -rf build/modules/pkg-zfs pkg-zfs.prepared
mkdir -p build/modules/pkg-zfs
cp -a submodules/zfsonlinux/zfs-debian/* build/modules/pkg-zfs
cd build/modules/pkg-zfs; for patch in ../../../submodules/zfsonlinux/zfs-debian/../zfs-patches/*.patch; do patch -p1 < ${patch}; done
patching file debian/control
patching file debian/control.in
patching file debian/not-installed
patching file debian/rules
patching file etc/systemd/system/zfs-import-scan.service.in
patching file etc/modules-load.d/zfs.conf.in
patching file debian/control
Hunk #1 succeeded at 179 (offset -1 lines).
patching file debian/control.in
Hunk #1 succeeded at 146 (offset -34 lines).
patching file debian/tests/control
patching file debian/zfs-test.install
patching file debian/zfsutils-linux.install
# temporarily since patch does not know about permissions, remove after 0.7.7 was merged properly
chmod +x build/modules/pkg-zfs/scripts/enum-extract.pl
touch pkg-zfs.prepared
touch modules.prepared
rm -rf build/debian
mkdir -p build
cp -a debian build/debian
echo "git clone git://git.proxmox.com/git/pve-kernel.git\\ngit checkout 758134b5b89beecc5a34a50b812d45cd31fef286" > build/debian/SOURCE
echo "KVNAME=4.13.16-3-pve" >> build/debian/rules.d/env.mk
echo "KERNEL_MAJMIN=4.13" >> build/debian/rules.d/env.mk
cd build; debian/rules debian/control
make[1]: Entering directory '/usr/src/pve-kernel/build'
sed -e 's/@@KVNAME@@/4.13.16-3-pve/g' < debian/pve-kernel.prerm.in > debian/pve-kernel-4.13.16-3-pve.prerm
sed -e 's/@@KVNAME@@/4.13.16-3-pve/g' < debian/pve-kernel.postrm.in > debian/pve-kernel-4.13.16-3-pve.postrm
sed -e 's/@@KVNAME@@/4.13.16-3-pve/g' < debian/pve-kernel.postinst.in > debian/pve-kernel-4.13.16-3-pve.postinst
sed -e 's/@@KVNAME@@/4.13.16-3-pve/g' < debian/pve-headers.postinst.in > debian/pve-headers-4.13.16-3-pve.postinst
chmod +x debian/pve-kernel-4.13.16-3-pve.prerm
chmod +x debian/pve-kernel-4.13.16-3-pve.postrm
chmod +x debian/pve-kernel-4.13.16-3-pve.postinst
chmod +x debian/pve-headers-4.13.16-3-pve.postinst
sed -e 's/@KVNAME@/4.13.16-3-pve/g' -e 's/@KVMAJMIN@/4.13/g' < debian/control.in > debian/control
make[1]: Leaving directory '/usr/src/pve-kernel/build'
touch debian.prepared
cp -a fwlist-previous build/
cp -a abi-prev-* build/
cp -a abi-blacklist build/
touch build.prepared
cd build; dpkg-buildpackage --jobs=auto -b -uc -us
dpkg-buildpackage: info: source package pve-kernel
dpkg-buildpackage: info: source version 4.13.16-49
dpkg-buildpackage: info: source distribution unstable
dpkg-buildpackage: info: source changed by Proxmox Support Team <support@proxmox.com>
dpkg-buildpackage: info: host architecture amd64
 dpkg-source --before-build build
dpkg-checkbuilddeps: error: Unmet build dependencies: libiberty-dev
dpkg-buildpackage: warning: build dependencies/conflicts unsatisfied; aborting
dpkg-buildpackage: warning: (Use -d flag to override.)
Makefile:85: recipe for target 'pve-kernel-4.13.16-3-pve_4.13.16-49_amd64.deb' failed
make: *** [pve-kernel-4.13.16-3-pve_4.13.16-49_amd64.deb] Error 3
root@pve:/usr/src/pve-kernel#

Am I not seeing something or does the git need updating indeed?
 

Alwin

Proxmox Staff Member
Aug 1, 2017
4,617
446
88
Check out the remote (git checkout pve-kernel-4.15), master holds 4.13.
 

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 your own in 60 seconds.

Buy now!