Opened 10 years ago

Closed 10 years ago

Last modified 10 years ago

#46312 closed defect (fixed)

p5.16-redis: fails to build

Reported by: mojca (Mojca Miklavec) Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version:
Keywords: Cc: macportscf@…, dbevans (David B. Evans)
Port: p5.16-redis

Description

Here's the failure when building p5.16-redis:

--->  Configuring p5.16-redis
DEBUG: Using compiler 'Xcode Clang'
DEBUG: Executing org.macports.configure (p5.16-redis)
DEBUG: Environment: 
CC='/usr/bin/clang'
CC_PRINT_OPTIONS='YES'
CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_mports_dports_perl_p5-redis/p5.16-redis/work/.CC_PRINT_OPTIONS'
CFLAGS='-pipe -Os'
CPATH='/opt/local/include'
CPPFLAGS='-I/opt/local/include'
CXX='/usr/bin/clang++'
CXXFLAGS='-pipe -Os -stdlib=libstdc++'
F90FLAGS='-pipe -Os'
FCFLAGS='-pipe -Os'
FFLAGS='-pipe -Os'
INSTALL='/usr/bin/install -c'
LDFLAGS='-L/opt/local/lib -Wl,-headerpad_max_install_names'
LIBRARY_PATH='/opt/local/lib'
MACOSX_DEPLOYMENT_TARGET='10.8'
OBJC='/usr/bin/clang'
OBJCFLAGS='-pipe -Os'
OBJCXX='/usr/bin/clang++'
OBJCXXFLAGS='-pipe -Os -stdlib=libstdc++'
PERL_AUTOINSTALL='--skipdeps'
__CFPREFERENCES_AVOID_DAEMON='1'
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-redis/p5.16-redis/work/Redis-1.976" && /opt/local/bin/perl5.16 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang"'
DEBUG: Executing command line:  cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-redis/p5.16-redis/work/Redis-1.976" && /opt/local/bin/perl5.16 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
*** WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING ***

If you're seeing this warning, your toolchain is really, really old* and you'll
almost certainly have problems installing CPAN modules from this century. But
never fear, dear user, for we have the technology to fix this!

If you're using CPAN.pm to install things, then you can upgrade it using:

    cpan CPAN

If you're using CPANPLUS to install things, then you can upgrade it using:

    cpanp CPANPLUS

If you're using cpanminus, you shouldn't be seeing this message in the first
place, so please file an issue on github.

If you're installing manually, please retrain your fingers to run Build.PL
when present instead.

This public service announcement was brought to you by the Perl Toolchain
Gang, the irc.perl.org #toolchain IRC channel, and the number 42.

----

* Alternatively, you are doing something overly clever, in which case you
should consider setting the 'prefer_installer' config option in CPAN.pm, or
'prefer_makefile' in CPANPLUS, to 'mb" and '0' respectively.

You can also silence this warning for future installations by setting the
PERL_MM_FALLBACK_SILENCE_WARNING environment variable.

ExtUtils::MakeMaker version 6.6303 required--this is only version 6.6302 at Makefile.PL line 66.
BEGIN failed--compilation aborted at Makefile.PL line 66.
Command failed:  cd "/opt/local/var/macports/build/_opt_mports_dports_perl_p5-redis/p5.16-redis/work/Redis-1.976" && /opt/local/bin/perl5.16 Makefile.PL INSTALLDIRS=vendor CC="/usr/bin/clang" LD="/usr/bin/clang" 
Exit code: 25
Error: org.macports.configure for port p5.16-redis returned: configure failure: command execution failed
DEBUG: Error code: NONE
DEBUG: Backtrace: configure failure: command execution failed
    while executing
"portconfigure::configure_main org.macports.configure"
    ("eval" body line 1)
    invoked from within
"eval $procedure $targetname"
Warning: targets not executed for p5.16-redis: org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Failed to install p5.16-redis
DEBUG: could not read "/opt/local/share/perl5.16/man/man3/Test::TCP::CheckPort.3pm": no such file or directory
    while executing
"::file type $file"
Please see the log file for port p5.16-redis for details:
    /opt/local/var/macports/logs/_opt_mports_dports_perl_p5-redis/p5.16-redis/main.log
Error: The following dependencies were not installed: p5.16-redis
Error: Processing of port p5-redis failed
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
failure

I didn't try to analyse the error yet, but it's not necessarily the redis' fault.

Change History (5)

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

Given the change in r129966: is there any way to figure this out automatically with cpan2port? Why does one need port:p${perl5.major}-module-build-tiny? Isn't that automatic? If not: should it be?

comment:2 Changed 10 years ago by dbevans (David B. Evans)

This error is symptomatic of the need to use perl5.use_module_build with p5-module-build-tiny instead of p5-module-build.

Clues are:

  • presence of Build.PL
  • Build.PL uses Module::Build::Tiny (line 2)

Fixed in r129966.

comment:3 Changed 10 years ago by dbevans (David B. Evans)

Resolution: fixed
Status: newclosed

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

Thank you. Are you willing to open a ticket to make an improvement in cpan2port to respect that?

comment:5 Changed 10 years ago by dbevans (David B. Evans)

I have to confess that I don't use cpan2port because it's not fool proof and so if I have to look in META.json/META.yml to check for dependency errors, I might just as well do that in the first place.

I'll try to add a ticket when I have time (probably after Christmas). I want to look in cpan2port to see how it works first.

Note: See TracTickets for help on using tickets.