New Ticket     Tickets     Wiki     Browse Source     Timeline     Roadmap     Ticket Reports     Search

Ticket #34511 (closed defect: invalid)

Opened 12 months ago

Last modified 12 months ago

port selfupdate fails on OS X Lion with current Xcode version

Reported by: Leonard.Stellbrink@… Owned by: cal@…
Priority: Normal Milestone:
Component: base Version: 2.0.3
Keywords: Cc:
Port:

Description

hi,
I can't do a selfupdate.
I have Mac OS X 10.7.4 and Xcode 4.3.2 installed.
I think the error has something to do with "C Compiler cannot create executables"
Thanks for your help

See Log:

localhost:~ leonardstellbrink$ sudo port -v selfupdate
--->  Updating MacPorts base sources using rsync
receiving file list ... done

sent 36 bytes  received 69 bytes  70.00 bytes/sec
total size is 3539456  speedup is 33709.10
receiving file list ... done

sent 36 bytes  received 76 bytes  44.80 bytes/sec
total size is 512  speedup is 4.57
MacPorts base version 2.0.3 installed,
MacPorts base version 2.1.1 downloaded.
--->  Updating the ports tree
Synchronizing local ports tree from rsync://rsync.macports.org/release/tarballs/ports.tar
receiving file list ... done

sent 36 bytes  received 70 bytes  42.40 bytes/sec
total size is 52408320  speedup is 494418.11
receiving file list ... done

sent 36 bytes  received 77 bytes  75.33 bytes/sec
total size is 512  speedup is 4.53
receiving file list ... done

sent 36 bytes  received 70 bytes  70.67 bytes/sec
total size is 7942127  speedup is 74925.73
receiving file list ... done

sent 36 bytes  received 77 bytes  32.29 bytes/sec
total size is 512  speedup is 4.53
--->  MacPorts base is outdated, installing new version 2.1.1
Installing new MacPorts release in /opt/local as root:admin; permissions 0755; Tcl-Package in /Library/Tcl

checking build system type... ./config.guess: line 1204: echo: write error: Broken pipe
./config.guess: line 1204: echo: write error: Broken pipe
./config.guess: line 1204: echo: write error: Broken pipe
i386-apple-darwin11.4.0
checking host system type... i386-apple-darwin11.4.0
checking target system type... i386-apple-darwin11.4.0
checking MacPorts version... 2.1.1
checking for sw_vers... /usr/bin/sw_vers
checking for defaults... /usr/bin/defaults
checking for xcode-select... /usr/bin/xcode-select
checking Mac OS X version... 10.7.4
checking Xcode location... /Developer
checking for gcc... /usr/bin/cc
checking whether the C compiler works... no
configure: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
configure: error: C compiler cannot create executables
See `config.log' for more details
shell command "cd /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base && CC=/usr/bin/cc ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline && make && make install SELFUPDATING=1" returned error 77
Error: /opt/local/bin/port: port selfupdate failed: Error installing new MacPorts base: shell command failed (see log for details)

Change History

comment:1 Changed 12 months ago by cal@…

Your setup doesn't seem correct Xcode 4.3.2, specifically this line:

checking Xcode location... /Developer

What does xcode-select -print-path print on your system? It should be /Applications/Xcode.app or /Applications/Xcode.app/Contents/Developer. Also, please attach /opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base/config.log.

comment:2 Changed 12 months ago by cal@…

  • Owner changed from macports-tickets@… to cal@…

comment:3 Changed 12 months ago by cal@…

  • Priority changed from High to Normal

comment:4 Changed 12 months ago by Leonard.Stellbrink@…

I changed the Xcode-select to the right path, still the same error.

Here is my config.log:

This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by MacPorts configure 2.1.1, which was
generated by GNU Autoconf 2.69.  Invocation command line was

  $ ./configure --prefix=/opt/local --with-tclpackage=/Library/Tcl --with-install-user=root --with-install-group=admin --with-directory-mode=0755 --enable-readline

## --------- ##
## Platform. ##
## --------- ##

hostname = localhost
uname -m = x86_64
uname -r = 11.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64

/usr/bin/uname -p = i386
/bin/uname -X     = unknown

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo      = Mach kernel version:
	 Darwin Kernel Version 11.4.0: Mon Apr  9 19:32:15 PDT 2012; root:xnu-1699.26.8~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 8.00 gigabytes
Default processor set: 140 tasks, 678 threads, 2 processors
Load average: 4.11, Mach factor: 0.32
/bin/machine           = unknown
/usr/bin/oslevel       = unknown
/bin/universe          = unknown

PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /bin
PATH: /sbin
PATH: /usr/bin
PATH: /usr/sbin


## ----------- ##
## Core tests. ##
## ----------- ##

configure:2680: checking build system type
configure:2694: result: i386-apple-darwin11.4.0
configure:2714: checking host system type
configure:2727: result: i386-apple-darwin11.4.0
configure:2747: checking target system type
configure:2760: result: i386-apple-darwin11.4.0
configure:2788: checking MacPorts version
configure:2791: result: 2.1.1
configure:2824: checking for sw_vers
configure:2842: found /usr/bin/sw_vers
configure:2854: result: /usr/bin/sw_vers
configure:2864: checking for defaults
configure:2882: found /usr/bin/defaults
configure:2894: result: /usr/bin/defaults
configure:2904: checking for xcode-select
configure:2922: found /usr/bin/xcode-select
configure:2934: result: /usr/bin/xcode-select
configure:2944: checking Mac OS X version
configure:2947: result: 10.7.4
configure:2970: checking Xcode location
configure:2981: result: /Applications/Xcode.app/Contents/Developer
configure:2995: checking Xcode version
configure:3002: result: 4.3.2
configure:3074: checking for gcc
configure:3101: result: /usr/bin/cc
configure:3330: checking for C compiler version
configure:3339: /usr/bin/cc --version >&5
./configure: line 3341: /usr/bin/cc: No such file or directory
configure:3350: $? = 127
configure:3339: /usr/bin/cc -v >&5
./configure: line 3341: /usr/bin/cc: No such file or directory
configure:3350: $? = 127
configure:3339: /usr/bin/cc -V >&5
./configure: line 3341: /usr/bin/cc: No such file or directory
configure:3350: $? = 127
configure:3339: /usr/bin/cc -qversion >&5
./configure: line 3341: /usr/bin/cc: No such file or directory
configure:3350: $? = 127
configure:3370: checking whether the C compiler works
configure:3392: /usr/bin/cc    conftest.c  >&5
./configure: line 3394: /usr/bin/cc: No such file or directory
configure:3396: $? = 127
configure:3434: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "MacPorts"
| #define PACKAGE_TARNAME "macports"
| #define PACKAGE_VERSION "2.1.1"
| #define PACKAGE_STRING "MacPorts 2.1.1"
| #define PACKAGE_BUGREPORT "macports-dev@lists.macosforge.org"
| #define PACKAGE_URL ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:3439: error: in `/opt/local/var/macports/sources/rsync.macports.org/release/tarballs/base':
configure:3441: error: C compiler cannot create executables
See `config.log' for more details

## ---------------- ##
## Cache variables. ##
## ---------------- ##

ac_cv_build=i386-apple-darwin11.4.0
ac_cv_env_BSDMAKE_set=
ac_cv_env_BSDMAKE_value=
ac_cv_env_BZIP2_set=
ac_cv_env_BZIP2_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/cc
ac_cv_env_CFLAGS_set=
ac_cv_env_CFLAGS_value=
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CVS_set=
ac_cv_env_CVS_value=
ac_cv_env_GNUMAKE_set=
ac_cv_env_GNUMAKE_value=
ac_cv_env_GNUTAR_set=
ac_cv_env_GNUTAR_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LZMA_set=
ac_cv_env_LZMA_value=
ac_cv_env_MAKE_set=
ac_cv_env_MAKE_value=
ac_cv_env_MTREE_set=
ac_cv_env_MTREE_value=
ac_cv_env_OBJCFLAGS_set=
ac_cv_env_OBJCFLAGS_value=
ac_cv_env_OBJCPP_set=
ac_cv_env_OBJCPP_value=
ac_cv_env_OBJC_set=
ac_cv_env_OBJC_value=
ac_cv_env_OPENSSL_set=
ac_cv_env_OPENSSL_value=
ac_cv_env_OPEN_set=
ac_cv_env_OPEN_value=
ac_cv_env_RSYNC_set=
ac_cv_env_RSYNC_value=
ac_cv_env_SED_set=
ac_cv_env_SED_value=
ac_cv_env_SVN_set=
ac_cv_env_SVN_value=
ac_cv_env_SWIG_set=
ac_cv_env_SWIG_value=
ac_cv_env_TAR_set=
ac_cv_env_TAR_value=
ac_cv_env_XAR_set=
ac_cv_env_XAR_value=
ac_cv_env_XZ_set=
ac_cv_env_XZ_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_host=i386-apple-darwin11.4.0
ac_cv_path_DEFAULTS=/usr/bin/defaults
ac_cv_path_SW_VERS=/usr/bin/sw_vers
ac_cv_path_XCODE_SELECT=/usr/bin/xcode-select
ac_cv_prog_ac_ct_CC=/usr/bin/cc
ac_cv_target=i386-apple-darwin11.4.0

## ----------------- ##
## Output variables. ##
## ----------------- ##

BSDMAKE=''
BZIP2=''
BZR=''
CC='/usr/bin/cc'
CFLAGS=''
CFLAGS_LIBCURL=''
CFLAGS_PEDANTIC=''
CFLAGS_QUICHEEATERS=''
CFLAGS_SQLITE3=''
CFLAGS_WERROR=''
CHOWN=''
CP=''
CPIO=''
CPP=''
CPPFLAGS=''
CURL_CONFIG=''
CVS=''
DEFAULTS='/usr/bin/defaults'
DEFS=''
DEVELOPER_DIR='/Applications/Xcode.app/Contents/Developer'
DIFF=''
DSCL=''
DSEDITGROUP=''
DSTGRP=''
DSTMODE=''
DSTUSR=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_PROGS=''
FILE=''
GIT=''
GNUMAKE=''
GNUPATCH=''
GNUTAR=''
GREP=''
GZIP=''
HAVE_FRAMEWORK_COREFOUNDATION=''
HAVE_FRAMEWORK_IOKIT=''
HAVE_FRAMEWORK_SYSTEMCONFIGURATION=''
HAVE_FUNCTION_CFNOTIFICATIONCENTERGETDARWINNOTIFYCENTER=''
HAVE_LAUNCHD=''
HDIUTIL=''
HG=''
INCLUDES=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
LAUNCHCTL=''
LDFLAGS=''
LDFLAGS_LIBCURL=''
LDFLAGS_SQLITE3=''
LIBOBJS=''
LIBS=''
LIPO=''
LN_S=''
LSBOM=''
LTLIBOBJS=''
LZMA=''
MACPORTS_VERSION='2.1.1'
MAKE=''
MD5_LIBS=''
MDFIND=''
MDLS=''
MKBOM=''
MPAPPLICATIONSDIR=''
MPCONFIGDIR=''
MPCONFIGDIR_EXPANDED=''
MPFRAMEWORKSDIR=''
MTREE=''
OBJC=''
OBJCFLAGS=''
OBJCPP=''
OBJC_FOUNDATION=''
OBJC_FOUNDATION_CPPFLAGS=''
OBJC_FOUNDATION_LDFLAGS=''
OBJC_FOUNDATION_LIBS=''
OBJC_LIBS=''
OBJC_PTHREAD_CFLAGS=''
OBJC_PTHREAD_LIBS=''
OBJC_RUNTIME=''
OBJC_RUNTIME_FLAGS=''
OBJEXT=''
OPEN=''
OPENSSL=''
OUR_INCLUDED_PACKAGES=''
PACKAGE_BUGREPORT='macports-dev@lists.macosforge.org'
PACKAGE_NAME='MacPorts'
PACKAGE_STRING='MacPorts 2.1.1'
PACKAGE_TARNAME='macports'
PACKAGE_URL=''
PACKAGE_VERSION='2.1.1'
PATCH=''
PATHCONF=''
PATH_CLEANED='/bin:/sbin:/usr/bin:/usr/sbin'
PATH_SEPARATOR=':'
PAX=''
PKG_CONFIG=''
PORTSDIR=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
READLINE_LIBS=''
READLINK_IS_NOT_P1003_1A=''
RMDIR=''
RSYNC=''
RUNUSR=''
SED=''
SED_EXT=''
SET_MAKE=''
SHELL='/bin/sh'
SHLIB_CFLAGS=''
SHLIB_LD=''
SHLIB_LDFLAGS=''
SHLIB_SUFFIX=''
SQLITE3_TCL_DIR=''
STLIB_LD=''
SVN=''
SWIG=''
SW_VERS='/usr/bin/sw_vers'
TAR=''
TAR_CMD=''
TAR_Q=''
TCLSH=''
TCL_BIN_DIR=''
TCL_CC=''
TCL_DEFS=''
TCL_INCLUDES=''
TCL_LIB_FILE=''
TCL_LIB_FLAG=''
TCL_LIB_SPEC=''
TCL_PACKAGE_DIR=''
TCL_SRC_DIR=''
TCL_STUB_LIB_FILE=''
TCL_STUB_LIB_FLAG=''
TCL_STUB_LIB_SPEC=''
TCL_VERSION=''
UNIVERSAL_ARCHS=''
UNZIP=''
XAR=''
XCODEBUILD=''
XCODE_SELECT='/usr/bin/xcode-select'
XCRUN=''
XZ=''
ZIP=''
ac_ct_CC='/usr/bin/cc'
ac_ct_OBJC=''
acx_pthread_config=''
bindir='${exec_prefix}/bin'
build='i386-apple-darwin11.4.0'
build_alias=''
build_cpu='i386'
build_os='darwin11.4.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='i386-apple-darwin11.4.0'
host_alias=''
host_cpu='i386'
host_os='darwin11.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
localstatedir_expanded=''
macports_tcl_dir=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/opt/local'
prefix_expanded=''
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
subdirs=''
sysconfdir='${prefix}/etc'
target='i386-apple-darwin11.4.0'
target_alias=''
target_cpu='i386'
target_os='darwin11.4.0'
target_vendor='apple'

## ----------- ##
## confdefs.h. ##
## ----------- ##

/* confdefs.h */
#define PACKAGE_NAME "MacPorts"
#define PACKAGE_TARNAME "macports"
#define PACKAGE_VERSION "2.1.1"
#define PACKAGE_STRING "MacPorts 2.1.1"
#define PACKAGE_BUGREPORT "macports-dev@lists.macosforge.org"
#define PACKAGE_URL ""

configure: exit 77

comment:5 Changed 12 months ago by ryandesign@…

  • Component changed from ports to base

Have you installed the Xcode command line tools? You need to. It's an option within the Xcode program. Consult the MacPorts documentation for more guidance on this.

comment:6 Changed 12 months ago by Leonard.Stellbrink@…

Thanks, I installed the command line tools and everything is working now.

comment:7 Changed 12 months ago by cal@…

  • Status changed from new to closed
  • Resolution set to invalid

This is not a bug, please read the documentation before opening tickets. For support, there's the macports-users mailinglist.

Note: See TracTickets for help on using tickets.