Kernel compile - encountering issues with Makefile script

Republicus

Well-Known Member
Aug 7, 2017
137
19
58
40
I'm having a heck of a time trying to patch the kernel, which I am doing to support eth_ipoib.

It seems I am missing a package, a problem with the kernel's Makefile scripts, or I'm missing a few screws... It's driving me there, anyway.

So I am working in the path:
Code:
/usr/src/linux-headers-5.0.18-1-pve/

I've applied my patches and now ready to compile:
Code:
make -j8 deb-pkg LOCALVERSION=-custom



ERRORS encountered:
(1) no file at /fs/aufs/magic.mk

Code:
scripts/kconfig/conf  --syncconfig Kconfig
  UPD     include/config/kernel.release
make clean
  CLEAN   .
fs/aufs/Makefile:3: fs/aufs/magic.mk: No such file or directory
make[4]: *** No rule to make target 'fs/aufs/magic.mk'.  Stop.
make[3]: *** [scripts/Makefile.clean:88: fs/aufs] Error 2
make[3]: *** Waiting for unfinished jobs....
make[2]: *** [Makefile:1402: _clean_fs] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/package/Makefile:70: deb-pkg] Error 2
make: *** [Makefile:1443: deb-pkg] Error 2

I installed all of the aufs packages i saw in the package manager

Code:
apt-get install aufs-dev aufs-dkms aufs-tools

This didn't immediately resolve the issue, but I noticed aufs sources at /usr/src/ so I created a symbolic link where it was missing in the linux-headers

Code:
ln -s /usr/src/aufs-4.19+20190211/fs/aufs/magic.mk magic.mk


This allowed the script to move forward

(2) no file at Documentation/Makefile

Code:
  UPD     include/config/kernel.release
make clean
scripts/Makefile.clean:15: Documentation/Makefile: No such file or directory
make[3]: *** No rule to make target 'Documentation/Makefile'.  Stop.
make[2]: *** [Makefile:1402: _clean_Documentation] Error 2
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [scripts/package/Makefile:70: deb-pkg] Error 2
make: *** [Makefile:1443: deb-pkg] Error 2

scripts/package/Makefile:127: *** missing separator.  Stop.
make: *** [Makefile:1443: deb-pkg] Error 2

touching the missing file gets the script moving forward again.

Code:
mkdir Documentation && touch Documentation/Makefile


3) TAR commands

Code:
make clean
/bin/bash ./scripts/package/mkdebian
  TAR     linux-5.0.18-1-pve-custom.tar.gz
tar: COPYING: Cannot stat: No such file or directory
tar: Exiting with failure status due to previous errors
make[1]: *** [scripts/package/Makefile:72: deb-pkg] Error 2
make: *** [Makefile:1443: deb-pkg] Error 2

From here I cannot make out whats wrong.

@ line 72:
Code:
        $(call cmd,src_tar,$(KDEB_SOURCENAME))
        origversion=$$(dpkg-parsechangelog -SVersion |sed 's/-[^-]*$$//');\
                mv $(KDEB_SOURCENAME).tar.gz $(KDEB_SOURCENAME)_$${origversion}.orig.tar.gz
        +dpkg-buildpackage -r$(KBUILD_PKG_ROOTCMD) -a$$(cat debian/arch) -i.git -us -uc


I am desperate to get eth_ipoib working and your your help in this matter would be greatly appreciated.
 
I took the current OFED from Mellanox and ran configure --with-e_ipoib-mod and then make. I didn't test its function, but it did properly load (kernel 5.0.18-1).
 
I took the current OFED from Mellanox and ran configure --with-e_ipoib-mod and then make. I didn't test its function, but it did properly load (kernel 5.0.18-1).

Thanks for answering Alwin. Do you mind telling me which version/distribution you downloaded? I have tried the latest source for Debian 9.6 but in it find no Makefile.
 
The OFED version I used, was the 4.6, you can check for Ubuntu's (will be same OFED version as Debian), as our Kernel is Ubuntu based. Unpack the source package and the corresponding kernel package (eg. mlnx-ofed-kernel-4.6/). There you can find the eipoib module.
 

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!