[MacPorts] #59893: p5-wx: Compilation failed in require at Makefile.PL line 21.
MacPorts
noreply at macports.org
Fri Jun 19 15:41:11 UTC 2020
#59893: p5-wx: Compilation failed in require at Makefile.PL line 21.
-------------------------+----------------------
Reporter: ryandesign | Owner: mojca
Type: defect | Status: assigned
Priority: Normal | Milestone:
Component: ports | Version: 2.6.2
Resolution: | Keywords:
Port: p5-wx |
-------------------------+----------------------
Comment (by kencu):
Yuk -- after you generate the Makefiles, you can edit them one-by-one to
change the compiler from g++-4.2 to clang++-mp-9.0, but there are many of
them. Where is the g++-4.2 coming from?
At the top of a generated Makefile, it shows the wrong compiler being
selected:
{{{
# This Makefile is for the Wx extension to perl.
#
# It was generated automatically by MakeMaker version
# 7.44 (Revision: 74400) from the contents of
# Makefile.PL. Don't edit this file, edit Makefile.PL instead.
#
# ANY CHANGES MADE HERE WILL BE LOST!
#
# MakeMaker ARGV: (q[installdirs=vendor])
#
# MakeMaker Parameters:
# ABSTRACT_FROM => q[Wx.pm]
# AUTHOR => [q[Mattia Barbon <mbarbon at cpan.org>]]
# BUILD_REQUIRES => { }
# CCFLAGS => q[]
# CONFIGURE => CODE(...)
# CONFIGURE_REQUIRES => { }
# EXE_FILES => [q[script/wxperl_overload]]
# LIBS => q[
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_adv-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_media-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_html-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0]
# LICENSE => q[perl]
# META_ADD => { build_requires=>{ Alien::wxWidgets=>q[0.25],
ExtUtils::MakeMaker=>q[6.48], ExtUtils::ParseXS=>q[3.15],
ExtUtils::XSpp=>q[0.1602], File::Spec::Functions=>q[0.82],
Test::Harness=>q[2.26], Test::More=>q[0.45], if=>q[0.03] },
configure_requires=>{ Alien::wxWidgets=>q[0.25] }, dynamic_config=>q[1],
no_index=>{ directory=>[q[samples], q[script]], package=>[q[MY],
q[Parse::Yapp::Driver], q[Wx::DropTarget], q[Wx::Droptarget]] },
requires=>{ Alien::wxWidgets=>q[0.25] }, resources=>{
MailingList=>q[http://lists.perl.org/list/wxperl-users.html],
bugtracker=>q[http://rt.cpan.org/NoAuth/Bugs.html?Dist=Wx],
homepage=>q[http://www.wxperl.it/],
license=>q[http://dev.perl.org/licenses/],
repository=>q[http://svn.code.sf.net/p/wxperl/code/wxPerl] } }
# MIN_PERL_VERSION => q[5.006001]
# NAME => q[Wx]
# OBJECT => q[Wx.o Constant.o Controls.o Event.o Frames.o GDI.o
Window.o ]
# PMLIBDIRS => [q[lib], q[build]]
# PREREQ_PM => { Alien::wxWidgets=>q[0.25],
ExtUtils::MakeMaker=>q[6.46], ExtUtils::ParseXS=>q[3.15],
ExtUtils::XSpp=>q[0.1602], File::Spec::Functions=>q[0.82],
Test::Harness=>q[2.26], Test::More=>q[0.45], if=>q[0.03] }
# TEST_REQUIRES => { }
# VERSION_FROM => q[Wx.pm]
# XSOPT => q[ -nolinenumbers -noprototypes ]
# MakeMaker 'CONFIGURE' Parameters:
# ABSTRACT_FROM => q[Wx.pm]
# AUTHOR => [q[Mattia Barbon <mbarbon at cpan.org>]]
# BUILD_REQUIRES => { }
# CC => q[/usr/bin/g++-4.2 -UWX_PRECOMP ]
# CCFLAGS => q[]
# CONFIGURE => CODE(...)
# CONFIGURE_REQUIRES => { }
# DEFINE => q[-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__
-D__WXOSX__ -D__WXOSX_COCOA__ ]
# EXE_FILES => [q[script/wxperl_overload]]
# INC => q[-I. -I.
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib/wx/include
/osx_cocoa-unicode-3.0
-I/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/include/wx-3.0
]
# LD => q[/usr/bin/g++-4.2]
# LIBS => q[
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_adv-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_media-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0
-L/opt/local/Library/Frameworks/wxWidgets.framework/Versions/wxWidgets/3.0/lib
-lwx_osx_cocoau_html-3.0 -lwx_osx_cocoau_core-3.0 -lwx_baseu-3.0]
# LICENSE => q[perl]
# META_ADD => { build_requires=>{ Alien::wxWidgets=>q[0.25],
ExtUtils::MakeMaker=>q[6.48], ExtUtils::ParseXS=>q[3.15],
ExtUtils::XSpp=>q[0.1602], File::Spec::Functions=>q[0.82],
Test::Harness=>q[2.26], Test::More=>q[0.45], if=>q[0.03] },
configure_requires=>{ Alien::wxWidgets=>q[0.25] }, dynamic_config=>q[1],
no_index=>{ directory=>[q[samples], q[script]], package=>[q[MY],
q[Parse::Yapp::Driver], q[Wx::DropTarget], q[Wx::Droptarget]] },
requires=>{ Alien::wxWidgets=>q[0.25] }, resources=>{
MailingList=>q[http://lists.perl.org/list/wxperl-users.html],
bugtracker=>q[http://rt.cpan.org/NoAuth/Bugs.html?Dist=Wx],
homepage=>q[http://www.wxperl.it/],
license=>q[http://dev.perl.org/licenses/],
repository=>q[http://svn.code.sf.net/p/wxperl/code/wxPerl] } }
# MIN_PERL_VERSION => q[5.006001]
# NAME => q[Wx]
# OBJECT => q[Wx.o Constant.o Controls.o Event.o Frames.o GDI.o
Window.o ]
# PMLIBDIRS => [q[lib], q[build]]
# PREREQ_PM => { Alien::wxWidgets=>q[0.25],
ExtUtils::MakeMaker=>q[6.46], ExtUtils::ParseXS=>q[3.15],
ExtUtils::XSpp=>q[0.1602], File::Spec::Functions=>q[0.82],
Test::Harness=>q[2.26], Test::More=>q[0.45], if=>q[0.03] }
# TEST_REQUIRES => { }
# VERSION_FROM => q[Wx.pm]
# WX => { wx_core_lib=>undef, wx_core_lib_maybe=>undef, wx_overload=>{
header=>q[cpp/ovl_const.h], source=>q[cpp/ovl_const.cpp] },
wx_top=>q[Wx.pm] }
# XSOPT => q[ -nolinenumbers -noprototypes ]
# clean => { FILES=>q[cpp/ovl_const.cpp cpp/ovl_const.h Opt files.lst
cpp/setup.h cpp/v_cback_def.h XS/ItemContainer.xs
XS/ItemContainerImmutable.xs XS/VarScrollHelperBase.xs
XS/VarVScrollHelper.xs XS/VarHScrollHelper.xs XS/VarHVScrollHelper.xs
overload.lst xspp wxt_*] }
# dynamic_lib => { OTHERLDFLAGS=>q[ -framework ApplicationServices ]
}
# --- MakeMaker post_initialize section:
}}}
but the relevant PERL file that is supposed to have been used generating
this Makefile looks like it has the right compiler in it:
{{{
/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/Config.pm
}}}
{{{
# tie returns the object, so the value returned to require will be true.
tie %Config, 'Config', {
archlibexp => '/opt/local/lib/perl5/5.28/darwin-thread-multi-2level',
archname => 'darwin-thread-multi-2level',
cc => '/opt/local/bin/clang-mp-9.0',
d_readlink => 'define',
d_symlink => 'define',
dlext => 'bundle',
dlsrc => 'dl_dlopen.xs',
dont_use_nlink => undef,
exe_ext => '',
inc_version_list => ' ',
intsize => '4',
ldlibpthname => 'DYLD_LIBRARY_PATH',
libpth => '/opt/local/lib
/opt/local/libexec/llvm-9.0/lib/clang/9.0.1/lib /usr/lib',
osname => 'darwin',
osvers => '10.8.0',
path_sep => ':',
privlibexp => '/opt/local/lib/perl5/5.28',
scriptdir => '/opt/local/bin',
sitearchexp => '/opt/local/lib/perl5/site_perl/5.28/darwin-thread-
multi-2level',
sitelibexp => '/opt/local/lib/perl5/site_perl/5.28',
so => 'dylib',
useithreads => 'define',
usevendorprefix => 'define',
version => '5.28.3',
};
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59893#comment:4>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list