[MacPorts] #50894: Perl packages needing compilation do not install

MacPorts noreply at macports.org
Tue Mar 15 04:36:02 PDT 2016


#50894: Perl packages needing compilation do not install
--------------------------------+--------------------------------
 Reporter:  matthew-macports@…  |      Owner:  macports-tickets@…
     Type:  defect              |     Status:  new
 Priority:  Normal              |  Milestone:
Component:  ports               |    Version:  2.3.4
 Keywords:                      |       Port:  perl5.22
--------------------------------+--------------------------------
 I have perl5.22 and p5.22-app-cpanminus installed. Trying to install a
 CPAN module that requires some compiling, e.g. String::CRC32, fails with
 `clang: error: unknown argument: '-fstack-protector-strong'` (full output
 below). This is because /opt/local/lib/perl5/5.22/darwin-thread-multi-
 2level/Config.pm sets `cc` to `/usr/bin/clang` and
 /opt/local/lib/perl5/5.22/darwin-thread-multi-2level/Config_heavy.pl sets
 `lddlflags` to include `-fstack-protector-strong` when clang does not
 support that argument (and since XCode 5.1 unknown arguments are errors).

 I'm not sure of the solution, sorry, given the arguments are set when perl
 is compiled and packaged, but it is not possible to use the packages as
 they currently are on my system (OS 10.10, XCode 6.1).

 {{{
 $ cpanm-5.22 -L local String::CRC32 --verbose
 cpanm (App::cpanminus) 1.7040 on perl 5.022001 built for darwin-thread-
 multi-2level
 Work directory is /Users/matthew/.cpanm/work/1458041438.63955
 You have make /usr/bin/make
 You have /opt/local/bin/wget
 You have /usr/bin/tar: bsdtar 2.8.3 - libarchive 2.8.3
 You have /usr/bin/unzip
 Searching String::CRC32 () on cpanmetadb ...
 --2016-03-15 11:30:38--
 http://cpanmetadb.plackperl.org/v1.0/package/String::CRC32
 Resolving cpanmetadb.plackperl.org (cpanmetadb.plackperl.org)...
 185.31.18.249, 185.31.19.249
 Connecting to cpanmetadb.plackperl.org
 (cpanmetadb.plackperl.org)|185.31.18.249|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 63 [text/yaml]
 Saving to: ‘STDOUT’

 -
 100%[======================================================================>]
 63  --.-KB/s    in 0s

 2016-03-15 11:30:38 (2.40 MB/s) - written to stdout [63/63]

 --> Working on String::CRC32
 Fetching http://www.cpan.org/authors/id/S/SO/SOENKE/String-
 CRC32-1.5.tar.gz ... --2016-03-15 11:30:38--
 http://www.cpan.org/authors/id/S/SO/SOENKE/String-CRC32-1.5.tar.gz
 Resolving www.cpan.org (www.cpan.org)... 94.242.223.198, 2607:f238:3::91:1
 Connecting to www.cpan.org (www.cpan.org)|94.242.223.198|:80... connected.
 HTTP request sent, awaiting response... 200 OK
 Length: 6990 (6.8K) [application/x-gzip]
 Saving to: ‘String-CRC32-1.5.tar.gz’

 String-CRC32-1.5.tar.gz
 100%[======================================================================>]
 6.83K  --.-KB/s    in 0.006s

 2016-03-15 11:30:39 (1.08 MB/s) - ‘String-CRC32-1.5.tar.gz’ saved
 [6990/6990]

 OK
 Unpacking String-CRC32-1.5.tar.gz
 x String-CRC32-1.5/
 x String-CRC32-1.5/CRC32.xs
 x String-CRC32-1.5/MANIFEST
 x String-CRC32-1.5/CRC32.pm
 x String-CRC32-1.5/t/
 x String-CRC32-1.5/t/crc.t
 x String-CRC32-1.5/t/testfile
 x String-CRC32-1.5/crcgen.c
 x String-CRC32-1.5/README
 x String-CRC32-1.5/typemap
 x String-CRC32-1.5/Makefile.PL
 x String-CRC32-1.5/CRC32.pod
 Entering String-CRC32-1.5
 META.yml/json not found. Creating skeleton for it.
 Running Makefile.PL
 Configuring String-CRC32-1.5 ... Checking if your kit is complete...
 Looks good
 Generating a Unix-style Makefile
 Writing Makefile for String::CRC32
 Writing MYMETA.yml and MYMETA.json
 OK
 Checking dependencies from MYMETA.json ...
 Checking if you have ExtUtils::MakeMaker 0 ... Yes (7.04_01)
 Building and testing String-CRC32-1.5 ... cp CRC32.pod
 blib/lib/String/CRC32.pod
 cp CRC32.pm blib/lib/String/CRC32.pm
 Running Mkbootstrap for String::CRC32 ()
 chmod 644 "CRC32.bs"
 "/opt/local/bin/perl5.22" "/opt/local/lib/perl5/5.22/ExtUtils/xsubpp"
 -typemap "/opt/local/lib/perl5/5.22/ExtUtils/typemap" -typemap "typemap"
 CRC32.xs > CRC32.xsc && mv CRC32.xsc CRC32.c
 /usr/bin/clang -c   -pipe -Os -fno-common -DPERL_DARWIN
 -I/opt/local/include -fno-strict-aliasing -fstack-protector-strong
 -I/opt/local/include -O3   -DVERSION=\"1.5\" -DXS_VERSION=\"1.5\"
 "-I/opt/local/lib/perl5/5.22/darwin-thread-multi-2level/CORE"   CRC32.c
 clang: error: unknown argument: '-fstack-protector-strong'
 make: *** [CRC32.o] Error 1
 FAIL
 ! Installing String::CRC32 failed. See
 /Users/matthew/.cpanm/work/1458041438.63955/build.log for details. Retry
 with --force to force install it.
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/50894>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list