Opened 17 years ago

Closed 16 years ago

Last modified 16 years ago

#14823 closed defect (worksforme)

Trying to install Cheetah, but get "error: C compiler cannot create executables"

Reported by: simon@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 1.6.0
Keywords: Cc: simon@…
Port: cheetah

Description

I'm trying to install the Cheetah port, but get "error: C compiler cannot create executables". See below for verbose output.

S


~$ sudo port -v install cheetah
--->  Configuring cheetah
checking for a BSD-compatible install... /usr/bin/install
checking whether build environment is sane... yes
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8/missing: Unknown `--run' option
Try `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man " returned error 77
Command output: checking for a BSD-compatible install... /usr/bin/install
checking whether build environment is sane... yes
/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8/missing: Unknown `--run' option
Try `/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8/missing --help' for more information
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... /usr/bin/gcc-4.0
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.

Warning: the following items did not execute (for cheetah): org.macports.activate org.macports.configure org.macports.build org.macports.destroot org.macports.install
Error: Status 1 encountered during processing.

Change History (7)

comment:1 Changed 17 years ago by simon@…

Cc: simon@… added
Milestone: Port Bugs

Sometimes I get the same error, but I don't know any fix. Have you tried installing it again (rerunning sudo port -v install cheetah)? This works for me most of the time.

Sorry for not having a better solution,

Simon

comment:2 Changed 17 years ago by simon@…

Unfortunately this doesn't work for me.

S

comment:3 Changed 17 years ago by afb@…

See `config.log' for more details.

It'll be under port work cheetah

comment:4 Changed 17 years ago by simon@…

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

It was created by configure, which was
generated by GNU Autoconf 2.59.  Invocation command line was

  $ ./configure --prefix=/opt/local --mandir=/opt/local/share/man

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

hostname = Simon-Wheatleys-Computer.local
uname -m = i386
uname -r = 9.2.2
uname -s = Darwin
uname -v = Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386

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

/bin/arch              = unknown
/usr/bin/arch -k       = unknown
/usr/convex/getsysinfo = unknown
hostinfo               = Mach kernel version:
	 Darwin Kernel Version 9.2.2: Tue Mar  4 21:17:34 PST 2008; root:xnu-1228.4.31~1/RELEASE_I386
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: 4.00 gigabytes
Default processor set: 112 tasks, 567 threads, 2 processors
Load average: 3.61, Mach factor: 0.49
/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
PATH: /usr/X11R6/bin


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

configure:1343: checking for a BSD-compatible install
configure:1398: result: /usr/bin/install
configure:1409: checking whether build environment is sane
configure:1452: result: yes
configure:1476: WARNING: `missing' script is too old or missing
configure:1509: checking for gawk
configure:1525: found /opt/local/bin/gawk
configure:1535: result: gawk
configure:1545: checking whether make sets $(MAKE)
configure:1565: result: yes
configure:1775: checking for gcc
configure:1801: result: /usr/bin/gcc-4.0
configure:2045: checking for C compiler version
configure:2048: /usr/bin/gcc-4.0 --version </dev/null >&5
i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5367)
Copyright (C) 2005 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

configure:2051: $? = 0
configure:2053: /usr/bin/gcc-4.0 -v </dev/null >&5
Using built-in specs.
Target: i686-apple-darwin8
Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --with-arch=nocona --with-tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686-apple-darwin8
Thread model: posix
gcc version 4.0.1 (Apple Computer, Inc. build 5367)
configure:2056: $? = 0
configure:2058: /usr/bin/gcc-4.0 -V </dev/null >&5
gcc-4.0: argument to `-V' is missing
configure:2061: $? = 1
configure:2084: checking for C compiler default output file name
configure:2087: /usr/bin/gcc-4.0 -O2 -I/opt/local/include -L/opt/local/lib conftest.c  >&5
/usr/bin/ld: /usr/lib/gcc/i686-apple-darwin8/4.0.1/../../../libSystem.dylib unknown flags (type) of section 6 (__TEXT,__literal16) in load command 0
collect2: ld returned 1 exit status
configure:2090: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE "cheetah"
| #define VERSION "1.8"
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2129: error: C compiler cannot create executables
See `config.log' for more details.

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

ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc-4.0
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-O2
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=-I/opt/local/include
ac_cv_env_CPP_set=set
ac_cv_env_CPP_value=/usr/bin/cpp-4.0
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-L/opt/local/lib
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_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=/usr/bin/gcc-4.0
ac_cv_prog_make_make_set=yes

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

ACLOCAL='aclocal-1.8'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='tar'
AUTOCONF='autoconf'
AUTOHEADER='autoheader'
AUTOMAKE='automake-1.8'
AWK='gawk'
CC='/usr/bin/gcc-4.0'
CCDEPMODE=''
CFLAGS='-O2'
CPP='/usr/bin/cpp-4.0'
CPPFLAGS='-I/opt/local/include'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C='ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='${SHELL} $(install_sh) -c -s'
LDFLAGS='-L/opt/local/lib'
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAKEINFO='makeinfo'
OBJEXT=''
PACKAGE='cheetah'
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='1.8'
ac_ct_CC='/usr/bin/gcc-4.0'
ac_ct_STRIP=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__leading_dot='.'
am__quote=''
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${prefix}/share'
exec_prefix='NONE'
host_alias=''
includedir='${prefix}/include'
infodir='${prefix}/info'
install_sh='/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_www_cheetah/work/cheetah-1.8/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localstatedir='${prefix}/var'
mandir='/opt/local/share/man'
mkdir_p='$(mkinstalldirs)'
oldincludedir='/usr/include'
prefix='/opt/local'
program_transform_name='s,x,x,'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''

comment:5 Changed 17 years ago by ryandesign (Ryan Carsten Schmidt)

I Googled the error message ("unknown flags (type) of section 6") and found this page which suggests that you may to be running a version of Xcode designed for Mac OS X 10.4 (c.f. "/usr/lib/gcc/i686-apple-darwin8") but you're running Mac OS X 10.5 (c.f. "Darwin Kernel Version 9.2.2"). Install Xcode 3 and you should be fine.

comment:6 Changed 16 years ago by blb@…

Port: cheetah added
Resolution: worksforme
Status: newclosed

Closing, lack of response.

comment:7 Changed 16 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.