Opened 11 years ago

Closed 11 years ago

#39439 closed defect (invalid)

"port upgrade outdated" is failing because /usr/bin/lipo is a PowerPC executable

Reported by: streamline455@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.1.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by larryv (Lawrence Velázquez))

Port upgrade outdated is failing, and I cannot install anything using macports.
*I installed Command Line Tools (from XCode → Preferences → Downloads → Components), but, it did not fix the problem.

$ sudo port upgrade outdated
--->  Configuring ncurses
Error: org.macports.configure for port ncurses returned: configure failure: command execution failed
Please see the log file for port ncurses for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_ncurses/ncurses/main.log
Error: Unable to upgrade port: 1
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets

The log file is attached.

Attachments (2)

main.log (4.4 KB) - added by streamline455@… 11 years ago.
config.log (4.6 KB) - added by streamline455@… 11 years ago.

Download all attachments as: .zip

Change History (9)

Changed 11 years ago by streamline455@…

Attachment: main.log added

comment:1 Changed 11 years ago by larryv (Lawrence Velázquez)

Description: modified (diff)
Priority: HighNormal

Please do not set the Priority field.

Can you attach the config.log from the failed ncurses build? Should be at this location:

% echo $(port work ncurses)/ncurses-5.9/config.log

Changed 11 years ago by streamline455@…

Attachment: config.log added

comment:2 Changed 11 years ago by streamline455@…

I have attached the log file. Thanks.

I also tried these,

$sudo port clean expat
$sudo port install expat

and got the following error.

$ sudo port install expat
--->  Deactivating expat @2.1.0_0+universal
--->  Cleaning expat
--->  Activating expat @2.1.0_0
--->  Cleaning expat
--->  Scanning binaries for linking errors: 100.0%
--->  Found 60 broken file(s), matching files to ports
--->  Found 12 broken port(s), determining rebuild order
--->  Rebuilding in order
     gettext @0.18.2 +universal
     p5.12-xml-parser @2.400.0 +universal
     python27 @2.7.3 +universal
     dbus @1.6.8 +startupitem+universal
     dbus-glib @0.100 +universal
     fontconfig @2.10.2 +universal
     Xft2 @2.3.1 +universal
     cairo @1.12.8 +universal+x11
     pango @1.30.1 +universal+x11
     gtk2 @2.24.14 +universal+x11
     policykit @0.103 +universal
     gconf @2.28.1 +universal
--->  Computing dependencies for gettext
--->  Dependencies to be installed: expat
--->  Deactivating expat @2.1.0_0
--->  Cleaning expat
--->  Activating expat @2.1.0_0+universal
--->  Cleaning expat
--->  Fetching archive for gettext
--->  Attempting to fetch gettext-0.18.2.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.2.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://lil.fr.packages.macports.org/gettext
--->  Attempting to fetch gettext-0.18.2.1_0+universal.darwin_11.i386-x86_64.tbz2 from http://mse.uk.packages.macports.org/sites/packages.macports.org/gettext
--->  Fetching distfiles for gettext
--->  Attempting to fetch gettext-0.18.2.1.tar.gz from ftp://ftp.gnu.org/gnu/gettext
--->  Attempting to fetch gettext-0.18.2.1.tar.gz from http://ftp.gnu.org/gnu/gettext
--->  Verifying checksum(s) for gettext
--->  Extracting gettext
--->  Applying patches to gettext
--->  Configuring gettext
--->  Building gettext
--->  Staging gettext into destroot
Error: org.macports.destroot for port gettext returned: /opt/local/lib/libasprintf.0.dylib differs in /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/destroot-i386 and /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_devel_gettext/gettext/work/destroot-x86_64 and cannot be merged
Error: Unable to upgrade port: 1
Error rebuilding gettext
    while executing
"error "Error rebuilding $portname""
    (procedure "revupgrade_scanandrebuild" line 382)
    invoked from within
"revupgrade_scanandrebuild broken_port_counts $opts"
    (procedure "macports::revupgrade" line 5)
    invoked from within
"macports::revupgrade $opts"
    (procedure "action_revupgrade" line 2)
    invoked from within
"action_revupgrade $action $portlist $opts"
    (procedure "action_target" line 94)
    invoked from within
"$action_proc $action $portlist [array get global_options]"
    (procedure "process_cmd" line 95)
    invoked from within
"process_cmd $remaining_args"
    invoked from within
"if { [llength $remaining_args] > 0 } {

    # If there are remaining arguments, process those as a command
    set exit_status [process_cmd $remaining..."
    (file "/opt/local/bin/port" line 4785)

comment:3 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

The config.log shows the problem:

Launch of "lipo" failed: the PowerPC architecture is no longer supported.

Somehow, you've managed to install an old PowerPC version of /usr/bin/lipo. Reinstalling the command line tools should fix that and replace it with the current Intel version. I don't know if one can reinstall the command line tools from within Xcode's Preferences window, so you might try downloading the standalone installer for the April 2013 Command Line Tools for Lion from http://connect.apple.com .

comment:4 in reply to:  2 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Replying to streamline455@…:

I also tried these,

$sudo port clean expat
$sudo port install expat

and got the following error.

$ sudo port install expat
--->  Deactivating expat @2.1.0_0+universal
--->  Cleaning expat
--->  Activating expat @2.1.0_0
--->  Cleaning expat
[snip]

expat was already installed with the universal variant, and then you asked MacPorts to install it without the universal variant. This will likely break other ports you've installed with the universal variant that depend on expat. You should reactivate the universal version of expat that you had active before, by running:

sudo port activate expat @2.1.0_0+universal
Last edited 11 years ago by ryandesign (Ryan Carsten Schmidt) (previous) (diff)

comment:5 Changed 11 years ago by streamline455@…

Thanks! I reactivated the universal version of expat. Then, I realized that there are two lipo files (/opt/local/bin/lipo and /usr/bin/lipo/ ->(old version)). I set the /opt/local/bin/lipo as the default (also replaced the old one with it), and the problem was solved.

comment:6 in reply to:  3 Changed 11 years ago by larryv (Lawrence Velázquez)

Replying to ryandesign@…:

Somehow, you've managed to install an old PowerPC version of /usr/bin/lipo. Reinstalling the command line tools should fix that and replace it with the current Intel version.

Isn’t lipo(1) part of the base system? It is on 10.8.4, at least.

% pkgutil --file-info /usr/bin/lipo
volume: /
path: /usr/bin/lipo

pkgid: com.apple.pkg.BSD
pkg-version: 10.8.0.1.1.1306847324
install-time: 1350231482
uid: 0
gid: 0
mode: 555
%

comment:7 Changed 11 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Resolution: invalid
Status: newclosed
Summary: "port upgrade outdated" is failing"port upgrade outdated" is failing because /usr/bin/lipo is a PowerPC executable

Ok, then I guess lipo is part of OS X, in which case the correct solution is to reinstall OS X. You shouldn't replace /usr/bin/lipo with /opt/local/bin/lipo (nor should you replace any other part of OS X with parts from MacPorts). If you can't explain why /usr/bin/lipo was an old PowerPC version, it's possible other essential utilities on your system are similarly broken. Reinstalling the OS should fix any such problems with OS-provided components.

Note: See TracTickets for help on using tickets.