Mountain Lion/Xcode/Macports upgrade failure

Jason macports at lakedaemon.net
Tue Aug 7 11:55:20 PDT 2012


All,

Yes, I know this is a FAQ.  I've read them, I've tried them.  No luck.

I have a MBP that was running Lion, Xcode, and up-to-date macports.  I
then made the mistake of upgrading to Mountain Lion.  My openvpn still
worked, but gkrellm/X11 would exit with error code 1.  So, thinking
gentoo-like, I'll do 'port upgrade outdated'.

I'll be honest, I don't remember what the error was, I do know the good
idea of the moment was to install the latest Xcode.  This went fine.
Then I got the 'unable to find make' problem.  A bunch of sites advised
going into Xcode -> Preferences -> Downloads and pulling in Command Line
Utils.  But it wouldn't show for me.  I've rebooted, reinstalled,
xcode-switch'd, to no avail.

So my logic goes, it must already be installed.  After fiddling with the
PATH, (and finding make and friends in
/Applications/Xcode.app/.../usr/bin), I added
/Applications/Xcode.app/.../usr/bin and
/Applications/Xcode.bin/.../Tools to binpath in
/opt/local/etc/macports/macports.conf.

And this is where the trouble started.  I decided to run 'sudo port
upgrade outdated' A quick warning about gperf not being found and bam,
things were broken.  I interrupted the update, but it was too late.
After trying a few other things which didn't work, I decided to blow out
macports (and everything it installed) and start over.

I still have the problem.  I'm starting with a simple 'sudo port install
gkrellm' and I get:

### begin port output ########################################
Warning: The Command Line Tools for Xcode don't appear to be installed;
most ports will likely fail to build.
Warning: See http://guide.macports.org/chunked/installing.xcode.html for
more information.
--->  Computing dependencies for gkrellm
--->  Dependencies to be installed: gtk2 atk gettext expat libiconv
gperf ncurses glib2 libffi perl5 perl5.12 gdbm xz zlib
gobject-introspection cairo fontconfig freetype bzip2 pkgconfig
libpixman libpng xorg-xcb-util xorg-libxcb python27 db46 libedit openssl
python_select sqlite3 xorg-libXau xorg-xproto xorg-libXdmcp
xorg-libpthread-stubs xorg-xcb-proto libxml2 xrender xorg-libX11
xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-xcmiscproto
xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto
gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2
shared-mime-info intltool gnome-common p5.12-getopt-long p5.12-pathtools
p5.12-scalar-list-utils p5.12-xml-parser xorg-libXcomposite
xorg-compositeproto xorg-libXext autoconf help2man p5.12-locale-gettext
m4 automake libtool xorg-util-macros xorg-libXfixes xorg-fixesproto
xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi
xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
xorg-libsm xorg-libice
--->  Configuring expat
Error: org.macports.configure for port expat returned: configure
failure: command execution failed
Error: Failed to install expat
Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
Error: The following dependencies were not installed: gtk2 atk gettext
expat libiconv gperf ncurses glib2 libffi perl5 perl5.12 gdbm xz zlib
gobject-introspection cairo fontconfig freetype bzip2 pkgconfig
libpixman libpng xorg-xcb-util xorg-libxcb python27 db46 libedit openssl
python_select sqlite3 xorg-libXau xorg-xproto xorg-libXdmcp
xorg-libpthread-stubs xorg-xcb-proto libxml2 xrender xorg-libX11
xorg-bigreqsproto xorg-inputproto xorg-kbproto xorg-xcmiscproto
xorg-xextproto xorg-xf86bigfontproto xorg-xtrans xorg-renderproto
gdk-pixbuf2 jasper jpeg tiff hicolor-icon-theme pango Xft2
shared-mime-info intltool gnome-common p5.12-getopt-long p5.12-pathtools
p5.12-scalar-list-utils p5.12-xml-parser xorg-libXcomposite
xorg-compositeproto xorg-libXext autoconf help2man p5.12-locale-gettext
m4 automake libtool xorg-util-macros xorg-libXfixes xorg-fixesproto
xorg-libXcursor xorg-libXdamage xorg-damageproto xorg-libXi
xorg-libXinerama xorg-xineramaproto xorg-libXrandr xorg-randrproto
xorg-libsm xorg-libice
To report a bug, follow the instructions in the guide:
    http://guide.macports.org/#project.tickets
Error: Processing of port gkrellm failed
### end port output ##########################################

And then the error log for expat (first thing attempting to build):

### begin error log ##########################################
:info:configure checking build system type... x86_64-apple-darwin12.0.0
:info:configure checking host system type... x86_64-apple-darwin12.0.0
:info:configure checking how to print strings... printf
:info:configure checking for gcc...
/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang
:info:configure checking whether the C compiler works... yes
:info:configure checking for C compiler default output file name...
a.out
:info:configure checking for suffix of executables... 
:info:configure checking whether we are cross compiling... configure:
error: in
`/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0':
:info:configure configure: error: cannot run C compiled programs.
:info:configure If you meant to cross compile, use `--host'.
:info:configure See `config.log' for more details
:info:configure Command failed:  cd
"/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/work/expat-2.1.0"
&& ./configure --prefix=/opt/local 
:info:configure Exit code: 1
:error:configure org.macports.configure for port expat returned:
configure failure: command execution failed
:debug:configure Error code: NONE
:debug:configure Backtrace: configure failure: command execution failed
    while executing
"$procedure $targetname"
:info:configure Warning: targets not executed for expat:
org.macports.activate org.macports.configure org.macports.build
org.macports.destroot org.macports.install
:error:configure Failed to install expat
:debug:configure couldn't open
"/System/Library/Frameworks/Tcl.framework/Versions/8.5/Resources/tclIndex":
no such file or directory
    while executing
"open [file join $dir tclIndex]"
:notice:configure Please see the log file for port expat for details:
    /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_tarballs_ports_textproc_expat/expat/main.log
### end error log ############################################

I'm at a loss.  I've been using Linux for years, but am new to OSX.  Any
help would be appreciated.

thx,

Jason.


More information about the macports-users mailing list