Re: Build errors with GCC 14
"Greg A. Woods" <[email protected]> Sat, 18 May 2024 13:07:37 -0700
| Newsgroups | gmane.comp.type-setting.lout |
|---|---|
| Message-ID | <[email protected]> |
--pgp-sign-Multipart_Sat_May_18_13:07:23_2024-1 Content-Type: text/plain; charset=ISO-8859-2 Content-Transfer-Encoding: quoted-printable At Sat, 18 May 2024 18:09:33 +0200, Mat=ECj Cepl <[email protected]> wrote: Subject: Build errors with GCC 14 >=20 > I am maintaining Lout for OpenSUSE distros, and we are currently > in the process of preparation for the switch to GCC 14 [1], which > has much more stringent checks on the code and many things were > before just warnings are now build errors ([2] and [3]). When > build in the experiemental project [4] it produces number of > errors and the build fails [5] I would strongly recommend using '--std=3Dc99' (or as necessary '--std=3Dc89') to compile older code with a newer compiler such as GCC-14. It also wouldn't be wrong to add '-fpermissive' as well. The code was written to an older standard so don't try to foist new language features on it without very careful consideration! You really don't have to fix innocuous warnings just because the compiler now defaults to a newer language standard that's not entirely backwards compatible. Of course real bugs should be fixed and reported. Note too that Lout's makefile has long specified '-ansi', which is of course equivalent to '--std=3Dc89', along with '-pedantic'. That said perhaps you haven't noticed the latest release from June of last year that fixes all warnings (though I've found it needs to be adjusted to use '--std=3Dc99' instead of '-ansi'): http://jeffreykingston.id.au/lout/ http://jeffreykingston.id.au/lout/lout-3.41.tar.gz nThere's also William Bader's work to clean up warnings and make some fixes: https://github.com/william8000/lout/ I would like to see him rebase any of his changes still "necessary" onto Jeff's 3.41 though before recommending it wholeheartedly. --=20 Greg A. Woods <[email protected]> Kelowna, BC +1 250 762-7675 RoboHack <[email protected]> Planix, Inc. <[email protected]> Avoncote Farms <[email protected]> --pgp-sign-Multipart_Sat_May_18_13:07:23_2024-1 Content-Type: application/pgp-signature Content-Transfer-Encoding: 7bit Content-Description: OpenPGP Digital Signature -----BEGIN PGP SIGNATURE----- iF0EABECAB0WIQRuK6dmwVAucmRxuh9mfXG3eL/0fwUCZkkKfgAKCRBmfXG3eL/0 fypYAKCeRyGh4i5BweznkyAJvPUnDdQ3vACfcuc0cyMOKv3SHO/vICIm46O3Wac= =xOsV -----END PGP SIGNATURE----- --pgp-sign-Multipart_Sat_May_18_13:07:23_2024-1--