Closed
Description
In this ticket we'll log reports of CPAN distributions failing to build or test due to the recent switch
removal. Note that as the removal took place over a number of commits, the exact breaking commit may differ from distro to distro.
Scope-Upper: Note that this is a build-time failure.
Sample Failure Report:
http://www.cpantesters.org/cpan/report/29f2f986-5c6b-11ef-8502-e54faa8b0520
Excerpt of Failure Report:
cp lib/Scope/Upper.pm blib/lib/Scope/Upper.pm
Running Mkbootstrap for Upper ()
chmod 644 "Upper.bs"
"/home/cpan/bin/perl/bin/perl5.41.3" -MExtUtils::Command::MM -e 'cp_nonempty' -- Upper.bs blib/arch/auto/Scope/Upper/Upper.bs 644
"/home/cpan/bin/perl/bin/perl5.41.3" "/home/cpan/bin/perl/lib/5.41.3/ExtUtils/xsubpp" -typemap '/home/cpan/bin/perl/lib/5.41.3/ExtUtils/typemap' Upper.xs > Upper.xsc
mv Upper.xsc Upper.c
cc -c -DHAS_FPSETMASK -DHAS_FLOATINGPOINT_H -DNO_POSIX_2008_LOCALE -fno-strict-aliasing -pipe -fstack-protector-strong -I/usr/local/include -O2 -DVERSION=\"0.34\" -DXS_VERSION=\"0.34\" -DPIC -fPIC "-I/home/cpan/bin/perl/lib/5.41.3/amd64-freebsd-thread-multi/CORE" -DSU_RELEASE=0 Upper.c
Upper.xs:1432:23: error: use of undeclared identifier 'CXt_GIVEN'
1432 | if ((prev_type == CXt_GIVEN || prev_type == CXt_WHEN)
| ^
Upper.xs:1432:49: error: use of undeclared identifier 'CXt_WHEN'
1432 | if ((prev_type == CXt_GIVEN || prev_type == CXt_WHEN)
| ^
Upper.xs:1436:23: error: use of undeclared identifier 'CXt_GIVEN'
1436 | if (prev_type == CXt_GIVEN)
| ^
Upper.xs:1530:8: error: use of undeclared identifier 'CXt_GIVEN'
1530 | case CXt_GIVEN:
| ^
Upper.xs:1532:11: error: use of undeclared identifier 'OP_LEAVEGIVEN'
1532 | type = OP_LEAVEGIVEN;
| ^
Upper.xs:1535:8: error: use of undeclared identifier 'CXt_WHEN'
1535 | case CXt_WHEN:
| ^
Upper.xs:1538:13: error: use of undeclared identifier 'OP_LEAVEWHEN'
1538 | type = OP_LEAVEWHEN;
| ^
Upper.xs:2540:9: error: use of undeclared identifier 'CXt_GIVEN'
2540 | case CXt_GIVEN:
| ^
Upper.xs:2541:9: error: use of undeclared identifier 'CXt_WHEN'
2541 | case CXt_WHEN:
| ^
Upper.xs:2576:9: error: use of undeclared identifier 'CXt_GIVEN'
2576 | case CXt_GIVEN:
| ^
Upper.xs:2577:9: error: use of undeclared identifier 'CXt_WHEN'
2577 | case CXt_WHEN:
| ^
11 errors generated.
*** Error code 1
Stop.
make: stopped in /home/cpan/.cpan/build/Scope-Upper-0.34-0
Bisection points to dff5181:
dff5181acc0f5386556522c0ae4e59f672162f6e is the first bad commit
commit dff5181acc0f5386556522c0ae4e59f672162f6e
Author: Tony Cook <[email protected]>
Date: Thu Jul 18 11:43:22 2024 +1000
Commit: Tony Cook <[email protected]>
CommitDate: Thu Aug 15 10:56:18 2024 +1000
switch removal: remove given/when/break/continue
continue blocks are not removed
Upstream bug report and patch:
https://rt.cpan.org/Ticket/Display.html?id=154985
@tonycoz, can you take a look? Thanks.