gcc-15.2.0 problem?

"tjoen" ([email protected] via blfs-support Mailing List) <[email protected]> Fri, 20 Mar 2026 16:54:58 +0100
Newsgroups gmane.linux.lfs.beyond.support
Organization dds.nl
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1774022105-13650-17447
Content-Language: en-US
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit

Needs libdw from elfutils to build rpm.
My intention is to rebuild all basic software as .rpm
But even LFS-13.0 skips building libdw from elfutils-0.194
Previous versions 0.194 0.193 and 0.191 same error:
   ...
   CC       riscv_disasm.o
riscv_disasm.c: In function 'riscv_disasm':
riscv_disasm.c:1262:46: error: initialization discards 'const' qualifier 
from pointer target type [-Werror=discarded-qualifiers]
  1262 |                   struct known_csrs *found = bsearch (&key, known,
       |                                              ^~~~~~~
cc1: all warnings being treated as errors
make[2]: *** [Makefile:576: riscv_disasm.o] Error 1
...

It looks like I need to return to previous gcc-14.2.0
Other possibilities?

------------=_1774022105-13650-17447
Content-Type: text/plain; charset="UTF-8"
Content-Disposition: inline
Content-Transfer-Encoding: 8bit
MIME-Version: 1.0

-- 
http://lists.linuxfromscratch.org/sympa/info/blfs-support
Unsubscribe: See the above information page

------------=_1774022105-13650-17447--