Opened 13 years ago

Closed 13 years ago

Last modified 13 years ago

#33675 closed defect (invalid)

p5.12-term-readkey compilation failed

Reported by: fly.captain@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.4
Keywords: Cc: ryandesign (Ryan Carsten Schmidt), braden@…
Port: perl5

Description

Hi,

I've wanted to update git from 1.7.9.2_1 to 1.7.9.4_0, but this update requires the installation of p5.12-term-readkey and the compilation failed with this message (seems to be not compatible with Xcode 4.3.1) :

info:build /opt/local/bin/perl5.12 /opt/local/lib/perl5/5.12.3/ExtUtils/xsubpp -noprototypes -typemap /opt/local/lib/perl5/5.12.3/ExtUtils/typemap  ReadKey.xs > ReadKey.xsc && mv ReadKey.xsc ReadKey.c
:info:build cp ReadKey.bs blib/arch/auto/Term/ReadKey/ReadKey.bs
:info:build chmod 644 blib/arch/auto/Term/ReadKey/ReadKey.bs
:info:build /Developer/usr/bin/clang -c   -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3   -DVERSION=\"2.30\" -DXS_VERSION=\"2.30\"  "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE"   ReadKey.c
:info:build /bin/sh: /Developer/usr/bin/clang: No such file or directory
:info:build make: *** [ReadKey.o] Error 127
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30" && /usr/bin/make -j2 -w all " returned error 2

OS : Mac OS X 10.7.3
Xcode version : 4.3.1

Fabien

Change History (8)

comment:1 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed

Rebuild perl5.12.

sudo port -n upgrade --force perl5.12

See wiki:ProblemHotlist#xcode43.

comment:2 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Has duplicate #33682.

comment:3 Changed 13 years ago by free.as.in.speech@…

Resolution: invalid
Status: closedreopened

It's still failing for me after force-upgrading perl.

$ sudo port -n upgrade --force perl5
...
--->  Installing perl5 @5.12.3_1+perl5_12
--->  Activating perl5 @5.12.3_1+perl5_12
--->  Cleaning perl5
$ sudo port clean p5.12-term-readkey
$ sudo port upgrade outdated
--->  Fetching archive for p5.12-term-readkey
--->  Attempting to fetch p5.12-term-readkey-2.300.0_2.darwin_11.x86_64.tbz2 from http://packages.macports.org/p5.12-term-readkey
--->  Fetching p5.12-term-readkey
--->  Verifying checksum(s) for p5.12-term-readkey
--->  Extracting p5.12-term-readkey
--->  Configuring p5.12-term-readkey
--->  Building p5.12-term-readkey
Error: Target org.macports.build returned: shell command failed (see log for details)
Log for p5.12-term-readkey is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/main.log
Error: Problem while installing p5.12-term-readkey

Here's the log:

version:1
:debug:main epoch: in tree: 0 installed: 0
:debug:main perl5.12 5.12.3_3 exists in the ports tree
:debug:main perl5.12 5.12.3_3  is the latest installed
:debug:main perl5.12 5.12.3_3  is active
:debug:main Merging existing variants '' into variants
:debug:main new fully merged portvariants: 
:debug:main Changing to port directory: /opt/local/var/macports/sources/rsync.macports.org/release/ports/lang/perl5.12
:debug:main OS darwin/11.3.0 (Mac OS X 10.7) arch i386
:debug:main org.macports.load registered provides 'load', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.unload registered provides 'unload', a pre-existing procedure. Target override will not be provided
:debug:main org.macports.distfiles registered provides 'distfiles', a pre-existing procedure. Target override will not be provided
:debug:main adding the default universal variant
:debug:main Reading variant descriptions from /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/variant_descriptions.conf
:debug:main No need to upgrade! perl5.12 5.12.3_3 >= perl5.12 5.12.3_3
:debug:main Not following dependencies
:msg:main --->  Computing dependencies for p5.12-term-readkey:info:main .:debug:main Searching for dependency: perl5.12
:debug:main Found Dependency: receipt exists for perl5.12
:msg:main 
:debug:main Executing org.macports.main (p5.12-term-readkey)
:debug:main changing euid/egid - current euid: 0 - current egid: 0
:debug:main egid changed to: 502
:debug:main euid changed to: 502
:debug:main Skipping completed org.macports.archivefetch (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.fetch (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.checksum (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.extract (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.patch (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:main Skipping completed org.macports.configure (p5.12-term-readkey)
:debug:main Privilege de-escalation not attempted as not running as root.
:debug:build build phase started at Tue Mar 20 17:46:57 CET 2012
:notice:build --->  Building p5.12-term-readkey
:debug:build Executing org.macports.build (p5.12-term-readkey)
:debug:build Environment: CPATH='/opt/local/include' CC_PRINT_OPTIONS_FILE='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/.CC_PRINT_OPTIONS' LIBRARY_PATH='/opt/local/lib' CC_PRINT_OPTIONS='YES' MACOSX_DEPLOYMENT_TARGET='10.7' GI_SCANNER_DISABLE_CACHE='1'
:debug:build Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30" && /usr/bin/make -j5 -w all'
:debug:build Executing command line:  cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30" && /usr/bin/make -j5 -w all 
:info:build make: Entering directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30'
:info:build /Developer/usr/bin/clang -c   -pipe -O2 -fno-common -DPERL_DARWIN -I/opt/local/include -no-cpp-precomp -fno-strict-aliasing -fstack-protector -I/opt/local/include -O3   -DVERSION=\"2.30\" -DXS_VERSION=\"2.30\"  "-I/opt/local/lib/perl5/5.12.3/darwin-multi-2level/CORE"   ReadKey.c
:info:build /bin/sh: /Developer/usr/bin/clang: No such file or directory
:info:build make: *** [ReadKey.o] Error 127
:info:build make: Leaving directory `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30'
:info:build shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/work/TermReadKey-2.30" && /usr/bin/make -j5 -w all " returned error 2
:error:build Target org.macports.build returned: shell command failed (see log for details)
:debug:build Backtrace: shell command failed (see log for details)
    while executing
"command_exec build"
    (procedure "portbuild::build_main" line 8)
    invoked from within
"$procedure $targetname"
:info:build Warning: the following items did not execute (for p5.12-term-readkey): org.macports.activate org.macports.build org.macports.destroot org.macports.install
:notice:build Log for p5.12-term-readkey is at: /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_perl_p5-term-readkey/p5.12-term-readkey/main.log

comment:4 Changed 13 years ago by braden@…

Cc: braden@… added

Cc Me!

comment:5 Changed 13 years ago by face@…

Cc: face@… added

Cc Me!

comment:6 Changed 13 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: reopenedclosed

The "Skipping completed" lines in that log show you did not clean before trying again.

sudo port clean p5.12-term-readkey

comment:7 Changed 13 years ago by face@…

Cc: face@… removed

Cc Me!

comment:8 Changed 13 years ago by free.as.in.speech@…

Perhaps cleaning perl5.12 before rebuilding perl5.12 was the key. This worked:

~ sudo port selfupdate
~ sudo port clean -f --all perl5.12
~ sudo port -n upgrade --force perl5.12 
# not sure if the re-clean of perl5.12 is necessary, i did it by accident:
~ sudo port clean -f --all perl5.12
~ sudo port clean -f --all p5.12-term-readkey
~ sudo port install p5.12-term-readkey
Note: See TracTickets for help on using tickets.