Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#43150 closed defect (fixed)

p5.16-wx build error on Mavericks

Reported by: mf2k (Frank Schima) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: haspatch Cc: mojca (Mojca Miklavec), kurt.vanallsburg@…
Port: p5-wx perl5.16

Description

I'm seeing the following build error for p5.16-wx in OS X 10.9.2 and Xcode 5.1.

:info:build Frames.c:12662:5: error: declaration of 'Perl___notused' has a different language linkage
:info:build     dVAR; dXSARGS;
:info:build     ^
:info:build /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/perl.h:174:17: note: expanded from macro 'dVAR'
:info:build #  define dVAR          dNOOP
:info:build                         ^
:info:build /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/perl.h:362:26: note: expanded from macro 'dNOOP'
:info:build #define dNOOP extern int Perl___notused(void)
:info:build                          ^
:info:build Frames.c:182:5: note: previous declaration is here
:info:build     dVAR; dXSARGS;
:info:build     ^
:info:build /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/perl.h:174:17: note: expanded from macro 'dVAR'
:info:build #  define dVAR          dNOOP
:info:build                         ^
:info:build /opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/perl.h:362:26: note: expanded from macro 'dNOOP'
:info:build #define dNOOP extern int Perl___notused(void)
:info:build                          ^
:info:build 5 warnings and 1 error generated.
:info:build make: *** [Frames.o] Error 1
:info:build Warning: duplicate function definition 'GetSelection' detected in XS/ComboBox.xs, line 184
:info:build Warning: duplicate function definition 'SetSelection' detected in XS/ComboBox.xs, line 203
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_mports_trunk_dports_perl_p5-wx/p5.16-wx/work/Wx-0.9923'
:info:build Command failed:  cd "/opt/local/var/macports/build/_opt_mports_trunk_dports_perl_p5-wx/p5.16-wx/work/Wx-0.9923" && /usr/bin/make -j8 -w all 

Cc'ing mojca who just updated the port.

Attachments (6)

main.log (87.2 KB) - added by mf2k (Frank Schima) 10 years ago.
patch-wxPerl.diff (1.7 KB) - added by mojca (Mojca Miklavec) 10 years ago.
patch for p5-wx and p5-alien-wxwidgets to fall back to wxWidgets 2.9.4
main.2.log (138.0 KB) - added by mf2k (Frank Schima) 10 years ago.
main-kva.log (77.4 KB) - added by kurt.vanallsburg@… 10 years ago.
perl5.16-dNOOP.diff (1.3 KB) - added by mojca (Mojca Miklavec) 10 years ago.
backported fix for dNOOP in C++ for Perl 5.16
perl5.16.3.diff (2.2 KB) - added by mojca (Mojca Miklavec) 10 years ago.
upgrade to perl5.16.3 including the patch for dNOOP

Download all attachments as: .zip

Change History (34)

Changed 10 years ago by mf2k (Frank Schima)

Attachment: main.log added

comment:1 Changed 10 years ago by mojca (Mojca Miklavec)

Now get that. On Mavericks (https://build.macports.org/builders/buildports-mavericks-x86_64/builds/2468) the build of p5.18-wx actually succeeds:

Building p5-wx (1 of 11)...failure
Building p5.14-wx (2 of 11)...failure
Building p5.16-wx (3 of 11)...failure
Building p5.18-wx (4 of 11)...success
Building p5-alien-wxwidgets (5 of 11)...package found, not building again
Building p5.8-alien-wxwidgets (6 of 11)...package found, not building again
Building p5.10-alien-wxwidgets (7 of 11)...failure
Building p5.12-alien-wxwidgets (8 of 11)...package found, not building again
Building p5.14-alien-wxwidgets (9 of 11)...package found, not building again
Building p5.16-alien-wxwidgets (10 of 11)...package found, not building again
Building p5.18-alien-wxwidgets (11 of 11)...package found, not building again

See also Lion (https://build.macports.org/builders/buildports-lion-x86_64/builds/19178) where it succeeds on p5.16 (the failure on some is probably due to missing/broken dependencies, I would need to rebuild):

Building p5-wx (1 of 11)...success
Building p5.14-wx (2 of 11)...failure
Building p5.16-wx (3 of 11)...package found, not building again
Building p5.18-wx (4 of 11)...success
Building p5-alien-wxwidgets (5 of 11)...success
Building p5.8-alien-wxwidgets (6 of 11)...success
Building p5.10-alien-wxwidgets (7 of 11)...failure
Building p5.12-alien-wxwidgets (8 of 11)...success
Building p5.14-alien-wxwidgets (9 of 11)...package found, not building again
Building p5.16-alien-wxwidgets (10 of 11)...package found, not building again
Building p5.18-alien-wxwidgets (11 of 11)...success

Other than the problem with 5.10 I don't understand the pattern.

Last edited 10 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:2 Changed 10 years ago by mojca (Mojca Miklavec)

This is the failure for p5.14-wx on Lion:

--->  Building p5.14-wx
DEBUG: Executing org.macports.build (p5.14-wx)
DEBUG: Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/Wx-0.9923" && /usr/bin/make -j8 -w all'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/Wx-0.9923" && /usr/bin/make -j8 -w all 
make: Entering directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/Wx-0.9923'
/opt/local/bin/perl5.14 script/make_v_cback.pl > cpp/v_cback_def.h
/opt/local/bin/perl5.14 script/wxperl_overload cpp/ovl_const.cpp cpp/ovl_const.h overload.lst
/opt/local/bin/perl5.14 /opt/local/lib/perl5/5.14.2/ExtUtils/xsubpp  -nolinenumbers -noprototypes  -typemap /opt/local/lib/perl5/5.14.2/ExtUtils/typemap -typemap typemap  Wx.xs > Wx.xsc && mv Wx.xsc Wx.c
/opt/local/bin/perl5.14 /opt/local/lib/perl5/5.14.2/ExtUtils/xsubpp  -nolinenumbers -noprototypes  -typemap /opt/local/lib/perl5/5.14.2/ExtUtils/typemap -typemap typemap  Constant.xs > Constant.xsc && mv Constant.xsc Constant.c
/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ItemContainer.xsp > XS/ItemContainer.xs
/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/ItemContainerImmutable.xsp > XS/ItemContainerImmutable.xs
/opt/local/bin/perl5.14 /opt/local/lib/perl5/5.14.2/ExtUtils/xsubpp  -nolinenumbers -noprototypes  -typemap /opt/local/lib/perl5/5.14.2/ExtUtils/typemap -typemap typemap  Event.xs > Event.xsc && mv Event.xsc Event.c
/opt/local/bin/perl5.14 /opt/local/lib/perl5/5.14.2/ExtUtils/xsubpp  -nolinenumbers -noprototypes  -typemap /opt/local/lib/perl5/5.14.2/ExtUtils/typemap -typemap typemap  Frames.xs > Frames.xsc && mv Frames.xsc Frames.c
/opt/local/bin/perl5.14 /opt/local/lib/perl5/5.14.2/ExtUtils/xsubpp  -nolinenumbers -noprototypes  -typemap /opt/local/lib/perl5/5.14.2/ExtUtils/typemap -typemap typemap  GDI.xs > GDI.xsc && mv GDI.xsc GDI.c
Writing 'cpp/ovl_const.h'.
Writing 'cpp/ovl_const.cpp'.
touch wxt_overload
/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/VarHScrollHelper.xsp > XS/VarHScrollHelper.xs
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [XS/ItemContainerImmutable.xs] Error 2
make: *** Waiting for unfinished jobs....
make: *** [XS/ItemContainer.xs] Error 2
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
make: *** [XS/VarHScrollHelper.xs] Error 2
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Error reading from pipe '/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Dialog.xsp':  in Frames.xs, line 28
make: *** [Frames.c] Error 1
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Error reading from pipe '/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/Brush.xsp':  in XS/Pen.xs, line 0
make: *** [GDI.c] Error 1
Can't locate ExtUtils/Typemaps.pm in @INC (@INC contains: /opt/local/lib/perl5/site_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/site_perl/5.14.2 /opt/local/lib/perl5/vendor_perl/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/vendor_perl/5.14.2 /opt/local/lib/perl5/5.14.2/darwin-thread-multi-2level /opt/local/lib/perl5/5.14.2 /opt/local/lib/perl5/site_perl /opt/local/lib/perl5/vendor_perl .) at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Typemap.pm line 5.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Lexer.pm line 30.
Compilation failed in require at XSP.yp line 476.
BEGIN failed--compilation aborted at XSP.yp line 476.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Parser.pm line 7.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Driver.pm line 9.
Compilation failed in require at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
BEGIN failed--compilation aborted at /opt/local/lib/perl5/vendor_perl/5.14.2/ExtUtils/XSpp/Cmd.pm line 30.
Compilation failed in require.
BEGIN failed--compilation aborted.
Error reading from pipe '/opt/local/bin/perl5.14 -MExtUtils::XSpp::Cmd -e xspp -- -t typemap.xsp XS/FontEnumerator.xsp':  in Wx.xs, line 548
make: *** [Wx.c] Error 1
make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/Wx-0.9923'
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.14-wx/work/Wx-0.9923" && /usr/bin/make -j8 -w all 
Exit code: 2

Maybe it's a different error, but I'm copy-pasting it here it nevertheless. https://build.macports.org/builders/buildports-lion-x86_64/builds/19183

comment:3 Changed 10 years ago by mf2k (Frank Schima)

I tried, for a short while, to blacklist later clang versions, but it did not seem to work. This port may not be UsingTheRightCompiler. Can you try falling back to an older wxWidgets version on Mavericks?

comment:4 Changed 10 years ago by mojca (Mojca Miklavec)

Summary of success/failures:

OS \ Perl 5.14 5.16 5.18
10.6-10.8 - OK OK
10.9 - - OK

What do you want me to do? Use wxWidgets 2.9.4 only on 10.9 and only for Perl 5.16? Or also for Perl 5.14 on all OS versions?

comment:5 Changed 10 years ago by mf2k (Frank Schima)

For now, only Perl5.16 on Mavericks.

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: patch-wxPerl.diff added

patch for p5-wx and p5-alien-wxwidgets to fall back to wxWidgets 2.9.4

comment:6 Changed 10 years ago by mojca (Mojca Miklavec)

Can you please try the attached patch? (In case it works, feel free to commit it.)

comment:7 Changed 10 years ago by mf2k (Frank Schima)

Hmmm. It did not work for me. Looks like the same error. I'll attach the latest log.

Changed 10 years ago by mf2k (Frank Schima)

Attachment: main.2.log added

comment:8 Changed 10 years ago by mojca (Mojca Miklavec)

You didn't compile against wxWidgets 2.9.4. You shouldn't have ended up with -I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0. It's possible that my patch wasn't sufficient to switch to wxPerl. Which wxWidgets dependencies are listed with the following commands?

port info p5.16-wx
port info p5.16-alien-wxwidgets

comment:9 Changed 10 years ago by mf2k (Frank Schima)

$ port info --depends  p5.16-alien-wxwidgets
depends_build: 
depends_run: 
depends_fetch: 
depends_lib: port:perl5.16, port:p5.16-module-build, port:wxPerl-3.0
depends_extract: 

$ port info --depends  p5.16-wx
depends_build: port:p5.16-extutils-xspp
depends_run: 
depends_fetch: 
depends_lib: port:perl5.16, port:p5.16-alien-wxwidgets, port:wxPerl-3.0
depends_extract: 

comment:10 Changed 10 years ago by mojca (Mojca Miklavec)

Can you please try to increase the revision for p5-alien-wxwidgets? I suspect the problem is that p5.18-alien-wxwidgets was already successfully installed and linked against wxWidgets-3.0.

comment:11 Changed 10 years ago by mf2k (Frank Schima)

I had done a complete uninstall of p5.16-alien-wxwidgets first.

comment:12 Changed 10 years ago by mojca (Mojca Miklavec)

I'm not fluent in reading the logs, but please do try to increase the revision. I don't see any traces of p5.16-alien-wxwidgets being built in your log. Maybe the package was installed automatically from the binary server (or from some local archive)?

comment:13 Changed 10 years ago by mf2k (Frank Schima)

Good thought, but I did force a source install.

$ sudo port uninstall p5.16-alien-wxwidgets 
--->  Deactivating p5.16-alien-wxwidgets @0.650.0_1
--->  Uninstalling p5.16-alien-wxwidgets @0.650.0_1
--->  Cleaning p5.16-alien-wxwidgets

$ sudo port clean p5.16-wx
--->  Cleaning p5.16-wx

$ sudo port -s install p5.16-wx
--->  Computing dependencies for p5.16-wx
--->  Dependencies to be installed: p5.16-alien-wxwidgets
--->  Fetching distfiles for p5.16-alien-wxwidgets
--->  Attempting to fetch Alien-wxWidgets-0.65.tar.gz from http://sea.us.distfiles.macports.org/macports/distfiles/perl5
--->  Attempting to fetch Alien-wxWidgets-0.65.tar.gz from ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Alien
--->  Verifying checksums for p5.16-alien-wxwidgets                             
--->  Extracting p5.16-alien-wxwidgets
--->  Configuring p5.16-alien-wxwidgets
--->  Building p5.16-alien-wxwidgets
--->  Staging p5.16-alien-wxwidgets into destroot
--->  Installing p5.16-alien-wxwidgets @0.650.0_1
--->  Activating p5.16-alien-wxwidgets @0.650.0_1
--->  Cleaning p5.16-alien-wxwidgets
--->  Fetching distfiles for p5.16-wx
--->  Verifying checksums for p5.16-wx
--->  Extracting p5.16-wx
--->  Configuring p5.16-wx
--->  Building p5.16-wx
Error: Failed to build p5.16-wx: command execution failed
Error: See /opt/local/var/macports/logs/_opt_mports_trunk_dports_perl_p5-wx/p5.16-wx/main.log for details.

comment:14 Changed 10 years ago by mojca (Mojca Miklavec)

I'm sorry, but I have no clue. You should have ended up with

> port contents p5.16-alien-wxwidgets
Port p5.16-alien-wxwidgets contains:
  /opt/local/lib/perl5/vendor_perl/5.16.1/darwin-thread-multi-2level/Alien/wxWidgets.pm
  /opt/local/lib/perl5/vendor_perl/5.16.1/darwin-thread-multi-2level/Alien/wxWidgets/Config/mac_2_9_4_uni_nc_0.pm
  /opt/local/lib/perl5/vendor_perl/5.16.1/darwin-thread-multi-2level/Alien/wxWidgets/Utility.pm
  /opt/local/lib/perl5/vendor_perl/5.16.1/darwin-thread-multi-2level/auto/Alien/wxWidgets/.packlist
  /opt/local/share/perl5.16/man/man3/Alien::wxWidgets.3pm
  /opt/local/share/perl5.16/man/man3/Alien::wxWidgets::Utility.3pm

but I suspect that you have darwin-thread-multi-2level/Alien/wxWidgets/Config/mac_3_0_0_uni_nc_0.pm instead? (Unless the error in the latest main.log is different now.)

comment:15 Changed 10 years ago by mojca (Mojca Miklavec)

See also #43119.

comment:16 Changed 10 years ago by mojca (Mojca Miklavec)

I see different projects using something like

// Hack to work around "error: declaration of 'Perl___notused' has a different
// language linkage" error on Clang
#ifdef dNOOP
# undef dNOOP
# define dNOOP
#endif

or

#undef dNOOP // Hack to work around "error: declaration of 'Perl___notused' has a different language linkage" error message on clang.
#define dNOOP

as well as patches of ParseXS.pm:

comment:17 Changed 10 years ago by mojca (Mojca Miklavec)

The problem with p5.14 seems to be

Can't locate ExtUtils/Typemaps.pm in @INC

Indeed perl5.16 includes

/opt/local/lib/perl5/5.16.1/ExtUtils/Typemaps.pm

but perl5.14 lacks that file. I opened a new ticket #43157.

Last edited 10 years ago by mojca (Mojca Miklavec) (previous) (diff)

comment:18 Changed 10 years ago by kurt.vanallsburg@…

My main.log seems to suggest Tcl/Tk is causing a problem. Mavericks 10.9.2, Xcode 5.1.

:error:build Failed to install p5.16-wx
:debug:build couldn't open "/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex": no such file or directory
    while executing

I've attached the logfile as main-kva.log.

Changed 10 years ago by kurt.vanallsburg@…

Attachment: main-kva.log added

comment:19 Changed 10 years ago by kurt.vanallsburg@…

Cc: kurt.vanallsburg@… added

Cc Me!

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: perl5.16-dNOOP.diff added

backported fix for dNOOP in C++ for Perl 5.16

comment:20 Changed 10 years ago by mojca (Mojca Miklavec)

Can you please try patching Perl 5.16 with perl5.16-dNOOP.diff​? I'm able to reproduce the problem on 10.7 by using

sudo port install p5.16-wx configure.compiler=macports-clang-3.4

and this patch fixes is for me. Anyway, given the large number of compile errors, Perl looks like a "time bomb" that will sooner or later fail to compile again when a new compiler version comes out.

Please build against wxWidgets 3.0, not against "wxPerl" (2.9.4). So make sure to remove local patches that could grab an older version of wxWidgets. Just in case, uninstall p5.16-alien-wxwidgets first as well.

comment:21 Changed 10 years ago by mojca (Mojca Miklavec)

Kurt: your logs suggest exactly the same error. I don't know what that tclIndex is doing, but the initial error is/was the same as reported here.

comment:22 Changed 10 years ago by mojca (Mojca Miklavec)

Port: perl5.16 added
Version: 2.2.1

comment:23 Changed 10 years ago by mojca (Mojca Miklavec)

Reply from Perl developers:

The problem with backporting is I don't think this is a binary-compatible change. If someone has an XS extension that knows about the Perl___notused symbol (either in its mangled or unmangled form when built with C++), then that extension would have to be rebuilt if we take that symbol away. We don't do that for maintenance releases. There may be a way around that, such as providing the symbol elsewhere for backward compatibility purposes only, but it's something that needs further consideration and discussion.

Please open a ticket at rt.perl.org to make sure this gets the discussion it needs. The easiest way to do that is to just resend your mail to perlbug a perl.org. Please use a specific subject line, such as "request to backport 'A more C++-friendly dNOOP'" and be sure to include the output of perl -V in the message. Also please include verbose compiler version info.

So the second question is: do we need to rebuild anything if we apply this patch?

I also noticed that we are using perl5.16.1 while 5.16.3 is out.

comment:24 Changed 10 years ago by mojca (Mojca Miklavec)

I could have opened a new ticket for an update (integrating the dNOOP patch), but if you are testing the patch, you can just as well test all this on an updated Perl version (hoping that the note from developers isn't too serious; if it is, we can revbump certain ports causing problems).

comment:25 Changed 10 years ago by mojca (Mojca Miklavec)

Keywords: haspatch added

Changed 10 years ago by mojca (Mojca Miklavec)

Attachment: perl5.16.3.diff added

upgrade to perl5.16.3 including the patch for dNOOP

comment:26 Changed 10 years ago by mf2k (Frank Schima)

Resolution: fixed
Status: newclosed

This worked. Thanks! Committed in r118512.

comment:27 Changed 10 years ago by mojca (Mojca Miklavec)

Now for the cool news. I just discovered that libproxy became broken due to

/opt/local/lib/perl5/site_perl/5.16.1/darwin-thread-multi-2level/auto/Net/Libproxy/Libproxy.dylib

linking against

/opt/local/lib/perl5/5.16.1/darwin-thread-multi-2level/CORE/libperl.dylib

And p5.16-wx seems broken as well for more or less the same reason.

We could just as well update perl5.12 and perl5.14 (#43174) before revbumping these (and other?) ports.

comment:28 Changed 10 years ago by mojca (Mojca Miklavec)

Here's the upstream "backport request": https://rt.perl.org/Public/Bug/Display.html?id=121714

Note: See TracTickets for help on using tickets.