[pve-devel] Please help: beginner trying to compile Proxmox kernel 4.15

The Anh Tran trtheanh at gmail.com
Mon Sep 10 13:55:02 CEST 2018


Dear Thomas,

On 9/10/2018 12:50 PM, Thomas Lamprecht wrote:
> Hi,
>
> FYI, zfsonlinux also has two submodules which may need initializing.
>
> cd /source/pve-kernel/submodules/zfsonlinux && make submodule
>
> also ensure that the correct commit is checked out on all submodules, i.e.,
> git status -uno
>
> Does not shows changes (especially on submodules), if so use:
>
> git submodule update --init
>
> to checkout the correct commit.
submodules / zfsonlinux is on latest commit:

/compile:~# cd /source/pve-kernel/submodules/zfsonlinux///
//compile:/source/pve-kernel/submodules/zfsonlinux# git status -uno//
//On branch master//
//Your branch is up-to-date with 'origin/master'.//
//nothing to commit (use -u to show untracked files)//
//compile:/source/pve-kernel/submodules/zfsonlinux# make submodule//
//test -f "zfs-debian/debian/changelog" || git submodule update --init//
//test -f "spl-debian/debian/changelog" || git submodule update --init//

/I try "make submodule", and "make all" on zfsonlinux, it builds .deb 
just fine.

Do you mean i have to clone these git:
mirror_spl-debian.git
mirror_zfs-debian.git
into zfsonlinux directory?


> /install: target 
> 'debian/pve-kernel-4.15.18-4-pve/lib/modules/4.15.18-4-pve/kernel/drivers/net/ethernet/intel/igb/' 
> is not a directory: No such file or directory//
>> //debian/rules:99: recipe for target '.install_mark' failed/
> this is just a symptom of an earlier error, something did not go right earlier.
> can you please post your whole build log?
> It's probably to big for the mailing list, so maybe use https://gist.github.com/
> (or something other, somewhat trustworthy to click on)

Fresh rebuild still fail at the above step.

In previous mail, i have attached 2 build run's logs. To reduce size to 
fit 80KB limit, repetitive outputs from kernel build script has been 
removed.

And i also upload to my company hosting:
https://cloud.tgdd.vn/index.php/s/d6JajWDF7nfmJuh

And google drive link:
https://drive.google.com/drive/folders/1YJmu--aOtPBj0iqj_LXKp5mx4lTvih9_?usp=sharing

> 4.15.18-4-pve     <=    this dir is empty
>
> 4.15.18-4-pve+  <=    this dir has files/
> /
>
> I edit this file /source/pve-kernel/debian/rules, add 2 commands at line 106
>
> /        ${MAKE} -C ${KERNEL_SRC} INSTALL_MOD_PATH=${BUILD_DIR}/debian/${PVE_KERNEL_PKG}/ modules_install//
> //
> /*/        rmdir debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/**/
> /**/        cp -a debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}+ debian/${PVE_KERNEL_PKG}/lib/modules/${KVNAME}/**/
> /*/
> //        ## install latest ibg driver//
> /
>
> ########## make again ############
>
> /cd /source/pve-kernel/
>
> /make 2>&1 | tee ~/build-4.15.2.log/
>
> Build fail at this error:
> /input file 'debian/pve-headers-4.15.18-4-pve/usr/src/linux-headers-4.15.18-4-pve/Module.symvers' does not exist//
> //debian/rules:245: recipe for target 'abi-4.15.18-4-pve' failed/
>
>
> There is no linux-headers-4.15.18-4-pve directory inside.
>
> And there is no linux header to download from Proxmox git site.
> this gets generated by the package you want to build, it's just the header files from the kernel...
>
>
> cheers,
> Thomas

Best regards.



---
This email has been checked for viruses by Avast antivirus software.
https://www.avast.com/antivirus


More information about the pve-devel mailing list