building pve kernel fails with make[2]: *** [debian/rules:281: abicheck] Fehler 1

RolandK

Famous Member
Mar 5, 2019
1,141
304
128
53
i'm reproducably getting this error when trying to build pve kernel from git. i'd like to try to test a btrfs patch.

does somebody know why this happens and how to resolve?

i spent quite a wile to figure it out, but i get no clue what's the problem.


Code:
<snip>
    NEW : _RNvXs8D_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_17key__bindgen_ty_3NtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXs4M_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_10saved_msrsNtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXsD_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB5_15ratelimit_stateNtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXsw_NtNtCs8sY0e6sj61O_6kernel6device8propertyaNtB5_8Property25read_from_fwnode_property
    NEW : _RNvXsqy_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_14irq_alloc_infoNtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXsm1_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_12fprop_globalNtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXsmY_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_51bpf_jit_poke_descriptor__bindgen_ty_1__bindgen_ty_1NtNtCseXpNQPFWrFr_4core7default7Default7default
    NEW : _RNvXs4P_NtCs96IA0BLzxNi_8bindings12bindings_rawNtB6_19system_counterval_tNtNtCseXpNQPFWrFr_4core7default7Default7default
    found 2394 new symbols
WW: Found new symbols. Not recommended unless ABI was bumped
II: Checking for changes to ABI...
II: Done
make[2]: *** [debian/rules:281: abicheck] Fehler 1
make[2]: *** Es wird auf noch nicht beendete Prozesse gewartet …
mv fwlist.tmp fwlist-7.0.2-6-pve-amd64
make[2]: Verzeichnis „/build/pve-kernel/proxmox-kernel-7.0.2“ wird verlassen
make[1]: *** [debian/rules:71: binary] Fehler 2
make[1]: Verzeichnis „/build/pve-kernel/proxmox-kernel-7.0.2“ wird verlassen
dpkg-buildpackage: Fehler: Unterprozess debian/rules binary lieferte Exitstatus 2
make: *** [Makefile:75: proxmox-kernel-7.0.2-6-pve_7.0.2-6_amd64.deb] Fehler 2
roland@debian13:/build/pve-kernel$ pwd
/build/pve-kernel


i did proceed according to README:

1. installed all build dependencies

2. cd /build ; git clone git://git.proxmox.com/git/pve-kernel.git

3. cd /build/pve-kernel

4. make build-dir-fresh

5. mk-build-deps -ir pve-kernel/proxmox-kernel-7.0.2/debian/control

6. make deb

that runs for quite a while and then finally bails out reproducably with this error.
 
Last edited:
while running make build-dir-fresh, i see this weird error

Code:
cd proxmox-kernel-7.0.2; debian/rules debian/control
make[2]: Verzeichnis „/build/pve-kernel/proxmox-kernel-7.0.2“ wird betreten
dpkg-buildapi: Fehler: debian/control kann nicht gelesen werden: No such file or directory
/bin/sh: 1: test: Illegal number:
dpkg-buildapi: Fehler: debian/control kann nicht gelesen werden: No such file or directory
/bin/sh: 1: test: Illegal number:

dpkg-buildapi looks related
 
Last edited:
Does the folder /build/pve-kernel/proxmox-kernel-7.0.2/debian/control/ actually exist?

Looking at 3 and 5 you might now have /build/pve-kernel/pve-kernel/proxmox-kernel-7.0.2/debian/control/
 
>Does the folder /build/pve-kernel/proxmox-kernel-7.0.2/debian/control/ actually exist?

yes

>Looking at 3 and 5 you might now have /build/pve-kernel/pve-kernel/proxmox-kernel-7.0.2/debian/control/

sorry, posted the wrong path. i meant mk-build-deps -ir proxmox-kernel-7.0.2/debian/control
 
It's extremely jarring to read different languages within the same line. Please change your system language. At least temporarily.
 
if you change the kernel sources in a way that changes the ABI, you need to bump the ABI ("KREL" in Makefile and changelog bump), or disable those checks (SKIPABI env variable). the other warnings are benign - they are caused by d/control being a generated file, but d/rules sourcing some things that expect it to exist already.
 
yes sure, but i did not yet change the kernel sources at all.

i'm getting the same error on debian12

now with language set to en_US


Code:
    HASH : bus_register                             : 0x822ffa38 => 0x08b3d7ec
    HASH : _dev_alert                               : 0x347a8561 => 0xf799f1e1
    HASH : __devm_add_action                        : 0xcae75bdd => 0xd0fb53b6
    HASH : pm_runtime_autosuspend_expiration        : 0x23996393 => 0x720d9fea
EE: 245 symbols changed hash and weren't ignored
II: Module hash change summary...
    vmlinux                                 : 245
II: Done
make[2]: *** [debian/rules:281: abicheck] Error 1
make[2]: Leaving directory '/build/pve-kernel/proxmox-kernel-7.0.2'
make[1]: *** [debian/rules:71: binary] Error 2
make[1]: Leaving directory '/build/pve-kernel/proxmox-kernel-7.0.2'
dpkg-buildpackage: error: debian/rules binary subprocess returned exit status 2
make: *** [Makefile:75: proxmox-kernel-7.0.2-6-pve_7.0.2-6_amd64.deb] Error 2
 
are you sure you are starting from a clean slate? what does "git status" say?
 
a clean checkout of current master (87f22e55de30d73b83722b86790394564036b33c) followed by `make clean deb` works fine here.