[CMake] cmake failing with "The executable file format is Unknown"

Miguel A. Figueroa-Villanueva miguelf at ieee.org
Tue Jan 15 05:12:00 EST 2008


Hello,

I'm getting the following error when using CMakeSetup or QtDialog to
create "Unix Makefiles" for cygwin:

The executable file format is Unknown
...
CMake Error: Unable to link function recv

Below is the complete output of the configuration process. I'm using a
cvs build (from Today). Built with visual studio 8 and I'm invoking
that cmake gui from a cygwin shell to create a "Eclipse CDT 4 - Unix
Makefiles" configuration. I can generate Visual Studio 8 projects
fine.

I guess it probably has to due with some windows/cygwin environment
quirk, but I was hoping someone can point me in the right direction as
to how to debug/fix the problem.

Thanks,
--Miguel

The C compiler identification is GNU
The executable file format is Unknown
The CXX compiler identification is GNU
Check for working C compiler: D:/linux_ports/cygwin/bin/gcc.exe
Check for working C compiler: D:/linux_ports/cygwin/bin/gcc.exe -- works
Check size of void*
Check size of void* - done
Check for working CXX compiler: D:/linux_ports/cygwin/bin/g++.exe
Check for working CXX compiler: D:/linux_ports/cygwin/bin/g++.exe -- works
Looking for C++ include iostream
Looking for C++ include iostream - found
Check for STD namespace
Check for STD namespace - found
Check for ANSI scope
Check for ANSI scope - found
Check for sstream
Check for sstream - found
Looking for unsetenv
Looking for unsetenv - found
Looking for environ
Looking for environ - not found.
Looking for MFC
Looking for MFC - not found
Checking for Large File Support
Checking for Large File Support - no
Checking whether STL classes are in std namespace
Checking whether STL classes are in std namespace - yes
Checking whether ANSI stream headers are available
Checking whether ANSI stream headers are available - yes
Checking whether ANSI streams are in std namespace
Checking whether ANSI streams are in std namespace - yes
Checking whether ANSI string stream is available
Checking whether ANSI string stream is available - yes
Checking whether header cstddef is available
Checking whether header cstddef is available - yes
Checking whether stl string has operator!= for char*
Checking whether stl string has operator!= for char* - yes
Checking whether stl has iterator_traits
Checking whether stl has iterator_traits - yes
Checking whether stl has standard template allocator
Checking whether stl has standard template allocator - yes
Checking for rebind member of stl allocator
Checking for rebind member of stl allocator - yes
Checking for non-standard argument to stl allocator<>::max_size
Checking for non-standard argument to stl allocator<>::max_size - no
Checking whether stl containers support allocator objects.
Checking whether stl containers support allocator objects. - yes
Checking whether "<>" is needed for template friends
Checking whether "<>" is needed for template friends - yes
Checking for member template support
Checking for member template support - yes
Checking for standard template specialization syntax
Checking for standard template specialization syntax - yes
Checking whether argument dependent lookup is supported
Checking whether argument dependent lookup is supported - yes
Check size of char
Check size of char - done
Check size of short
Check size of short - done
Check size of int
Check size of int - done
Check size of long
Check size of long - done
Check size of long long
Check size of long long - done
Check size of __int64
Check size of __int64 - failed
Checking whether char is signed
Checking whether char is signed - yes
Checking if istream supports long long
Checking if istream supports long long - yes
Checking if ostream supports long long
Checking if ostream supports long long - yes
Looking for getch in ws2_32;
Looking for getch in ws2_32; - not found
Looking for getch in winmm;
Looking for getch in winmm; - not found
Looking for SSL_connect in ssl;
Looking for SSL_connect in ssl; - not found
Looking for idna_to_ascii_lz in idn;
Looking for idna_to_ascii_lz in idn; - not found
Looking for include files HAVE_WS2TCPIP_H
Looking for include files HAVE_WS2TCPIP_H - found
Looking for include files HAVE_WINSOCK2_H
Looking for include files HAVE_WINSOCK2_H - found
Looking for include files HAVE_STDIO_H
Looking for include files HAVE_STDIO_H - found
Looking for include files HAVE_WINDOWS_H
Looking for include files HAVE_WINDOWS_H - found
Looking for include files HAVE_WINSOCK_H
Looking for include files HAVE_WINSOCK_H - found
Looking for include files HAVE_STDDEF_H
Looking for include files HAVE_STDDEF_H - found
Looking for include files HAVE_ASSERT_H
Looking for include files HAVE_ASSERT_H - found
Looking for include files HAVE_LIMITS_H
Looking for include files HAVE_LIMITS_H - found
Looking for include files HAVE_OPENSSL_X509_H
Looking for include files HAVE_OPENSSL_X509_H - not found.
Looking for include files HAVE_OPENSSL_ENGINE_H
Looking for include files HAVE_OPENSSL_ENGINE_H - not found.
Looking for include files HAVE_OPENSSL_RSA_H
Looking for include files HAVE_OPENSSL_RSA_H - not found.
Looking for include files HAVE_OPENSSL_CRYPTO_H
Looking for include files HAVE_OPENSSL_CRYPTO_H - not found.
Looking for include files HAVE_OPENSSL_PEM_H
Looking for include files HAVE_OPENSSL_PEM_H - not found.
Looking for include files HAVE_OPENSSL_SSL_H
Looking for include files HAVE_OPENSSL_SSL_H - not found.
Looking for include files HAVE_OPENSSL_ERR_H
Looking for include files HAVE_OPENSSL_ERR_H - not found.
Looking for include files HAVE_OPENSSL_RAND_H
Looking for include files HAVE_OPENSSL_RAND_H - not found.
Looking for include files HAVE_OPENSSL_PKCS12_H
Looking for include files HAVE_OPENSSL_PKCS12_H - not found.
Looking for include files HAVE_NETINET_TCP_H
Looking for include files HAVE_NETINET_TCP_H - found
Looking for include files HAVE_SYS_RESOURCE_H
Looking for include files HAVE_SYS_RESOURCE_H - found
Looking for include files HAVE_LOCALE_H
Looking for include files HAVE_LOCALE_H - found
Looking for include files HAVE_SYS_IOCTL_H
Looking for include files HAVE_SYS_IOCTL_H - found
Looking for include files HAVE_SYS_UTSNAME_H
Looking for include files HAVE_SYS_UTSNAME_H - found
Looking for include files HAVE_IDN_FREE_H
Looking for include files HAVE_IDN_FREE_H - not found.
Looking for include files HAVE_IDNA_H
Looking for include files HAVE_IDNA_H - not found.
Looking for include files HAVE_TLD_H
Looking for include files HAVE_TLD_H - not found.
Looking for include files HAVE_ARPA_TFTP_H
Looking for include files HAVE_ARPA_TFTP_H - not found.
Looking for include files HAVE_ERRNO_H
Looking for include files HAVE_ERRNO_H - found
Looking for include files HAVE_LIBGEN_H
Looking for include files HAVE_LIBGEN_H - found
Looking for include files HAVE_SYS_FILIO_H
Looking for include files HAVE_SYS_FILIO_H - not found.
Check size of size_t
Check size of size_t - done
Check size of ssize_t
Check size of ssize_t - done
Check size of long long
Check size of long long - done
Check size of long
Check size of long - done
Check size of __int64
Check size of __int64 - failed
Check size of time_t
Check size of time_t - done
Looking for basename
Looking for basename - found
Looking for strncmpi
Looking for strncmpi - found
Looking for inet_pton
Looking for inet_pton - not found.
Looking for CRYPTO_cleanup_all_ex_data
Looking for CRYPTO_cleanup_all_ex_data - not found.
Looking for gethostbyname
Looking for gethostbyname - not found.
Looking for strtoll
Looking for strtoll - found
Looking for _strtoi64
Looking for _strtoi64 - not found.
Looking for strerror_r
Looking for strerror_r - found
Looking for siginterrupt
Looking for siginterrupt - found
Looking for fork
Looking for fork - not found.
Looking for pipe
Looking for pipe - not found.
Looking for ftruncate
Looking for ftruncate - not found.
Looking for getprotobyname
Looking for getprotobyname - not found.
Looking for getrlimit
Looking for getrlimit - found
Looking for idn_free
Looking for idn_free - not found.
Looking for idna_strerror
Looking for idna_strerror - not found.
Looking for tld_strerror
Looking for tld_strerror - not found.
Looking for setlocale
Looking for setlocale - found
Looking for setrlimit
Looking for setrlimit - found
Performing Curl Test HAVE_FIONBIO
Performing Curl Test HAVE_FIONBIO - Failed
Performing Curl Test HAVE_IOCTLSOCKET
Performing Curl Test HAVE_IOCTLSOCKET - Failed
Performing Curl Test HAVE_IOCTLSOCKET_CASE
Performing Curl Test HAVE_IOCTLSOCKET_CASE - Failed
Performing Curl Test HAVE_SO_NONBLOCK
Performing Curl Test HAVE_SO_NONBLOCK - Failed
Performing Curl Test HAVE_O_NONBLOCKHAVE_GETHOSTBYADDR_R_5
Performing Curl Test HAVE_O_NONBLOCKHAVE_GETHOSTBYADDR_R_5 - Failed
Performing Curl Test HAVE_SOCKLEN_T
Performing Curl Test HAVE_SOCKLEN_T - Success
Performing Curl Test HAVE_FILE_OFFSET_BITS
Performing Curl Test HAVE_FILE_OFFSET_BITS - Success
Performing Curl Test HAVE_GLIBC_STRERROR_R
Performing Curl Test HAVE_GLIBC_STRERROR_R - Success
Performing Curl Test HAVE_POSIX_STRERROR_R
Performing Curl Test HAVE_POSIX_STRERROR_R - Failed
Check size of curl_off_t
Check size of curl_off_t - done
Performing Test curl_cv_recv
Performing Test curl_cv_recv - Failed
CMake Error: Unable to link function recv
Configuring done


More information about the CMake mailing list