MacOS: configure: error: C compiler cannot create executables - gcc

I am trying to install opensmile on my Macbookd and encountered the following error:
configure: error: C compiler cannot create executables
I have Xcode 8.2.1 installed. I already tried some answers on similar topics on StackOverflow but nothing helped so far.
/opt/local/bin/port select --list gcc gives me:
Available versions for gcc:
mp-gcc47 (active)
none
Here is the configure.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by openSMILE configure 2.3.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --without-portaudio --prefix=/Applications/opensmile/inst --enable-static --enable-shared=no
## --------- ##
## Platform. ##
## --------- ##
hostname = Alexanders-MacBook-Pro.local
uname -m = x86_64
uname -r = 16.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/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 16.4.0: Thu Dec 22 22:53:21 PST 2016; root:xnu-3789.41.3~3/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: x86_64h (Intel x86-64h Haswell)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 276 tasks, 1628 threads, 4 processors
Load average: 2.33, Mach factor: 1.72
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
PATH: /Applications/Xcode.app/Contents/Developer/usr/bin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Library/Frameworks/Python.framework/Versions/2.7/bin
PATH: //anaconda/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /opt/X11/bin
PATH: /usr/local/git/bin
PATH: /Library/TeX/texbin
PATH: /Users/Alex/java
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2496: checking for a BSD-compatible install
configure:2564: result: /usr/bin/install -c
configure:2575: checking whether build environment is sane
configure:2630: result: yes
configure:2781: checking for a thread-safe mkdir -p
configure:2820: result: ./install-sh -c -d
configure:2827: checking for gawk
configure:2843: found /usr/local/bin/gawk
configure:2854: result: gawk
configure:2865: checking whether make sets $(MAKE)
configure:2887: result: yes
configure:2916: checking whether make supports nested variables
configure:2933: result: yes
configure:3110: checking for gcc
configure:3137: result: /usr/local/bin/gcc-4.2
configure:3366: checking for C compiler version
configure:3375: /usr/local/bin/gcc-4.2 --version >&5
i686-apple-darwin11-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5666) (dot 3)
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.
couldn't understand kern.osversion `16.4.0'
configure:3386: $? = 0
configure:3375: /usr/local/bin/gcc-4.2 -v >&5
couldn't understand kern.osversion `16.4.0'
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /Volumes/Media/Builds/gcc-5666.3/build/obj/src/configure --disable-checking --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++,fortran --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Apple Inc. build 5666) (dot 3)
configure:3386: $? = 0
configure:3375: /usr/local/bin/gcc-4.2 -V >&5
gcc-4.2: argument to `-V' is missing
configure:3386: $? = 1
configure:3375: /usr/local/bin/gcc-4.2 -qversion >&5
couldn't understand kern.osversion `16.4.0'
i686-apple-darwin11-gcc-4.2.1: no input files
configure:3386: $? = 1
configure:3406: checking whether the C compiler works
configure:3428: /usr/local/bin/gcc-4.2 -O2 -mfpmath=sse -msse2 -D__STATIC_LINK -DOPENSMILE_BUILD -DBUILD_SVMSMO -DBUILD_SVMSMO -DBUILD_LIBSVM -DBUILD_RNN -DBUILD_WITHOUT_EXPERIMENTAL -lrt -lm -lpthread -lc conftest.c >&5
couldn't understand kern.osversion `16.4.0'
ld: library not found for -lrt
collect2: ld returned 1 exit status
configure:3432: $? = 1
configure:3470: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "openSMILE"
| #define PACKAGE_TARNAME "opensmile"
| #define PACKAGE_VERSION "2.3.0"
| #define PACKAGE_STRING "openSMILE 2.3.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #define PACKAGE "opensmile"
| #define VERSION "2.3.0"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3475: error: in `/Applications/opensmile':
configure:3477: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/local/bin/gcc-4.2
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-O2 -mfpmath=sse -msse2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-D__STATIC_LINK -DOPENSMILE_BUILD -DBUILD_SVMSMO -DBUILD_SVMSMO -DBUILD_LIBSVM -DBUILD_RNN -DBUILD_WITHOUT_EXPERIMENTAL'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-O2 -mfpmath=sse -msse2'
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-lrt -lm -lpthread -lc'
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LT_SYS_LIBRARY_PATH_set=
ac_cv_env_LT_SYS_LIBRARY_PATH_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_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=/usr/local/bin/gcc-4.2
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Applications/opensmile/missing aclocal-1.15'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
ANDROID_LDFLAGS=''
AR=''
AUTOCONF='${SHELL} /Applications/opensmile/missing autoconf'
AUTOHEADER='${SHELL} /Applications/opensmile/missing autoheader'
AUTOMAKE='${SHELL} /Applications/opensmile/missing automake-1.15'
AWK='gawk'
BUILD_SMILExtract_FALSE=''
BUILD_SMILExtract_TRUE=''
CC='/usr/local/bin/gcc-4.2'
CCDEPMODE=''
CFLAGS='-O2 -mfpmath=sse -msse2'
CPP=''
CPPFLAGS='-D__STATIC_LINK -DOPENSMILE_BUILD -DBUILD_SVMSMO -DBUILD_SVMSMO -DBUILD_LIBSVM -DBUILD_RNN -DBUILD_WITHOUT_EXPERIMENTAL'
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS='-O2 -mfpmath=sse -msse2'
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLIB=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-lrt -lm -lpthread -lc'
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
LT_SYS_LIBRARY_PATH=''
MAKEINFO='${SHELL} /Applications/opensmile/missing makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OPENCV_CPPFLAGS=''
OPENCV_LDFLAGS=''
OPENCV_ROOT=''
OTOOL64=''
OTOOL=''
PACKAGE='opensmile'
PACKAGE_BUGREPORT=''
PACKAGE_NAME='openSMILE'
PACKAGE_STRING='openSMILE 2.3.0'
PACKAGE_TARNAME='opensmile'
PACKAGE_URL=''
PACKAGE_VERSION='2.3.0'
PATH_SEPARATOR=':'
PORTAUDIO_CPPFLAGS=''
PORTAUDIO_LDFLAGS=''
PORTAUDIO_ROOT=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
RANLIB=''
SED=''
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='2.3.0'
ac_ct_AR=''
ac_ct_CC='/usr/local/bin/gcc-4.2'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Applications/opensmile/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/Applications/opensmile/inst'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "openSMILE"
#define PACKAGE_TARNAME "opensmile"
#define PACKAGE_VERSION "2.3.0"
#define PACKAGE_STRING "openSMILE 2.3.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define PACKAGE "opensmile"
#define VERSION "2.3.0"
configure: exit 77

It seems like librt is missing, which doesn't exist on MacOS. It seems openSMILE is currently not officially supported on that platform.
Here is what you need to do to get it to build anyway:
➜ sed -i -e 's/-lrt//' buildStandalone.sh
➜ ./buildStandalone.sh

Related

Mac glpk install error

I am trying to install the latest glpk package on my Mac. I change the directory to the folder where the gulp files are stored and type:
./configure --prefix=/usr/local
which results in the following:
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking for gcc... gcc
checking whether the C compiler works... no
configure: error: in `/Users/johnstelmack/2017-1/OR/glpk-4.61':
configure: error: C compiler cannot create executables
See `config.log' for more details
How do I get this installed? I have tried adding sudo in front of the ./configure line with no luck.
The config.log shows the following:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by GLPK configure 4.61, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local
## --------- ##
## Platform. ##
## --------- ##
hostname = Johns-MacBook-Pro-2.local
uname -m = x86_64
uname -r = 16.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 16.6.0: Mon Apr 17 17:15:27 PDT 2017; root:xnu-3789.60.24~21/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 16.6.0: Mon Apr 17 17:15:27 PDT 2017; root:xnu-3789.60.24~21/RELEASE_X86_64
Kernel configured for up to 8 processors.
4 processors are physically available.
8 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 305 tasks, 1333 threads, 8 processors
Load average: 1.42, Mach factor: 6.56
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/Python.framework/Versions/3.6/bin
PATH: /Users/johnstelmack/anaconda/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.5/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2259: checking for a BSD-compatible install
configure:2327: result: /usr/bin/install -c
configure:2338: checking whether build environment is sane
configure:2393: result: yes
configure:2544: checking for a thread-safe mkdir -p
configure:2583: result: ./install-sh -c -d
configure:2590: checking for gawk
configure:2620: result: no
configure:2590: checking for mawk
configure:2620: result: no
configure:2590: checking for nawk
configure:2620: result: no
configure:2590: checking for awk
configure:2606: found /usr/bin/awk
configure:2617: result: awk
configure:2628: checking whether make sets $(MAKE)
configure:2654: result: no
configure:2848: checking for gcc
configure:2864: found /usr/bin/gcc
configure:2875: result: gcc
configure:3104: checking for C compiler version
configure:3113: gcc --version >&5
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure:3124: $? = 1
configure:3113: gcc -v >&5
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure:3124: $? = 1
configure:3113: gcc -V >&5
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure:3124: $? = 1
configure:3113: gcc -qversion >&5
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure:3124: $? = 1
configure:3144: checking whether the C compiler works
configure:3166: gcc conftest.c >&5
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
configure:3170: $? = 1
configure:3208: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GLPK"
| #define PACKAGE_TARNAME "glpk"
| #define PACKAGE_VERSION "4.61"
| #define PACKAGE_STRING "GLPK 4.61"
| #define PACKAGE_BUGREPORT "bug-glpk#gnu.org"
| #define PACKAGE_URL ""
| #define PACKAGE "glpk"
| #define VERSION "4.61"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3213: error: in `/Users/johnstelmack/2017-1/OR/glpk-4.61':
configure:3215: 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_LIBS_set=
ac_cv_env_LIBS_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_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=no
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/missing --run aclocal-1.12'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR=''
AUTOCONF='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/missing --run automake-1.12'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAKEINFO='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
NM=''
NMEDIT=''
NOUNDEFINED=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='glpk'
PACKAGE_BUGREPORT='bug-glpk#gnu.org'
PACKAGE_NAME='GLPK'
PACKAGE_STRING='GLPK 4.61'
PACKAGE_TARNAME='glpk'
PACKAGE_URL=''
PACKAGE_VERSION='4.61'
PATH_SEPARATOR=':'
RANLIB=''
SED=''
SET_MAKE='MAKE=make'
SHELL='/bin/sh'
STRIP=''
VERSION='4.61'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build=''
build_alias=''
build_cpu=''
build_os=''
build_vendor=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host=''
host_alias=''
host_cpu=''
host_os=''
host_vendor=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/johnstelmack/2017-1/OR/glpk-4.61/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GLPK"
#define PACKAGE_TARNAME "glpk"
#define PACKAGE_VERSION "4.61"
#define PACKAGE_STRING "GLPK 4.61"
#define PACKAGE_BUGREPORT "bug-glpk#gnu.org"
#define PACKAGE_URL ""
#define PACKAGE "glpk"
#define VERSION "4.61"
configure: exit 77

Cygwin binutils error: C compiler cannot create executables

I was trying to compile binutils and I got this error saying :
C compiler cannot create executables
I need help. I am totally frustrated. If you want to know why I am doing this then my answer is don't ask.
Actually I am trying to build a GCC cross complier with Cygwin.
Here is the 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.64. Invocation command line was
$ ../binutils-2.27/configure --target=i686-elf --prefix=/home/Arunav Das/opt/cross --with-sysroot --disable-nls --disable-werror
## --------- ##
## Platform. ##
## --------- ##
hostname = DESKTOP-JCP0DAS
uname -m = i686
uname -r = 2.6.1(0.305/5/3)
uname -s = CYGWIN_NT-10.0-WOW
uname -v = 2016-12-16 11:50
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = i686
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /home/Arunav Das/opt/cross/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /cygdrive/c/Windows/system32
PATH: /cygdrive/c/Windows
PATH: /cygdrive/c/Windows/System32/Wbem
PATH: /cygdrive/c/Windows/System32/WindowsPowerShell/v1.0
PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x86
PATH: /cygdrive/c/Program Files (x86)/Intel/OpenCL SDK/2.0/bin/x64
PATH: /cygdrive/d/DEFPC/3.0.0/bin/i386-Win32
PATH: /cygdrive/d/Program Files/CMake/bin
PATH: /cygdrive/d/DE/FPC/3.0.0/bin/i386-Win32
PATH: /cygdrive/d/Program Files/IDM Computer Solutions/UEStudio
PATH: /cygdrive/c/TDM-GCC-32-GTK/bin
PATH: /cygdrive/d/DE/TDM-GCC-32-GTK/TDM-GCC-32/bin
PATH: /cygdrive/d/Program Files/Ruby192/bin
PATH: /cygdrive/c/Windows/System32
PATH: /cygdrive/d/Program Files/FreeArc/bin
PATH: /cygdrive/u/Program Files/Mercurial
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2297: checking build system type
configure:2311: result: i686-pc-cygwin
configure:2358: checking host system type
configure:2371: result: i686-pc-cygwin
configure:2391: checking target system type
configure:2404: result: i686-pc-elf
configure:2458: checking for a BSD-compatible install
configure:2526: result: /usr/bin/install -c
configure:2537: checking whether ln works
configure:2559: result: yes
configure:2563: checking whether ln -s works
configure:2567: result: yes
configure:2574: checking for a sed that does not truncate output
configure:2638: result: /usr/bin/sed
configure:2647: checking for gawk
configure:2663: found /usr/bin/gawk
configure:2674: result: gawk
configure:3995: checking to see if cat works as expected
configure:4000: result: yes
configure:4121: checking for gcc
configure:4137: found /cygdrive/d/DE/FPC/3.0.0/bin/i386-Win32/gcc
configure:4148: result: gcc
configure:4377: checking for C compiler version
configure:4386: gcc --version >&5
2.95
configure:4397: $? = 0
configure:4386: gcc -v >&5
Using builtin specs.
gcc version 2.95 19990728 (release)
configure:4397: $? = 0
configure:4386: gcc -V >&5
gcc.exe: argument to `-V' is missing
configure:4397: $? = 1
configure:4386: gcc -qversion >&5
gcc.exe: unrecognized option `-qversion'
gcc.exe: No input files
configure:4397: $? = 1
configure:4417: checking for C compiler default output file name
configure:4439: gcc conftest.c >&5
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
configure:4443: $? = 1
configure:4480: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4486: error: in `/home/Arunav Das/src/build-binutils':
configure:4490: error: C compiler cannot create executables
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-cygwin
ac_cv_env_AR_FOR_TARGET_set=
ac_cv_env_AR_FOR_TARGET_value=
ac_cv_env_AR_set=
ac_cv_env_AR_value=
ac_cv_env_AS_FOR_TARGET_set=
ac_cv_env_AS_FOR_TARGET_value=
ac_cv_env_AS_set=
ac_cv_env_AS_value=
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_TARGET_set=
ac_cv_env_CC_FOR_TARGET_value=
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_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_FOR_TARGET_set=
ac_cv_env_CXX_FOR_TARGET_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_DLLTOOL_FOR_TARGET_set=
ac_cv_env_DLLTOOL_FOR_TARGET_value=
ac_cv_env_DLLTOOL_set=
ac_cv_env_DLLTOOL_value=
ac_cv_env_GCC_FOR_TARGET_set=
ac_cv_env_GCC_FOR_TARGET_value=
ac_cv_env_GCJ_FOR_TARGET_set=
ac_cv_env_GCJ_FOR_TARGET_value=
ac_cv_env_GFORTRAN_FOR_TARGET_set=
ac_cv_env_GFORTRAN_FOR_TARGET_value=
ac_cv_env_GOC_FOR_TARGET_set=
ac_cv_env_GOC_FOR_TARGET_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LD_FOR_TARGET_set=
ac_cv_env_LD_FOR_TARGET_value=
ac_cv_env_LD_set=
ac_cv_env_LD_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_LIPO_FOR_TARGET_set=
ac_cv_env_LIPO_FOR_TARGET_value=
ac_cv_env_LIPO_set=
ac_cv_env_LIPO_value=
ac_cv_env_NM_FOR_TARGET_set=
ac_cv_env_NM_FOR_TARGET_value=
ac_cv_env_NM_set=
ac_cv_env_NM_value=
ac_cv_env_OBJCOPY_FOR_TARGET_set=
ac_cv_env_OBJCOPY_FOR_TARGET_value=
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_FOR_TARGET_set=
ac_cv_env_OBJDUMP_FOR_TARGET_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_FOR_TARGET_set=
ac_cv_env_RANLIB_FOR_TARGET_value=
ac_cv_env_RANLIB_set=
ac_cv_env_RANLIB_value=
ac_cv_env_READELF_FOR_TARGET_set=
ac_cv_env_READELF_FOR_TARGET_value=
ac_cv_env_READELF_set=
ac_cv_env_READELF_value=
ac_cv_env_STRIP_FOR_TARGET_set=
ac_cv_env_STRIP_FOR_TARGET_value=
ac_cv_env_STRIP_set=
ac_cv_env_STRIP_value=
ac_cv_env_WINDMC_FOR_TARGET_set=
ac_cv_env_WINDMC_FOR_TARGET_value=
ac_cv_env_WINDMC_set=
ac_cv_env_WINDMC_value=
ac_cv_env_WINDRES_FOR_TARGET_set=
ac_cv_env_WINDRES_FOR_TARGET_value=
ac_cv_env_WINDRES_set=
ac_cv_env_WINDRES_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_build_configargs_set=
ac_cv_env_build_configargs_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_host_configargs_set=
ac_cv_env_host_configargs_value=
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-elf
ac_cv_env_target_configargs_set=
ac_cv_env_target_configargs_value=
ac_cv_host=i686-pc-cygwin
ac_cv_path_SED=/usr/bin/sed
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=gawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=i686-pc-elf
acx_cv_prog_LN=ln
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
AR_FOR_BUILD='$(AR)'
AR_FOR_TARGET=''
AS=''
AS_FOR_BUILD='$(AS)'
AS_FOR_TARGET=''
AWK='gawk'
BISON=''
BUILD_CONFIG=''
CC='gcc'
CC_FOR_BUILD='$(CC)'
CC_FOR_TARGET=''
CFLAGS=''
CFLAGS_FOR_BUILD=''
CFLAGS_FOR_TARGET=''
COMPILER_AS_FOR_TARGET=''
COMPILER_LD_FOR_TARGET=''
COMPILER_NM_FOR_TARGET=''
CONFIGURE_GDB_TK=''
CPPFLAGS=''
CXX=''
CXXFLAGS=''
CXXFLAGS_FOR_BUILD=''
CXXFLAGS_FOR_TARGET=''
CXX_FOR_BUILD='$(CXX)'
CXX_FOR_TARGET=''
DEBUG_PREFIX_CFLAGS_FOR_TARGET=''
DEFS=''
DLLTOOL=''
DLLTOOL_FOR_BUILD='$(DLLTOOL)'
DLLTOOL_FOR_TARGET=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EXEEXT=''
EXPECT=''
EXTRA_CONFIGARGS_LIBJAVA='--disable-static'
FLAGS_FOR_TARGET=''
FLEX=''
GCC_FOR_TARGET=''
GCC_SHLIB_SUBDIR=''
GCJ_FOR_BUILD='$(GCJ)'
GCJ_FOR_TARGET=''
GDB_TK=''
GFORTRAN_FOR_BUILD='$(GFORTRAN)'
GFORTRAN_FOR_TARGET=''
GNATBIND=''
GNATMAKE=''
GOC_FOR_BUILD='$(GOC)'
GOC_FOR_TARGET=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_GDB_TK=''
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LD=''
LDFLAGS=''
LDFLAGS_FOR_BUILD=''
LDFLAGS_FOR_TARGET=''
LD_FOR_BUILD='$(LD)'
LD_FOR_TARGET=''
LEX=''
LIBOBJS=''
LIBS=''
LIPO=''
LIPO_FOR_TARGET=''
LN='ln'
LN_S='ln -s'
LTLIBOBJS=''
M4=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAKEINFO=''
NM=''
NM_FOR_BUILD='$(NM)'
NM_FOR_TARGET=''
OBJCOPY=''
OBJCOPY_FOR_TARGET=''
OBJDUMP=''
OBJDUMP_FOR_TARGET=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
RANLIB_FOR_BUILD='$(RANLIB)'
RANLIB_FOR_TARGET=''
RAW_CXX_FOR_TARGET=''
READELF=''
READELF_FOR_TARGET=''
RPATH_ENVVAR=''
RUNTEST=''
SED='/usr/bin/sed'
SHELL='/bin/sh'
STRIP=''
STRIP_FOR_TARGET=''
SYSROOT_CFLAGS_FOR_TARGET=''
TOPLEVEL_CONFIGURE_ARGUMENTS='../binutils-2.27/configure --target=i686-elf --prefix='\''/home/Arunav Das/opt/cross'\'' --with-sysroot --disable-nls --disable-werror'
WINDMC=''
WINDMC_FOR_BUILD='$(WINDMC)'
WINDMC_FOR_TARGET=''
WINDRES=''
WINDRES_FOR_BUILD='$(WINDRES)'
WINDRES_FOR_TARGET=''
YACC=''
ac_ct_CC='gcc'
ac_ct_CXX=''
bindir='${exec_prefix}/bin'
build='i686-pc-cygwin'
build_alias=''
build_configargs=''
build_configdirs='build-libiberty build-libcpp build-texinfo build-flex build-bison build-m4 build-fixincludes'
build_cpu='i686'
build_libsubdir='build-i686-pc-cygwin'
build_noncanonical='i686-pc-cygwin'
build_os='cygwin'
build_subdir='build-i686-pc-cygwin'
build_tooldir=''
build_vendor='pc'
compare_exclusions=''
configdirs='intl libiberty opcodes bfd readline tcl tk itcl libgui zlib libbacktrace libcpp libdecnumber gmp mpfr mpc isl libelf libiconv texinfo flex bison binutils gas ld fixincludes gcc cgen sid sim gdb gprof etc expect dejagnu m4 utils guile fastjar gnattools libcc1 gotools libtermcap'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
do_compare=''
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
extra_host_libiberty_configure_flags=''
extra_host_zlib_configure_flags=''
extra_isl_gmp_configure_flags=''
extra_liboffloadmic_configure_flags=''
extra_linker_plugin_configure_flags=''
extra_linker_plugin_flags=''
extra_mpc_gmp_configure_flags=''
extra_mpc_mpfr_configure_flags=''
extra_mpfr_configure_flags=''
gmpinc=''
gmplibs=''
host='i686-pc-cygwin'
host_alias=''
host_configargs=''
host_cpu='i686'
host_noncanonical='i686-pc-cygwin'
host_os='cygwin'
host_shared=''
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
islinc=''
isllibs=''
islver=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
poststage1_ldflags=''
poststage1_libs=''
prefix='/home/Arunav Das/opt/cross'
program_transform_name='s&^&i686-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
stage1_cflags=''
stage1_checking=''
stage1_languages=''
stage1_ldflags=''
stage1_libs=''
stage2_werror_flag=''
sysconfdir='${prefix}/etc'
target='i686-pc-elf'
target_alias='i686-elf'
target_configargs=''
target_configdirs='target-libgcc target-libbacktrace target-libgloss target-newlib target-libgomp target-libcilkrts target-liboffloadmic target-libatomic target-libitm target-libstdc++-v3 target-libsanitizer target-libvtv target-libmpx target-libssp target-libquadmath target-libgfortran target-boehm-gc target-libffi target-zlib target-libjava target-libobjc target-libada target-libgo target-rda'
target_cpu='i686'
target_noncanonical='i686-elf'
target_os='elf'
target_subdir='i686-elf'
target_vendor='pc'
tooldir=''
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag=''
host_makefile_frag='config/mh-cygwin'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
This error message is the important one to look at:
configure:4439: gcc conftest.c >&5
gcc.exe: installation problem, cannot exec `cc1': No such file or directory
Do you have a working compiler installed? Can you compile a simple "hello, world" program? Try that first.

C compiler cannot create executables when installing sage

I'm trying to make sage in my mac 10.9.5 and after I type make I have the error C compiler cannot create executables
Do you know why ? Xcode and command line tool are installed ...
I must admit that I am a bit lost when looking at the file above. Can anyone help me ?
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Sage configure 6.6.rc3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = dhcp-147-65-172-203.impa.br
uname -m = x86_64
uname -r = 13.4.0
uname -s = Darwin
uname -v = Darwin Kernel Version 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~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 13.4.0: Wed Mar 18 16:20:14 PDT 2015; root:xnu-2422.115.14~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: 4.00 gigabytes
Default processor set: 171 tasks, 1002 threads, 4 processors
Load average: 3.67, Mach factor: 1.35
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Applications/sage/src/bin
PATH: /Applications/sage/local/bin
PATH: /usr/local/bin
PATH: //anaconda/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.4/bin
PATH: /Library/Frameworks/Python.framework/Versions/3.4/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Users/samuelguerin/usr/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/X11/bin
PATH: /usr/local/CrossPack-AVR/bin
PATH: /usr/texbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2354: checking for a BSD-compatible install
configure:2422: result: /usr/bin/install -c
configure:2433: checking whether build environment is sane
configure:2488: result: yes
configure:2639: checking for a thread-safe mkdir -p
configure:2678: result: config/install-sh -c -d
configure:2685: checking for gawk
configure:2715: result: no
configure:2685: checking for mawk
configure:2715: result: no
configure:2685: checking for nawk
configure:2715: result: no
configure:2685: checking for awk
configure:2701: found /usr/bin/awk
configure:2712: result: awk
configure:2723: checking whether make sets $(MAKE)
configure:2745: result: yes
configure:2774: checking whether make supports nested variables
configure:2791: result: yes
configure:2919: checking whether to enable maintainer-specific portions of Makefiles
configure:2928: result: yes
configure:2945: checking for root user
configure:2954: result: no
configure:2994: checking build system type
configure:3008: result: x86_64-apple-darwin13.4.0
configure:3028: checking host system type
configure:3041: result: x86_64-apple-darwin13.4.0
configure:3172: checking for ar
configure:3188: found /usr/bin/ar
configure:3200: result: yes
configure:3221: checking for m4
configure:3237: found /usr/bin/m4
configure:3249: result: yes
configure:3270: checking for ranlib
configure:3286: found /usr/bin/ranlib
configure:3298: result: yes
configure:3319: checking for strip
configure:3335: found /usr/bin/strip
configure:3347: result: yes
configure:3367: checking for GNU or BSD tar
configure:3415: result: /usr/bin/tar
configure:3482: checking for latex
configure:3498: found /usr/texbin/latex
configure:3510: result: yes
configure:3534: checking for perl
configure:3552: found /usr/bin/perl
configure:3564: result: /usr/bin/perl
configure:3572: checking for Perl version 5.8.0 or later
configure:3583: result: yes
configure:3599: checking for dpkg
configure:3627: result: no
configure:3637: checking for dpkg-architecture
configure:3665: result: no
configure:3744: checking for gcc
configure:3771: result: gcc
configure:4000: checking for C compiler version
configure:4009: gcc --version >&5
gcc (GCC) 4.9.2
Copyright (C) 2014 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:4020: $? = 0
configure:4009: gcc -v >&5
Using built-in specs.
COLLECT_GCC=/Applications/sage/local/bin/gcc
COLLECT_LTO_WRAPPER=/Applications/sage/local/bin/../libexec/gcc/x86_64-apple-darwin11.4.2/4.9.2/lto-wrapper
Target: x86_64-apple-darwin11.4.2
Configured with: ../src/configure --prefix=/Users/karl.crisman/Downloads/sage-6.6/local --with-local-prefix=/Users/karl.crisman/Downloads/sage-6.6/local --with-gmp=/Users/karl.crisman/Downloads/sage-6.6/local --with-mpfr=/Users/karl.crisman/Downloads/sage-6.6/local --with-mpc=/Users/karl.crisman/Downloads/sage-6.6/local --with-system-zlib --disable-multilib --disable-nls --enable-languages=c,c++,fortran --disable-libitm --without-isl --without-cloog
Thread model: posix
gcc version 4.9.2 (GCC)
configure:4020: $? = 0
configure:4009: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4009: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4020: $? = 1
configure:4040: checking whether the C compiler works
configure:4062: gcc conftest.c >&5
sh: line 1: 1471 Trace/BPT trap: 5 /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild -sdk / -find as 2> /dev/null
as: error: unable to find utility "as", not a developer tool or in PATH
configure:4066: $? = 1
configure:4104: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Sage"
| #define PACKAGE_TARNAME "sage"
| #define PACKAGE_VERSION "6.6.rc3"
| #define PACKAGE_STRING "Sage 6.6.rc3"
| #define PACKAGE_BUGREPORT "sage-devel#googlegroups.com"
| #define PACKAGE_URL ""
| #define PACKAGE "sage"
| #define VERSION "6.6.rc3"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4109: error: in `/Applications/sage':
configure:4111: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin13.4.0
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_FCFLAGS_set=
ac_cv_env_FCFLAGS_value=
ac_cv_env_FC_set=
ac_cv_env_FC_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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=x86_64-apple-darwin13.4.0
ac_cv_path_PERL=/usr/bin/perl
ac_cv_path_TAR=/usr/bin/tar
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_found_ar=yes
ac_cv_prog_found_dpkg=no
ac_cv_prog_found_dpkg_arch=no
ac_cv_prog_found_latex=yes
ac_cv_prog_found_m4=yes
ac_cv_prog_found_ranlib=yes
ac_cv_prog_found_strip=yes
ac_cv_prog_make_make_set=yes
am_cv_make_support_nested_variables=yes
ax_cv_prog_perl_version=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Applications/sage/config/missing aclocal-1.14'
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AM_BACKSLASH='\'
AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
AM_DEFAULT_VERBOSITY='1'
AM_V='$(V)'
AUTOCONF='${SHELL} /Applications/sage/config/missing autoconf'
AUTOHEADER='${SHELL} /Applications/sage/config/missing autoheader'
AUTOMAKE='${SHELL} /Applications/sage/config/missing automake-1.14'
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS=''
CPP='cpp'
CPPFLAGS=''
CXX='g++'
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
FC='gfortran'
FCFLAGS=''
GCC_VERSION=''
GREP=''
GXX_VERSION=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE='#'
MAINTAINER_MODE_TRUE=''
MAKEINFO='${SHELL} /Applications/sage/config/missing makeinfo'
MKDIR_P='config/install-sh -c -d'
OBJEXT=''
PACKAGE='sage'
PACKAGE_BUGREPORT='sage-devel#googlegroups.com'
PACKAGE_NAME='Sage'
PACKAGE_STRING='Sage 6.6.rc3'
PACKAGE_TARNAME='sage'
PACKAGE_URL=''
PACKAGE_VERSION='6.6.rc3'
PATH_SEPARATOR=':'
PERL='/usr/bin/perl'
SET_MAKE=''
SHELL='/bin/sh'
STRIP=''
VERSION='6.6.rc3'
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_FC=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.4.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin13.4.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
found_ar='yes'
found_dpkg='no'
found_dpkg_arch='no'
found_latex='yes'
found_m4='yes'
found_ranlib='yes'
found_strip='yes'
host='x86_64-apple-darwin13.4.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin13.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Applications/sage/config/install-sh'
libdir='/Applications/sage/local/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(MKDIR_P)'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "Sage"
#define PACKAGE_TARNAME "sage"
#define PACKAGE_VERSION "6.6.rc3"
#define PACKAGE_STRING "Sage 6.6.rc3"
#define PACKAGE_BUGREPORT "sage-devel#googlegroups.com"
#define PACKAGE_URL ""
#define PACKAGE "sage"
#define VERSION "6.6.rc3"
configure: exit 77

Error in Compiling FFTW = configure: error: C compiler cannot create executables

I am trying to compile FFTW using the following instructions:
Download FFTW from http://www.fftw.org/download.html
Unzip and navigate to the appropriate folder.
In order to have a universal (32 + 64bit binary), you will build FFTW four
separate times (twice for 32 vs. 64 and twice for float vs. double precision)
and then combine the 32 and 64bit libraries into two fat/universal libraries.
In Terminal, type:
./configure CFLAGS="arch i686"
make
./configure --enable-float CFLAGS="arch i686"
make
mkdir .libs/32
cp libfftw3.a 32/libfftw3.a
cp libfftw3f.a 32/libfftw3f.a
./configure CFLAGS="arch x86_64"
make
./configure --enable-float CFLAGS="arch x86_64"
make
sudo make install
mkdir .libs/64
lipo -create .libs/32/libfftw3.a .libs/64/libfftw3.a -output libfftw3.a
lipo -create .libs/32/libfftw3f.a .libs/64/libfftw3f.a -output libfftw3f.a
cp libfftw3.a /usr/local/lib/libfftw3.a
cp libfftw3f.a /usr/local/lib/libfftw3f.a
To test if the created libraries at fat, type: lipo -info libraryname.a
However, when I try to type in the first terminal command (./configure), I get the following error:
configure: error: C compiler cannot create executables
This is my first time trying to compile anything, so any help regarding the specific error or even just resources for me to understand the terminal commands and compiling in general would be much appreciated! I really want to learn this stuff, but I can't even figure out HOW to learn it effectively! Thanks in advance!
Here is the 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 fftw configure 3.3.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure CFLAGS=arch i686
## --------- ##
## Platform. ##
## --------- ##
hostname = Davids-Macbook-Pro.local
uname -m = x86_64
uname -r = 12.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~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 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~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: 8.00 gigabytes
Default processor set: 127 tasks, 865 threads, 4 processors
Load average: 2.04, Mach factor: 2.13
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Users/David/Library/Enthought/Canopy_64bit/User/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /usr/local/git/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2742: checking for a BSD-compatible install
configure:2810: result: /usr/bin/install -c
configure:2821: checking whether build environment is sane
configure:2871: result: yes
configure:3012: checking for a thread-safe mkdir -p
configure:3051: result: ./install-sh -c -d
configure:3064: checking for gawk
configure:3094: result: no
configure:3064: checking for mawk
configure:3094: result: no
configure:3064: checking for nawk
configure:3094: result: no
configure:3064: checking for awk
configure:3080: found /usr/bin/awk
configure:3091: result: awk
configure:3102: checking whether make sets $(MAKE)
configure:3124: result: yes
configure:3208: checking whether to enable maintainer-specific portions of Makefiles
configure:3217: result: no
configure:3265: checking build system type
configure:3279: result: x86_64-apple-darwin12.5.0
configure:3299: checking host system type
configure:3312: result: x86_64-apple-darwin12.5.0
configure:3750: checking for gcc
configure:3766: found /usr/bin/gcc
configure:3777: result: gcc
configure:4006: checking for C compiler version
configure:4015: gcc --version >&5
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:4026: $? = 0
configure:4015: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
configure:4026: $? = 0
configure:4015: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4026: $? = 1
configure:4015: gcc -qversion >&5
clang: error: no input files
configure:4026: $? = 1
configure:4046: checking whether the C compiler works
configure:4068: gcc arch i686 conftest.c >&5
clang: error: no such file or directory: 'arch'
clang: error: no such file or directory: 'i686'
configure:4072: $? = 1
configure:4110: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fftw"
| #define PACKAGE_TARNAME "fftw"
| #define PACKAGE_VERSION "3.3.3"
| #define PACKAGE_STRING "fftw 3.3.3"
| #define PACKAGE_BUGREPORT "fftw#fftw.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fftw"
| #define VERSION "3.3.3"
| #define FFTW_ENABLE_ALLOCA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4115: error: in `/Users/David/documents/ISSE Source/fftw-3.3.3':
configure:4117: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin12.5.0
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='arch i686'
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_F77_set=
ac_cv_env_F77_value=
ac_cv_env_FFLAGS_set=
ac_cv_env_FFLAGS_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_MPICC_set=
ac_cv_env_MPICC_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=x86_64-apple-darwin12.5.0
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AWK=awk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} "/Users/David/documents/ISSE Source/fftw-3.3.3/missing" --run aclocal-1.11'
ALLOCA=''
ALTIVEC_CFLAGS=''
AMDEPBACKSLASH=''
AMDEP_FALSE=''
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR=''
AS=''
AUTOCONF='${SHELL} "/Users/David/documents/ISSE Source/fftw-3.3.3/missing" --run autoconf'
AUTOHEADER='${SHELL} "/Users/David/documents/ISSE Source/fftw-3.3.3/missing" --run autoheader'
AUTOMAKE='${SHELL} "/Users/David/documents/ISSE Source/fftw-3.3.3/missing" --run automake-1.11'
AVX_CFLAGS=''
AWK='awk'
CC='gcc'
CCDEPMODE=''
CFLAGS='arch i686'
CHECK_PL_OPTS=''
COMBINED_THREADS_FALSE=''
COMBINED_THREADS_TRUE=''
CPP=''
CPPFLAGS=''
CYGPATH_W='echo'
C_FFTW_R2R_KIND=''
C_MPI_FINT=''
DEFS=''
DEPDIR=''
DLLTOOL=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77=''
FFLAGS=''
FGREP=''
FLIBS=''
GREP=''
HAVE_ALTIVEC_FALSE=''
HAVE_ALTIVEC_TRUE='#'
HAVE_AVX_FALSE=''
HAVE_AVX_TRUE='#'
HAVE_NEON_FALSE=''
HAVE_NEON_TRUE='#'
HAVE_SSE2_FALSE=''
HAVE_SSE2_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS=''
LDOUBLE_FALSE=''
LDOUBLE_TRUE='#'
LIBOBJS=''
LIBQUADMATH=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} "/Users/David/documents/ISSE Source/fftw-3.3.3/missing" --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='./install-sh -c -d'
MPICC=''
MPILIBS=''
MPIRUN=''
MPI_FALSE=''
MPI_TRUE=''
NEON_CFLAGS=''
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OCAMLBUILD=''
OPENMP_CFLAGS=''
OPENMP_FALSE=''
OPENMP_TRUE=''
OTOOL64=''
OTOOL=''
PACKAGE='fftw'
PACKAGE_BUGREPORT='fftw#fftw.org'
PACKAGE_NAME='fftw'
PACKAGE_STRING='fftw 3.3.3'
PACKAGE_TARNAME='fftw'
PACKAGE_URL=''
PACKAGE_VERSION='3.3.3'
PATH_SEPARATOR=':'
POW_LIB=''
PRECISION='d'
PREC_SUFFIX=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
QUAD_FALSE=''
QUAD_TRUE='#'
RANLIB=''
SED=''
SET_MAKE=''
SHARED_VERSION_INFO='6:2:3'
SHELL='/bin/sh'
SINGLE_FALSE=''
SINGLE_TRUE='#'
SMP_FALSE=''
SMP_TRUE=''
SSE2_CFLAGS=''
STACK_ALIGN_CFLAGS=''
STRIP=''
THREADLIBS=''
THREADS_FALSE=''
THREADS_TRUE=''
VERSION='3.3.3'
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
ac_ct_F77=''
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__include=''
am__isrc=''
am__leading_dot='.'
am__nodep=''
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin12.5.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin12.5.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin12.5.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin12.5.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} '\''/Users/David/documents/ISSE Source/fftw-3.3.3/install-sh'\'''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "fftw"
#define PACKAGE_TARNAME "fftw"
#define PACKAGE_VERSION "3.3.3"
#define PACKAGE_STRING "fftw 3.3.3"
#define PACKAGE_BUGREPORT "fftw#fftw.org"
#define PACKAGE_URL ""
#define PACKAGE "fftw"
#define VERSION "3.3.3"
#define FFTW_ENABLE_ALLOCA 1
configure: exit 77
I don't know where you are getting the documentation that you've posted in your question but it has a typo. Specifically the CFLAGS variable is wrong in every ./configure line. They should be
./configure CFLAGS="-arch i686"
./configure --enable-float CFLAGS="-arch i686"
./configure --enable-float CFLAGS="-arch x86_64"
the - is missing from the documentation and causes gcc to fail as it does not understand the options arch and i686 seperately, on the first run.
Just to note, if you don't need a universal binary of FFTW the commands to install it are simply
$ ./configure
$ make
$ sudo make install

gcc error cannot compile exectables while installing xapian-core

Iam getting the error while installing the gem xapian-core .
It was saying that "configure: error: C compiler cannot create executables
See `config.log' for more details
"
Here is the log file generated.
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by xapian-core configure 1.2.7, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure --prefix=/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1 --exec-prefix=/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1
## --------- ##
## Platform. ##
## --------- ##
hostname = ip-10-28-13-19
uname -m = i686
uname -r = 3.0.0-16-virtual
uname -s = Linux
uname -v = #29-Ubuntu SMP Tue Feb 14 15:04:02 UTC 2012
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/share/ruby-rvm/gems/ruby-1.9.2-p320/bin
PATH: /usr/share/ruby-rvm/gems/ruby-1.9.2-p320#global/bin
PATH: /usr/share/ruby-rvm/rubies/ruby-1.9.2-p320/bin
PATH: /usr/share/ruby-rvm/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/sbin
PATH: /usr/bin
PATH: /sbin
PATH: /bin
PATH: /usr/games
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2767: checking for a BSD-compatible install
configure:2835: result: /usr/bin/install -c
configure:2846: checking whether build environment is sane
configure:2896: result: yes
configure:3037: checking for a thread-safe mkdir -p
configure:3076: result: /bin/mkdir -p
configure:3089: checking for gawk
configure:3119: result: no
configure:3089: checking for mawk
configure:3105: found /usr/bin/mawk
configure:3116: result: mawk
configure:3127: checking whether make sets $(MAKE)
configure:3149: result: yes
configure:3224: checking how to create a ustar tar archive
configure:3237: tar --version
tar (GNU tar) 1.25
Copyright (C) 2010 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.
Written by John Gilmore and Jay Fenlason.
configure:3240: $? = 0
configure:3280: tardir=conftest.dir && eval tar --format=ustar -chf - "$tardir" >conftest.tar
configure:3283: $? = 0
configure:3287: tar -xf - <conftest.tar
configure:3290: $? = 0
configure:3303: result: gnutar
configure:3347: checking build system type
configure:3361: result: i686-pc-linux-gnu
configure:3381: checking host system type
configure:3394: result: i686-pc-linux-gnu
configure:3435: checking how to print strings
configure:3462: result: printf
configure:3495: checking for style of include used by make
configure:3523: result: GNU
configure:3593: checking for gcc
configure:3609: found /usr/bin/gcc
configure:3620: result: gcc
configure:3849: checking for C compiler version
configure:3858: gcc --version >&5
gcc (Ubuntu/Linaro 4.6.1-9ubuntu3) 4.6.1
Copyright (C) 2011 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:3869: $? = 0
configure:3858: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/lib/gcc/i686-linux-gnu/4.6.1/lto-wrapper
Target: i686-linux-gnu
Configured with: ../src/configure -v --with-pkgversion='Ubuntu/Linaro 4.6.1-9ubuntu3' --with-bugurl=file:///usr/share/doc/gcc-4.6/README.Bugs --enable-languages=c,c++,fortran,objc,obj-c++,go --prefix=/usr --program-suffix=-4.6 --enable-shared --enable-linker-build-id --with-system-zlib --libexecdir=/usr/lib --without-included-gettext --enable-threads=posix --with-gxx-include-dir=/usr/include/c++/4.6 --libdir=/usr/lib --enable-nls --with-sysroot=/ --enable-clocale=gnu --enable-libstdcxx-debug --enable-libstdcxx-time=yes --enable-plugin --enable-objc-gc --enable-targets=all --disable-werror --with-arch-32=i686 --with-tune=generic --enable-checking=release --build=i686-linux-gnu --host=i686-linux-gnu --target=i686-linux-gnu
Thread model: posix
gcc version 4.6.1 (Ubuntu/Linaro 4.6.1-9ubuntu3)
configure:3869: $? = 0
configure:3858: gcc -V >&5
gcc: error: unrecognized option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:3869: $? = 4
configure:3858: gcc -qversion >&5
gcc: error: unrecognized option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:3869: $? = 4
configure:3889: checking whether the C compiler works
configure:3911: gcc -R/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/lib conftest.c >&5
gcc: error: unrecognized option '-R'
configure:3915: $? = 1
configure:3953: result: no
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "xapian-core"
| #define PACKAGE_TARNAME "xapian-core"
| #define PACKAGE_VERSION "1.2.7"
| #define PACKAGE_STRING "xapian-core 1.2.7"
| #define PACKAGE_BUGREPORT "http://xapian.org/bugs"
| #define PACKAGE_URL ""
| #define PACKAGE "xapian-core"
| #define VERSION "1.2.7"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3958: error: in `/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7':
configure:3960: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_FOR_BUILD_set=
ac_cv_env_CC_FOR_BUILD_value=
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_CXXCPP_set=
ac_cv_env_CXXCPP_value=
ac_cv_env_CXXFLAGS_set=
ac_cv_env_CXXFLAGS_value=
ac_cv_env_CXX_set=
ac_cv_env_CXX_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=-R/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/lib
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_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=i686-pc-linux-gnu
ac_cv_path_install='/usr/bin/install -c'
ac_cv_path_mkdir=/bin/mkdir
ac_cv_prog_AWK=mawk
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_make_make_set=yes
am_cv_prog_tar_ustar=gnutar
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run aclocal-1.11'
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run tar'
AM_CXXFLAGS=''
ANSI_CXXFLAGS=''
AR=''
AUTOCONF='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run autoconf'
AUTOHEADER='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run autoheader'
AUTOM4TE=''
AUTOMAKE='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run automake-1.11'
AWK='mawk'
BUILD_BACKEND_BRASS_FALSE=''
BUILD_BACKEND_BRASS_OR_CHERT_OR_FLINT_FALSE=''
BUILD_BACKEND_BRASS_OR_CHERT_OR_FLINT_TRUE=''
BUILD_BACKEND_BRASS_TRUE=''
BUILD_BACKEND_CHERT_FALSE=''
BUILD_BACKEND_CHERT_TRUE=''
BUILD_BACKEND_FLINT_FALSE=''
BUILD_BACKEND_FLINT_TRUE=''
BUILD_BACKEND_INMEMORY_FALSE=''
BUILD_BACKEND_INMEMORY_TRUE=''
BUILD_BACKEND_REMOTE_FALSE=''
BUILD_BACKEND_REMOTE_TRUE=''
CC='gcc'
CCDEPMODE=''
CC_FOR_BUILD=''
CFLAGS=''
CPP=''
CPPFLAGS=''
CXX=''
CXXCPP=''
CXXDEPMODE=''
CXXFLAGS=''
CYGPATH_W='echo'
DEFS=''
DEPDIR='.deps'
DLLTOOL=''
DOCUMENTATION_RULES_FALSE=''
DOCUMENTATION_RULES_TRUE=''
DOT=''
DOXYGEN=''
DOXYGEN_DOT_PATH=''
DSYMUTIL=''
DUMPBIN=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
FGREP=''
GREP=''
HELP2MAN=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD=''
LDFLAGS='-R/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/lib'
LIBOBJS=''
LIBRARY_VERSION_INFO='26:1:4'
LIBRARY_VERSION_SUFFIX=''
LIBS=''
LIBTOOL=''
LIPO=''
LN_S=''
LTLIBOBJS=''
MAINT=''
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE=''
MAINTAINER_NO_DOCS_FALSE=''
MAINTAINER_NO_DOCS_TRUE=''
MAKEINDEX=''
MAKEINFO='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/missing --run makeinfo'
MANIFEST_TOOL=''
MKDIR_P='/bin/mkdir -p'
NM=''
NMEDIT=''
OBJDUMP=''
OBJEXT=''
OTOOL64=''
OTOOL=''
PACKAGE='xapian-core'
PACKAGE_BUGREPORT='http://xapian.org/bugs'
PACKAGE_NAME='xapian-core'
PACKAGE_STRING='xapian-core 1.2.7'
PACKAGE_TARNAME='xapian-core'
PACKAGE_URL=''
PACKAGE_VERSION='1.2.7'
PATH_SEPARATOR=':'
PERL=''
PNGCRUSH=''
QUIET=''
RANLIB=''
RST2HTML=''
SED=''
SET_MAKE=''
SHELL='/bin/bash'
SHLIBEXT=''
STLPORT_CXXFLAGS=''
STLPORT_INCLUDE=''
STLPORT_LIBS=''
STRIP=''
USE_WIN32_UUID_API_FALSE=''
USE_WIN32_UUID_API_TRUE=''
USE_ZLIB_VG_FALSE=''
USE_ZLIB_VG_TRUE=''
VALGRIND=''
VERSION='1.2.7'
VPATH_BUILD_FALSE=''
VPATH_BUILD_TRUE=''
XAPIAN_LDFLAGS=''
ac_ct_AR=''
ac_ct_CC='gcc'
ac_ct_CXX=''
ac_ct_DUMPBIN=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE=''
am__fastdepCC_FALSE=''
am__fastdepCC_TRUE=''
am__fastdepCXX_FALSE=''
am__fastdepCXX_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__quote=''
am__tar='tar --format=ustar -chf - "$$tardir"'
am__untar='tar -xf -'
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias=''
build_cpu='i686'
build_os='linux-gnu'
build_vendor='pc'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1'
host='i686-pc-linux-gnu'
host_alias=''
host_cpu='i686'
host_os='linux-gnu'
host_vendor='pc'
htmldir='${docdir}'
incdir='${prefix}/include'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1/ext/xapian-core-1.2.7/install-sh'
ldflags=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
link_all_deplibs_CXX=''
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='/bin/mkdir -p'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/ubuntu/.bundler/tmp/1841/gems/xapian-core-1.2.7.1'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "xapian-core"
#define PACKAGE_TARNAME "xapian-core"
#define PACKAGE_VERSION "1.2.7"
#define PACKAGE_STRING "xapian-core 1.2.7"
#define PACKAGE_BUGREPORT "http://xapian.org/bugs"
#define PACKAGE_URL ""
#define PACKAGE "xapian-core"
#define VERSION "1.2.7"
configure: exit 77
Thanks for the help in advance
This ticket on github had some helpful links: a patch you can apply and an alternative more-up-to-date version of the xapian-full gem: https://github.com/danmunn/redmine_dmsf/issues/62
Apparently your gcc isn't letting you specify library search paths with -R. If you can find the offending line (looks like it's compiling conftest.c in xapian-core's source) and change -R to -Wl,-R, it may work.
This thread is relevant.

Resources