Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

error: C compiler cannot create executables

Install ctags-5.7 ~


./configure Error


Error Message:checking for C compiler default output file name... configure: error: C compiler cannot create executables



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 configure, which was

generated by GNU Autoconf 2.59. Invocation command line was



$ ./configure



## --------- ##

## Platform. ##

## --------- ##



hostname = kanoumatoMac-mini.local

uname -m = x86_64

uname -r = 12.0.0

uname -s = Darwin

uname -v = Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~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

hostinfo = Mach kernel version:

Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64

Kernel configured for up to 4 processors.

2 processors are physically available.

4 processors are logically available.

Processor type: i486 (Intel 80486)

Processors active: 0 1 2 3

Primary memory available: 6.00 gigabytes

Default processor set: 135 tasks, 684 threads, 4 processors

Load average: 1.09, Mach factor: 2.90

/bin/machine = unknown

/usr/bin/oslevel = unknown

/bin/universe = unknown



PATH: /Developer/usr/bin/

PATH: /usr/bin

PATH: /bin

PATH: /usr/sbin

PATH: /sbin

PATH: /usr/local/bin





## ----------- ##

## Core tests. ##

## ----------- ##



configure:1401: checking whether to install link to etags

configure:1408: result: no

configure:1411: checking whether to install readtags object file

configure:1418: result: no

configure:1491: checking for gcc

configure:1507: found /Developer/usr/bin//gcc

configure:1517: result: gcc

configure:1761: checking for C compiler version

configure:1764: gcc --version </dev/null >&5

i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

Copyright (C) 2007 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:1767: $? = 0

configure:1769: gcc -v </dev/null >&5

Using built-in specs.

Target: i686-apple-darwin11

Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/src/configure --disable-checking --enable-werror --prefix=/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.1~22/dst-llvmCore/Devel oper/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1

Thread model: posix

gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.1.00)

configure:1772: $? = 0

configure:1774: gcc -V </dev/null >&5

llvm-gcc-4.2: argument to `-V' is missing

configure:1777: $? = 1

configure:1800: checking for C compiler default output file name

configure:1803: gcc conftest.c >&5

ld: library not found for -lcrt1.10.6.o

collect2: ld returned 1 exit status

configure:1806: $? = 1

configure: failed program was:

| /* confdefs.h. */

|

| #define PACKAGE_NAME ""

| #define PACKAGE_TARNAME ""

| #define PACKAGE_VERSION ""

| #define PACKAGE_STRING ""

| #define PACKAGE_BUGREPORT ""

| #define DEFAULT_FILE_FORMAT 2

| /* end confdefs.h. */

|

| int

| main ()

| {

|

| ;

| return 0;

| }

configure:1845: error: C compiler cannot create executables

See `config.log' for more details.



## ---------------- ##

## Cache variables. ##

## ---------------- ##



ac_cv_env_CC_set=

ac_cv_env_CC_value=

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_LDFLAGS_set=

ac_cv_env_LDFLAGS_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_prog_ac_ct_CC=gcc



## ----------------- ##

## Output variables. ##

## ----------------- ##



CC='gcc'

CFLAGS=''

CPP=''

CPPFLAGS=''

DEFS=''

ECHO_C='ECHO_N=''

ECHO_T=''

EGREP=''

EXEEXT=''

LDFLAGS=''

LIBOBJS=''

LIBS=''

LN_S=''

LTLIBOBJS=''

OBJEXT=''

PACKAGE_BUGREPORT=''

PACKAGE_NAME=''

PACKAGE_STRING=''

PACKAGE_TARNAME=''

PACKAGE_VERSION=''

PATH_SEPARATOR=':'

SHELL='/bin/sh'

STRIP=''

ac_ct_CC='gcc'

bindir='${exec_prefix}/bin'

build_alias=''

datadir='${prefix}/share'

exec_prefix='NONE'

host_alias=''

includedir='${prefix}/include'

infodir='${prefix}/info'

install_targets='install-ctags'

libdir='${exec_prefix}/lib'

libexecdir='${exec_prefix}/libexec'

localstatedir='${prefix}/var'

mandir='${prefix}/man'

oldincludedir='/usr/include'

prefix='NONE'

program_transform_name='s,x,x,'

sbindir='${exec_prefix}/sbin'

sharedstatedir='${prefix}/com'

sort_found=''

sysconfdir='${prefix}/etc'

target_alias=''



## ----------- ##

## confdefs.h. ##

## ----------- ##



#define DEFAULT_FILE_FORMAT 2

#define PACKAGE_BUGREPORT ""

#define PACKAGE_NAME ""

#define PACKAGE_STRING ""

#define PACKAGE_TARNAME ""

#define PACKAGE_VERSION ""



configure: exit 77

Mac mini, OS X Mountain Lion

Posted on Jul 29, 2012 6:39 PM

Reply
Question marked as Best reply

Posted on Jul 30, 2012 8:45 PM

The command-line C compiler is not installed by default with Xcode. To install it:

  1. Launch Xcode
  2. Select Xcode -> Preferences from the menu bar.
  3. Select the Downloads tab.
  4. Install "Command Line Tools".
4 replies

error: C compiler cannot create executables

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.