An error occurred When I compile bind 9.9.11 on Solaris 11,
How fix it? thanks.
SunOS sunflower 5.11 11.3 i86pc i386 i86pc, CPU_2017-10
gcc version 4.5.2
Configure:
./configure --prefix=/usr/local/bind9 \
--sysconfdir=/etc \
--libdir=/usr/lib/dns \
--with-openssl \
--with-libtool \
--enable-threads \
--enable-devpoll=yes \
--enable-largefile \
--disable-openssl-version-check \
--enable-fixed-rrset \
--with-libxml2=/usr
configure error:
checking if unistd.h or sys/types.h defines fd_set... yes
checking whether byte ordering is bigendian... no
checking for OpenSSL library... using OpenSSL from /usr/lib and /usr/include
checking whether linking with OpenSSL works... yes
checking whether linking with OpenSSL requires -ldl... no
Skipped OpenSSL version check
checking for OpenSSL DSA support... yes
checking for EVP_sha256... yes
checking for EVP_sha384... yes
checking for EVP_sha512... yes
checking for OpenSSL ECDSA support... yes
checking for OpenSSL GOST support... no
checking for PKCS11 support... disabled
checking for PKCS11 tools... disabled
checking for GSSAPI library... looking in /usr/lib
checking gssapi.h usability... no
checking gssapi.h presence... no
checking for gssapi.h... no
checking gssapi/gssapi.h usability... yes
checking gssapi/gssapi.h presence... yes
checking for gssapi/gssapi.h... yes
checking gssapi_krb5.h usability... no
checking gssapi_krb5.h presence... no
checking for gssapi_krb5.h... no
checking gssapi/gssapi_krb5.h usability... no
checking gssapi/gssapi_krb5.h presence... no
checking for gssapi/gssapi_krb5.h... no
checking krb5.h usability... no
checking krb5.h presence... no
checking for krb5.h... no
checking krb5/krb5.h usability... no
checking krb5/krb5.h presence... no
checking for krb5/krb5.h... no
checking kerberosv5/krb5.h usability... no
checking kerberosv5/krb5.h presence... no
checking for kerberosv5/krb5.h... no
configure: error: krb5.h not found
However, krb5.h is in the directory below:
/usr/include/kerberosv5/krb5.h
/usr/include/kerberosv5/krb5/krb5.h
The config.log file some information:
...
| #define ISC_SOCKADDR_LEN_T socklen_t
| #define TIME_WITH_SYS_TIME 1
| #define HAVE_UNAME 1
| #define HAVE_SYS_DEVPOLL_H 1
| #define HAVE_DEVPOLL_H 1
| #define HAVE_OPENSSL_DSA 1
| #define HAVE_EVP_SHA256 1
| #define HAVE_EVP_SHA384 1
| #define HAVE_EVP_SHA512 1
| #define HAVE_OPENSSL_ECDSA 1
| #define HAVE_GSSAPI_GSSAPI_H 1
| /* end confdefs.h. */
| #include <kerberosv5/krb5.h>
configure:14474: result: no
configure:14474: checking for kerberosv5/krb5.h
configure:14474: result: no
configure:14487: error: krb5.h not found
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_build=i386-pc-solaris2.11
ac_cv_c_bigendian=no
...
...
#define HAVE_SYS_PARAM_H 1
#define FLEXIBLE_ARRAY_MEMBER /**/
#define HAVE_SETEUID 1
#define HAVE_SETEGID 1
#define HAVE_FTELLO 1
#define HAVE_FSEEKO 1
#define ISC_SOCKADDR_LEN_T socklen_t
#define TIME_WITH_SYS_TIME 1
#define HAVE_UNAME 1
#define HAVE_SYS_DEVPOLL_H 1
#define HAVE_DEVPOLL_H 1
#define HAVE_OPENSSL_DSA 1
#define HAVE_EVP_SHA256 1
#define HAVE_EVP_SHA384 1
#define HAVE_EVP_SHA512 1
#define HAVE_OPENSSL_ECDSA 1
#define HAVE_GSSAPI_GSSAPI_H 1
configure: exit 1
Related
I tried to install gcc-7.2.0 based on gcc-4.4.7 in /usr/bin by this shell.
# installer bash, alternate the version-code.e.g. 7.2.0 to your prefered one
tar -zxf gcc-7.2.0.tar.gz
cd gcc-7.2.0
./contrib/download_prerequisites
cd ..
mkdir gcc-build-7.2.0
cd gcc-build-7.2.0
../gcc-7.2.0/configure --prefix=/home/gaojy/Tools/gcctool --enable- checking=release --enable-languages=c,c++ --disable-multilib
make
make install
But I got an error about:
checking for C compiler default output file name...
configure: error: in `/home/gaojy/Tools/gcc-build-7.2.0/x86_64-pc-linux-gnu/libgomp':
configure: error: C compiler cannot create executables
See 'config.log' for more details.
Then here's part of config.log's details.
$ ../gcc-7.2.0/configure --prefix=/home/gaojy/Tools/gcctool --enable-checking=release --enable-languages=c,c++ --disable-multilib
## --------- ##
## Platform. ##
## --------- ##
hostname = yulab
uname -m = x86_64
uname -r = 2.6.32-696.16.1.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Nov 15 16:51:15 UTC 2017
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/bin
PATH: /home/gaojy/cuda-8.0/bin
PATH: /home/gaojy/Tools/pkg-config/bin
PATH: /home/gaojy/Tools/protobuf/bin
PATH: /home/gaojy/Tools/python-2.7.14/bin
PATH: /home/gaojy/intel/bin
PATH: /home/gaojy/Tools/hdf5/bin
PATH: /home/gaojy/Tools/openjpeg-v2.3.0-linux-x86_64/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2304: checking build system type
configure:2318: result: x86_64-pc-linux-gnu
configure:2365: checking host system type
configure:2378: result: x86_64-pc-linux-gnu
configure:2398: checking target system type
configure:2411: result: x86_64-pc-linux-gnu
configure:2465: checking for a BSD-compatible install
configure:2533: result: /usr/bin/install -c
configure:2544: checking whether ln works
configure:2566: result: yes
configure:2570: checking whether ln -s works
configure:2574: result: yes
configure:2581: checking for a sed that does not truncate output
configure:2645: result: /bin/sed
configure:2654: checking for gawk
configure:2670: found /usr/bin/gawk
configure:2681: result: gawk
configure:3175: checking for libatomic support
configure:3185: result: yes
configure:3194: checking for libcilkrts support
configure:3204: result: yes
configure:3232: checking for libitm support
configure:3242: result: yes
configure:3251: checking for libsanitizer support
configure:3261: result: yes
configure:3270: checking for libvtv support
configure:3280: result: yes
configure:3290: checking for libmpx support
configure:3300: result: yes
configure:3309: checking for libhsail-rt support
configure:3321: result: yes
configure:4038: checking for gcc
configure:4054: found /usr/bin/gcc
configure:4065: result: gcc
configure:4294: checking for C compiler version
configure:4303: gcc --version >&5
gcc (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 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:4314: $? = 0
configure:4303: gcc -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
configure:4314: $? = 0
configure:4303: gcc -V >&5
gcc: '-V' option must have argument
configure:4314: $? = 1
configure:4303: gcc -qversion >&5
gcc: unrecognized option '-qversion'
gcc: no input files
configure:4314: $? = 1
configure:4334: checking for C compiler default output file name
configure:4356: gcc conftest.c >&5
configure:4360: $? = 0
configure:4397: result: a.out
configure:4413: checking whether the C compiler works
configure:4422: ./a.out
configure:4426: $? = 0
configure:4441: result: yes
configure:4448: checking whether we are cross compiling
configure:4450: result: no
configure:4453: checking for suffix of executables
configure:4460: gcc -o conftest conftest.c >&5
configure:4464: $? = 0
configure:4486: result:
configure:4492: checking for suffix of object files
configure:4514: gcc -c conftest.c >&5
configure:4518: $? = 0
configure:4539: result: o
configure:4543: checking whether we are using the GNU C compiler
configure:4562: gcc -c conftest.c >&5
configure:4562: $? = 0
configure:4571: result: yes
configure:4580: checking whether gcc accepts -g
configure:4600: gcc -c -g conftest.c >&5
configure:4600: $? = 0
configure:4641: result: yes
configure:4658: checking for gcc option to accept ISO C89
configure:4722: gcc -c conftest.c >&5
configure:4722: $? = 0
configure:4735: result: none needed
configure:4813: checking for g++
configure:4829: found /usr/bin/g++
configure:4840: result: g++
configure:4867: checking for C++ compiler version
configure:4876: g++ --version >&5
g++ (GCC) 4.4.7 20120313 (Red Hat 4.4.7-18)
Copyright (C) 2010 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:4887: $? = 0
configure:4876: g++ -v >&5
Using built-in specs.
Target: x86_64-redhat-linux
Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --with-bugurl=http://bugzilla.redhat.com/bugzilla --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit --disable-libunwind-exceptions --enable-gnu-unique-object --enable-languages=c,c++,objc,obj-c++,java,fortran,ada --enable-java-awt=gtk --disable-dssi --with-java-home=/usr/lib/jvm/java-1.5.0-gcj-1.5.0.0/jre --enable-libgcj-multifile --enable-java-maintainer-mode --with-ecj-jar=/usr/share/java/eclipse-ecj.jar --disable-libjava-multilib --with-ppl --with-cloog --with-tune=generic --with-arch_32=i686 --build=x86_64-redhat-linux
Thread model: posix
gcc version 4.4.7 20120313 (Red Hat 4.4.7-18) (GCC)
configure:4887: $? = 0
configure:4876: g++ -V >&5
g++: '-V' option must have argument
configure:4887: $? = 1
configure:4876: g++ -qversion >&5
g++: unrecognized option '-qversion'
g++: no input files
configure:4887: $? = 1
configure:4891: checking whether we are using the GNU C++ compiler
configure:4910: g++ -c conftest.cpp >&5
configure:4910: $? = 0
configure:4919: result: yes
configure:4928: checking whether g++ accepts -g
configure:4948: g++ -c -g conftest.cpp >&5
configure:4948: $? = 0
configure:4989: result: yes
configure:5038: checking whether g++ accepts -static-libstdc++ -static-libgcc
configure:5055: g++ -o conftest -g -O2 -static-libstdc++ -static-libgcc conftest.cpp >&5
g++: unrecognized option '-static-libstdc++'
conftest.cpp:11:2: error: #error -static-libstdc++ not implemented
configure:5055: $? = 1
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. */
|
| #if (__GNUC__ < 4) || (__GNUC__ == 4 && __GNUC_MINOR__ < 5)
| #error -static-libstdc++ not implemented
| #endif
| int main() {}
configure:5059: result: no
configure:5120: checking for gnatbind
configure:5150: result: no
configure:5212: checking for gnatmake
configure:5242: result: no
configure:5261: checking whether compiler driver understands Ada
configure:5284: result: no
configure:5293: checking how to compare bootstrapped objects
configure:5318: result: cmp --ignore-initial=16 $$f1 $$f2
configure:5378: checking for objdir
configure:5393: result: .libs
configure:5924: WARNING: using in-tree isl, disabling version check
configure:6993: checking for default BUILD_CONFIG
configure:7025: result: bootstrap-debug
configure:7030: checking for --enable-vtable-verify
configure:7043: result: no
configure:7643: checking for bison
configure:7659: found /usr/bin/bison
configure:7670: result: bison -y
configure:7690: checking for bison
configure:7706: found /usr/bin/bison
configure:7717: result: bison
configure:7737: checking for gm4
configure:7767: result: no
configure:7737: checking for gnum4
configure:7767: result: no
configure:7737: checking for m4
configure:7753: found /usr/bin/m4
configure:7764: result: m4
configure:7784: checking for flex
configure:7814: result: no
configure:7784: checking for lex
configure:7814: result: no
configure:7832: checking for flex
configure:7862: result: no
configure:7879: checking for makeinfo
configure:7909: result: no
configure:7940: checking for expect
configure:7970: result: no
configure:7989: checking for runtest
configure:8019: result: no
configure:8134: checking for ar
configure:8150: found /usr/bin/ar
configure:8161: result: ar
configure:8275: checking for as
configure:8291: found /usr/bin/as
configure:8302: result: as
configure:8416: checking for dlltool
configure:8446: result: no
configure:8557: checking for ld
configure:8573: found /usr/bin/ld
configure:8584: result: ld
configure:8698: checking for lipo
configure:8728: result: no
configure:8839: checking for nm
configure:8855: found /usr/bin/nm
configure:8866: result: nm
configure:8980: checking for ranlib
configure:8996: found /usr/bin/ranlib
configure:9007: result: ranlib
configure:9116: checking for strip
configure:9132: found /usr/bin/strip
configure:9143: result: strip
configure:9252: checking for windres
configure:9282: result: no
configure:9393: checking for windmc
configure:9423: result: no
configure:9534: checking for objcopy
configure:9550: found /usr/bin/objcopy
configure:9561: result: objcopy
configure:9675: checking for objdump
configure:9691: found /usr/bin/objdump
configure:9702: result: objdump
configure:9816: checking for readelf
configure:9832: found /usr/bin/readelf
configure:9843: result: readelf
configure:9996: checking for cc
configure:10012: found /usr/bin/cc
configure:10023: result: cc
configure:10157: checking for c++
configure:10173: found /usr/bin/c++
configure:10184: result: c++
configure:10318: checking for gcc
configure:10334: found /usr/bin/gcc
configure:10345: result: gcc
configure:10474: checking for gfortran
configure:10504: result: no
configure:10635: checking for gccgo
configure:10665: result: no
configure:10726: checking for ar
configure:10759: result: no
configure:10876: checking for ar
configure:10892: found /usr/bin/ar
configure:10903: result: ar
configure:10956: checking for as
configure:10989: result: no
configure:11106: checking for as
configure:11122: found /usr/bin/as
configure:11133: result: as
configure:11186: checking for dlltool
configure:11219: result: no
configure:11336: checking for dlltool
configure:11366: result: no
configure:11416: checking for ld
configure:11449: result: no
configure:11566: checking for ld
configure:11582: found /usr/bin/ld
configure:11593: result: ld
configure:11646: checking for lipo
configure:11679: result: no
configure:11796: checking for lipo
configure:11826: result: no
configure:11876: checking for nm
configure:11909: result: no
configure:12026: checking for nm
configure:12042: found /usr/bin/nm
configure:12053: result: nm
configure:12106: checking for objcopy
configure:12139: result: no
configure:12256: checking for objcopy
configure:12272: found /usr/bin/objcopy
configure:12283: result: objcopy
configure:12336: checking for objdump
configure:12369: result: no
configure:12486: checking for objdump
configure:12502: found /usr/bin/objdump
configure:12513: result: objdump
configure:12566: checking for ranlib
configure:12599: result: no
configure:12716: checking for ranlib
configure:12732: found /usr/bin/ranlib
configure:12743: result: ranlib
configure:12796: checking for readelf
configure:12829: result: no
configure:12946: checking for readelf
configure:12962: found /usr/bin/readelf
configure:12973: result: readelf
configure:13026: checking for strip
configure:13059: result: no
configure:13176: checking for strip
configure:13192: found /usr/bin/strip
configure:13203: result: strip
configure:13256: checking for windres
configure:13289: result: no
configure:13406: checking for windres
configure:13436: result: no
configure:13486: checking for windmc
configure:13519: result: no
configure:13636: checking for windmc
configure:13666: result: no
configure:13694: checking where to find the target ar
configure:13727: result: host tool
configure:13736: checking where to find the target as
configure:13769: result: host tool
configure:13778: checking where to find the target cc
configure:13801: result: just compiled
configure:13820: checking where to find the target c++
configure:13846: result: just compiled
configure:13865: checking where to find the target c++ for libstdc++
configure:13891: result: just compiled
configure:13910: checking where to find the target dlltool
configure:13943: result: host tool
configure:13952: checking where to find the target gcc
configure:13975: result: just compiled
configure:13994: checking where to find the target gfortran
configure:14030: result: host tool
configure:14039: checking where to find the target gccgo
configure:14075: result: host tool
configure:14084: checking where to find the target ld
configure:14117: result: host tool
configure:14126: checking where to find the target lipo
configure:14148: result: host tool
configure:14157: checking where to find the target nm
configure:14190: result: host tool
configure:14199: checking where to find the target objcopy
configure:14232: result: host tool
configure:14241: checking where to find the target objdump
configure:14274: result: host tool
configure:14283: checking where to find the target ranlib
configure:14316: result: host tool
configure:14325: checking where to find the target readelf
configure:14358: result: host tool
configure:14367: checking where to find the target strip
configure:14400: result: host tool
configure:14409: checking where to find the target windres
configure:14442: result: host tool
configure:14451: checking where to find the target windmc
configure:14484: result: host tool
configure:14521: checking whether to enable maintainer-specific portions of Makefiles
configure:14530: result: no
configure:14788: creating ./config.status
## ---------------------- ##
## Running config.status. ##
## ---------------------- ##
This file was extended by config.status, which was
generated by GNU Autoconf 2.64. Invocation command line was
CONFIG_FILES =
CONFIG_HEADERS =
CONFIG_LINKS =
CONFIG_COMMANDS =
$ ./config.status
on yulab
config.status:1014: creating Makefile
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag='/dev/null'
host_makefile_frag='/dev/null'
ospace_frag='/dev/null'
serialization_dependencies='serdep.tmp'
target_makefile_frag='../gcc-7.2.0/config/mt-gnu'
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
#define LT_OBJDIR ".libs/"
configure: exit 0
It's Centos6.9. There is another gcc-4.9.1 in /usr/local/gcc with something wrong. If I try to use that gcc to build my gcc-7.2.0, it would stop at ./configure command with errors:
checking build system type... x86_64-pc-linux-gnu
checking host system type... x86_64-pc-linux-gnu
checking target system type... x86_64-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for a sed that does not truncate output... /bin/sed
checking for gawk... gawk
checking for libatomic support... yes
checking for libcilkrts support... yes
checking for libitm support... yes
checking for libsanitizer support... yes
checking for libvtv support... yes
checking for libmpx support... yes
checking for libhsail-rt support... yes
checking for gcc... gcc
checking for C compiler default output file name...
configure: error: in `/home/gaojy/Tools/gcc-build-7.2.0':
configure: error: C compiler cannot create executables
See `config.log' for more details.
And here's part of the config.log for gcc-4.9.1.
$ ../gcc-7.2.0/configure --prefix=/home/gaojy/Tools/gcctool --enable-checking=release --enable-languages=c,c++ --disable-multilib
## --------- ##
## Platform. ##
## --------- ##
hostname = yulab
uname -m = x86_64
uname -r = 2.6.32-696.16.1.el6.x86_64
uname -s = Linux
uname -v = #1 SMP Wed Nov 15 16:51:15 UTC 2017
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/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/gaojy/cuda-8.0/bin
PATH: /home/gaojy/Tools/pkg-config/bin
PATH: /home/gaojy/Tools/protobuf/bin
PATH: /home/gaojy/Tools/python-2.7.14/bin
PATH: /home/gaojy/intel/bin
PATH: /home/gaojy/Tools/hdf5/bin
PATH: /home/gaojy/Tools/openjpeg-v2.3.0-linux-x86_64/bin
PATH: /usr/local/bin
PATH: /bin
PATH: /usr/bin
PATH: /usr/local/sbin
PATH: /usr/sbin
PATH: /sbin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2304: checking build system type
configure:2318: result: x86_64-pc-linux-gnu
configure:2365: checking host system type
configure:2378: result: x86_64-pc-linux-gnu
configure:2398: checking target system type
configure:2411: result: x86_64-pc-linux-gnu
configure:2465: checking for a BSD-compatible install
configure:2533: result: /usr/bin/install -c
configure:2544: checking whether ln works
configure:2566: result: yes
configure:2570: checking whether ln -s works
configure:2574: result: yes
configure:2581: checking for a sed that does not truncate output
configure:2645: result: /bin/sed
configure:2654: checking for gawk
configure:2670: found /bin/gawk
configure:2681: result: gawk
configure:3175: checking for libatomic support
configure:3185: result: yes
configure:3194: checking for libcilkrts support
configure:3204: result: yes
configure:3232: checking for libitm support
configure:3242: result: yes
configure:3251: checking for libsanitizer support
configure:3261: result: yes
configure:3270: checking for libvtv support
configure:3280: result: yes
configure:3290: checking for libmpx support
configure:3300: result: yes
configure:3309: checking for libhsail-rt support
configure:3321: result: yes
configure:4038: checking for gcc
configure:4054: found /usr/local/bin/gcc
configure:4065: result: gcc
configure:4294: checking for C compiler version
configure:4303: gcc --version >&5
gcc (GCC) 4.9.1
Copyright (C) 2014 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:4314: $? = 0
configure:4303: gcc -v >&5
Using built-in specs.
COLLECT_GCC=gcc
COLLECT_LTO_WRAPPER=/usr/local/libexec/gcc/x86_64-unknown-linux-gnu/4.9.1/lto-wrapper
Target: x86_64-unknown-linux-gnu
Configured with: ./configure --enable-checking=release --enable-languages=c,c++ --disable-multilib
Thread model: posix
gcc version 4.9.1 (GCC)
configure:4314: $? = 0
configure:4303: gcc -V >&5
gcc: error: unrecognized command line option '-V'
gcc: fatal error: no input files
compilation terminated.
configure:4314: $? = 1
configure:4303: gcc -qversion >&5
gcc: error: unrecognized command line option '-qversion'
gcc: fatal error: no input files
compilation terminated.
configure:4314: $? = 1
configure:4334: checking for C compiler default output file name
configure:4356: gcc conftest.c >&5
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x12): undefined reference to `__libc_csu_fini'
/usr/lib/../lib64/crt1.o: In function `_start':
(.text+0x19): undefined reference to `__libc_csu_init'
collect2: error: ld returned 1 exit status
configure:4360: $? = 1
configure:4397: result:
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| ;
| return 0;
| }
configure:4403: error: in `/home/gaojy/Tools/gcc-build-7.2.0':
configure:4407: error: C compiler cannot create executables
See `config.log' for more details.
## ------------------- ##
## File substitutions. ##
## ------------------- ##
alphaieee_frag=''
host_makefile_frag='/dev/null'
ospace_frag=''
serialization_dependencies=''
target_makefile_frag=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME ""
#define PACKAGE_TARNAME ""
#define PACKAGE_VERSION ""
#define PACKAGE_STRING ""
#define PACKAGE_BUGREPORT ""
#define PACKAGE_URL ""
configure: exit 77
I hope someone could help me fix my gcc-4.9.1 or install a new gcc-7.2.0.
I'm trying to get zkcm up and running on my system (Mac OS X 10.11.3). I've installed gmp just fine (using ./configure --prefix=/usr/local --enable-cxx), and mpfr installed easily once I told it where to find gmp (/usr/local/include).
However, zkcm isn't installing as easily. It is also able to find the gmp.h file (using ./configure --with-gmp-include=/usr/local/include), but even though I can see gmpxx.h is right there, the configuration fails with
checking /usr/local/include/gmp.h usability... yes
checking /usr/local/include/gmp.h presence... yes
checking for /usr/local/include/gmp.h... yes
checking /usr/local/include/gmpxx.h usability... no
checking /usr/local/include/gmpxx.h presence... no
checking for /usr/local/include/gmpxx.h... no
configure: error: not found.
I'm not sure what the issue is. I've tried re-installing gmp several times, to no avail.
I've gone through other similar questions, but I could only find information directing me to what I've already done. I'm using the latest libraries for all three. How can I properly direct zkcm to gmpxx.h?
Edit
All of the config.log text with "gmpxx.h":
configure:3331: checking /usr/local/include/gmpxx.h usability
configure:3331: g++ -c -g -O2 conftest.cpp >&5
In file included from conftest.cpp:53:
/usr/local/include/gmpxx.h:43:10: error: 'gmp.h' file not found with <angled> include; use "quotes" instead
#include <gmp.h>
^~~~~~~
"gmp.h"
1 error generated.
configure:3331: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME ""
| #define PACKAGE_TARNAME ""
| #define PACKAGE_VERSION ""
| #define PACKAGE_STRING ""
| #define PACKAGE_BUGREPORT ""
| #define PACKAGE_URL ""
| #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__USR_LOCAL_INCLUDE_GMP_H 1
| /* end confdefs.h. */
| #include </usr/local/include/gmpxx.h>
configure:3331: result: no
configure:3331: checking for /usr/local/include/gmpxx.h
configure:3331: result: no
configure:3338: error: not found.
I tried to install tweeboparser on my macbook pro (10.9.5) but it don't work. I also tried to set these flags
export CFLAGS=-Qunused-arguments
export CPPFLAGS=-Qunused-arguments
but i have actually no idea if this is the right thing to do. I also updated my command line tools but it doesn't work.
Here is the config.log output:
configure:2270: checking for a BSD-compatible install
configure:2338: result: /usr/bin/install -c
configure:2349: checking whether build environment is sane
configure:2399: result: yes
configure:2540: checking for a thread-safe mkdir -p
configure:2579: result: ./install-sh -c -d
configure:2592: checking for gawk
configure:2622: result: no
configure:2592: checking for mawk
configure:2622: result: no
configure:2592: checking for nawk
configure:2622: result: no
configure:2592: checking for awk
configure:2608: found /usr/bin/awk
configure:2619: result: awk
configure:2630: checking whether make sets $(MAKE)
configure:2652: result: yes
configure:2785: checking for g++
configure:2801: found /usr/bin/g++
configure:2812: result: g++
configure:2839: checking for C++ compiler version
configure:2848: g++ --version >&5
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:2859: $? = 0
configure:2848: g++ -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
configure:2859: $? = 0
configure:2848: g++ -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2859: $? = 1
configure:2848: g++ -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:2859: $? = 1
configure:2879: checking whether the C++ compiler works
configure:2901: g++ conftest.cpp >&5
configure:2905: $? = 0
configure:2953: result: yes
configure:2956: checking for C++ compiler default output file name
configure:2958: result: a.out
configure:2964: checking for suffix of executables
configure:2971: g++ -o conftest conftest.cpp >&5
configure:2975: $? = 0
configure:2997: result:
configure:3019: checking whether we are cross compiling
configure:3027: g++ -o conftest conftest.cpp >&5
configure:3031: $? = 0
configure:3038: ./conftest
configure:3042: $? = 0
configure:3057: result: no
configure:3062: checking for suffix of object files
configure:3084: g++ -c conftest.cpp >&5
configure:3088: $? = 0
configure:3109: result: o
configure:3113: checking whether we are using the GNU C++ compiler
configure:3132: g++ -c conftest.cpp >&5
configure:3132: $? = 0
configure:3141: result: yes
configure:3150: checking whether g++ accepts -g
configure:3170: g++ -c -g conftest.cpp >&5
configure:3170: $? = 0
configure:3211: result: yes
configure:3245: checking for style of include used by make
configure:3273: result: GNU
configure:3299: checking dependency style of g++
configure:3410: result: gcc3
configure:3473: checking for gcc
configure:3489: found /usr/bin/gcc
configure:3500: result: gcc
configure:3729: checking for C compiler version
configure:3738: gcc --version >&5
Apple LLVM version 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:3749: $? = 0
configure:3738: 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 6.0 (clang-600.0.56) (based on LLVM 3.5svn)
Target: x86_64-apple-darwin13.4.0
Thread model: posix
configure:3749: $? = 0
configure:3738: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:3749: $? = 1
configure:3738: gcc -qversion >&5
clang: error: unknown argument: '-qversion'
clang: error: no input files
configure:3749: $? = 1
configure:3753: checking whether we are using the GNU C compiler
configure:3772: gcc -c conftest.c >&5
configure:3772: $? = 0
configure:3781: result: yes
configure:3790: checking whether gcc accepts -g
configure:3810: gcc -c -g conftest.c >&5
configure:3810: $? = 0
configure:3851: result: yes
configure:3868: checking for gcc option to accept ISO C89
configure:3932: gcc -c -g -O2 conftest.c >&5
configure:3932: $? = 0
configure:3945: result: none needed
configure:3967: checking dependency style of gcc
configure:4078: result: gcc3
configure:4141: checking how to run the C preprocessor
configure:4172: gcc -E -I../../deps/local/include -I/ad3 conftest.c
configure:4172: $? = 0
configure:4186: gcc -E -I../../deps/local/include -I/ad3 conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:4186: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "TurboParser"
| #define PACKAGE_TARNAME "TurboParser"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "TurboParser 2.1.0"
| #define PACKAGE_BUGREPORT "afm#cs.cmu.edu"
| #define PACKAGE_URL "http://www.ark.cs.cmu.edu/TurboParser/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4211: result: gcc -E
configure:4231: gcc -E -I../../deps/local/include -I/ad3 conftest.c
configure:4231: $? = 0
configure:4245: gcc -E -I../../deps/local/include -I/ad3 conftest.c
conftest.c:9:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:4245: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "TurboParser"
| #define PACKAGE_TARNAME "TurboParser"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "TurboParser 2.1.0"
| #define PACKAGE_BUGREPORT "afm#cs.cmu.edu"
| #define PACKAGE_URL "http://www.ark.cs.cmu.edu/TurboParser/"
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:4274: checking for grep that handles long lines and -e
configure:4332: result: /usr/bin/grep
configure:4337: checking for egrep
configure:4399: result: /usr/bin/grep -E
configure:4404: checking for ANSI C header files
configure:4424: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4424: $? = 0
configure:4497: gcc -o conftest -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4497: $? = 0
configure:4497: ./conftest
configure:4497: $? = 0
configure:4508: result: yes
configure:4521: checking for sys/types.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for sys/stat.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for stdlib.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for string.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for memory.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for strings.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for inttypes.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for stdint.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4521: checking for unistd.h
configure:4521: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4521: $? = 0
configure:4521: result: yes
configure:4536: checking stddef.h usability
configure:4536: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4536: $? = 0
configure:4536: result: yes
configure:4536: checking stddef.h presence
configure:4536: gcc -E -I../../deps/local/include -I/ad3 conftest.c
configure:4536: $? = 0
configure:4536: result: yes
configure:4536: checking for stddef.h
configure:4536: result: yes
configure:4536: checking for string.h
configure:4536: result: yes
configure:4536: checking sys/time.h usability
configure:4536: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4536: $? = 0
configure:4536: result: yes
configure:4536: checking sys/time.h presence
configure:4536: gcc -E -I../../deps/local/include -I/ad3 conftest.c
configure:4536: $? = 0
configure:4536: result: yes
configure:4536: checking for sys/time.h
configure:4536: result: yes
configure:4548: checking for stdbool.h that conforms to C99
configure:4615: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4615: $? = 0
configure:4622: result: yes
configure:4624: checking for _Bool
configure:4624: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4624: $? = 0
configure:4624: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
conftest.c:58:20: error: expected expression
if (sizeof ((_Bool)))
^
1 error generated.
configure:4624: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "TurboParser"
| #define PACKAGE_TARNAME "TurboParser"
| #define PACKAGE_VERSION "2.1.0"
| #define PACKAGE_STRING "TurboParser 2.1.0"
| #define PACKAGE_BUGREPORT "afm#cs.cmu.edu"
| #define PACKAGE_URL "http://www.ark.cs.cmu.edu/TurboParser/"
| #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_STDDEF_H 1
| #define HAVE_STRING_H 1
| #define HAVE_SYS_TIME_H 1
| /* end confdefs.h. */
| #include <stdio.h>
| #ifdef HAVE_SYS_TYPES_H
| # include <sys/types.h>
| #endif
| #ifdef HAVE_SYS_STAT_H
| # include <sys/stat.h>
| #endif
| #ifdef STDC_HEADERS
| # include <stdlib.h>
| # include <stddef.h>
| #else
| # ifdef HAVE_STDLIB_H
| # include <stdlib.h>
| # endif
| #endif
| #ifdef HAVE_STRING_H
| # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
| # include <memory.h>
| # endif
| # include <string.h>
| #endif
| #ifdef HAVE_STRINGS_H
| # include <strings.h>
| #endif
| #ifdef HAVE_INTTYPES_H
| # include <inttypes.h>
| #endif
| #ifdef HAVE_STDINT_H
| # include <stdint.h>
| #endif
| #ifdef HAVE_UNISTD_H
| # include <unistd.h>
| #endif
| int
| main ()
| {
| if (sizeof ((_Bool)))
| return 0;
| ;
| return 0;
| }
configure:4624: result: yes
configure:4640: checking for inline
configure:4656: gcc -c -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4656: $? = 0
configure:4664: result: inline
configure:4686: checking for gettimeofday
configure:4686: gcc -o conftest -g -O2 -I../../deps/local/include -I/ad3 conftest.c >&5
configure:4686: $? = 0
configure:4686: result: yes
configure:4836: creating ./config.status
Does anyone have an idea? Thanks
on MacOSX 10.8.5, after upgrading to Xcode 5.0.2 (and upgrading/installing the Command Line Tools (from within Xcode preferences) I was installing FFTW 3.3.3 and Open MPI 1.6.5 by configuring them from the sources. I get the same type of error in both config.log files in the configure step, which shows the problem is not with the programs as I downloaded them from the official websites.
In short, the first error I see in the both logs is:
configure:3750: checking for gcc
configure:3766: found /usr/bin/gcc
configure:3777: result: gcc
configure:4006: checking for C compiler version
configure:4015: gcc --version >&5
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:4026: $? = 0
configure:4015: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
configure:4026: $? = 0
configure:4015: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4026: $? = 1
configure:4015: gcc -qversion >&5
clang: error: no input files
when I type:
alexey-sorokin:local admin$ gcc --version
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
when I type some commands to check what is the problem I get similar error to the log:
alexey-sorokin:local admin$ gcc -V
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
alexey-sorokin:local admin$ clang -v
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
alexey-sorokin:local admin$ which clang
/usr/bin/clang
alexey-sorokin:local admin$ gcc
clang: error: no input files
See my config.log file for FFTW3.3.3 installation below. The log for OpenMPI1.6.5 looks very similar, I can upload it in the next message if needed. I could not upload the ful log in the body so I made it shorter.
Any help/insights much appreciated! Thank you all!
++++CONFIG.LOG+++++FFTW3.3.3installation
It was created by fftw configure 3.3.3, which was
generated by GNU Autoconf 2.69. Invocation command line was
$ ./configure --prefix=/usr/local
## --------- ##
## Platform. ##
## --------- ##
hostname = alexey-sorokin
uname -m = x86_64
uname -r = 12.5.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.5.0: Sun Sep 29 13:33:47 PDT 2013; root:xnu-2050.48.12~1/RELEASE_X86_64
Kernel configured for up to 4 processors.
2 processors are physically available.
4 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1 2 3
Primary memory available: 8.00 gigabytes
Default processor set: 120 tasks, 548 threads, 4 processors
Load average: 1.22, Mach factor: 2.76
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/bin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2742: checking for a BSD-compatible install
configure:2810: result: /usr/bin/install -c
configure:2821: checking whether build environment is sane
configure:2871: result: yes
configure:3012: checking for a thread-safe mkdir -p
configure:3051: result: ./install-sh -c -d
configure:3064: checking for gawk
configure:3094: result: no
configure:3064: checking for mawk
configure:3094: result: no
configure:3064: checking for nawk
configure:3094: result: no
configure:3064: checking for awk
configure:3080: found /usr/bin/awk
configure:3091: result: awk
configure:3102: checking whether make sets $(MAKE)
configure:3124: result: yes
configure:3208: checking whether to enable maintainer-specific portions of Makefiles
configure:3217: result: no
configure:3265: checking build system type
configure:3279: result: x86_64-apple-darwin12.5.0
configure:3299: checking host system type
configure:3312: result: x86_64-apple-darwin12.5.0
configure:3750: checking for gcc
configure:3766: found /usr/bin/gcc
configure:3777: result: gcc
configure:4006: checking for C compiler version
configure:4015: gcc --version >&5
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:4026: $? = 0
configure:4015: gcc -v >&5
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
Target: x86_64-apple-darwin12.5.0
Thread model: posix
configure:4026: $? = 0
configure:4015: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:4026: $? = 1
configure:4015: gcc -qversion >&5
clang: error: no input files
configure:4026: $? = 1
configure:4046: checking whether the C compiler works
configure:4068: gcc conftest.c >&5
configure:4072: $? = 0
configure:4120: result: yes
configure:4123: checking for C compiler default output file name
configure:4125: result: a.out
configure:4131: checking for suffix of executables
configure:4138: gcc -o conftest conftest.c >&5
configure:4142: $? = 0
configure:4164: result:
configure:4186: checking whether we are cross compiling
configure:4194: gcc -o conftest conftest.c >&5
configure:4198: $? = 0
configure:4205: ./conftest
configure:4209: $? = 0
configure:4224: result: no
configure:4229: checking for suffix of object files
configure:4251: gcc -c conftest.c >&5
configure:4255: $? = 0
configure:4276: result: o
configure:4280: checking whether we are using the GNU C compiler
configure:4299: gcc -c conftest.c >&5
configure:4299: $? = 0
configure:4308: result: yes
configure:4317: checking whether gcc accepts -g
configure:4337: gcc -c -g conftest.c >&5
configure:4337: $? = 0
configure:4378: result: yes
configure:4395: checking for gcc option to accept ISO C89
configure:4458: gcc -c -g -O2 conftest.c >&5
configure:4458: $? = 0
configure:4471: result: none needed
configure:4502: checking for style of include used by make
configure:4530: result: GNU
configure:4556: checking dependency style of gcc
configure:4667: result: gcc3
configure:4683: checking whether gcc and cc understand -c and -o together
configure:4714: gcc -c conftest.c -o conftest2.o >&5
configure:4718: $? = 0
configure:4724: gcc -c conftest.c -o conftest2.o >&5
configure:4728: $? = 0
configure:4739: cc -c conftest.c >&5
configure:4743: $? = 0
configure:4751: cc -c conftest.c -o conftest2.o >&5
configure:4755: $? = 0
configure:4761: cc -c conftest.c -o conftest2.o >&5
configure:4765: $? = 0
configure:4783: result: yes
configure:4810: checking for C compiler vendor
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fftw"
| #define PACKAGE_TARNAME "fftw"
| #define PACKAGE_VERSION "3.3.3"
| #define PACKAGE_STRING "fftw 3.3.3"
| #define PACKAGE_BUGREPORT "fftw#fftw.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fftw"
| #define VERSION "3.3.3"
| #define FFTW_ENABLE_ALLOCA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| #if !(defined(__ICC) || defined(__ECC) || defined(__INTEL_COMPILER))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fftw"
| #define PACKAGE_TARNAME "fftw"
| #define PACKAGE_VERSION "3.3.3"
| #define PACKAGE_STRING "fftw 3.3.3"
| #define PACKAGE_BUGREPORT "fftw#fftw.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fftw"
| #define VERSION "3.3.3"
| #define FFTW_ENABLE_ALLOCA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| #if !(defined(__xlc__) || defined(__xlC__) || defined(__IBMC__) || defined(__IBMCPP__))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
conftest.c:18:7: error: use of undeclared identifier 'thisisanerror'
thisisanerror;
^
1 error generated.
configure:4834: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fftw"
| #define PACKAGE_TARNAME "fftw"
| #define PACKAGE_VERSION "3.3.3"
| #define PACKAGE_STRING "fftw 3.3.3"
| #define PACKAGE_BUGREPORT "fftw#fftw.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fftw"
| #define VERSION "3.3.3"
| #define FFTW_ENABLE_ALLOCA 1
| /* end confdefs.h. */
|
| int
| main ()
| {
|
| #if !(defined(__PATHCC__) || defined(__PATHSCALE__))
| thisisanerror;
| #endif
|
| ;
| return 0;
| }
configure:4834: gcc -c -g -O2 conftest.c >&5
configure:4834: $? = 0
configure:4841: result: gnu
configure:4848: checking for gcc option to accept ISO C99
configure:4997: gcc -c -g -O2 conftest.c >&5
configure:4997: $? = 0
configure:5010: result: none needed
configure:5118: checking for gcc option to accept ISO Standard C
configure:5129: result: none needed
configure:5137: checking whether ln -s works
configure:5141: result: yes
configure:5148: checking whether make sets $(MAKE)
configure:5170: result: yes
configure:5528: checking how to print strings
configure:5555: result: printf
configure:5576: checking for a sed that does not truncate output
configure:5640: result: /usr/bin/sed
configure:5658: checking for grep that handles long lines and -e
configure:5716: result: /usr/bin/grep
configure:5721: checking for egrep
configure:5783: result: /usr/bin/grep -E
configure:5788: checking for fgrep
configure:5850: result: /usr/bin/grep -F
configure:5885: checking for ld used by gcc
configure:5952: result: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld
configure:5959: checking if the linker (/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld) is GNU ld
configure:5974: result: no
configure:5986: checking for BSD- or MS-compatible name lister (nm)
configure:6035: result: /usr/bin/nm
configure:6165: checking the name lister (/usr/bin/nm) interface
configure:6172: gcc -c -g -O2 conftest.c >&5
configure:6175: /usr/bin/nm "conftest.o"
configure:6178: output
0000000000000208 S _some_variable
configure:6185: result: BSD nm
configure:6189: checking the maximum length of command line arguments
configure:6319: result: 196608
configure:6336: checking whether the shell understands some XSI constructs
configure:6346: result: yes
configure:6350: checking whether the shell understands "+="
configure:6356: result: yes
configure:6391: checking how to convert x86_64-apple-darwin12.5.0 file names to x86_64-apple-darwin12.5.0 format
configure:6431: result: func_convert_file_noop
configure:6438: checking how to convert x86_64-apple-darwin12.5.0 file names to toolchain format
configure:6458: result: func_convert_file_noop
configure:6465: checking for /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld option to reload object files
configure:6472: result: -r
configure:6546: checking for objdump
configure:6573: result: objdump
configure:6602: checking how to recognize dependent libraries
configure:6800: result: pass_all
configure:6885: checking for dlltool
configure:6912: result: dlltool
configure:6942: checking how to associate runtime and link libraries
configure:6969: result: printf %s\n
configure:7029: checking for ar
configure:7045: found /usr/bin/ar
configure:7056: result: ar
configure:7093: checking for archiver #FILE support
configure:7110: gcc -c -g -O2 conftest.c >&5
configure:7110: $? = 0
configure:7113: ar cru libconftest.a #conftest.lst >&5
ar: #conftest.lst: No such file or directory
configure:7116: $? = 1
configure:7136: result: no
configure:7194: checking for strip
configure:7210: found /usr/bin/strip
configure:7221: result: strip
configure:7293: checking for ranlib
configure:7309: found /usr/bin/ranlib
configure:7320: result: ranlib
configure:7422: checking command to parse /usr/bin/nm output from gcc object
configure:7542: gcc -c -g -O2 conftest.c >&5
configure:7545: $? = 0
configure:7549: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*\([_A-Za-z][_A-Za-z0-9]*\)$/\1 \2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7552: $? = 0
cannot find nm_test_var in conftest.nm
configure:7542: gcc -c -g -O2 conftest.c >&5
configure:7545: $? = 0
configure:7549: /usr/bin/nm conftest.o \| sed -n -e 's/^.*[ ]\([BCDEGRST][BCDEGRST]*\)[ ][ ]*_\([_A-Za-z][_A-Za-z0-9]*\)$/\1 _\2 \2/p' | sed '/ __gnu_lto/d' \> conftest.nm
configure:7552: $? = 0
configure:7618: gcc -o conftest -g -O2 conftest.c conftstm.o >&5
configure:7621: $? = 0
configure:7659: result: ok
configure:7696: checking for sysroot
configure:7726: result: no
configure:7982: checking for mt
configure:8012: result: no
configure:8032: checking if : is a manifest tool
configure:8038: : '-?'
configure:8046: result: no
configure:8102: checking for dsymutil
configure:8118: found /usr/bin/dsymutil
configure:8129: result: dsymutil
configure:8194: checking for nmedit
configure:8210: found /usr/bin/nmedit
configure:8221: result: nmedit
configure:8286: checking for lipo
configure:8302: found /usr/bin/lipo
configure:8313: result: lipo
configure:8378: checking for otool
configure:8394: found /usr/bin/otool
configure:8405: result: otool
configure:8470: checking for otool64
configure:8500: result: no
configure:8545: checking for -single_module linker flag
gcc -g -O2 -o libconftest.dylib -dynamiclib -Wl,-single_module conftest.c
configure:8578: result: yes
configure:8581: checking for -exported_symbols_list linker flag
configure:8601: gcc -o conftest -g -O2 -Wl,-exported_symbols_list,conftest.sym conftest.c >&5
configure:8601: $? = 0
configure:8611: result: yes
configure:8614: checking for -force_load linker flag
gcc -g -O2 -c -o conftest.o conftest.c
ar cru libconftest.a conftest.o
ranlib libconftest.a
gcc -g -O2 -o conftest conftest.c -Wl,-force_load,./libconftest.a
configure:8646: result: yes
configure:8688: checking how to run the C preprocessor
configure:8719: gcc -E conftest.c
configure:8719: $? = 0
configure:8733: gcc -E conftest.c
conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:8733: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "fftw"
| #define PACKAGE_TARNAME "fftw"
| #define PACKAGE_VERSION "3.3.3"
| #define PACKAGE_STRING "fftw 3.3.3"
| #define PACKAGE_BUGREPORT "fftw#fftw.org"
| #define PACKAGE_URL ""
| #define PACKAGE "fftw"
| #define VERSION "3.3.3"
| #define FFTW_ENABLE_ALLOCA 1
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:8758: result: gcc -E
configure:8778: gcc -E conftest.c
configure:8778: $? = 0
configure:8792: gcc -E conftest.c
conftest.c:12:10: fatal error: 'ac_nonexistent.h' file not found
#include <ac_nonexistent.h>
^
1 error generated.
configure:8792: $? = 1
configure: failed program was:
| /* confdefs.h */
………….and so on…..below is the end:
## ----------------- ##
## Output variables. ##
## ----------------- ##
ACLOCAL='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run aclocal-1.11'
ALLOCA=''
ALTIVEC_CFLAGS=''
AMDEPBACKSLASH='\'
AMDEP_FALSE='#'
AMDEP_TRUE=''
AMTAR='$${TAR-tar}'
AR='ar'
AS='as'
AUTOCONF='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoconf'
AUTOHEADER='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run autoheader'
AUTOMAKE='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run automake-1.11'
AVX_CFLAGS=''
AWK='awk'
CC='gcc'
CCDEPMODE='depmode=gcc3'
CFLAGS='-O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math'
CHECK_PL_OPTS=''
COMBINED_THREADS_FALSE=''
COMBINED_THREADS_TRUE='#'
CPP='gcc -E'
CPPFLAGS=''
CYGPATH_W='echo'
C_FFTW_R2R_KIND='C_INT32_T'
C_MPI_FINT=''
DEFS='-DHAVE_CONFIG_H'
DEPDIR='.deps'
DLLTOOL='dlltool'
DSYMUTIL='dsymutil'
DUMPBIN=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP='/usr/bin/grep -E'
EXEEXT=''
F77='gfortran'
FFLAGS='-g -O2'
FGREP='/usr/bin/grep -F'
FLIBS=' -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin12/4.8.2 -L/usr/local/gfortran/lib/gcc/x86_64-apple-darwin12/4.8.2/../../.. -lgfortran -lquadmath -lm'
GREP='/usr/bin/grep'
HAVE_ALTIVEC_FALSE=''
HAVE_ALTIVEC_TRUE='#'
HAVE_AVX_FALSE=''
HAVE_AVX_TRUE='#'
HAVE_NEON_FALSE=''
HAVE_NEON_TRUE='#'
HAVE_SSE2_FALSE=''
HAVE_SSE2_TRUE='#'
INSTALL_DATA='${INSTALL} -m 644'
INSTALL_PROGRAM='${INSTALL}'
INSTALL_SCRIPT='${INSTALL}'
INSTALL_STRIP_PROGRAM='$(install_sh) -c -s'
LD='/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ld'
LDFLAGS=''
LDOUBLE_FALSE=''
LDOUBLE_TRUE='#'
LIBOBJS=''
LIBQUADMATH=''
LIBS='-lm '
LIBTOOL='$(SHELL) $(top_builddir)/libtool'
LIPO='lipo'
LN_S='ln -s'
LTLIBOBJS=''
MAINT='#'
MAINTAINER_MODE_FALSE=''
MAINTAINER_MODE_TRUE='#'
MAKEINFO='${SHELL} /Users/admin/Downloads/fftw-3.3.3/missing --run makeinfo'
MANIFEST_TOOL=':'
MKDIR_P='./install-sh -c -d'
MPICC=''
MPILIBS=''
MPIRUN=''
MPI_FALSE=''
MPI_TRUE='#'
NEON_CFLAGS=''
NM='/usr/bin/nm'
NMEDIT='nmedit'
OBJDUMP='objdump'
OBJEXT='o'
OCAMLBUILD=''
OPENMP_CFLAGS=''
OPENMP_FALSE=''
OPENMP_TRUE='#'
OTOOL64=':'
OTOOL='otool'
PACKAGE='fftw'
PACKAGE_BUGREPORT='fftw#fftw.org'
PACKAGE_NAME='fftw'
PACKAGE_STRING='fftw 3.3.3'
PACKAGE_TARNAME='fftw'
PACKAGE_URL=''
PACKAGE_VERSION='3.3.3'
PATH_SEPARATOR=':'
POW_LIB=''
PRECISION='d'
PREC_SUFFIX=''
PTHREAD_CC=''
PTHREAD_CFLAGS=''
PTHREAD_LIBS=''
QUAD_FALSE=''
QUAD_TRUE='#'
RANLIB='ranlib'
SED='/usr/bin/sed'
SET_MAKE=''
SHARED_VERSION_INFO='6:2:3'
SHELL='/bin/sh'
SINGLE_FALSE=''
SINGLE_TRUE='#'
SMP_FALSE=''
SMP_TRUE='#'
SSE2_CFLAGS=''
STACK_ALIGN_CFLAGS=''
STRIP='strip'
THREADLIBS=''
THREADS_FALSE=''
THREADS_TRUE='#'
VERSION='3.3.3'
ac_ct_AR='ar'
ac_ct_CC='gcc'
ac_ct_DUMPBIN=''
ac_ct_F77='gfortran'
acx_pthread_config=''
am__EXEEXT_FALSE=''
am__EXEEXT_TRUE='#'
am__fastdepCC_FALSE='#'
am__fastdepCC_TRUE=''
am__include='include'
am__isrc=''
am__leading_dot='.'
am__nodep='_no'
am__quote=''
am__tar='$${TAR-tar} chof - "$$tardir"'
am__untar='$${TAR-tar} xf -'
bindir='${exec_prefix}/bin'
build='x86_64-apple-darwin12.5.0'
build_alias=''
build_cpu='x86_64'
build_os='darwin12.5.0'
build_vendor='apple'
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='${prefix}'
host='x86_64-apple-darwin12.5.0'
host_alias=''
host_cpu='x86_64'
host_os='darwin12.5.0'
host_vendor='apple'
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
install_sh='${SHELL} /Users/admin/Downloads/fftw-3.3.3/install-sh'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
mkdir_p='$(top_builddir)/./install-sh -c -d'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='/usr/local'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "fftw"
#define PACKAGE_TARNAME "fftw"
#define PACKAGE_VERSION "3.3.3"
#define PACKAGE_STRING "fftw 3.3.3"
#define PACKAGE_BUGREPORT "fftw#fftw.org"
#define PACKAGE_URL ""
#define PACKAGE "fftw"
#define VERSION "3.3.3"
#define FFTW_ENABLE_ALLOCA 1
#define STDC_HEADERS 1
#define HAVE_SYS_TYPES_H 1
#define HAVE_SYS_STAT_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_MEMORY_H 1
#define HAVE_STRINGS_H 1
#define HAVE_INTTYPES_H 1
#define HAVE_STDINT_H 1
#define HAVE_UNISTD_H 1
#define HAVE_DLFCN_H 1
#define LT_OBJDIR ".libs/"
#define STDC_HEADERS 1
#define HAVE_STDDEF_H 1
#define HAVE_STDLIB_H 1
#define HAVE_STRING_H 1
#define HAVE_STRINGS_H 1
#define HAVE_SYS_TIME_H 1
#define HAVE_UNISTD_H 1
#define HAVE_LIMITS_H 1
#define HAVE_STDINT_H 1
#define HAVE_MACH_MACH_TIME_H 1
#define HAVE_SYS_SYSCTL_H 1
#define TIME_WITH_SYS_TIME 1
#define HAVE_LONG_DOUBLE 1
#define SIZEOF_INT 4
#define SIZEOF_UNSIGNED_INT 4
#define SIZEOF_LONG 8
#define SIZEOF_UNSIGNED_LONG 8
#define SIZEOF_LONG_LONG 8
#define SIZEOF_UNSIGNED_LONG_LONG 8
#define SIZEOF_SIZE_T 8
#define SIZEOF_PTRDIFF_T 8
#define HAVE_UINTPTR_T 1
#define SIZEOF_FLOAT 4
#define SIZEOF_DOUBLE 8
#define SIZEOF_FFTW_R2R_KIND 4
#define HAVE_ALLOCA_H 1
#define HAVE_ALLOCA 1
#define HAVE_VPRINTF 1
#define HAVE_LIBM 1
#define HAVE_GETTIMEOFDAY 1
#define HAVE_DRAND48 1
#define HAVE_SQRT 1
#define HAVE_MEMSET 1
#define HAVE_POSIX_MEMALIGN 1
#define HAVE_MACH_ABSOLUTE_TIME 1
#define HAVE_SYSCTL 1
#define HAVE_ABORT 1
#define HAVE_SINL 1
#define HAVE_COSL 1
#define HAVE_SNPRINTF 1
#define HAVE_DECL_DRAND48 1
#define HAVE_DECL_SRAND48 1
#define HAVE_DECL_MEMALIGN 0
#define HAVE_DECL_POSIX_MEMALIGN 1
#define HAVE_DECL_SINL 1
#define HAVE_DECL_COSL 1
#define HAVE_DECL_SINQ 0
#define HAVE_DECL_COSQ 0
#define HAVE_ISNAN 1
#define F77_FUNC(name,NAME) name ## _
#define F77_FUNC_(name,NAME) name ## _
#define F77_FUNC_EQUIV 1
#define WITH_G77_WRAPPERS 1
#define FFTW_CC "gcc -O3 -fomit-frame-pointer -mtune=native -malign-double -fstrict-aliasing -fno-schedule-insns -ffast-math"
configure: exit 0
The problem is, that Apple redirect all GCC calls to clang. Configure thinks it is using GCC and uses an incompatible syntax, thus Clang fails.
You have either look for a more recent version of your tools which fixed the issue. Or you have to look for specific flags to tell configure which compiler to use. Try to set the shell variables CC, CXX or there might be a specific configure flag, ask configure --help
The other possibility would be to install GCC. Using macports or homebrew this is rather simpler. But it could be that one of these offers you MPI and FFTW, so you could use these.
I'm trying to build xmonad in Mountain Lion to run with Xquartz 2.7.2, tutorial found here .
I'm using cabal to get required X11 libraries cabal install X11-1.5.0.1.
That didn't work, so I got the tar and tried building it with ghc, same error. It won't configure:
Resolving dependencies...
Configuring X11-1.5.0.1...
configure: WARNING: unrecognized options: --with-compiler, --with-gcc
checking for gcc... gcc
checking whether the C compiler works... yes
checking for C compiler default output file name... a.outchecking for suffix of executables...
checking whether we are cross compiling... no
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking how to run the C preprocessor... gcc -E
checking for X... no
configure: error: in `/private/var/folders/vr/6swz_qtn60q0ld9lp_pbdqk80000gn/T/X11-1.5.0.1-78620/X11-1.5.0.1':
configure: error: X11 libraries not found, so X11 package cannot be built
See `config.log' for more details
cabal: Error: some packages failed to install:X11-1.5.0.1 failed during the configure step. The exception was:ExitFailure 1
my config.log:
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by Haskell X11 package configure 1.4.6, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ configure --with-hc=ghc --with-gcc=/usr/bin/gcc
## --------- ##
## Platform. ##
## --------- ##
hostname = ilikeplantss-MacBook.local
uname -m = x86_64
uname -r = 12.0.0
uname -s = Darwin
uname -v = Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64
/usr/bin/uname -p = i386
/bin/uname -X = unknown
/bin/arch = unknown
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = Mach kernel version:
Darwin Kernel Version 12.0.0: Sun Jun 24 23:00:16 PDT 2012; root:xnu-2050.7.9~1/RELEASE_X86_64
Kernel configured for up to 2 processors.
2 processors are physically available.
2 processors are logically available.
Processor type: i486 (Intel 80486)
Processors active: 0 1
Primary memory available: 2.00 gigabytes
Default processor set: 96 tasks, 410 threads, 2 processors
Load average: 1.90, Mach factor: 0.72
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /opt/local/bin
PATH: /opt/local/sbin
PATH: /usr/bin
PATH: /bin
PATH: /usr/sbin
PATH: /sbin
PATH: /usr/local/bin
PATH: /opt/X11/bin
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2169: checking for gcc
configure:2185: found /usr/bin/gcc
configure:2196: result: gcc
configure:2425: checking for C compiler version
configure:2434: gcc --version >&5
i686-apple-darwin11-llvm-gcc-4.2 (GCC) 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
Copyright (C) 2007 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
configure:2445: $? = 0
configure:2434: gcc -v >&5
Using built-in specs.
Target: i686-apple-darwin11
Configured with: /private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/src/configure --disable-checking --enable-werror --prefix=/Applications/Xcode.app/Contents/Developer/usr/llvm-gcc-4.2 --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-prefix=llvm- --program-transform-name=/^[cg][^.-]*$/s/$/-4.2/ --with-slibdir=/usr/lib --build=i686-apple-darwin11 --enable-llvm=/private/var/tmp/llvmgcc42/llvmgcc42-2336.11~28/dst-llvmCore/Developer/usr/local --program-prefix=i686-apple-darwin11- --host=x86_64-apple-darwin11 --target=i686-apple-darwin11 --with-gxx-include-dir=/usr/include/c++/4.2.1
Thread model: posix
gcc version 4.2.1 (Based on Apple Inc. build 5658) (LLVM build 2336.11.00)
configure:2445: $? = 0
configure:2434: gcc -V >&5
llvm-gcc-4.2: argument to `-V' is missing
configure:2445: $? = 1
configure:2434: gcc -qversion >&5
i686-apple-darwin11-llvm-gcc-4.2: no input files
configure:2445: $? = 1
configure:2465: checking whether the C compiler works
configure:2487: gcc -m32 conftest.c >&5
configure:2491: $? = 0
configure:2539: result: yes
configure:2542: checking for C compiler default output file name
configure:2544: result: a.out
configure:2550: checking for suffix of executables
configure:2557: gcc -o conftest -m32 conftest.c >&5
configure:2561: $? = 0
configure:2583: result:
configure:2605: checking whether we are cross compiling
configure:2613: gcc -o conftest -m32 conftest.c >&5
configure:2617: $? = 0
configure:2624: ./conftest
configure:2628: $? = 0
configure:2643: result: no
configure:2648: checking for suffix of object files
configure:2670: gcc -c -m32 conftest.c >&5
configure:2674: $? = 0
configure:2695: result: o
configure:2699: checking whether we are using the GNU C compiler
configure:2718: gcc -c -m32 conftest.c >&5
configure:2718: $? = 0
configure:2727: result: yes
configure:2736: checking whether gcc accepts -g
configure:2756: gcc -c -g conftest.c >&5
configure:2756: $? = 0
configure:2797: result: yes
configure:2814: checking for gcc option to accept ISO C89
configure:2878: gcc -c -m32 conftest.c >&5
configure:2878: $? = 0
configure:2891: result: none needed
configure:2917: checking how to run the C preprocessor
configure:2948: gcc -E conftest.c
configure:2948: $? = 0
configure:2962: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:2962: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:2987: result: gcc -E
configure:3007: gcc -E conftest.c
configure:3007: $? = 0
configure:3021: gcc -E conftest.c
conftest.c:9:28: error: ac_nonexistent.h: No such file or directory
configure:3021: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <ac_nonexistent.h>
configure:3050: checking for X
configure:3158: gcc -E conftest.c
conftest.c:9:22: error: X11/Xlib.h: No such file or directory
configure:3158: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <X11/Xlib.h>
configure:3189: gcc -o conftest -m32 conftest.c -lX11 >&5
conftest.c:9:22: error: X11/Xlib.h: No such file or directory
configure:3189: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
| #include <X11/Xlib.h>
| int
| main ()
| {
| XrmInitialize ()
| ;
| return 0;
| }
configure:3228: result: no
configure:3744: gcc -E conftest.c
conftest.c:10:22: error: X11/Xlib.h: No such file or directory
configure:3744: $? = 1
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "Haskell X11 package"
| #define PACKAGE_TARNAME "X11"
| #define PACKAGE_VERSION "1.4.6"
| #define PACKAGE_STRING "Haskell X11 package 1.4.6"
| #define PACKAGE_BUGREPORT "dons#galois.com"
| #define PACKAGE_URL ""
| #define X_DISPLAY_MISSING 1
| /* end confdefs.h. */
| #include <X11/Xlib.h>
configure:3759: error: in `/Users/gav/Desktop/X11-1.6.0':
configure:3761: error: X11 libraries not found, so X11 package cannot be built
See `config.log' for more details
## ---------------- ##
## Cache variables. ##
## ---------------- ##
ac_cv_c_compiler_gnu=yes
ac_cv_env_CC_set=
ac_cv_env_CC_value=
ac_cv_env_CFLAGS_set=set
ac_cv_env_CFLAGS_value=-m32
ac_cv_env_CPPFLAGS_set=
ac_cv_env_CPPFLAGS_value=
ac_cv_env_CPP_set=
ac_cv_env_CPP_value=
ac_cv_env_LDFLAGS_set=
ac_cv_env_LDFLAGS_value=
ac_cv_env_LIBS_set=
ac_cv_env_LIBS_value=
ac_cv_env_XMKMF_set=
ac_cv_env_XMKMF_value=
ac_cv_env_build_alias_set=
ac_cv_env_build_alias_value=
ac_cv_env_host_alias_set=
ac_cv_env_host_alias_value=
ac_cv_env_target_alias_set=
ac_cv_env_target_alias_value=
ac_cv_have_x=have_x=no
ac_cv_objext=o
ac_cv_prog_CPP='gcc -E'
ac_cv_prog_ac_ct_CC=gcc
ac_cv_prog_cc_c89=
ac_cv_prog_cc_g=yes
## ----------------- ##
## Output variables. ##
## ----------------- ##
BUILD_PACKAGE_BOOL=''
CC='gcc'
CFLAGS='-m32'
CPP='gcc -E'
CPPFLAGS=' -INONE'
DEFS=''
ECHO_C='\c'
ECHO_N=''
ECHO_T=''
EGREP=''
EXEEXT=''
EXTRA_LIBRARIES=''
GREP=''
LDFLAGS=''
LIBOBJS=''
LIBS=''
LTLIBOBJS=''
OBJEXT='o'
PACKAGE_BUGREPORT='dons#galois.com'
PACKAGE_NAME='Haskell X11 package'
PACKAGE_STRING='Haskell X11 package 1.4.6'
PACKAGE_TARNAME='X11'
PACKAGE_URL=''
PACKAGE_VERSION='1.4.6'
PATH_SEPARATOR=':'
SHELL='/bin/sh'
X11_BUILD_PACKAGE=''
XMKMF=''
X_CFLAGS=''
X_EXTRA_LIBS=''
X_LIBS=''
X_PRE_LIBS=''
ac_ct_CC='gcc'
bindir='${exec_prefix}/bin'
build_alias=''
datadir='${datarootdir}'
datarootdir='${prefix}/share'
docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
dvidir='${docdir}'
exec_prefix='NONE'
host_alias=''
htmldir='${docdir}'
includedir='${prefix}/include'
infodir='${datarootdir}/info'
libdir='${exec_prefix}/lib'
libexecdir='${exec_prefix}/libexec'
localedir='${datarootdir}/locale'
localstatedir='${prefix}/var'
mandir='${datarootdir}/man'
oldincludedir='/usr/include'
pdfdir='${docdir}'
prefix='NONE'
program_transform_name='s,x,x,'
psdir='${docdir}'
sbindir='${exec_prefix}/sbin'
sharedstatedir='${prefix}/com'
sysconfdir='${prefix}/etc'
target_alias=''
## ----------- ##
## confdefs.h. ##
## ----------- ##
/* confdefs.h */
#define PACKAGE_NAME "Haskell X11 package"
#define PACKAGE_TARNAME "X11"
#define PACKAGE_VERSION "1.4.6"
#define PACKAGE_STRING "Haskell X11 package 1.4.6"
#define PACKAGE_BUGREPORT "dons#galois.com"
#define PACKAGE_URL ""
#define X_DISPLAY_MISSING 1
configure: exit 1
Is there something I need to add to correct the paths to point to Xquartz libraries?
The toolchain won't find X11 in /opt. You need to either install X11 to a place where it can be found by the compiler/linker by default, or pass relevant -I and -L flags down to the corresponding tools. I hear this works:
env CPPFLAGS="-I/opt/X11/include" LDFLAGS="-L/opt/X11/lib" your-build-command
though I personally just symlink everything to /usr/{lib,include}.