使用 Mac OS X 10.8.5 Xcode 5.0.2 配置错误:clang:错误:缺少“-V”的参数(预期 1 个值)clang:错误:没有输入文件

Posted

技术标签:

【中文标题】使用 Mac OS X 10.8.5 Xcode 5.0.2 配置错误:clang:错误:缺少“-V”的参数(预期 1 个值)clang:错误:没有输入文件【英文标题】: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 【发布时间】:2013-12-06 14:55:13 【问题描述】:

在 MacOSX 10.8.5 上,升级到 Xcode 5.0.2(并升级/安装命令行工具(从 Xcode 首选项中)后,我正在安装 FFTW 3.3.3 并通过从源配置它们来打开 MPI 1.6.5 . 我在配置步骤中的两个 config.log 文件中都出现了相同类型的错误,这表明问题不在于我从官方网站下载的程序。

简而言之,我在两个日志中看到的第一个错误是:

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

当我输入时:

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

当我键入一些命令来检查问题是什么时,我得到与日志类似的错误:

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

请参阅我的 config.log 文件以了解下面的 FFTW3.3.3 安装。 OpenMPI1.6.5 的日志看起来非常相似,如果需要,我可以在下一条消息中上传。我无法将完整的日志上传到正文中,因此我将其缩短了。 非常感谢任何帮助/见解!谢谢大家!

++++CONFIG.LOG+++++FFTW3.3.3安装

它是由 fftw configure 3.3.3 创建的,它是 由 GNU Autoconf 2.69 生成。调用命令行是

$ ./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 */

………….等等……..下面是结尾:

## ----------------- ##
## 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

【问题讨论】:

【参考方案1】:

问题是,Apple 将所有 GCC 调用重定向到 clang。 Configure 认为它正在使用 GCC 并使用不兼容的语法,因此 Clang 失败。

您要么寻找修复此问题的工具的更新版本。或者你必须寻找特定的标志来告诉配置使用哪个编译器。尝试设置shell变量CCCXX或者可能有特定的配置标志,问configure --help

另一种可能性是安装 GCC。使用 macports 或 homebrew 这相当简单。但可能是其中之一为您提供 MPI 和 FFTW,因此您可以使用这些。

【讨论】:

对我来说就是这种情况,所以我用 Homebrew 安装了 gcc,然后在 /usr/local/bin 中查找程序的名称。它是 gcc-6。然后我使用./configure CC="gcc-6" 进行配置。有效!希望对您有所帮助。 我尝试遵循@basfest 的建议,但遇到了类似的错误gcc-6: error: unrecognized command line option '-V' CC="gcc" ./configure 解决了这个问题,而我正在 Mac 上构建 secp256k1。默认编译器是 llvm。 dang 仍然得到 -V,CC=gcc-10 和 clang 在 /usr/bin 的路径上伪装成 gcc

以上是关于使用 Mac OS X 10.8.5 Xcode 5.0.2 配置错误:clang:错误:缺少“-V”的参数(预期 1 个值)clang:错误:没有输入文件的主要内容,如果未能解决你的问题,请参考以下文章

在没有 Xcode 的 Mac OS X 上构建 VST 插件

如何在 Mac OS X 10.8 / Xcode 4.4 上使用/安装 gcc

mac os 安装vmware tools不成功?

在 Xcode 4 中使用 SVN 和 Mac OS X Lion (10.7)

如何从 Mac OS X 10.7.3 卸载 XCode 4.3.1?

Mac OS X 服务器 Xcode 机器人问题