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

Ann*_*ova 6 xcode configure clang osx-mountain-lion

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

\n\n

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

\n\n
configure:3750: checking for gcc\nconfigure:3766: found /usr/bin/gcc\nconfigure:3777: result: gcc\nconfigure:4006: checking for C compiler version\nconfigure:4015: gcc --version >&5\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\nconfigure:4026: $? = 0\nconfigure:4015: gcc -v >&5\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\nconfigure:4026: $? = 0\nconfigure:4015: gcc -V >&5\nclang: error: argument to \'-V\' is missing (expected 1 value)\nclang: error: no input files\nconfigure:4026: $? = 1\nconfigure:4015: gcc -qversion >&5\nclang: error: no input files\n
Run Code Online (Sandbox Code Playgroud)\n\n

当我输入:

\n\n
alexey-sorokin:local admin$ gcc --version\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\n
Run Code Online (Sandbox Code Playgroud)\n\n

当我输入一些命令来检查问题所在时,我收到与日志类似的错误:

\n\n
alexey-sorokin:local admin$ gcc -V\nclang: error: argument to \'-V\' is missing (expected 1 value)\nclang: error: no input files\nalexey-sorokin:local admin$ clang -v\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\nalexey-sorokin:local admin$ which clang\n/usr/bin/clang\nalexey-sorokin:local admin$ gcc\nclang: error: no input files\n
Run Code Online (Sandbox Code Playgroud)\n\n

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

\n\n

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

\n\n

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

\n\n

$ ./configure --prefix=/usr/local

\n\n
## --------- ##\n## Platform. ##\n## --------- ##\n\nhostname = alexey-sorokin\nuname -m = x86_64\nuname -r = 12.5.0\nuname -s = Darwin\nuname -v = Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64\n\n/usr/bin/uname -p = i386\n/bin/uname -X     = unknown\n\n/bin/arch              = unknown\n/usr/bin/arch -k       = unknown\n/usr/convex/getsysinfo = unknown\n/usr/bin/hostinfo      = Mach kernel version:\n     Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64\nKernel configured for up to 4 processors.\n2 processors are physically available.\n4 processors are logically available.\nProcessor type: i486 (Intel 80486)\nProcessors active: 0 1 2 3\nPrimary memory available: 8.00 gigabytes\nDefault processor set: 120 tasks, 548 threads, 4 processors\nLoad average: 1.22, Mach factor: 2.76\n/bin/machine           = unknown\n/usr/bin/oslevel       = unknown\n/bin/universe          = unknown\n\nPATH: /usr/local/bin\nPATH: /usr/bin\nPATH: /bin\nPATH: /usr/sbin\nPATH: /sbin\nPATH: /usr/local/bin\n\n\n## ----------- ##\n## Core tests. ##\n## ----------- ##\n\nconfigure:2742: checking for a BSD-compatible install\nconfigure:2810: result: /usr/bin/install -c\nconfigure:2821: checking whether build environment is sane\nconfigure:2871: result: yes\nconfigure:3012: checking for a thread-safe mkdir -p\nconfigure:3051: result: ./install-sh -c -d\nconfigure:3064: checking for gawk\nconfigure:3094: result: no\nconfigure:3064: checking for mawk\nconfigure:3094: result: no\nconfigure:3064: checking for nawk\nconfigure:3094: result: no\nconfigure:3064: checking for awk\nconfigure:3080: found /usr/bin/awk\nconfigure:3091: result: awk\nconfigure:3102: checking whether make sets $(MAKE)\nconfigure:3124: result: yes\nconfigure:3208: checking whether to enable maintainer-specific portions of Makefiles\nconfigure:3217: result: no\nconfigure:3265: checking build system type\nconfigure:3279: result: x86_64-apple-darwin12.5.0\nconfigure:3299: checking host system type\nconfigure:3312: result: x86_64-apple-darwin12.5.0\nconfigure:3750: checking for gcc\nconfigure:3766: found /usr/bin/gcc\nconfigure:3777: result: gcc\nconfigure:4006: checking for C compiler version\nconfigure:4015: gcc --version >&5\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\nconfigure:4026: $? = 0\nconfigure:4015: gcc -v >&5\nConfigured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1\nApple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)\nTarget: x86_64-apple-darwin12.5.0\nThread model: posix\nconfigure:4026: $? = 0\nconfigure:4015: gcc -V >&5\nclang: error: argument to \'-V\' is missing (expected 1 value)\nclang: error: no input files\nconfigure:4026: $? = 1\nconfigure:4015: gcc -qversion >&5\nclang: error: no input files\nconfigure:4026: $? = 1\nconfigure:4046: checking whether the C compiler works\nconfigure:4068: gcc    conftest.c  >&5\nconfigure:4072: $? = 0\nconfigure:4120: result: yes\nconfigure:4123: checking for C compiler default output file name\nconfigure:4125: result: a.out\nconfigure:4131: checking for suffix of executables\nconfigure:4138: gcc -o conftest    conftest.c  >&5\nconfigure:4142: $? = 0\nconfigure:4164: result: \nconfigure:4186: checking whether we are cross compiling\nconfigure:4194: gcc -o conftest    conftest.c  >&5\nconfigure:4198: $? = 0\nconfigure:4205: ./conftest\nconfigure:4209: $? = 0\nconfigure:4224: result: no\nconfigure:4229: checking for suffix of object files\nconfigure:4251: gcc -c   conftest.c >&5\nconfigure:4255: $? = 0\nconfigure:4276: result: o\nconfigure:4280: checking whether we are using the GNU C compiler\nconfigure:4299: gcc -c   conftest.c >&5\nconfigure:4299: $? = 0\nconfigure:4308: result: yes\nconfigure:4317: checking whether gcc accepts -g\nconfigure:4337: gcc -c -g  conftest.c >&5\nconfigure:4337: $? = 0\nconfigure:4378: result: yes\nconfigure:4395: checking for gcc option to accept ISO C89\nconfigure:4458: gcc  -c -g -O2  conftest.c >&5\nconfigure:4458: $? = 0\nconfigure:4471: result: none needed\nconfigure:4502: checking for style of include used by make\nconfigure:4530: result: GNU\nconfigure:4556: checking dependency style of gcc\nconfigure:4667: result: gcc3\nconfigure:4683: checking whether gcc and cc understand -c and -o together\nconfigure:4714: gcc -c conftest.c -o conftest2.o >&5\nconfigure:4718: $? = 0\nconfigure:4724: gcc -c conftest.c -o conftest2.o >&5\nconfigure:4728: $? = 0\nconfigure:4739: cc -c conftest.c >&5\nconfigure:4743: $? = 0\nconfigure:4751: cc -c conftest.c -o conftest2.o >&5\nconfigure:4755: $? = 0\nconfigure:4761: cc -c conftest.c -o conftest2.o >&5\nconfigure:4765: $? = 0\nconfigure:4783: result: yes\nconfigure:4810: checking for C compiler vendor\nconfigure:4834: gcc -c -g -O2  conftest.c >&5\nconftest.c:18:7: error: use of undeclared identifier \'thisisanerror\'\n      thisisanerror;\n      ^\n1 error generated.\nconfigure:4834: $? = 1\nconfigure: failed program was:\n| /* confdefs.h */\n| #define PACKAGE_NAME "fftw"\n| #define PACKAGE_TARNAME "fftw"\n| #define PACKAGE_VERSION "3.3.3"\n| #define PACKAGE_STRING "fftw 3.3.3"\n| #define PACKAGE_BUGREPORT "fftw@fftw.org"\n| #define PACKAGE_URL ""\n| #define PACKAGE "fftw"\n| #define VERSION "3.3.3"\n| #define FFTW_ENABLE_ALLOCA 1\n| /* end confdefs.h.  */\n| \n| int\n| main ()\n| {\n| \n| #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))\n|       thisisanerror;\n| #endif\n| \n|   ;\n|   return 0;\n| }\nconfigure:4834: gcc -c -g -O2  conftest.c >&5\nconftest.c:18:7: error: use of undeclared identifier \'thisisanerror\'\n      thisisanerror;\n      ^\n1 error generated.\nconfigure:4834: $? = 1\nconfigure: failed program was:\n| /* confdefs.h */\n| #define PACKAGE_NAME "fftw"\n| #define PACKAGE_TARNAME "fftw"\n| #define PACKAGE_VERSION "3.3.3"\n| #define PACKAGE_STRING "fftw 3.3.3"\n| #define PACKAGE_BUGREPORT "fftw@fftw.org"\n| #define PACKAGE_URL ""\n| #define PACKAGE "fftw"\n| #define VERSION "3.3.3"\n| #define FFTW_ENABLE_ALLOCA 1\n| /* end confdefs.h.  */\n| \n| int\n| main ()\n| {\n| \n| #if !(defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__))\n|       thisisanerror;\n| #endif\n| \n|   ;\n|   return 0;\n| }\nconfigure:4834: gcc -c -g -O2  conftest.c >&5\nconftest.c:18:7: error: use of undeclared identifier \'thisisanerror\'\n      thisisanerror;\n      ^\n1 error generated.\nconfigure:4834: $? = 1\nconfigure: failed program was:\n| /* confdefs.h */\n| #define PACKAGE_NAME "fftw"\n| #define PACKAGE_TARNAME "fftw"\n| #define PACKAGE_VERSION "3.3.3"\n| #define PACKAGE_STRING "fftw 3.3.3"\n| #define PACKAGE_BUGREPORT "fftw@fftw.org"\n| #define PACKAGE_URL ""\n| #define PACKAGE "fftw"\n| #define VERSION "3.3.3"\n| #define FFTW_ENABLE_ALLOCA 1\n| /* end confdefs.h.  */\n| \n| int\n| main ()\n| {\n| \n| #if !(defined(__PATHCC__) || defined(__PATHSCALE__))\n|       thisisanerror;\n| #endif\n| \n|   ;\n|   return 0;\n| }\nconfigure:4834: gcc -c -g -O2  conftest.c >&5\nconfigure:4834: $? = 0\nconfigure:4841: result: gnu\nconfigure:4848: checking for gcc option to accept ISO C99\nconfigure:4997: gcc  -c -g -O2  conftest.c >&5\nconfigure:4997: $? = 0\nconfigure:5010: result: none needed\nconfigure:5118: checking for gcc option to accept ISO Standard C\nconfigure:5129: result: none needed\nconfigure:5137: checking whether ln -s works\nconfigure:5141: result: yes\nconfigure:5148: checking whether make sets $(MAKE)\nconfigure:5170: result: yes\nconfigure:5528: checking how to print strings\nconfigure:5555: result: printf\nconfigure:5576: checking for a sed that does not truncate output\nconfigure:5640: result: /usr/bin/sed\nconfigure:5658: checking for grep that handles long lines and -e\nconfigure:5716: result: /usr/bin/grep\nconfigure:5721: checking for egrep\nconfigure:5783: result: /usr/bin/grep -E\nconfigure:5788: checking for fgrep\nconfigure:5850: result: /usr/bin/grep -F\nconfigure:5885: checking for ld used by gcc\nconfigure:5952: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\nconfigure:5959: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld\nconfigure:5974: result: no\nconfigure:5986: checking for BSD- or MS-compatible name lister (nm)\nconfigure:6035: result: /usr/bin/nm\nconfigure:6165: checking the name lister (/usr/bin/nm) interface\nconfigure:6172: gcc -c -g -O2  conftest.c >&5\nconfigure:6175: /usr/bin/nm "conftest.o"\nconfigure:6178: output\n0000000000000208 S _some_variable\nconfigure:6185: result: BSD nm\nconfigure:6189: checking the maximum length of command line arguments\nconfigure:6319: result: 196608\nconfigure:6336: checking whether the shell understands some XSI constructs\nconfigure:6346: result: yes\nconfigure:6350: checking whether the shell understands "+="\nconfigure:6356: result: yes\nconfigure:6391: checking how to convert x86_64-apple-darwin12.5.0 file names to x86_64-apple-darwin12.5.0 format\nconfigure:6431: result: func_convert_file_noop\nconfigure:6438: checking how to convert x86_64-apple-darwin12.5.0 file names to toolchain format\nconfigure:6458: result: func_convert_file_noop\nconfigure:6465: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files\nconfigure:6472: result: -r\nconfigure:6546: checking for objdump\nconfigure:6573: result: objdump\nconfigure:6602: checking how to recognize dependent libraries\nconfigure:6800: result: pass_all\nconfigure:6885: checking for dlltool\nconfigure:6912: result: dlltool\nconfigure:6942: checking how to associate runtime and link libraries\nconfigure:6969: result: printf %s\\n\nconfigure:7029: checking for ar\nconfigure:7045: found /usr/bin/ar\nconfigure:7056: result: ar\nconfigure:7093: checking for archiver @FILE support\nconfigure:7110: gcc -c -g -O2  conftest.c >&5\nconfigure:7110: $? = 0\nconfigure:7113: ar cru libconftest.a @conftest.lst >&5\nar: @conftest.lst: No such file or directory\nconfigure:7116: $? = 1\nconfigure:7136: result: no\nconfigure:7194: checking for strip\nconfigure:7210: found /usr/bin/strip\nconfigure:7221: result: strip\nconfigure:7293: checking for ranlib\nconfigure:7309: found /usr/bin/ranlib\nconfigure:7320: result: ranlib\nconfigure:7422: checking command to parse /usr/bin/nm output from gcc object\nconfigure:7542: gcc -c -g -O2  conftest.c >&5\nconfigure:7545: $? = 0\nconfigure: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\nconfigure:7552: $? = 0\ncannot find nm_test_var in conftest.nm\nconfigure:7542: gcc -c -g -O2  conftest.c >&5\nconfigure:7545: $? = 0\nconfigure: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\nconfigure:7552: $? = 0\nconfigure:7618: gcc -o conftest -g -O2   conftest.c conftstm.o >&5\nconfigure:7621: $? = 0\nconfigure:7659: result: ok\nconfigure:7696: checking for sysroot\nconfigure:7726: result: no\nconfigure:7982: checking for mt\nconfigure:8012: result: no\nconfigure:8032: checking if : is a manifest tool\nconfigure:8038: : \'-?\'\nconfigure:8046: result: no\nconfigure:8102: checking for dsymutil\nconfigure:8118: found /usr/bin/dsymutil\nconfigure:8129: result: dsymutil\nconfigure:8194: checking for nmedit\nconfigure:8210: found /usr/bin/nmedit\nconfigure:8221: result: nmedit\nconfigure:8286: checking for lipo\nconfigure:8302: found /usr/bin/lipo\nconfigure:8313: result: lipo\nconfigure:8378: checking for otool\nconfigure:8394: found /usr/bin/otool\nconfigure:8405: result: otool\nconfigure:8470: checking for otool64\nconfigure:8500: result: no\nconfigure:8545: checking for -single_module linker flag\ngcc -g -O2  -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c\nconfigure:8578: result: yes\nconfigure:8581: checking for -exported_symbols_list linker flag\nconfigure:8601: gcc -o conftest -g -O2   -Wl,-exported_symbols_list,conftest.sym conftest.c  >&5\nconfigure:8601: $? = 0\nconfigure:8611: result: yes\nconfigure:8614: checking for -force_load linker flag\ngcc -g -O2 -c -o conftest.o conftest.c\nar cru libconftest.a conftest.o\nranlib libconftest.a\ngcc -g -O2  -o conftest conftest.c -Wl,-force_load,./libconftest.a\nconfigure:8646: result: yes\nconfigure:8688: checking how to run the C preprocessor\nconfigure:8719: gcc -E  conftest.c\nconfigure:8719: $? = 0\nconfigure:8733: gcc -E  conftest.c\nconftest.c:12:10: fatal error: \'ac_nonexistent.h\' file not found\n#include <ac_nonexistent.h>\n         ^\n1 error generated.\nconfigure:8733: $? = 1\nconfigure: failed program was:\n| /* confdefs.h */\n| #define PACKAGE_NAME "fftw"\n| #define PACKAGE_TARNAME "fftw"\n| #define PACKAGE_VERSION "3.3.3"\n| #define PACKAGE_STRING "fftw 3.3.3"\n| #define PACKAGE_BUGREPORT "fftw@fftw.org"\n| #define PACKAGE_URL ""\n| #define PACKAGE "fftw"\n| #define VERSION "3.3.3"\n| #define FFTW_ENABLE_ALLOCA 1\n| /* end confdefs.h.  */\n| #include <ac_nonexistent.h>\nconfigure:8758: result: gcc -E\nconfigure:8778: gcc -E  conftest.c\nconfigure:8778: $? = 0\nconfigure:8792: gcc -E  conftest.c\nconftest.c:12:10: fatal error: \'ac_nonexistent.h\' file not found\n#include <ac_nonexistent.h>\n         ^\n1 error generated.\nconfigure:8792: $? = 1\nconfigure: failed program was:\n| /* confdefs.h */\n
Run Code Online (Sandbox Code Playgroud)\n\n

\xe2\x80\xa6\xe2\x80\xa6\xe2\x80\xa6\xe2\x80\xa6.依此类推\xe2\x80\xa6..下面是结尾:

\n\n
## ----------------- ##\n## Output variables. ##\n## ----------------- ##\n\nACLOCAL=\'${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run aclocal-1.11\'\nALLOCA=\'\'\nALTIVEC_CFLAGS=\'\'\nAMDEPBACKSLASH=\'\\\'\nAMDEP_FALSE=\'#\'\nAMDEP_TRUE=\'\'\nAMTAR=\'$${TAR-tar}\'\nAR=\'ar\'\nAS=\'as\'\nAUTOCONF=\'${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoconf\'\nAUTOHEADER=\'${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoheader\'\nAUTOMAKE=\'${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run automake-1.11\'\nAVX_CFLAGS=\'\'\nAWK=\'awk\'\nCC=\'gcc\'\nCCDEPMODE=\'depmode=gcc3\'\nCFLAGS=\'-O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math\'\nCHECK_PL_OPTS=\'\'\nCOMBINED_THREADS_FALSE=\'\'\nCOMBINED_THREADS_TRUE=\'#\'\nCPP=\'gcc -E\'\nCPPFLAGS=\'\'\nCYGPATH_W=\'echo\'\nC_FFTW_R2R_KIND=\'C_INT32_T\'\nC_MPI_FINT=\'\'\nDEFS=\'-DHAVE_CONFIG_H\'\nDEPDIR=\'.deps\'\nDLLTOOL=\'dlltool\'\nDSYMUTIL=\'dsymutil\'\nDUMPBIN=\'\'\nECHO_C=\'\\c\'\nECHO_N=\'\'\nECHO_T=\'\'\nEGREP=\'/usr/bin/grep -E\'\nEXEEXT=\'\'\nF77=\'gfortran\'\nFFLAGS=\'-g -O2\'\nFGREP=\'/usr/bin/grep -F\'\nFLIBS=\' -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\'\nGREP=\'/usr/bin/grep\'\nHAVE_ALTIVEC_FALSE=\'\'\nHAVE_ALTIVEC_TRUE=\'#\'\nHAVE_AVX_FALSE=\'\'\nHAVE_AVX_TRUE=\'#\'\nHAVE_NEON_FALSE=\'\'\nHAVE_NEON_TRUE=\'#\'\nHAVE_SSE2_FALSE=\'\'\nHAVE_SSE2_TRUE=\'#\'\nINSTALL_DATA=\'${INSTALL} -m 644\'\nINSTALL_PROGRAM=\'${INSTALL}\'\nINSTALL_SCRIPT=\'${INSTALL}\'\nINSTALL_STRIP_PROGRAM=\'$(install_sh) -c -s\'\nLD=\'/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld\'\nLDFLAGS=\'\'\nLDOUBLE_FALSE=\'\'\nLDOUBLE_TRUE=\'#\'\nLIBOBJS=\'\'\nLIBQUADMATH=\'\'\nLIBS=\'-lm \'\nLIBTOOL=\'$(SHELL) $(top_builddir)/libtool\'\nLIPO=\'lipo\'\nLN_S=\'ln -s\'\nLTLIBOBJS=\'\'\nMAINT=\'#\'\nMAINTAINER_MODE_FALSE=\'\'\nMAINTAINER_MODE_TRUE=\'#\'\nMAKEINFO=\'${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run makeinfo\'\nMANIFEST_TOOL=\':\'\nMKDIR_P=\'./install-sh -c -d\'\nMPICC=\'\'\nMPILIBS=\'\'\nMPIRUN=\'\'\nMPI_FALSE=\'\'\nMPI_TRUE=\'#\'\nNEON_CFLAGS=\'\'\nNM=\'/usr/bin/nm\'\nNMEDIT=\'nmedit\'\nOBJDUMP=\'objdump\'\nOBJEXT=\'o\'\nOCAMLBUILD=\'\'\nOPENMP_CFLAGS=\'\'\nOPENMP_FALSE=\'\'\nOPENMP_TRUE=\'#\'\nOTOOL64=\':\'\nOTOOL=\'otool\'\nPACKAGE=\'fftw\'\nPACKAGE_BUGREPORT=\'fftw@fftw.org\'\nPACKAGE_NAME=\'fftw\'\nPACKAGE_STRING=\'fftw 3.3.3\'\nPACKAGE_TARNAME=\'fftw\'\nPACKAGE_URL=\'\'\nPACKAGE_VERSION=\'3.3.3\'\nPATH_SEPARATOR=\':\'\nPOW_LIB=\'\'\nPRECISION=\'d\'\nPREC_SUFFIX=\'\'\nPTHREAD_CC=\'\'\nPTHREAD_CFLAGS=\'\'\nPTHREAD_LIBS=\'\'\nQUAD_FALSE=\'\'\nQUAD_TRUE=\'#\'\nRANLIB=\'ranlib\'\nSED=\'/usr/bin/sed\'\nSET_MAKE=\'\'\nSHARED_VERSION_INFO=\'6:2:3\'\nSHELL=\'/bin/sh\'\nSINGLE_FALSE=\'\'\nSINGLE_TRUE=\'#\'\nSMP_FALSE=\'\'\nSMP_TRUE=\'#\'\nSSE2_CFLAGS=\'\'\nSTACK_ALIGN_CFLAGS=\'\'\nSTRIP=\'strip\'\nTHREADLIBS=\'\'\nTHREADS_FALSE=\'\'\nTHREADS_TRUE=\'#\'\nVERSION=\'3.3.3\'\nac_ct_AR=\'ar\'\nac_ct_CC=\'gcc\'\nac_ct_DUMPBIN=\'\'\nac_ct_F77=\'gfortran\'\nacx_pthread_config=\'\'\nam__EXEEXT_FALSE=\'\'\nam__EXEEXT_TRUE=\'#\'\nam__fastdepCC_FALSE=\'#\'\nam__fastdepCC_TRUE=\'\'\nam__include=\'include\'\nam__isrc=\'\'\nam__leading_dot=\'.\'\nam__nodep=\'_no\'\nam__quote=\'\'\nam__tar=\'$${TAR-tar} chof - "$$tardir"\'\nam__untar=\'$${TAR-tar} xf -\'\nbindir=\'${exec_prefix}/bin\'\nbuild=\'x86_64-apple-darwin12.5.0\'\nbuild_alias=\'\'\nbuild_cpu=\'x86_64\'\nbuild_os=

usr*_*567 1

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

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

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