compiler differs from the one used to build the kernel
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
linux-hwe-6.5 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
I try to build my driver but I get
make: Entering directory '/usr/src/
warning: the compiler differs from the one used to build the kernel
I have got hack solution from here https:/
I do
~~~
sudo apt update && sudo apt upgrade -y
sudo apt install --reinstall gcc-12
sudo ln -s -f /usr/bin/gcc-12 /usr/bin/gcc
~~~
then I can build... But this is not right way...
I use Ubuntu 22.
uname -a
Linux myPC 6.5.0-35-generic #35~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Tue May 7 09:00:52 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
ProblemType: Bug
DistroRelease: Ubuntu 22.04
Package: linux-headers-
ProcVersionSign
Uname: Linux 6.5.0-35-generic x86_64
ApportVersion: 2.20.11-0ubuntu82.5
Architecture: amd64
CasperMD5CheckR
CurrentDesktop: ubuntu:GNOME
Date: Thu Jun 13 19:59:16 2024
InstallationDate: Installed on 2023-12-12 (184 days ago)
InstallationMedia: Ubuntu 22.04.3 LTS "Jammy Jellyfish" - Release amd64 (20230807.2)
SourcePackage: linux-hwe-6.5
UpgradeStatus: No upgrade log present (probably fresh install)
description: | updated |