eserte / perl-tk

the perl module Tk
https://metacpan.org/release/Tk
Other
44 stars 31 forks source link

fails with gcc14 #105

Open pgajdos opened 4 months ago

pgajdos commented 4 months ago

perl-Tk does not build with gcc14.

pgajdos commented 4 months ago

Build log: https://build.opensuse.org/package/live_build_log/home:rguenther:plgrnd/perl-Tk/openSUSE_Factory/x86_64

pgajdos commented 4 months ago

https://build.opensuse.org/projects/home:pgajdos/packages/perl-Tk/files/perl-Tk-gcc14.patch

This fixes the build for me, however I am not fully confident with it.

pgajdos commented 4 months ago

With gcc13, you get warnings.

thesamesam commented 3 months ago

@eserte There's fix PRs available for all of the modern compiler issues which distros are all individually pulling in. Would it be possible to cut a new release with them in? Thanks.

jamborm commented 2 months ago

For the record, I needed the patch attached to https://bugzilla.opensuse.org/show_bug.cgi?id=1225909#c1 to make openSUSE perl-tk build without -fpermissive with GCC 14. In the end, I decided to use only the configuration options of the patch (mainly because apparently the configuration mechanism was not passing the option to GCC when compiling its snippets and so they are necessary) and rely on -fpermissive for the rest in order not to introduce too much divergence from upstream.