[MacPorts] #59893: p5-wx: Compilation failed in require at Makefile.PL line 21.
MacPorts
noreply at macports.org
Fri Jun 19 15:02:37 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):
If I manually go into the Wx build directory like this:
{{{
cd
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.28-wx/work/Wx-0.9932
}}}
and then run the configure script as it appears to be currently run, it
will generate the noted error:
{{{
$ CC=/opt/local/bin/clang-mp-9.0 CXX=/opt/local/bin/clang++-mp-9.0
/opt/local/bin/perl5.28 Makefile.PL installdirs=vendor
Searching configuration for:
wxWidgets (any version) for (any toolkit); compiler compatibility: nc (any
version);
Available configurations:
wxWidgets 3.000004 for mac; compiler compatibility: gcc 3.4; options: no
debug, unicode, no mslu
Compilation failed in require at Makefile.PL line 21.
BEGIN failed--compilation aborted at Makefile.PL line 21.
}}}
However, if I run the configure script like this, the configuration will
complete without any trouble:
{{{
/opt/local/bin/perl5.28 Makefile.PL installdirs=vendor
}}}
{{{
'WX' is not a known MakeMaker parameter name.
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Writing MYMETA.yml and MYMETA.json
Generating a Unix-style Makefile
Writing Makefile for Wx
Writing MYMETA.yml and MYMETA.json
======================================================================
For installation instructions and further help please see
docs/INSTALL.pod
For command line switches help use:
perl Makefile.PL --help
======================================================================
}}}
but later on the build will fail, because on {{{10.6.8}}} you run into
flags being passed to the default compiler that is used, gcc-4.2:
{{{
ake[1]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.28-wx/work/Wx-0.9932/ext'
make[2]: Entering directory
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.28-wx/work/Wx-0.9932/ext/grid'
cp lib/Wx/Grid.pm ../../blib/lib/Wx/Grid.pm
Running Mkbootstrap for Grid ()
chmod 644 "Grid.bs"
"/opt/local/bin/perl5.28" "/opt/local/lib/perl5/5.28/ExtUtils/xsubpp"
-noprototypes -nolinenumbers -typemap
'/opt/local/lib/perl5/5.28/ExtUtils/typemap' -typemap
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.28-wx/work/Wx-0.9932/ext/grid/../../typemap'
-typemap
'/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-wx/p5.28-wx/work/Wx-0.9932/ext/grid/typemap'
Grid.xs > Grid.xsc
mv GDI.xsc GDI.c
"/opt/local/bin/perl5.28" -MExtUtils::Command::MM -e 'cp_nonempty' --
Wx.bs blib/arch/auto/Wx/Wx.bs 644
/usr/bin/g++-4.2 -UWX_PRECOMP -c -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
-fno-common -DPERL_DARWIN -mmacosx-version-min=10.6 -pipe -Os -fno-strict-
aliasing -fstack-protector-strong -I/opt/local/include
-DPERL_USE_SAFE_PUTENV -O3 -DVERSION=\"0.9932\" -DXS_VERSION=\"0.9932\"
"-I/opt/local/lib/perl5/5.28/darwin-thread-multi-2level/CORE"
-D_FILE_OFFSET_BITS=64 -DWXUSINGDLL -D__WXMAC__ -D__WXOSX__
-D__WXOSX_COCOA__ Constant.c
cc1plus: error: unrecognized command line option "-fstack-protector-
strong"
make: *** [Constant.o] Error 1
}}}
--
Ticket URL: <https://trac.macports.org/ticket/59893#comment:3>
MacPorts <https://www.macports.org/>
Ports system for macOS
More information about the macports-tickets
mailing list