AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • Início
  • system&network
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • Início
  • system&network
    • Recentes
    • Highest score
    • tags
  • Ubuntu
    • Recentes
    • Highest score
    • tags
  • Unix
    • Recentes
    • tags
  • DBA
    • Recentes
    • tags
  • Computer
    • Recentes
    • tags
  • Coding
    • Recentes
    • tags
Início / user-2160291

Nathan Ferris's questions

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

O kernel HWE 6.11 falha ao compilar em 24.04.2

  • 5

Tenho uma máquina vanilla 24.04.2 com kernel 6.8.0-53-generic e queria habilitar o HWE

Tentei instalar o kernel hwe via apt

sudo apt install linux-generic-hwe-24.04

No entanto, a compilação falha e o log de travamento me diz que o kernel foi compilado por uma versão diferente do GCC do que a que eu instalei. As versões do GCC listadas no log de travamento, no entanto, são a mesma versão.

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

E o erro de compilação específico é

   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;

Parece que tenho o compilador certo:

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

Alguma ideia do que está faltando para fazer isso funcionar?

Registro completo de falhas:

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 respostas
  • 69 Views

Sidebar

Stats

  • Perguntas 205573
  • respostas 270741
  • best respostas 135370
  • utilizador 68524
  • Highest score
  • respostas
  • Marko Smith

    Existe um comando para listar todos os usuários? Também para adicionar, excluir, modificar usuários, no terminal?

    • 9 respostas
  • Marko Smith

    Como excluir um diretório não vazio no Terminal?

    • 4 respostas
  • Marko Smith

    Como descompactar um arquivo zip do Terminal?

    • 9 respostas
  • Marko Smith

    Como instalo um arquivo .deb por meio da linha de comando?

    • 11 respostas
  • Marko Smith

    Como instalo um arquivo .tar.gz (ou .tar.bz2)?

    • 14 respostas
  • Marko Smith

    Como listar todos os pacotes instalados

    • 24 respostas
  • Martin Hope
    Flimm Como posso usar o docker sem sudo? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    led-Zepp Como faço para salvar a saída do terminal em um arquivo? 2014-02-15 11:49:07 +0800 CST
  • Martin Hope
    ubuntu-nerd Como descompactar um arquivo zip do Terminal? 2011-12-11 20:37:54 +0800 CST
  • Martin Hope
    TheXed Como instalo um arquivo .deb por meio da linha de comando? 2011-05-07 09:40:28 +0800 CST
  • Martin Hope
    Ivan Como listar todos os pacotes instalados 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    David Barry Como determino o tamanho total de um diretório (pasta) na linha de comando? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher "Os seguintes pacotes foram retidos:" Por que e como resolvo isso? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford Como os PPAs podem ser removidos? 2010-07-30 01:09:42 +0800 CST

Hot tag

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

Explore

  • Início
  • Perguntas
    • Recentes
    • Highest score
  • tag
  • help

Footer

AskOverflow.Dev

About Us

  • About Us
  • Contact Us

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve