Failed to compile GRUB with musl libc because of cdefs.h
Tempik <[email protected]> Thu, 19 Feb 2026 18:23:25 -0300
| Newsgroups | gmane.comp.boot-loaders.grub.bugs |
|---|---|
| Message-ID | <CABEmm1qjxrd3pdtMqhxeZ-a6AA4dDj=1t1Lw5kbZH-zf0ubDsA@mail.gmail.com> |
--0000000000006ae48e064b33ebb6 Content-Type: text/plain; charset="UTF-8" Hello, I attempted to compile GRUB on a musl libc based system and the compilation failed because cdefs.h is not present in musl libc. Information: OS: Gentoo GNU/Linux LibC: musl libc 1.2.5-r8 I was able to workaround the issue by providing a standalone cdefs.h. It might be useful to consider musl libc compatibility in the future. Hope you find this email. Thanks a lot for your time! Tempik --0000000000006ae48e064b33ebb6 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div dir=3D"ltr"><div>Hello,<br><br></div><div>I attempted= to compile GRUB on a musl libc based system and the compilation failed bec= ause cdefs.h is not present in musl libc.</div><br></div><div>Information:<= /div><div>OS: Gentoo GNU/Linux</div><div>LibC: musl libc 1.2.5-r8<br><br>I = was able to workaround the issue by providing a standalone cdefs.h. It migh= t=C2=A0be useful to consider musl libc compatibility=C2=A0in the future.<br= ><br></div><div>Hope you find this email. Thanks a lot for your time!<br></= div><div>=C2=A0 Tempik</div> </div> --0000000000006ae48e064b33ebb6--