GCC 5.1.0-4 cross compiler build fail - gcc

I'm following the osdev.org bare metal tutorial, and I'm currently stuck at the cross compiler.! I'm building from an arch distro.
It looks like it might be a problem with isl. I think the tutorial is based on an older version of gcc, cloog, isl, etc, so after a few tries I started over with new sources and left cloog and isl out of the source files (the tutorial says they are optional).
Also, the tutorial says there are compatibility issues with some cloog and isl implementations. I didn't know if that is for the machine I'm building from or if it's for the target, so I only installed cloog on my host machine, which supposedly brought along its own embedded isl according to the cloog page. ! Am I supposed to still install another isl (probably 12.2?) for the build process? Is that even my problem? There are red herring errors in the log, so I'm not sure I'm right to focus on the libisl.so.13 error at line 100 of 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 GNU C Runtime Library configure 1.0, which was
generated by GNU Autoconf 2.64. Invocation command line was
$ /home/imabadass/src/gcc-5.1.0/libgcc/configure --srcdir=../../../gcc-5.1.0/libgcc --cache-file=./config.cache --enable-multilib --with-cross-host=i686-pc-linux-gnu --prefix=/home/imabadass/opt/cross --disable-nls --without-headers --enable-languages=c,c++,lto --program-transform-name=s&^&i686-elf-& --disable-option-checking --with-target-subdir=i686-elf --build=i686-pc-linux-gnu --host=i686-elf --target=i686-elf
## --------- ##
## Platform. ##
## --------- ##
hostname = Worker
uname -m = i686
uname -r = 3.18.0-ARCH
uname -s = Linux
uname -v = #1 SMP PREEMPT Fri Feb 27 20:47:37 CST 2015
/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: /home/imabadass/opt/cross/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /usr/lib/jvm/default/bin
PATH: /usr/bin/site_perl
PATH: /usr/bin/vendor_perl
PATH: /usr/bin/core_perl
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2026: creating cache ./config.cache
configure:2232: checking build system type
configure:2246: result: i686-pc-linux-gnu
configure:2266: checking host system type
configure:2279: result: i686-pc-elf
configure:2382: checking for --enable-version-specific-runtime-libs
configure:2395: result: no
configure:2443: checking for a BSD-compatible install
configure:2511: result: /usr/bin/install -c
configure:2527: checking for gawk
configure:2554: result: gawk
configure:2654: checking for i686-elf-ar
configure:2681: result: /home/imabadass/opt/cross/i686-elf/bin/ar
configure:2746: checking for i686-elf-lipo
configure:2773: result: i686-elf-lipo
configure:2838: checking for i686-elf-nm
configure:2865: result: /home/imabadass/src/build-gcc/./gcc/nm
configure:2930: checking for i686-elf-ranlib
configure:2957: result: /home/imabadass/opt/cross/i686-elf/bin/ranlib
configure:3022: checking for i686-elf-strip
configure:3049: result: /home/imabadass/opt/cross/i686-elf/bin/strip
configure:3111: checking whether ln -s works
configure:3115: result: yes
configure:3132: checking for i686-elf-gcc
configure:3159: result: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include
configure:3428: checking for C compiler version
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include --version >&5
xgcc (GCC) 5.1.0
Copyright (C) 2015 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:3448: $? = 0
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -v >&5
Reading specs from /home/imabadass/src/build-gcc/./gcc/specs
COLLECT_GCC=/home/imabadass/src/build-gcc/./gcc/xgcc
COLLECT_LTO_WRAPPER=/home/imabadass/src/build-gcc/./gcc/lto-wrapper
Target: i686-elf
Configured with: ../gcc-5.1.0/configure --target=i686-elf --prefix=/home/imabadass/opt/cross --disable-nls --enable-languages=c,c++ --without-headers
Thread model: single
gcc version 5.1.0 (GCC)
configure:3448: $? = 0
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -V >&5
xgcc: error: unrecognized command line option '-V'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3437: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -qversion >&5
xgcc: error: unrecognized command line option '-qversion'
xgcc: fatal error: no input files
compilation terminated.
configure:3448: $? = 1
configure:3464: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -o conftest -g -O2 conftest.c >&5
/home/imabadass/src/build-gcc/./gcc/cc1: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
configure:3467: $? = 1
configure:3655: checking for suffix of object files
configure:3677: /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include -c -g -O2 conftest.c >&5
/home/imabadass/src/build-gcc/./gcc/cc1: error while loading shared libraries: libisl.so.13: cannot open shared object file: No such file or directory
configure:3681: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:3695: error: in `/home/imabadass/src/build-gcc/i686-elf/libgcc':
configure:3698: error: cannot compute suffix of object files: cannot compile
See `config.log' for more details.
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i686-pc-linux-gnu
ac_cv_env_CC_set=set
ac_cv_env_CC_value=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-g -O2'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=i686-pc-linux-gnu
ac_cv_env_host_alias_set=set
ac_cv_env_host_alias_value=i686-elf
ac_cv_env_target_alias_set=set
ac_cv_env_target_alias_value=i686-elf
ac_cv_host=i686-pc-elf
ac_cv_path_install='/usr/bin/install -c'
ac_cv_prog_AR=/home/imabadass/opt/cross/i686-elf/bin/ar
ac_cv_prog_AWK=gawk
ac_cv_prog_CC=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
ac_cv_prog_LIPO=i686-elf-lipo
ac_cv_prog_NM=/home/imabadass/src/build-gcc/./gcc/nm
ac_cv_prog_RANLIB=/home/imabadass/opt/cross/i686-elf/bin/ranlib
ac_cv_prog_STRIP=/home/imabadass/opt/cross/i686-elf/bin/strip
## ----------------- ##
## Output variables. ##
## ----------------- ##
AR='/home/imabadass/opt/cross/i686-elf/bin/ar'
AWK='gawk'
CC=' /home/imabadass/src/build-gcc/./gcc/xgcc -B/home/imabadass/src/build-gcc/./gcc/ -B/home/imabadass/opt/cross/i686-elf/bin/ -B/home/imabadass/opt/cross/i686-elf/lib/ -isystem /home/imabadass/opt/cross/i686-elf/include -isystem /home/imabadass/opt/cross/i686-elf/sys-include '
CFLAGS='-g -O2'
CPP=''
CPPFLAGS=''
DEFS=''
ECHO_C=''
ECHO_N='-n'
ECHO_T=''
EGREP=''
EXEEXT=''
GREP=''
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
LDFLAGS=''
LIBOBJS=''
LIBS=''
LIPO='i686-elf-lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
NM='/home/imabadass/src/build-gcc/./gcc/nm'
OBJEXT=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME='GNU C Runtime Library'
PACKAGE_STRING='GNU C Runtime Library 1.0'
PACKAGE_TARNAME='libgcc'
PACKAGE_URL='http://www.gnu.org/software/libgcc/'
PACKAGE_VERSION='1.0'
PATH_SEPARATOR=':'
PICFLAG='-fpic'
RANLIB='/home/imabadass/opt/cross/i686-elf/bin/ranlib'
SHELL='/bin/sh'
STRIP='/home/imabadass/opt/cross/i686-elf/bin/strip'
ac_ct_CC=''
accel_dir_suffix=''
asm_hidden_op=''
bindir='${exec_prefix}/bin'
build='i686-pc-linux-gnu'
build_alias='i686-pc-linux-gnu'
build_cpu='i686'
build_libsubdir='build-i686-pc-linux-gnu'
build_os='linux-gnu'
build_subdir='build-i686-pc-linux-gnu'
build_vendor='pc'
cpu_type=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
decimal_float=''
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
double_type_size=''
dvidir='${docdir}'
enable_decimal_float=''
enable_shared='yes'
enable_vtable_verify='no'
exec_prefix='NONE'
extra_parts=''
fixed_point=''
force_explicit_eh_registry=''
host='i686-pc-elf'
host_alias='i686-elf'
host_cpu='i686'
host_noncanonical='i686-elf'
host_os='elf'
host_subdir='.'
host_vendor='pc'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
libgcc_topdir='../../../gcc-5.1.0/libgcc/..'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
long_double_type_size=''
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/home/imabadass/opt/cross'
program_transform_name='s&^&i686-elf-&'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
set_have_cc_tls=''
set_use_emutls=''
sfp_machine_header=''
sharedstatedir='${prefix}/com'
slibdir='$(exec_prefix)/$(host_noncanonical)/lib'
sysconfdir='${prefix}/etc'
target_alias='i686-elf'
target_noncanonical='i686-elf'
target_subdir='i686-elf'
thread_header=''
tm_defines=''
tm_file=''
tmake_file=''
toolexecdir='$(exec_prefix)/$(target_noncanonical)'
toolexeclibdir='$(toolexecdir)/lib'
vis_hide=''
with_aix_soname='aix'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "GNU C Runtime Library"
#define PACKAGE_TARNAME "libgcc"
#define PACKAGE_VERSION "1.0"
#define PACKAGE_STRING "GNU C Runtime Library 1.0"
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL "http://www.gnu.org/software/libgcc/"
configure: exit 1
This is the first time I haven't found my answer from searching, so sorry about any noobie poster problems.

My understanding is that gcc-5.x no longer requires CLooG. It's recommended that you use isl-0.14 available here or here. You might find the current (gcc-5.1) instructions at Linux from Scratch helpful. There are a lot of configure options, as you are no doubt aware, so it's difficult to know the best options for your build, particularly if you're building a 'stage 1' (freestanding) gcc.

Related

Compiler not working when installing latest version of Ruby on Mac M1

I am trying to install Jekyll on my mac m1, but I cannot because the Ruby m1 macs come with is not up to date. I'm trying to update Ruby to 3.2.0 or to any useable version but this comes up:
checking whether the C compiler works... no
configure: error: in `/Users/OliviaLee/src/ruby-3.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
!!! Configuration of ruby 3.2.0 failed!
Here is the config.log file:
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.71. Invocation command line was
$ ./configure --prefix=/Users/OliviaLee/.rubies/ruby-3.2.0 --with-opt-dir=/opt/homebrew/opt/openssl#1.1:/opt/homebrew/opt/readline:/opt/homebrew/opt/libyaml:/opt/homebrew/opt/gdbm
## --------- ##
## Platform. ##
## --------- ##
hostname = MacBook-Pro-162.local
uname -m = arm64
uname -r = 22.2.0
uname -s = Darwin
uname -v = Darwin Kernel Version 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
/usr/bin/uname -p = arm
/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 22.2.0: Fri Nov 11 02:04:44 PST 2022; root:xnu-8792.61.2~4/RELEASE_ARM64_T8103
Kernel configured for up to 8 processors.
8 processors are physically available.
8 processors are logically available.
Processor type: arm64e (ARM64E)
Processors active: 0 1 2 3 4 5 6 7
Primary memory available: 8.00 gigabytes
Default processor set: 440 tasks, 2772 threads, 8 processors
Load average: 10.08, Mach factor: 1.78
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /Users/OliviaLee/.rbenv/shims/
PATH: /opt/homebrew/bin/
PATH: /opt/homebrew/sbin/
PATH: /Library/Frameworks/Python.framework/Versions/3.9/bin/
PATH: /Users/OliviaLee/opt/anaconda3/bin/
PATH: /Users/OliviaLee/opt/anaconda3/condabin/
PATH: /usr/local/bin/
PATH: /System/Cryptexes/App/usr/bin/
PATH: /usr/bin/
PATH: /bin/
PATH: /usr/sbin/
PATH: /sbin/
PATH: /Library/Apple/usr/bin/
## ----------- ##
## Core tests. ##
## ----------- ##
configure:3464: looking for aux files: install-sh config.guess config.sub
configure:3477: trying ./tool/
configure:3488: ./tool/install-sh found
configure:3506: ./tool/config.guess found
configure:3506: ./tool/config.sub found
configure:3698: checking for ruby
configure:3721: found /usr/bin/ruby
configure:3734: result: /usr/bin/ruby
configure:3859: checking build system type
configure:3874: result: x86_64-apple-darwin13.4.0
configure:3894: checking host system type
configure:3908: result: x86_64-apple-darwin13.4.0
configure:3928: checking target system type
configure:3942: result: x86_64-apple-darwin13.4.0
configure:4403: checking for x86_64-apple-darwin13.4.0-cl.exe
configure:4435: result: clang
configure:4956: checking for llvm-ar
configure:4988: result: x86_64-apple-darwin13.4.0-ar
configure:5002: checking for clang++
configure:5034: result: x86_64-apple-darwin13.4.0-clang++
configure:5047: checking for llvm-nm
configure:5079: result: x86_64-apple-darwin13.4.0-nm
configure:5092: checking for llvm-objcopy
configure:5113: found /Users/OliviaLee/opt/anaconda3/bin/llvm-objcopy
configure:5124: result: llvm-objcopy
configure:5137: checking for llvm-objdump
configure:5158: found /Users/OliviaLee/opt/anaconda3/bin/llvm-objdump
configure:5169: result: llvm-objdump
configure:5182: checking for llvm-ranlib
configure:5214: result: x86_64-apple-darwin13.4.0-ranlib
configure:5227: checking for llvm-strip
configure:5259: result: x86_64-apple-darwin13.4.0-strip
configure:5536: checking for x86_64-apple-darwin13.4.0-gcc
configure:5568: result: clang
configure:5966: checking for C compiler version
configure:5975: clang --version >&5
clang version 12.0.0
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Users/OliviaLee/opt/anaconda3/bin
configure:5986: $? = 0
configure:5975: clang -v >&5
clang version 12.0.0
Target: x86_64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Users/OliviaLee/opt/anaconda3/bin
configure:5986: $? = 0
configure:5975: clang -V >&5
clang-12: error: argument to '-V' is missing (expected 1 value)
clang-12: error: no input files
configure:5986: $? = 1
configure:5975: clang -qversion >&5
clang-12: error: unknown argument '-qversion'; did you mean '--version'?
clang-12: error: no input files
configure:5986: $? = 1
configure:5975: clang -version >&5
clang-12: error: unknown argument '-version'; did you mean '--version'?
clang-12: error: no input files
configure:5986: $? = 1
configure:6006: checking whether the C compiler works
configure:6028: clang -march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include -D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include -Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib conftest.c >&5
ld: unsupported tapi file type '!tapi-tbd' in YAML file '/Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib/libSystem.tbd' for architecture x86_64
clang-12: error: linker command failed with exit code 1 (use -v to see invocation)
configure:6032: $? = 1
configure:6072: 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 (void)
| {
|
| ;
| return 0;
| }
configure:6077: error: in `/Users/OliviaLee/src/ruby-3.2.0':
configure:6079: 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_AR_set=set
ac_cv_env_AR_value=x86_64-apple-darwin13.4.0-ar
ac_cv_env_AS_set=set
ac_cv_env_AS_value=x86_64-apple-darwin13.4.0-as
ac_cv_env_CCC_set=
ac_cv_env_CCC_value=
ac_cv_env_CC_set=set
ac_cv_env_CC_value=clang
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CPPFLAGS_set=set
ac_cv_env_CPPFLAGS_value='-D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_CXXFLAGS_set=set
ac_cv_env_CXXFLAGS_value='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/OliviaLee/opt/anaconda3/include'
ac_cv_env_CXX_set=set
ac_cv_env_CXX_value=x86_64-apple-darwin13.4.0-clang++
ac_cv_env_LDFLAGS_set=set
ac_cv_env_LDFLAGS_value='-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib'
ac_cv_env_LD_set=set
ac_cv_env_LD_value=x86_64-apple-darwin13.4.0-ld
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_NM_set=set
ac_cv_env_NM_value=x86_64-apple-darwin13.4.0-nm
ac_cv_env_OBJCOPY_set=
ac_cv_env_OBJCOPY_value=
ac_cv_env_OBJDUMP_set=
ac_cv_env_OBJDUMP_value=
ac_cv_env_RANLIB_set=set
ac_cv_env_RANLIB_value=x86_64-apple-darwin13.4.0-ranlib
ac_cv_env_STRIP_set=set
ac_cv_env_STRIP_value=x86_64-apple-darwin13.4.0-strip
ac_cv_env_build_alias_set=set
ac_cv_env_build_alias_value=x86_64-apple-darwin13.4.0
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_host_alias_set=set
ac_cv_env_host_alias_value=x86_64-apple-darwin13.4.0
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_func_malloc_0_nonnull=yes
ac_cv_func_realloc_0_nonnull=yes
ac_cv_host=x86_64-apple-darwin13.4.0
ac_cv_path_BASERUBY=/usr/bin/ruby
ac_cv_prog_AR=x86_64-apple-darwin13.4.0-ar
ac_cv_prog_CC=clang
ac_cv_prog_CXX=x86_64-apple-darwin13.4.0-clang++
ac_cv_prog_NM=x86_64-apple-darwin13.4.0-nm
ac_cv_prog_OBJCOPY=llvm-objcopy
ac_cv_prog_OBJDUMP=llvm-objdump
ac_cv_prog_RANLIB=x86_64-apple-darwin13.4.0-ranlib
ac_cv_prog_STRIP=x86_64-apple-darwin13.4.0-strip
ac_cv_target=x86_64-apple-darwin13.4.0
## ----------------- ##
## Output variables. ##
## ----------------- ##
ADDITIONAL_DLDFLAGS=''
ALLOCA=''
AR='x86_64-apple-darwin13.4.0-ar'
ARCHFILE=''
ARCH_FLAG=''
ARFLAGS=''
AS='x86_64-apple-darwin13.4.0-as'
ASFLAGS=''
ASMEXT=''
BASERUBY='/usr/bin/ruby --disable=gems'
BTESTRUBY=''
BUILTIN_ENCOBJS=''
BUILTIN_TRANSOBJS=''
BUILTIN_TRANSSRCS=''
CAPITARGET=''
CARGO=''
CARGO_BUILD_ARGS=''
CC='clang'
CCDLFLAGS=''
CC_VERSION=''
CC_VERSION_MESSAGE=''
CC_WRAPPER=''
CFLAGS='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -isystem /Users/OliviaLee/opt/anaconda3/include'
CHDIR=''
COMMON_HEADERS=''
COMMON_LIBS=''
COMMON_MACROS=''
CONFIGURE=''
COROUTINE_TYPE=''
COUTFLAG=''
CP=''
CPP=''
CPPFLAGS='-D_FORTIFY_SOURCE=2 -isystem /Users/OliviaLee/opt/anaconda3/include'
CPPOUTFILE=''
CROSS_COMPILING=''
CSRCFLAG=''
CXX='x86_64-apple-darwin13.4.0-clang++'
CXXFLAGS='-march=core2 -mtune=haswell -mssse3 -ftree-vectorize -fPIC -fPIE -fstack-protector-strong -O2 -pipe -stdlib=libc++ -fvisibility-inlines-hidden -std=c++14 -fmessage-length=0 -isystem /Users/OliviaLee/opt/anaconda3/include'
DEFS=''
DESTDIR=''
DLDFLAGS=''
DLDLIBS=''
DLDSHARED=''
DLEXT=''
DLLWRAP=''
DLNOBJ=''
DOT=''
DOXYGEN=''
DTRACE=''
DTRACE_EXT=''
DTRACE_OBJ=''
DTRACE_OPT=''
DTRACE_REBUILD=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
ENABLE_DEBUG_ENV=''
ENABLE_SHARED=''
ENCOBJS=''
ENCSTATIC=''
EXECUTABLE_EXTS=''
EXEEXT=''
EXPORT_PREFIX=''
EXTDLDFLAGS=''
EXTLDFLAGS=''
EXTOBJS=''
EXTOUT=''
EXTSTATIC=''
GCC=''
GIT='git'
GNU_LD=''
GREP=''
HAVE_BASERUBY='yes'
HAVE_GIT='yes'
INSTALLDOC=''
INSTALL_DATA=''
INSTALL_PROGRAM=''
INSTALL_SCRIPT=''
INSTALL_STATIC_LIBRARY=''
LD='x86_64-apple-darwin13.4.0-ld'
LDFLAGS='-Wl,-pie -Wl,-headerpad_max_install_names -Wl,-dead_strip_dylibs -Wl,-rpath,/Users/OliviaLee/opt/anaconda3/lib -L/Users/OliviaLee/opt/anaconda3/lib'
LDSHARED=''
LDSHAREDXX=''
LIBEXT=''
LIBOBJS=''
LIBPATHENV=''
LIBPATHFLAG=''
LIBRUBY=''
LIBRUBYARG=''
LIBRUBYARG_SHARED=''
LIBRUBYARG_STATIC=''
LIBRUBY_A=''
LIBRUBY_ALIASES=''
LIBRUBY_A_OBJS=''
LIBRUBY_DLDFLAGS=''
LIBRUBY_LDSHARED=''
LIBRUBY_RELATIVE=''
LIBRUBY_SO=''
LIBRUBY_SONAME=''
LIBS=''
LINK_SO=''
LN_S=''
LTLIBOBJS=''
MAINLIBS=''
MAJOR='3'
MAKEDIRS=''
MAKEFILES=''
MANTYPE=''
MINIOBJS=''
MINIRUBY=''
MINOR='2'
MJIT_CC=''
MJIT_CFLAGS=''
MJIT_DEBUGFLAGS=''
MJIT_HEADER_FLAGS=''
MJIT_HEADER_INSTALL_DIR=''
MJIT_LDSHARED=''
MJIT_OPTFLAGS=''
MJIT_SUPPORT=''
MJIT_TABS=''
MKDIR_P=''
MKMF_VERBOSE=''
NM='x86_64-apple-darwin13.4.0-nm'
NULLCMD=''
OBJCOPY='llvm-objcopy'
OBJDUMP='llvm-objdump'
OBJEXT=''
OUTFLAG=''
PACKAGE=''
PACKAGE_BUGREPORT=''
PACKAGE_NAME=''
PACKAGE_STRING=''
PACKAGE_TARNAME=''
PACKAGE_URL=''
PACKAGE_VERSION=''
PATH_SEPARATOR=':'
PKG_CONFIG=''
PLATFORM_DIR=''
POSTLINK=''
PRELOADENV=''
PREP=''
RANLIB='x86_64-apple-darwin13.4.0-ranlib'
RDOCTARGET=''
RI_BASE_NAME=''
RM=''
RMALL=''
RMDIR=''
RMDIRS=''
RPATHFLAG=''
RUBYW_BASE_NAME='rubyw'
RUBYW_INSTALL_NAME=''
RUBY_API_VERSION='$(MAJOR).$(MINOR)'
RUBY_BASE_NAME='ruby'
RUBY_DEVEL=''
RUBY_EXEC_PREFIX=''
RUBY_INSTALL_NAME=''
RUBY_LIB_VERSION=''
RUBY_LIB_VERSION_STYLE=''
RUBY_PROGRAM_VERSION='$(MAJOR).$(MINOR).$(TEENY)'
RUBY_SEARCH_PATH=''
RUBY_SO_NAME=''
RUBY_VERSION_NAME='${RUBY_BASE_NAME}-${ruby_version}'
RUNRUBY=''
RUNRUBY_COMMAND=''
RUSTC=''
SET_MAKE=''
SHELL='/bin/sh'
SOEXT=''
SOLIBS=''
STATIC=''
STRIP='x86_64-apple-darwin13.4.0-strip'
SYMBOL_PREFIX=''
TEENY='0'
TEST_RUNNABLE=''
THREAD_MODEL=''
TRY_LINK=''
UNIVERSAL_ARCHNAMES=''
UNIVERSAL_INTS=''
USE_RUBYGEMS=''
WASMOPT=''
WERRORFLAG=''
WINDRES=''
XCC_WRAPPER=''
XCFLAGS=''
XLDFLAGS=''
XRUBY=''
XRUBY_LIBDIR=''
XRUBY_LIBPATHENV_WRAPPER=''
XRUBY_RUBYHDRDIR=''
XRUBY_RUBYLIBDIR=''
X_COROUTINE_H=''
X_COROUTINE_SRC=''
YJIT_LIBS=''
YJIT_OBJ=''
YJIT_SUPPORT=''
ac_ct_AR=''
ac_ct_AS=''
ac_ct_CC=''
ac_ct_CXX=''
ac_ct_LD=''
ac_ct_NM=''
ac_ct_OBJCOPY=''
ac_ct_OBJDUMP=''
ac_ct_STRIP=''
arch=''
archincludedir=''
archlibdir=''
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin13.4.0'
build_alias='x86_64-apple-darwin13.4.0'
build_cpu='x86_64'
build_os='darwin13.4.0'
build_vendor='apple'
cflags=''
cleanlibs=''
codesign=''
configure_args=''
cppflags=''
cxxflags=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
debugflags=''
docdir='${datarootdir}/doc/${PACKAGE}'
dsymutil=''
dvidir='${docdir}'
exec=''
exec_prefix='NONE'
host='x86_64-apple-darwin13.4.0'
host_alias='x86_64-apple-darwin13.4.0'
host_cpu='x86_64'
host_os='darwin13.4.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libdirname=''
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
optflags=''
pdfdir='${docdir}'
prefix='/Users/OliviaLee/.rubies/ruby-3.2.0'
program_transform_name='s&^&&'
psdir='${docdir}'
ridir=''
ruby_pc=''
ruby_version=''
rubyarchdir=''
rubyarchhdrdir=''
rubyarchprefix=''
rubyhdrdir=''
rubylibdir=''
rubylibprefix=''
rubysitearchprefix=''
rubyw_install_name=''
runstatedir='${localstatedir}/run'
sbindir='${exec_prefix}/sbin'
setup=''
sharedstatedir='${prefix}/com'
sitearch=''
sitearchdir=''
sitearchhdrdir=''
sitearchincludedir=''
sitearchlibdir=''
sitedir=''
sitehdrdir=''
sitelibdir=''
strict_warnflags=''
sysconfdir='${prefix}/etc'
target='x86_64-apple-darwin13.4.0'
target_alias=''
target_cpu='x86_64'
target_os='darwin13.4.0'
target_vendor='apple'
try_header=''
vendorarchdir=''
vendorarchhdrdir=''
vendordir=''
vendorhdrdir=''
vendorlibdir=''
warnflags=''
wasmoptflags=''
## ----------- ##
## 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
Please let me know! All I want to do is create a nice github pages site to apply for jobs :) Thank you!
I tried
RUBY_CFLAGS="-Wno-error=implicit-function-declaration" rbenv install 3.2.0
I tried asdf, uninstalling and reinstalling homebrew and everything. Please let me know. Thank you!
The log indicates that you have clang --version with a value of 12.0.0 and that clang is targeting x86_64. An up-to-date version of macOS with up-to-date version of the Xcode Command Line Tools should have version 14.0.0 and it should target arm64.
Open a Terminal and run this command:
clang --version
You should see this:
Apple clang version 14.0.0 (clang-1400.0.29.202)
Target: arm64-apple-darwin22.2.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin
If you do not then run this command to install the Command Line Tools:
xcode-select --install
If you are told the tools are already installed then make sure they are up to date:
softwareupdate -l
If they are installed and up to date then make sure that you are running Terminal without emulating x86_64 by opening a Terminal and running:
arch
If you see i386 then your Terminal is running with Rosetta emulation and that needs to be disabled so that all your commands run as native arm64 commands. To fix this:
Open Finder and browse to /Applications/Utilities
Right-click Terminal and click Get Info
In the window that opens uncheck the box Open using Rosetta
Quit Terminal completely (Terminal menu > Quit Terminal)
Re-open Terminal
Run arch again and confirm it says arm64
Retry installing Ruby

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

MacOS: configure: error: C compiler cannot create executables

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

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

Resources