AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / user-2160291

Nathan Ferris's questions

Martin Hope
Nathan Ferris
Asked: 2025-02-25 01:41:30 +0800 CST

HWE 内核 6.11 无法在 24.04.2 上构建

  • 5

我有一台 vanilla 24.04.2 机器,内核为 6.8.0-53-generic,我想启用 HWE

我尝试通过 apt 安装 hwe 内核

sudo apt install linux-generic-hwe-24.04

但是,构建失败,崩溃日志告诉我内核是由与我安装的 GCC 版本不同的版本构建的。但是,崩溃日志中列出的 GCC 版本是相同的。

The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0

具体的编译错误是

   CC [M]  /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
   472 |         xmit = &port->state->xmit;

看来我有正确的编译器:

dpkg --list | grep gcc
ii  gcc                                              4:13.2.0-7ubuntu1                         amd64        GNU C compiler
ii  gcc-11                                           11.4.0-9ubuntu1                           amd64        GNU C compiler
ii  gcc-11-base:amd64                                11.4.0-9ubuntu1                           amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-12                                           12.3.0-17ubuntu1                          amd64        GNU C compiler
ii  gcc-12-base:amd64                                12.3.0-17ubuntu1                          amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-13                                           13.3.0-6ubuntu2~24.04                     amd64        GNU C compiler
ii  gcc-13-base:amd64                                13.3.0-6ubuntu2~24.04                     amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-13-x86-64-linux-gnu                          13.3.0-6ubuntu2~24.04                     amd64        GNU C compiler for the x86_64-linux-gnu architecture
ii  gcc-13-x86-64-linux-gnu-base:i386                13.3.0-6ubuntu2~24.04cross1               i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-14-base:amd64                                14.2.0-4ubuntu2~24.04                     amd64        GCC, the GNU Compiler Collection (base package)
ii  gcc-14-base:i386                                 14.2.0-4ubuntu2~24.04                     i386         GCC, the GNU Compiler Collection (base package)
ii  gcc-x86-64-linux-gnu                             4:13.2.0-7ubuntu1                         amd64        GNU C compiler for the amd64 architecture
ii  libgcc-11-dev:amd64                              11.4.0-9ubuntu1                           amd64        GCC support library (development files)
ii  libgcc-12-dev:amd64                              12.3.0-17ubuntu1                          amd64        GCC support library (development files)
ii  libgcc-13-dev:amd64                              13.3.0-6ubuntu2~24.04                     amd64        GCC support library (development files)
ii  libgcc-s1:amd64                                  14.2.0-4ubuntu2~24.04                     amd64        GCC support library
ii  libgcc-s1:i386                                   14.2.0-4ubuntu2~24.04                     i386         GCC support library
ii  libuno-cppuhelpergcc3-3t64                       4:24.2.7-0ubuntu0.24.04.2                 amd64        LibreOffice UNO runtime environment -- CPPU helper library
ii  libuno-purpenvhelpergcc3-3t64                    4:24.2.7-0ubuntu0.24.04.2                 amd64        LibreOffice UNO runtime environment -- "purpose environment" helper
ii  libuno-salhelpergcc3-3t64                        4:24.2.7-0ubuntu0.24.04.2                 amd64        LibreOffice UNO runtime environment -- SAL helpers for C++ library
ii  python3-pygccxml                                 2.4.0-1                                   all          specialized XML reader reads the output from gccxml - python3 lib

有什么想法让我缺少什么才能使这个工作成功吗?

完整崩溃日志:

cat /var/crash/xtrx-dkms.0.crash
ProblemType: Package
DKMSBuildLog:
 DKMS make.log for xtrx-0.0.1+git20190320.5ae3a3e-3.2ubuntu2 for kernel 6.11.0-17-generic (x86_64)
 Sun Feb 23 07:01:37 PM PST 2025
 make: Entering directory '/usr/src/linux-headers-6.11.0-17-generic'
 warning: the compiler differs from the one used to build the kernel
   The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
   You are using:           gcc-13 (Ubuntu 13.3.0-6ubuntu2~24.04) 13.3.0
   CC [M]  /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c: In function ‘xtrx_uart_do_tx’:
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
   472 |         xmit = &port->state->xmit;
       |                            ^~
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:473:13: error: implicit declaration of function ‘uart_circ_empty’; did you mean ‘uart_lsr_tx_empty’? [-Werror=implicit-function-declaration]
   473 |         if (uart_circ_empty(xmit))
       |             ^~~~~~~~~~~~~~~
       |             uart_lsr_tx_empty
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:25: error: invalid use of undefined type ‘struct circ_buf’
   480 |                 c = xmit->buf[xmit->tail] & 0xff;
       |                         ^~
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:480:35: error: invalid use of undefined type ‘struct circ_buf’
   480 |                 c = xmit->buf[xmit->tail] & 0xff;
       |                                   ^~
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:21: error: invalid use of undefined type ‘struct circ_buf’
   484 |                 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
       |                     ^~
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:484:35: error: invalid use of undefined type ‘struct circ_buf’
   484 |                 xmit->tail = (xmit->tail + 1) & (UART_XMIT_SIZE - 1);
       |                                   ^~
 /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:490:13: error: implicit declaration of function ‘uart_circ_chars_pending’ [-Werror=implicit-function-declaration]
   490 |         if (uart_circ_chars_pending(xmit) < WAKEUP_CHARS)
       |             ^~~~~~~~~~~~~~~~~~~~~~~
 cc1: some warnings being treated as errors
 make[2]: *** [scripts/Makefile.build:244: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.o] Error 1
 make[1]: *** [/usr/src/linux-headers-6.11.0-17-generic/Makefile:1931: /var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build] Error 2
 make: *** [Makefile:224: __sub-make] Error 2
 make: Leaving directory '/usr/src/linux-headers-6.11.0-17-generic'
DKMSKernelVersion: 6.11.0-17-generic
Date: Sun Feb 23 19:01:38 2025
DuplicateSignature: dkms:xtrx-dkms:0.0.1+git20190320.5ae3a3e-3.2ubuntu2:/var/lib/dkms/xtrx/0.0.1+git20190320.5ae3a3e-3.2ubuntu2/build/xtrx.c:472:28: error: ‘struct uart_state’ has no member named ‘xmit’
Package: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
PackageVersion: 0.0.1+git20190320.5ae3a3e-3.2ubuntu2
SourcePackage: xtrx-dkms
Title: xtrx-dkms 0.0.1+git20190320.5ae3a3e-3.2ubuntu2: xtrx kernel module failed to build
kernel
  • 1 个回答
  • 69 Views

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve