Mountain Lion X11 libraries can't ./configure - macos

I'm trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here .
I'm using cabal to get required X11 libraries cabal install X11-1.5.0.1.
That didn't work, so I got the tar and tried building it with ghc, same error. It won't configure:
Resolving dependencies...
Configuring X11-1.5.0.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.outchecking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for X... no
configure: error: in `/private/var/folders/vr/6swz_qtn60q0ld9lp_pbdqk80000gn/T/X11-1.5.0.1-78620/X11-1.5.0.1':
configure: error: X11 libraries not found, so X11 package cannot be built
See `config.log' for more details
cabal: Error: some packages failed to install:X11-1.5.0.1 failed during the configure step. The exception was:ExitFailure 1
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 Haskell X11 package configure 1.4.6, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ configure --with-hc=ghc --with-gcc=/usr/bin/gcc
## --------- ##
## Platform. ##
## --------- ##
hostname = ilikeplantss-MacBook.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
/usr/bin/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 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 96 tasks, 410 threads, 2 processors
Load average: 1.90, Mach factor: 0.72
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2169: checking for gcc
configure:2185: found /usr/bin/gcc
configure:2196: result: gcc
configure:2425: checking for C compiler version
configure:2434: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.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:2445: $? = 0
configure:2434: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/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.11~28/dst-llvmCore/Developer/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.11.00)
configure:2445: $? = 0
configure:2434: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2445: $? = 1
configure:2434: gcc -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2445: $? = 1
configure:2465: checking whether the C compiler works
configure:2487: gcc -m32 conftest.c >&5
configure:2491: $? = 0
configure:2539: result: yes
configure:2542: checking for C compiler default output file name
configure:2544: result: a.out
configure:2550: checking for suffix of executables
configure:2557: gcc -o conftest -m32 conftest.c >&5
configure:2561: $? = 0
configure:2583: result:
configure:2605: checking whether we are cross compiling
configure:2613: gcc -o conftest -m32 conftest.c >&5
configure:2617: $? = 0
configure:2624: ./conftest
configure:2628: $? = 0
configure:2643: result: no
configure:2648: checking for suffix of object files
configure:2670: gcc -c -m32 conftest.c >&5
configure:2674: $? = 0
configure:2695: result: o
configure:2699: checking whether we are using the GNU C compiler
configure:2718: gcc -c -m32 conftest.c >&5
configure:2718: $? = 0
configure:2727: result: yes
configure:2736: checking whether gcc accepts -g
configure:2756: gcc -c -g conftest.c >&5
configure:2756: $? = 0
configure:2797: result: yes
configure:2814: checking for gcc option to accept ISO C89
configure:2878: gcc -c -m32 conftest.c >&5
configure:2878: $? = 0
configure:2891: result: none needed
configure:2917: checking how to run the C preprocessor
configure:2948: gcc -E conftest.c
configure:2948: $? = 0
configure:2962: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2962: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2987: result: gcc -E
configure:3007: gcc -E conftest.c
configure:3007: $? = 0
configure:3021: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3021: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3050: checking for X
configure:3158: gcc -E conftest.c
conftest.c:9:22: error: X11/Xlib.h: No such file or directory
configure:3158: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <X11/Xlib.h>
configure:3189: gcc -o conftest -m32 conftest.c -lX11 >&5
conftest.c:9:22: error: X11/Xlib.h: No such file or directory
configure:3189: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <X11/Xlib.h>
| int
| main ()
| {
| XrmInitialize ()
| ;
| return 0;
| }
configure:3228: result: no
configure:3744: gcc -E conftest.c
conftest.c:10:22: error: X11/Xlib.h: No such file or directory
configure:3744: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| #define X_DISPLAY_MISSING 1
| /* end confdefs.h. */
| #include <X11/Xlib.h>
configure:3759: error: in `/Users/gav/Desktop/X11-1.6.0':
configure:3761: error: X11 libraries not found, so X11 package cannot be built
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-m32
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_XMKMF_set=
ac_cv_env_XMKMF_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_have_x=have_x=no
ac_cv_objext=o
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
BUILD_PACKAGE_BOOL=''
CC='gcc'
CFLAGS='-m32'
CPP='gcc -E'
CPPFLAGS=' -INONE'
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBRARIES=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='dons#galois.com'
PACKAGE_NAME='Haskell X11 package'
PACKAGE_STRING='Haskell X11 package 1.4.6'
PACKAGE_TARNAME='X11'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.6'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
X11_BUILD_PACKAGE=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
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 "Haskell X11 package"
#define PACKAGE_TARNAME "X11"
#define PACKAGE_VERSION "1.4.6"
#define PACKAGE_STRING "Haskell X11 package 1.4.6"
#define PACKAGE_BUGREPORT "dons#galois.com"
#define PACKAGE_URL ""
#define X_DISPLAY_MISSING 1
configure: exit 1
Is there something I need to add to correct the paths to point to Xquartz libraries?

The toolchain won't find X11 in /opt. You need to either install X11 to a place where it can be found by the compiler/linker by default, or pass relevant -I and -L flags down to the corresponding tools. I hear this works:
env CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" your-build-command
though I personally just symlink everything to /usr/{lib,include}.

Related

Conflict between gcc and clang when compiling a code on Mac Osx El Capitan

I was compiling a code (wgrib) which needs C and Fortran. I have installed Xcode 7.3.1 and the relative command line tools for Xcode 7.3 on my MacOsx El Capitan.
I'm pasting the command line and the config.log after compiling wgrib (which failed).
export CC=/usr/bin/gcc
export FC=/usr/local/bin/gfortran
sudo make wgrib
makefile:362: *** ERROR, fortran compiler (enironment vararible FC) is not recognized. Stop.
vi 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 libaec configure 1.0.0, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --disable-shared --prefix=/usr/local/grib2
## --------- ##
## Platform. ##
## --------- ##
hostname = IMac-Arianna.local
uname -m = x86_64
uname -r = 15.6.0
uname -s = Darwin
uname -v = Darwin Kernel Version 15.6.0: Fri Feb 17 10:21:18 PST 2017; root:xnu-3248.60.11.4.1~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 15.6.0: Fri Feb 17 10:21:18 PST 2017; root:xnu-3248.60.11.4.1~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: 4.00 gigabytes
Default processor set: 232 tasks, 903 threads, 2 processors
Load average: 4.19, Mach factor: 0.54
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /Library/Frameworks/Python.framework/Versions/3.5/bin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /Library/Frameworks/GDAL.framework/Programs
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: .
PATH: /Users/arianna/seadas6.1/scripts
PATH: /Users/arianna/seadas6.1/bin
PATH: .
PATH: /Users/arianna/seadas6.1/src/lib3/hdf4/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
PATH: /Library/TeX/texbin
PATH: /Applications/itt/idl/idl80/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2430: checking build system type
configure:2444: result: x86_64-apple-darwin15.6.0
configure:2464: checking host system type
configure:2477: result: x86_64-apple-darwin15.6.0
configure:2518: checking how to print strings
configure:2545: result: printf
configure:2617: checking for gcc
configure:2644: result: /usr/bin/gcc
configure:2873: checking for C compiler version
configure:2882: /usr/bin/gcc --version >&5
Apple LLVM version 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:2893: $? = 0
configure:2882: /usr/bin/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 7.3.0 (clang-703.0.31)
Target: x86_64-apple-darwin15.6.0
Thread model: posix
InstalledDir: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin
configure:2893: $? = 0
configure:2882: /usr/bin/gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2893: $? = 1
configure:2882: /usr/bin/gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:2893: $? = 1
configure:2913: checking whether the C compiler works
configure:2935: /usr/bin/gcc -I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include conftest.c >&5
clang: error: unsupported option '--fast-math'
clang: error: unsupported option '-fopenmp'
clang: error: unsupported option '-fopenmp'
configure:2939: $? = 1
configure:2977: result: no
configure: failed program was:
| /* confdefs.h */
| /* confdefs.h */
| #define PACKAGE_NAME "libaec"
| #define PACKAGE_TARNAME "libaec"
| #define PACKAGE_VERSION "1.0.0"
| #define PACKAGE_STRING "libaec 1.0.0"
| #define PACKAGE_BUGREPORT "rosenhauer#dkrz.de"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:2982: error: in `/usr/local/grib2/libaec-1.0.0':
configure:2984: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin15.6.0
ac_cv_env_CC_set=set
ac_cv_env_CC_value=/usr/bin/gcc
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include '
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_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=
AMDEP_TRUE=''
AMTAR=''
AM_BACKSLASH=''
AM_DEFAULT_V=''
AM_DEFAULT_VERBOSITY=''
AM_V=''
AR=''
AUTOCONF=''
AUTOHEADER=''
AUTOMAKE=''
AWK=''
CC='/usr/bin/gcc'
CCDEPMODE=''
CFLAGS='-I/usr/local/grib2/include -Wall -Wmissing-prototypes -Wold-style-definition -Werror=format-security --fast-math -O3 -DGFORTRAN -fopenmp -I/usr/local/grib2/jasper-1.900.1/src/libjasper/include -I/usr/include '
CFLAG_VISIBILITY=''
CPP=''
CPPFLAGS=''
CYGPATH_W=''
DEFS=''
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p=''
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local/grib2'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
pdfdir='${docdir}'
prefix='/usr/local/grib2'
program_transform_name='s,x,x,'
psdir='${docdir}'
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "libaec"
#define PACKAGE_TARNAME "libaec"
#define PACKAGE_VERSION "1.0.0"
#define PACKAGE_STRING "libaec 1.0.0"
#define PACKAGE_BUGREPORT "rosenhauer#dkrz.de"
#define PACKAGE_URL ""
configure: exit 77
You're using clang, not the GNU gcc, as noted by the output:
/usr/bin/gcc --version
Apple LLVM version 7.3.0 (clang-703.0.31)
libaec is known to have compatibility issues with clang, using the real gcc instead should fix your problem:
brew install gcc
export CC=gcc-9 # Use the version listed in `ls /usr/local/bin/gcc-*`, not clang gcc
export FC=gfortran
make

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: C compiler cannot create executables on Mac OSX 10.7.5 Lion

I have a similar problem to c compiler cannot create executable on mac. It looks like the final suggestion on that thread was to uninstall gcc. Is there any way around this without uninstalling gcc? I seem to remember installing gcc to make another piece of software work properly, and I'm afraid uninstalling it may cause other issues.
Any advice would be much appreciated!
Here is more information:
I'm running OSX 10.7.5 Lion, I have GCC version 4.2.1, and XCode 4.4.1 with the Command Line Tools installed.
I was trying to install an IRAF package called cfitsio when this error occurred, following the directions at http://heasarc.gsfc.nasa.gov/fitsio/mac_universal_binary.html:
unpack the cfitsio source code tar file
cd cfitsio
setenv CFLAGS "-arch ppc -arch i386 -g -O2"
Then proceed with the standard cfitsio build, i.e.:
./configure
make
make install
The problem is that I get errors at the ./configure step, having to do with gcc. Here is the config.log:
--------------Begin 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.69. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = vpnls09.ctio.noao.edu
uname -m = x86_64
uname -r = 11.4.2
uname -s = Darwin
uname -v = Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~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.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/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: 165 tasks, 1106 threads, 8 processors
Load average: 0.39, Mach factor: 7.60
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: .
PATH: /Users/kaleida/anaconda/bin
PATH: /Users/kaleida/bin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /sw/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2107: checking build system type
configure:2121: result: x86_64-apple-darwin11.4.2
configure:2141: checking host system type
configure:2154: result: x86_64-apple-darwin11.4.2
configure:2174: checking target system type
configure:2187: result: x86_64-apple-darwin11.4.2
configure:2348: checking for gcc
configure:2364: found /usr/bin/gcc
configure:2375: result: gcc
configure:2604: checking for C compiler version
configure:2613: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.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:2624: $? = 0
configure:2613: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/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.11~28/dst-llvmCore/Developer/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.11.00)
configure:2624: $? = 0
configure:2613: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2624: $? = 1
configure:2613: gcc -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2624: $? = 1
configure:2644: checking whether the C compiler works
configure:2666: gcc -arch ppc -arch i386 -g -O2 conftest.c >&5
llvm-gcc-4.2: error trying to exec '/usr/bin/../llvm-gcc-4.2/bin/powerpc-apple-darwin11-llvm-gcc-4.2': execvp: No such file or directory
lipo: can't figure out the architecture type of: /var/folders/23/wqjyjh2s0fb4_kss3f9cr_zc0000gn/T//ccFUu7Aa.out
configure:2670: $? = 255
configure:2708: result: no
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:2713: error: in `/Users/kaleida/src/cfitsio':
configure:2715: error: C compiler cannot create executables
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=x86_64-apple-darwin11.4.2
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-arch ppc -arch i386 -g -O2'
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_host=x86_64-apple-darwin11.4.2
ac_cv_prog_ac_ct_CC=gcc
ac_cv_target=x86_64-apple-darwin11.4.2
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR=''
ARCH=''
ARCHIVE=''
CC='gcc'
CFITSIO_MAJOR='3'
CFITSIO_MINOR='37'
CFITSIO_SHLIB=''
CFITSIO_SHLIB_SONAME=''
CFITSIO_SONAME='2'
CFLAGS='-arch ppc -arch i386 -g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
F77_WRAPPERS=''
FC=''
GCCVERSION=''
GREP=''
INSTALL_ROOT=''
LDFLAGS=''
LIBOBJS=''
LIBPRE=''
LIBS=''
LTLIBOBJS=''
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
RANLIB=''
SHELL='/bin/sh'
SHLIB_LD=''
SHLIB_SUFFIX=''
SSE_FLAGS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin11.4.2'
build_alias=''
build_cpu='x86_64'
build_os='darwin11.4.2'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE}'
dvidir='${docdir}'
exec_prefix='NONE'
host='x86_64-apple-darwin11.4.2'
host_alias=''
host_cpu='x86_64'
host_os='darwin11.4.2'
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'
mandir='${datarootdir}/man'
my_shmem=''
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='x86_64-apple-darwin11.4.2'
target_alias=''
target_cpu='x86_64'
target_os='darwin11.4.2'
target_vendor='apple'
## ----------- ##
## 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
--------------End config.log----------------------
Here is some more information about gcc on my machine:
[vpnls09:~] kaleida% which gcc
/usr/bin/gcc
[vpnls09:~] kaleida% gcc -version
i686-apple-darwin11-llvm-gcc-4.2: no input files
[vpnls09:~] kaleida% gcc --version
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
I also tested gcc with a "Hello World" script:
[vpnls09:~/src] kaleida% more hello.c
/* hello.c - demo for os x */
#include<stdio.h>
int main(void){
printf("Hello world\n");
return 0;
}
[vpnls09:~/src] kaleida% gcc -o hello.o -c hello.c
[vpnls09:~/src] kaleida% make hello
cc hello.o -o hello
[vpnls09:~/src] kaleida% ./hello
Hello world
Any ideas for how to fix this issue?
Thanks in advance!

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

Configure error with Mac OS X 10.8.5 Xcode 5.0.2: clang: error: argument to '-V' is missing (expected 1 value) clang: error: no input files

on MacOSX 10.8.5, after upgrading to Xcode 5.0.2 (and upgrading/installing the Command Line Tools (from within Xcode preferences) I was installing FFTW 3.3.3 and Open MPI 1.6.5 by configuring them from the sources. I get the same type of error in both config.log files in the configure step, which shows the problem is not with the programs as I downloaded them from the official websites.
In short, the first error I see in the both logs is:
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
when I type:
alexey-sorokin:local admin$ gcc --version
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
when I type some commands to check what is the problem I get similar error to the log:
alexey-sorokin:local admin$ gcc -V
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
alexey-sorokin:local admin$ clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
alexey-sorokin:local admin$ which clang
/usr/bin/clang
alexey-sorokin:local admin$ gcc
clang: error: no input files
See my config.log file for FFTW3.3.3 installation below. The log for OpenMPI1.6.5 looks very similar, I can upload it in the next message if needed. I could not upload the ful log in the body so I made it shorter.
Any help/insights much appreciated! Thank you all!
++++CONFIG.LOG+++++FFTW3.3.3installation
It was created by fftw configure 3.3.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local
## --------- ##
## Platform. ##
## --------- ##
hostname = alexey-sorokin
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: 120 tasks, 548 threads, 4 processors
Load average: 1.22, Mach factor: 2.76
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/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 conftest.c >&5
configure:4072: $? = 0
configure:4120: result: yes
configure:4123: checking for C compiler default output file name
configure:4125: result: a.out
configure:4131: checking for suffix of executables
configure:4138: gcc -o conftest conftest.c >&5
configure:4142: $? = 0
configure:4164: result:
configure:4186: checking whether we are cross compiling
configure:4194: gcc -o conftest conftest.c >&5
configure:4198: $? = 0
configure:4205: ./conftest
configure:4209: $? = 0
configure:4224: result: no
configure:4229: checking for suffix of object files
configure:4251: gcc -c conftest.c >&5
configure:4255: $? = 0
configure:4276: result: o
configure:4280: checking whether we are using the GNU C compiler
configure:4299: gcc -c conftest.c >&5
configure:4299: $? = 0
configure:4308: result: yes
configure:4317: checking whether gcc accepts -g
configure:4337: gcc -c -g conftest.c >&5
configure:4337: $? = 0
configure:4378: result: yes
configure:4395: checking for gcc option to accept ISO C89
configure:4458: gcc -c -g -O2 conftest.c >&5
configure:4458: $? = 0
configure:4471: result: none needed
configure:4502: checking for style of include used by make
configure:4530: result: GNU
configure:4556: checking dependency style of gcc
configure:4667: result: gcc3
configure:4683: checking whether gcc and cc understand -c and -o together
configure:4714: gcc -c conftest.c -o conftest2.o >&5
configure:4718: $? = 0
configure:4724: gcc -c conftest.c -o conftest2.o >&5
configure:4728: $? = 0
configure:4739: cc -c conftest.c >&5
configure:4743: $? = 0
configure:4751: cc -c conftest.c -o conftest2.o >&5
configure:4755: $? = 0
configure:4761: cc -c conftest.c -o conftest2.o >&5
configure:4765: $? = 0
configure:4783: result: yes
configure:4810: checking for C compiler vendor
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
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 ()
| {
|
| #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
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 ()
| {
|
| #if !(defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
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 ()
| {
|
| #if !(defined(__PATHCC__) || defined(__PATHSCALE__))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
configure:4834: $? = 0
configure:4841: result: gnu
configure:4848: checking for gcc option to accept ISO C99
configure:4997: gcc -c -g -O2 conftest.c >&5
configure:4997: $? = 0
configure:5010: result: none needed
configure:5118: checking for gcc option to accept ISO Standard C
configure:5129: result: none needed
configure:5137: checking whether ln -s works
configure:5141: result: yes
configure:5148: checking whether make sets $(MAKE)
configure:5170: result: yes
configure:5528: checking how to print strings
configure:5555: result: printf
configure:5576: checking for a sed that does not truncate output
configure:5640: result: /usr/bin/sed
configure:5658: checking for grep that handles long lines and -e
configure:5716: result: /usr/bin/grep
configure:5721: checking for egrep
configure:5783: result: /usr/bin/grep -E
configure:5788: checking for fgrep
configure:5850: result: /usr/bin/grep -F
configure:5885: checking for ld used by gcc
configure:5952: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:5959: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:5974: result: no
configure:5986: checking for BSD- or MS-compatible name lister (nm)
configure:6035: result: /usr/bin/nm
configure:6165: checking the name lister (/usr/bin/nm) interface
configure:6172: gcc -c -g -O2 conftest.c >&5
configure:6175: /usr/bin/nm "conftest.o"
configure:6178: output
0000000000000208 S _some_variable
configure:6185: result: BSD nm
configure:6189: checking the maximum length of command line arguments
configure:6319: result: 196608
configure:6336: checking whether the shell understands some XSI constructs
configure:6346: result: yes
configure:6350: checking whether the shell understands "+="
configure:6356: result: yes
configure:6391: checking how to convert x86_64-apple-darwin12.5.0 file names to x86_64-apple-darwin12.5.0 format
configure:6431: result: func_convert_file_noop
configure:6438: checking how to convert x86_64-apple-darwin12.5.0 file names to toolchain format
configure:6458: result: func_convert_file_noop
configure:6465: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
configure:6472: result: -r
configure:6546: checking for objdump
configure:6573: result: objdump
configure:6602: checking how to recognize dependent libraries
configure:6800: result: pass_all
configure:6885: checking for dlltool
configure:6912: result: dlltool
configure:6942: checking how to associate runtime and link libraries
configure:6969: result: printf %s\n
configure:7029: checking for ar
configure:7045: found /usr/bin/ar
configure:7056: result: ar
configure:7093: checking for archiver #FILE support
configure:7110: gcc -c -g -O2 conftest.c >&5
configure:7110: $? = 0
configure:7113: ar cru libconftest.a #conftest.lst >&5
ar: #conftest.lst: No such file or directory
configure:7116: $? = 1
configure:7136: result: no
configure:7194: checking for strip
configure:7210: found /usr/bin/strip
configure:7221: result: strip
configure:7293: checking for ranlib
configure:7309: found /usr/bin/ranlib
configure:7320: result: ranlib
configure:7422: checking command to parse /usr/bin/nm output from gcc object
configure:7542: gcc -c -g -O2 conftest.c >&5
configure:7545: $? = 0
configure:7549: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7552: $? = 0
cannot find nm_test_var in conftest.nm
configure:7542: gcc -c -g -O2 conftest.c >&5
configure:7545: $? = 0
configure:7549: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7552: $? = 0
configure:7618: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:7621: $? = 0
configure:7659: result: ok
configure:7696: checking for sysroot
configure:7726: result: no
configure:7982: checking for mt
configure:8012: result: no
configure:8032: checking if : is a manifest tool
configure:8038: : '-?'
configure:8046: result: no
configure:8102: checking for dsymutil
configure:8118: found /usr/bin/dsymutil
configure:8129: result: dsymutil
configure:8194: checking for nmedit
configure:8210: found /usr/bin/nmedit
configure:8221: result: nmedit
configure:8286: checking for lipo
configure:8302: found /usr/bin/lipo
configure:8313: result: lipo
configure:8378: checking for otool
configure:8394: found /usr/bin/otool
configure:8405: result: otool
configure:8470: checking for otool64
configure:8500: result: no
configure:8545: checking for -single_module linker flag
gcc -g -O2 -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:8578: result: yes
configure:8581: checking for -exported_symbols_list linker flag
configure:8601: gcc -o conftest -g -O2 -Wl,-exported_symbols_list,conftest.sym conftest.c >&5
configure:8601: $? = 0
configure:8611: result: yes
configure:8614: checking for -force_load linker flag
gcc -g -O2 -c -o conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
gcc -g -O2 -o conftest conftest.c -Wl,-force_load,./libconftest.a
configure:8646: result: yes
configure:8688: checking how to run the C preprocessor
configure:8719: gcc -E conftest.c
configure:8719: $? = 0
configure:8733: gcc -E conftest.c
conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:8733: $? = 1
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. */
| #include <ac_nonexistent.h>
configure:8758: result: gcc -E
configure:8778: gcc -E conftest.c
configure:8778: $? = 0
configure:8792: gcc -E conftest.c
conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:8792: $? = 1
configure: failed program was:
| /* confdefs.h */
………….and so on…..below is the end:
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run aclocal-1.11'
ALLOCA=''
ALTIVEC_CFLAGS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AS='as'
AUTOCONF='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run automake-1.11'
AVX_CFLAGS=''
AWK='awk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math'
CHECK_PL_OPTS=''
COMBINED_THREADS_FALSE=''
COMBINED_THREADS_TRUE='#'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
C_FFTW_R2R_KIND='C_INT32_T'
C_MPI_FINT=''
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DLLTOOL='dlltool'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
F77='gfortran'
FFLAGS='-g -O2'
FGREP='/usr/bin/grep -F'
FLIBS=' -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin12/4.8.2 -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin12/4.8.2/../../.. -lgfortran -lquadmath -lm'
GREP='/usr/bin/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='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld'
LDFLAGS=''
LDOUBLE_FALSE=''
LDOUBLE_TRUE='#'
LIBOBJS=''
LIBQUADMATH=''
LIBS='-lm '
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/admin/Downloads/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='/usr/bin/nm'
NMEDIT='nmedit'
OBJDUMP='objdump'
OBJEXT='o'
OCAMLBUILD=''
OPENMP_CFLAGS=''
OPENMP_FALSE=''
OPENMP_TRUE='#'
OTOOL64=':'
OTOOL='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='ranlib'
SED='/usr/bin/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='strip'
THREADLIBS=''
THREADS_FALSE=''
THREADS_TRUE='#'
VERSION='3.3.3'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
ac_ct_F77='gfortran'
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
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='${prefix}'
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/admin/Downloads/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='/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 "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
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define STDC_HEADERS 1
#define HAVE_STDDEF_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIMITS_H 1
#define HAVE_STDINT_H 1
#define HAVE_MACH_MACH_TIME_H 1
#define HAVE_SYS_SYSCTL_H 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_LONG_DOUBLE 1
#define SIZEOF_INT 4
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_LONG 8
#define SIZEOF_UNSIGNED_LONG 8
#define SIZEOF_LONG_LONG 8
#define SIZEOF_UNSIGNED_LONG_LONG 8
#define SIZEOF_SIZE_T 8
#define SIZEOF_PTRDIFF_T 8
#define HAVE_UINTPTR_T 1
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_FFTW_R2R_KIND 4
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define HAVE_VPRINTF 1
#define HAVE_LIBM 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_DRAND48 1
#define HAVE_SQRT 1
#define HAVE_MEMSET 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_MACH_ABSOLUTE_TIME 1
#define HAVE_SYSCTL 1
#define HAVE_ABORT 1
#define HAVE_SINL 1
#define HAVE_COSL 1
#define HAVE_SNPRINTF 1
#define HAVE_DECL_DRAND48 1
#define HAVE_DECL_SRAND48 1
#define HAVE_DECL_MEMALIGN 0
#define HAVE_DECL_POSIX_MEMALIGN 1
#define HAVE_DECL_SINL 1
#define HAVE_DECL_COSL 1
#define HAVE_DECL_SINQ 0
#define HAVE_DECL_COSQ 0
#define HAVE_ISNAN 1
#define F77_FUNC(name,NAME) name ## _
#define F77_FUNC_(name,NAME) name ## _
#define F77_FUNC_EQUIV 1
#define WITH_G77_WRAPPERS 1
#define FFTW_CC "gcc -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math"
configure: exit 0
The problem is, that Apple redirect all GCC calls to clang. Configure thinks it is using GCC and uses an incompatible syntax, thus Clang fails.
You have either look for a more recent version of your tools which fixed the issue. Or you have to look for specific flags to tell configure which compiler to use. Try to set the shell variables CC, CXX or there might be a specific configure flag, ask configure --help
The other possibility would be to install GCC. Using macports or homebrew this is rather simpler. But it could be that one of these offers you MPI and FFTW, so you could use these.

Resources