Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

[SOLVED] linux-6.14.4-gentoo compile error

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

[SOLVED] linux-6.14.4-gentoo compile error

  • Quote

Post by n1ese » Sat Apr 26, 2025 4:19 pm

Haven't had any kernel issues in a LONG time. Can't compile 6.14.4 from gentoo-sources and not sure where to look for the problem. Previous versions of 6.14 have compiled fine. My system just upgraded to gcc-15.1.0 as well so I'm not sure if that might be causing an issue.

Code: Select all

  LD [M]  sound/soc/codecs/snd-soc-lpass-rx-macro.o
  AR      sound/built-in.a
make[1]: *** [/usr/src/linux-6.14.4-gentoo/Makefile:1996: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2
Last edited by n1ese on Sat Apr 26, 2025 5:28 pm, edited 1 time in total.
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Apr 26, 2025 4:48 pm

If you need assistance, please follow the standard troubleshooting instructions. The information you showed indicates that a failure happened, but there is no error message, so we cannot help you using only what you showed so far. If you suspect gcc-15, you could try switching back to gcc-14. I recall seeing a LWN piece that there had been some problem in the latest release where gcc-15 became stricter with its warnings.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Sat Apr 26, 2025 4:50 pm

Looking like a gcc issue? I restarted the complie and it continued along further and stopped again, been repeating multiple times and slowly moving forward with the complie. It's treating warnings as errors and I finally was able to capture the issue.

This is where it ultimately stops not allowing me to continue further:

Code: Select all

thebe /usr/src/linux # make
  CALL    scripts/checksyscalls.sh
  DESCEND objtool
  INSTALL libsubcmd_headers
  CC      drivers/acpi/tables.o
In file included from ./include/acpi/actbl.h:371,
                 from ./include/acpi/acpi.h:26,
                 from ./include/linux/acpi.h:26,
                 from drivers/acpi/tables.c:19:
./include/acpi/actbl1.h:30:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   30 | #define ACPI_SIG_BERT           "BERT"  /* Boot Error Record Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:400:9: note: in expansion of macro ‘ACPI_SIG_BERT’
  400 |         ACPI_SIG_BERT, ACPI_SIG_BGRT, ACPI_SIG_CPEP, ACPI_SIG_ECDT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl1.h:31:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   31 | #define ACPI_SIG_BGRT           "BGRT"  /* Boot Graphics Resource Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:400:24: note: in expansion of macro ‘ACPI_SIG_BGRT’
  400 |         ACPI_SIG_BERT, ACPI_SIG_BGRT, ACPI_SIG_CPEP, ACPI_SIG_ECDT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl1.h:34:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   34 | #define ACPI_SIG_CPEP           "CPEP"  /* Corrected Platform Error Polling table */
      |                                 ^~~~~~
drivers/acpi/tables.c:400:39: note: in expansion of macro ‘ACPI_SIG_CPEP’
  400 |         ACPI_SIG_BERT, ACPI_SIG_BGRT, ACPI_SIG_CPEP, ACPI_SIG_ECDT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl1.h:40:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   40 | #define ACPI_SIG_ECDT           "ECDT"  /* Embedded Controller Boot Resources Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:400:54: note: in expansion of macro ‘ACPI_SIG_ECDT’
  400 |         ACPI_SIG_BERT, ACPI_SIG_BGRT, ACPI_SIG_CPEP, ACPI_SIG_ECDT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl1.h:41:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   41 | #define ACPI_SIG_EINJ           "EINJ"  /* Error Injection table */
      |                                 ^~~~~~
drivers/acpi/tables.c:401:9: note: in expansion of macro ‘ACPI_SIG_EINJ’
  401 |         ACPI_SIG_EINJ, ACPI_SIG_ERST, ACPI_SIG_HEST, ACPI_SIG_MADT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl1.h:42:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   42 | #define ACPI_SIG_ERST           "ERST"  /* Error Record Serialization Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:401:24: note: in expansion of macro ‘ACPI_SIG_ERST’
  401 |         ACPI_SIG_EINJ, ACPI_SIG_ERST, ACPI_SIG_HEST, ACPI_SIG_MADT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl1.h:45:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   45 | #define ACPI_SIG_HEST           "HEST"  /* Hardware Error Source Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:401:39: note: in expansion of macro ‘ACPI_SIG_HEST’
  401 |         ACPI_SIG_EINJ, ACPI_SIG_ERST, ACPI_SIG_HEST, ACPI_SIG_MADT,
      |                                       ^~~~~~~~~~~~~
In file included from ./include/acpi/actbl.h:372:
./include/acpi/actbl2.h:35:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   35 | #define ACPI_SIG_MADT           "APIC"  /* Multiple APIC Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:401:54: note: in expansion of macro ‘ACPI_SIG_MADT’
  401 |         ACPI_SIG_EINJ, ACPI_SIG_ERST, ACPI_SIG_HEST, ACPI_SIG_MADT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl1.h:49:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   49 | #define ACPI_SIG_MSCT           "MSCT"  /* Maximum System Characteristics Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:402:9: note: in expansion of macro ‘ACPI_SIG_MSCT’
  402 |         ACPI_SIG_MSCT, ACPI_SIG_SBST, ACPI_SIG_SLIT, ACPI_SIG_SRAT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl2.h:53:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   53 | #define ACPI_SIG_SBST           "SBST"  /* Smart Battery Specification Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:402:24: note: in expansion of macro ‘ACPI_SIG_SBST’
  402 |         ACPI_SIG_MSCT, ACPI_SIG_SBST, ACPI_SIG_SLIT, ACPI_SIG_SRAT,
      |                        ^~~~~~~~~~~~~
In file included from ./include/acpi/actbl.h:373:
./include/acpi/actbl3.h:28:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   28 | #define ACPI_SIG_SLIT           "SLIT"  /* System Locality Distance Information Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:402:39: note: in expansion of macro ‘ACPI_SIG_SLIT’
  402 |         ACPI_SIG_MSCT, ACPI_SIG_SBST, ACPI_SIG_SLIT, ACPI_SIG_SRAT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl3.h:31:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   31 | #define ACPI_SIG_SRAT           "SRAT"  /* System Resource Affinity Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:402:54: note: in expansion of macro ‘ACPI_SIG_SRAT’
  402 |         ACPI_SIG_MSCT, ACPI_SIG_SBST, ACPI_SIG_SLIT, ACPI_SIG_SRAT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl1.h:28:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   28 | #define ACPI_SIG_ASF            "ASF!"  /* Alert Standard Format table */
      |                                 ^~~~~~
drivers/acpi/tables.c:403:9: note: in expansion of macro ‘ACPI_SIG_ASF’
  403 |         ACPI_SIG_ASF,  ACPI_SIG_BOOT, ACPI_SIG_DBGP, ACPI_SIG_DMAR,
      |         ^~~~~~~~~~~~
./include/acpi/actbl1.h:32:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   32 | #define ACPI_SIG_BOOT           "BOOT"  /* Simple Boot Flag Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:403:24: note: in expansion of macro ‘ACPI_SIG_BOOT’
  403 |         ACPI_SIG_ASF,  ACPI_SIG_BOOT, ACPI_SIG_DBGP, ACPI_SIG_DMAR,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl1.h:37:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   37 | #define ACPI_SIG_DBGP           "DBGP"  /* Debug Port table */
      |                                 ^~~~~~
drivers/acpi/tables.c:403:39: note: in expansion of macro ‘ACPI_SIG_DBGP’
  403 |         ACPI_SIG_ASF,  ACPI_SIG_BOOT, ACPI_SIG_DBGP, ACPI_SIG_DMAR,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl1.h:38:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   38 | #define ACPI_SIG_DMAR           "DMAR"  /* DMA Remapping table */
      |                                 ^~~~~~
drivers/acpi/tables.c:403:54: note: in expansion of macro ‘ACPI_SIG_DMAR’
  403 |         ACPI_SIG_ASF,  ACPI_SIG_BOOT, ACPI_SIG_DBGP, ACPI_SIG_DMAR,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl1.h:47:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   47 | #define ACPI_SIG_HPET           "HPET"  /* High Precision Event Timer table */
      |                                 ^~~~~~
drivers/acpi/tables.c:404:9: note: in expansion of macro ‘ACPI_SIG_HPET’
  404 |         ACPI_SIG_HPET, ACPI_SIG_IBFT, ACPI_SIG_IVRS, ACPI_SIG_MCFG,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl1.h:48:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   48 | #define ACPI_SIG_IBFT           "IBFT"  /* iSCSI Boot Firmware Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:404:24: note: in expansion of macro ‘ACPI_SIG_IBFT’
  404 |         ACPI_SIG_HPET, ACPI_SIG_IBFT, ACPI_SIG_IVRS, ACPI_SIG_MCFG,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl2.h:33:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   33 | #define ACPI_SIG_IVRS           "IVRS"  /* I/O Virtualization Reporting Structure */
      |                                 ^~~~~~
drivers/acpi/tables.c:404:39: note: in expansion of macro ‘ACPI_SIG_IVRS’
  404 |         ACPI_SIG_HPET, ACPI_SIG_IBFT, ACPI_SIG_IVRS, ACPI_SIG_MCFG,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl2.h:36:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   36 | #define ACPI_SIG_MCFG           "MCFG"  /* PCI Memory Mapped Configuration table */
      |                                 ^~~~~~
drivers/acpi/tables.c:404:54: note: in expansion of macro ‘ACPI_SIG_MCFG’
  404 |         ACPI_SIG_HPET, ACPI_SIG_IBFT, ACPI_SIG_IVRS, ACPI_SIG_MCFG,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl2.h:37:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   37 | #define ACPI_SIG_MCHI           "MCHI"  /* Management Controller Host Interface table */
      |                                 ^~~~~~
drivers/acpi/tables.c:405:9: note: in expansion of macro ‘ACPI_SIG_MCHI’
  405 |         ACPI_SIG_MCHI, ACPI_SIG_SLIC, ACPI_SIG_SPCR, ACPI_SIG_SPMI,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl3.h:27:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   27 | #define ACPI_SIG_SLIC           "SLIC"  /* Software Licensing Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:405:24: note: in expansion of macro ‘ACPI_SIG_SLIC’
  405 |         ACPI_SIG_MCHI, ACPI_SIG_SLIC, ACPI_SIG_SPCR, ACPI_SIG_SPMI,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl3.h:29:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   29 | #define ACPI_SIG_SPCR           "SPCR"  /* Serial Port Console Redirection table */
      |                                 ^~~~~~
drivers/acpi/tables.c:405:39: note: in expansion of macro ‘ACPI_SIG_SPCR’
  405 |         ACPI_SIG_MCHI, ACPI_SIG_SLIC, ACPI_SIG_SPCR, ACPI_SIG_SPMI,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl3.h:30:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   30 | #define ACPI_SIG_SPMI           "SPMI"  /* Server Platform Management Interface table */
      |                                 ^~~~~~
drivers/acpi/tables.c:405:54: note: in expansion of macro ‘ACPI_SIG_SPMI’
  405 |         ACPI_SIG_MCHI, ACPI_SIG_SLIC, ACPI_SIG_SPCR, ACPI_SIG_SPMI,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl3.h:33:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   33 | #define ACPI_SIG_TCPA           "TCPA"  /* Trusted Computing Platform Alliance table */
      |                                 ^~~~~~
drivers/acpi/tables.c:406:9: note: in expansion of macro ‘ACPI_SIG_TCPA’
  406 |         ACPI_SIG_TCPA, ACPI_SIG_UEFI, ACPI_SIG_WAET, ACPI_SIG_WDAT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl3.h:35:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   35 | #define ACPI_SIG_UEFI           "UEFI"  /* Uefi Boot Optimization Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:406:24: note: in expansion of macro ‘ACPI_SIG_UEFI’
  406 |         ACPI_SIG_TCPA, ACPI_SIG_UEFI, ACPI_SIG_WAET, ACPI_SIG_WDAT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl3.h:37:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   37 | #define ACPI_SIG_WAET           "WAET"  /* Windows ACPI Emulated devices Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:406:39: note: in expansion of macro ‘ACPI_SIG_WAET’
  406 |         ACPI_SIG_TCPA, ACPI_SIG_UEFI, ACPI_SIG_WAET, ACPI_SIG_WDAT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl3.h:38:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   38 | #define ACPI_SIG_WDAT           "WDAT"  /* Watchdog Action Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:406:54: note: in expansion of macro ‘ACPI_SIG_WDAT’
  406 |         ACPI_SIG_TCPA, ACPI_SIG_UEFI, ACPI_SIG_WAET, ACPI_SIG_WDAT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl3.h:39:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   39 | #define ACPI_SIG_WDDT           "WDDT"  /* Watchdog Timer Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:407:9: note: in expansion of macro ‘ACPI_SIG_WDDT’
  407 |         ACPI_SIG_WDDT, ACPI_SIG_WDRT, ACPI_SIG_DSDT, ACPI_SIG_FADT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl3.h:40:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   40 | #define ACPI_SIG_WDRT           "WDRT"  /* Watchdog Resource Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:407:24: note: in expansion of macro ‘ACPI_SIG_WDRT’
  407 |         ACPI_SIG_WDDT, ACPI_SIG_WDRT, ACPI_SIG_DSDT, ACPI_SIG_FADT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl.h:31:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   31 | #define ACPI_SIG_DSDT           "DSDT"  /* Differentiated System Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:407:39: note: in expansion of macro ‘ACPI_SIG_DSDT’
  407 |         ACPI_SIG_WDDT, ACPI_SIG_WDRT, ACPI_SIG_DSDT, ACPI_SIG_FADT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl.h:32:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   32 | #define ACPI_SIG_FADT           "FACP"  /* Fixed ACPI Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:407:54: note: in expansion of macro ‘ACPI_SIG_FADT’
  407 |         ACPI_SIG_WDDT, ACPI_SIG_WDRT, ACPI_SIG_DSDT, ACPI_SIG_FADT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl.h:35:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   35 | #define ACPI_SIG_PSDT           "PSDT"  /* Persistent System Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:408:9: note: in expansion of macro ‘ACPI_SIG_PSDT’
  408 |         ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl.h:37:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   37 | #define ACPI_SIG_RSDT           "RSDT"  /* Root System Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:408:24: note: in expansion of macro ‘ACPI_SIG_RSDT’
  408 |         ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl.h:38:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   38 | #define ACPI_SIG_XSDT           "XSDT"  /* Extended  System Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:408:39: note: in expansion of macro ‘ACPI_SIG_XSDT’
  408 |         ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl.h:39:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   39 | #define ACPI_SIG_SSDT           "SSDT"  /* Secondary System Description Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:408:54: note: in expansion of macro ‘ACPI_SIG_SSDT’
  408 |         ACPI_SIG_PSDT, ACPI_SIG_RSDT, ACPI_SIG_XSDT, ACPI_SIG_SSDT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl2.h:32:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   32 | #define ACPI_SIG_IORT           "IORT"  /* IO Remapping Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:409:9: note: in expansion of macro ‘ACPI_SIG_IORT’
  409 |         ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl2.h:41:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   41 | #define ACPI_SIG_NFIT           "NFIT"  /* NVDIMM Firmware Interface Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:409:24: note: in expansion of macro ‘ACPI_SIG_NFIT’
  409 |         ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl1.h:46:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   46 | #define ACPI_SIG_HMAT           "HMAT"  /* Heterogeneous Memory Attributes Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:409:39: note: in expansion of macro ‘ACPI_SIG_HMAT’
  409 |         ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl2.h:47:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   47 | #define ACPI_SIG_PPTT           "PPTT"  /* Processor Properties Topology Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:409:54: note: in expansion of macro ‘ACPI_SIG_PPTT’
  409 |         ACPI_SIG_IORT, ACPI_SIG_NFIT, ACPI_SIG_HMAT, ACPI_SIG_PPTT,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl2.h:42:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   42 | #define ACPI_SIG_NHLT           "NHLT"  /* Non HD Audio Link Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:410:9: note: in expansion of macro ‘ACPI_SIG_NHLT’
  410 |         ACPI_SIG_NHLT, ACPI_SIG_AEST, ACPI_SIG_CEDT, ACPI_SIG_AGDI,
      |         ^~~~~~~~~~~~~
./include/acpi/actbl1.h:27:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   27 | #define ACPI_SIG_AEST           "AEST"  /* Arm Error Source Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:410:24: note: in expansion of macro ‘ACPI_SIG_AEST’
  410 |         ACPI_SIG_NHLT, ACPI_SIG_AEST, ACPI_SIG_CEDT, ACPI_SIG_AGDI,
      |                        ^~~~~~~~~~~~~
./include/acpi/actbl1.h:33:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   33 | #define ACPI_SIG_CEDT           "CEDT"  /* CXL Early Discovery Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:410:39: note: in expansion of macro ‘ACPI_SIG_CEDT’
  410 |         ACPI_SIG_NHLT, ACPI_SIG_AEST, ACPI_SIG_CEDT, ACPI_SIG_AGDI,
      |                                       ^~~~~~~~~~~~~
./include/acpi/actbl2.h:27:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   27 | #define ACPI_SIG_AGDI           "AGDI"  /* Arm Generic Diagnostic Dump and Reset Device Interface */
      |                                 ^~~~~~
drivers/acpi/tables.c:410:54: note: in expansion of macro ‘ACPI_SIG_AGDI’
  410 |         ACPI_SIG_NHLT, ACPI_SIG_AEST, ACPI_SIG_CEDT, ACPI_SIG_AGDI,
      |                                                      ^~~~~~~~~~~~~
./include/acpi/actbl1.h:54:33: error: initializer-string for array of ‘char’ truncates NUL terminator but destination lacks ‘nonstring’ attribute (5 chars into 4 available) [-Werror=unterminated-string-initialization]
   54 | #define ACPI_SIG_NBFT           "NBFT"  /* NVMe Boot Firmware Table */
      |                                 ^~~~~~
drivers/acpi/tables.c:411:9: note: in expansion of macro ‘ACPI_SIG_NBFT’
  411 |         ACPI_SIG_NBFT };
      |         ^~~~~~~~~~~~~
cc1: all warnings being treated as errors
make[4]: *** [scripts/Makefile.build:207: drivers/acpi/tables.o] Error 1
make[3]: *** [scripts/Makefile.build:465: drivers/acpi] Error 2
make[2]: *** [scripts/Makefile.build:465: drivers] Error 2
make[1]: *** [/usr/src/linux-6.14.4-gentoo/Makefile:1996: .] Error 2
make: *** [Makefile:251: __sub-make] Error 2
Top
Hu
Administrator
Administrator
Posts: 24401
Joined: Tue Mar 06, 2007 5:38 am

  • Quote

Post by Hu » Sat Apr 26, 2025 5:13 pm

That looks like the issue I referenced. Use gcc-14, or disable this warning by pulling in Linus's commit 9d7a0577c9db35c4cc52db90bc415ea248446472 (sorry, no git.kernel.org link because that site now only serves a JavaScript based captcha instead of browseable content). This failure had been reported for 6.12 (not 6.14) as sys-kernel/gentoo-sources-6.12.4-r1 fails to make due to compilation warning using gcc15 and again as the (incorrectly titled) sys-kernel/gentoo-sources:2.12.25 failed compilation with sys-devel/gcc:15. For the latter, the poster meant 6.12.25, not 2.12.25. The issue is fixed in v6.15.
Top
n1ese
Tux's lil' helper
Tux's lil' helper
Posts: 87
Joined: Sun Sep 29, 2019 3:25 pm

  • Quote

Post by n1ese » Sat Apr 26, 2025 5:27 pm

Hu wrote:That looks like the issue I referenced. Use gcc-14, or disable this warning by pulling in Linus's commit 9d7a0577c9db35c4cc52db90bc415ea248446472 (sorry, no git.kernel.org link because that site now only serves a JavaScript based captcha instead of browseable content). This failure had been reported for 6.12 (not 6.14) as sys-kernel/gentoo-sources-6.12.4-r1 fails to make due to compilation warning using gcc15 and again as the (incorrectly titled) sys-kernel/gentoo-sources:2.12.25 failed compilation with sys-devel/gcc:15. For the latter, the poster meant 6.12.25, not 2.12.25. The issue is fixed in v6.15.
Thanks, I disabled CONFIG_WERROR and the compile was able to continue successfully.
Top
Post Reply

5 posts • Page 1 of 1

Return to “Kernel & Hardware”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic