Opened 10 years ago
Closed 10 years ago
#46414 closed defect (fixed)
p5-devel-size: fails to build
Reported by: | mojca (Mojca Miklavec) | Owned by: | macports-tickets@… |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | ports | Version: | |
Keywords: | Cc: | ||
Port: | p5-devel-size |
Description
---> Building p5.16-devel-size DEBUG: Environment: CC_PRINT_OPTIONS='YES' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/.CC_PRINT_OPTIONS' CPATH='/opt/local/include' LIBRARY_PATH='/opt/local/lib' MACOSX_DEPLOYMENT_TARGET='10.10' DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/Devel-Size-0.69" && /usr/bin/make -j8 -w all' DEBUG: Executing command line: cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/Devel-Size-0.69" && /usr/bin/make -j8 -w all make: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/Devel-Size-0.69' /opt/local/bin/perl5.16 "-Iinc" /opt/local/lib/perl5/5.16.3/ExtUtils/xsubpp -typemap /opt/local/lib/perl5/5.16.3/ExtUtils/typemap Size.xs > Size.xsc && mv Size.xsc Size.c Running Mkbootstrap for Devel::Size () chmod 644 Size.bs cp Size.bs blib/arch/auto/Devel/Size/Size.bs chmod 644 blib/arch/auto/Devel/Size/Size.bs cp lib/Devel/Size.pm blib/lib/Devel/Size.pm /usr/bin/clang -c -pipe -Os -fno-common -DPERL_DARWIN -I/opt/local/include -fno-strict-aliasing -fstack-protector -I/opt/local/include -arch x86_64 -O3 -DVERSION=\"0.69\" -DXS_VERSION=\"0.69\" "-I/opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE" Size.c Size.xs:202:42: error: no member named 'nparens' in 'struct p5rx' total_size += sizeof(I32) * baseregex->nparens * 2; ~~~~~~~~~ ^ Size.xs:203:35: error: no member named 'precomp' in 'struct p5rx' total_size += strlen(baseregex->precomp); ~~~~~~~~~ ^ Size.xs:328:45: error: no member named 'cop_label' in 'struct cop'; did you mean 'cop_line'? if (check_new(tracking_hash, basecop->cop_label)) { ^~~~~~~~~ cop_line /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE/cop.h:387:17: note: 'cop_line' declared here line_t cop_line; /* line # of this command */ ^ Size.xs:328:36: warning: incompatible integer to pointer conversion passing 'line_t' (aka 'unsigned int') to parameter of type 'const void *' [-Wint-conversion] if (check_new(tracking_hash, basecop->cop_label)) { ^~~~~~~~~~~~~~~~~~ Size.xs:153:45: note: passing argument to parameter 'thing' here IV check_new(HV *tracking_hash, const void *thing) { ^ Size.xs:329:32: error: no member named 'cop_label' in 'struct cop'; did you mean 'cop_line'? total_size += strlen(basecop->cop_label); ^~~~~~~~~ cop_line /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE/cop.h:387:17: note: 'cop_line' declared here line_t cop_line; /* line # of this command */ ^ Size.xs:329:23: warning: incompatible integer to pointer conversion passing 'line_t' (aka 'unsigned int') to parameter of type 'const char *' [-Wint-conversion] total_size += strlen(basecop->cop_label); ^~~~~~~~~~~~~~~~~~ /usr/include/string.h:82:28: note: passing argument to parameter here size_t strlen(const char *); ^ Size.xs:387:8: error: duplicate case value 'SVt_IV' case SVt_RV: ^ /opt/local/lib/perl5/5.16.3/darwin-thread-multi-2level/CORE/sv.h:80:18: note: expanded from macro 'SVt_RV' # define SVt_RV SVt_IV ^ Size.xs:369:8: note: previous case defined here case SVt_IV: ^ 2 warnings and 5 errors generated. make: *** [Size.o] Error 1 make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/Devel-Size-0.69' Command failed: cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-devel-size/p5.16-devel-size/work/Devel-Size-0.69" && /usr/bin/make -j8 -w all Exit code: 2 Error: org.macports.build for port p5.16-devel-size returned: command execution failed DEBUG: Error code: CHILDSTATUS 37857 2
(See also #46322 for buildbot logs.)
Change History (3)
comment:1 Changed 10 years ago by mojca (Mojca Miklavec)
comment:2 Changed 10 years ago by dbevans (David B. Evans)
The problem with 5.20 is discussed upstream in CPAN bug 95493.
comment:3 Changed 10 years ago by dbevans (David B. Evans)
Resolution: | → fixed |
---|---|
Status: | new → closed |
I've updated the port to include support for perl5.20 in r133136 after applying two patches suggested upstream. (See CPAN #88180 and CPAN #88182).
The first patch fixes a legitimate error in the C code when running on perl5.20 and the second is a patch to fix the test itself. The patches are applied only for perl > 5.18 since they work correctly for the earlier versions.
These patches allow all subtests but one (193/194) to complete successfully and the remaining test appears to likely be one that is inappropriate due to design changes introduced in perl5.20. See CPAN #122322 for the upstream discussion on the subject.
Closing the ticket since I believe the remaining failure seems to be one of testing methodology not actual functionality of the module itself.
I upgraded the port in r131066. It seems that the above reported problem is gone, but the tests fail with Perl 5.20 which is consistent with reports on CPAN: