You are not logged in.

#51 2022-05-06 08:31:31

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

gcc/plugin.c:

bool
plugin_default_version_check (struct plugin_gcc_version *gcc_version,
                              struct plugin_gcc_version *plugin_version)

aha.

Well, the error message in the kernel plugin is not nice at all: it should say something like:
cc1: error: incompatible gcc/plugin versions (gcc is 10.1.2, kernel is 10.3.0)
or something along those lines..

Offline

#52 2022-05-06 08:34:13

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

/usr/lib/gcc/x86_64-pc-linux-gnu/11.2.0/plugin/include/plugin.h:extern bool plugin_default_version_check (struct plugin_gcc_version *,

that sounds reasonable, so let's check on IA-32:

grep -r plugin_default_version_check /usr/lib/gcc
/usr/lib/gcc/i686-pc-linux-gnu/11.2.0/plugin/include/plugin.h:extern bool plugin_default_version_check (struct plugin_gcc_version *,

Sounds about right. Ok. debugging it is..

Offline

#53 2022-05-06 08:34:56

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

..which reminds me: debugserver and debug info are (not yet) available for Archlinux32 (as they are for upstream)..

Offline

#54 2022-05-06 19:17:33

jghodd
Member
From: Jetersville, VA
Registered: 2019-07-14
Posts: 54

Re: [SOLVED] 5.16.12 dkms modules not building

@abaumann - just to stay with the thread, i got the same result, again. have already rebuilt and the rebuild works fine. if there's any information we can provide to help figure out where the disconnect is happening, just let us know.

plugin_default_version_check comes with gcc, which i think you've already figured out.

Offline

#55 2022-06-06 22:18:32

jghodd
Member
From: Jetersville, VA
Registered: 2019-07-14
Posts: 54

Re: [SOLVED] 5.16.12 dkms modules not building

@abaumann - same issue with 5.18.1. about to rebuild.

Offline

#56 2022-06-07 06:48:28

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

The rule has to be baked into the buildmaster, so that toolchain/linux updates happen in sync, that might be the best solution..

Offline

#57 2022-06-10 22:04:17

jghodd
Member
From: Jetersville, VA
Registered: 2019-07-14
Posts: 54

Re: [SOLVED] 5.16.12 dkms modules not building

@abaumann - definitely worth a try, bud.

i was setting up a build and noticed too that the r8168 and r8101 dkms packages wouldn;t build under my rebuilt 5.18.1 kernel. although an updated version of r8168 was available (and which *does* build - i used it as a template to modify r8101 which also builds now), i found it really strange that neither of those modules needed *any* updating under arch64... as if the core 5.18.x kernel api was different between the 2 platforms, which should never happen under normal circumstances. is it possible that one or more config flags either are being set when they shouldn;t be, or aren;t being set when they should be? i can look into this if you want. i have older 32-bit live system images i can boot up and grab a /proc/config.gz and compare it, but i can't say for sure i can recognize a possible discrepancy unless it's obvious.

i'm beginning to think i should just do a pacman dump on all my installed packages and let you do a version comparison against your build system. we're out of sync somewhere...

Offline

#58 2022-06-29 01:14:29

jghodd
Member
From: Jetersville, VA
Registered: 2019-07-14
Posts: 54

Re: [SOLVED] 5.16.12 dkms modules not building

@abaumann - so. what'd you do to fix it, bud? linux-5.18.3 installed perfectly along with its dkms modules, so something got realigned somewhere. i had had to rebuild 5.18.1, so something happened between versions 5.18.1 and 5.18.3...

Offline

#59 2022-06-29 19:22:28

jghodd
Member
From: Jetersville, VA
Registered: 2019-07-14
Posts: 54

Re: [SOLVED] 5.16.12 dkms modules not building

@abaumann - i went ahead and closed this post since your linux-5.18.3 release seems to have resolved the problem. i *would* like to know what fixed it, though. was it baking the rule into the buildmaster, so that toolchain/linux updates happen in sync? or did you find a single point of mis-versioned something somewhere?

Last edited by jghodd (2022-06-29 19:23:48)

Offline

#60 2022-06-30 06:00:14

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

I manually tested and fixed the issue. :-)
But.. your're right, I should put it into the build system somehow and automatize it..

Offline

#61 2022-09-16 14:12:13

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 617

Re: [SOLVED] 5.16.12 dkms modules not building

maybe this fixes the issue for core/linux-headers

Offline

#62 2022-09-16 15:53:56

levi
Moderator
From: Yorkshire, UK
Registered: 2018-06-16
Posts: 1,197

Re: [SOLVED] 5.16.12 dkms modules not building

Maybe but doesn't that mean you need to update whatever controls srcname/.config whenever gcc changes enough version to care about?


Architecture: pentium4, Testing repos: Yes, Hardware: EeePC 901+2GB RAM+OS half on the SD card.

Offline

#63 2022-09-16 18:35:03

deep42thought
Administrator
From: Jena, Germany
Registered: 2017-06-17
Posts: 617

Re: [SOLVED] 5.16.12 dkms modules not building

IIUC, .config is updated in the prepare() step by make olddefconfig

Offline

#64 2022-09-16 18:38:45

abaumann
Administrator
From: Zurich
Registered: 2019-11-14
Posts: 1,032
Website

Re: [SOLVED] 5.16.12 dkms modules not building

Ah, thanks deep42thought, that's a good idea. :-)

Offline

#65 2024-07-01 03:45:26

Patricia
Member
From: U.K.
Registered: 2023-10-27
Posts: 4
Website

Re: [SOLVED] 5.16.12 dkms modules not building

Were the changes made before the zen and linux kernel were made?

Offline

Board footer

Powered by FluxBB