Opened 10 years ago

Closed 10 years ago

#44416 closed defect (fixed)

p5.20-wx: No rule to make target `<something>', needed by `wxt_copy_files'.

Reported by: mojca (Mojca Miklavec) Owned by: mojca (Mojca Miklavec)
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: mf2k (Frank Schima)
Port: p5.20-wx

Description

The port p5.20-wx fails to build, for example:

Fixing flags in ext/xrc/Makefile
--->  Patching Makefile: /^CCFLAGS *=/s/$/ -arch x86_64/
--->  Patching Makefile: /^OTHERLDFLAGS *=/s/$/ -arch x86_64/
--->  Building p5.20-wx
make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.20-wx/work/Wx-0.9923'
make: *** No rule to make target `cpp/v_cback_def.h', needed by `wxt_copy_files'.  Stop.
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.20-wx/work/Wx-0.9923'
Command failed:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.20-wx/work/Wx-0.9923" && /usr/bin/make -j2 -w all 
Exit code: 2
Error: org.macports.build for port p5.20-wx returned: command execution failed
Warning: targets not executed for p5.20-wx: org.macports.activate org.macports.build org.macports.destroot org.macports.install
Please see the log file for port p5.20-wx for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.20-wx/main.log
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port p5.20-wx failed

On the buildbot it fails with

--->  Building p5.20-wx
DEBUG: Environment:
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.20-wx/work/.CC_PRINT_OPTIONS'
CPATH='/opt/local/include'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.7'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.20-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.20-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.20-wx/work/Wx-0.9923'
make: *** No rule to make target `Opt', needed by `wxt_copy_files'.  Stop.
make: *** Waiting for unfinished jobs....
make: Leaving directory `/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.20-wx/work/Wx-0.9923'
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-wx/p5.20-wx/work/Wx-0.9923" && /usr/bin/make -j8 -w all
Exit code: 2
Error: org.macports.build for port p5.20-wx returned: command execution failed
DEBUG: Error code: CHILDSTATUS 51217 2
DEBUG: Backtrace: command execution failed

Change History (2)

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

Cc: mf2k@… added

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

Resolution: fixed
Status: newclosed

When using

require Alien::wxWidgets;

Perl raised an error:

Can't locate Module/Pluggable.pm in @INC (you may need to install the Module::Pluggable module)

and as a consequence the following code in wx:

eval { require Alien::wxWidgets };
our $has_alien = $@ ? 0 : 1;

resulted in $has_alien = 0.

It seems that p5-module-pluggable has been removed from Perl core (https://rt.perl.org/Public/Bug/Display.html?id=116491).

I upgraded p5-module-pluggable in r123776 and fixed p5-alien-wxwidgets in r123777.

I'm still getting:

Possible precedence issue with control flow operator at /opt/local/lib/perl5/vendor_perl/5.20/darwin-thread-multi-2level/Alien/wxWidgets/Utility.pm line 77.

and

'WX' is not a known MakeMaker parameter name.

but wx at least compiles now. (Some tests fail and I get a lot of "Failed to create the clipboard (error 13: Permission denied)" warnings/errors, but well ...)

Committed in r123780.

Note: See TracTickets for help on using tickets.