Re: gcc-15.2.0 problem?

"Maurice van der Stee" ([email protected] via blfs-support Mailing List) <[email protected]> Sat, 21 Mar 2026 08:28:03 +0100
Newsgroups gmane.linux.lfs.beyond.support
Message-ID <[email protected]>
This is a multi-part message in MIME format...

------------=_1774078095-1253-17634
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I compiled all of elfutils 0.194 succesfully with gcc 15.2.0 while
stilll on glibc 2.42.

glibc 2.43 has a change to the declaration of bsearch adding the const
qualifier. I'm quite sure this is the cause of your problem. Youcould
check if one of the major distros has a fix.=20

On Fri, 2026-03-20 at 16:54 +0100, tjoen wrote:
> 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:
> =C2=A0=C2=A0 ...
> =C2=A0=C2=A0 CC=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 riscv_disasm.o
> riscv_disasm.c: In function 'riscv_disasm':
> riscv_disasm.c:1262:46: error: initialization discards 'const'
> qualifier=20
> from pointer target type [-Werror=3Ddiscarded-qualifiers]
> =C2=A0 1262 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 struct known_csrs *found =
=3D bsearch (&key,
> known,
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 |=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0 ^~~~~~~
> cc1: all warnings being treated as errors
> make[2]: *** [Makefile:576: riscv_disasm.o] Error 1
> ...
>=20
> It looks like I need to return to previous gcc-14.2.0
> Other possibilities?

--=20
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
Maurice van der Stee

------------=_1774078095-1253-17634
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

------------=_1774078095-1253-17634--