perl-Wx-GLCanvas-0.09-36.fc40 fails to build in Fedora 40 and 39: + perl Makefile.PL INSTALLDIRS=vendor 'OPTIMIZE=-O2 -flto=auto -ffat-lto-objects -fexceptions -g -grecord-gcc-switches -pipe -Wall -Wno-complain-wrong-lang -Werror=format-security -Wp,-U_FORTIFY_SOURCE,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -mbranch-protection=standard -fasynchronous-unwind-tables -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -I/usr/include/wx-3.2' Searching configuration for: wxWidgets (any version) for (any toolkit); compiler compatibility: (any compiler) (any version); Available configurations: wxWidgets 3.002002 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu error: Bad exit status from /var/tmp/rpm-tmp.lil3RF (%build) A difference between passing and failing build roots is at <https://koschei.fedoraproject.org/build/15900815>.
Petr, do you know why it happens and what the actual problem is? The output is not very helpful. (I won't be able to investigate this myself until ~September. Then, I can probably strat by bisecting the problematic update that caused this.)
<mock-chroot> sh-5.2# perl Makefile.PL Searching configuration for: wxWidgets (any version) for (any toolkit); compiler compatibility: (any compiler) (any version); Available configurations: wxWidgets 3.002002 for gtk; compiler compatibility: gcc 3.4; options: no debug, unicode, no mslu <mock-chroot> sh-5.2# echo $? 2
Message about configuration is error (via die) from: Makefile.PL:wxWriteMakefile( -> /usr/lib64/perl5/vendor_perl/Wx/build/MakeMaker.pm:my %options = Wx::build::Options->get_makemaker_options( is_wxPerl_tree() ? () : ( 'saved' ) ); ---> /usr/lib64/perl5/vendor_perl/Wx/build/Options.pm:Alien::wxWidgets->load( key => $alien_key ); Where $alien_key is 'gtk_3_2_1_uni_gcc_3_4' And not found this version.
There is generated file /usr/lib64/perl5/vendor_perl/Wx/build/Opt.pm The output of this file in the system which we have: $VAR1 = { 'extra_cflags' => '', 'extra_libs' => '', 'alien_key' => 'gtk_3_2_1_uni_gcc_3_4' }; And we need to have gtk_3_2_2_uni_gcc_3_4 The fix is to rebuild perl-Wx package on the system, where is Wx 3.2.2 There are questions: * How to prevent this kind of issue? * How to report real issue from the build system in a better way? The error message is horrible.