configure: error: C compiler cannot create executables
flagsoft opened this issue · 5 comments
flagsoft commented
Hello I tried newest version and 7.44.0 but it does not compile:
michis-MBP:curl-7.44.0 michi$ bash ./build_libcurl_dist.sh
checking whether to enable maintainer-specific portions of Makefiles... no
checking whether to enable debug build options... no
checking whether to enable compiler optimizer... (assumed) yes
checking whether to enable strict compiler warnings... no
checking whether to enable compiler warnings as errors... no
checking whether to enable curl debug memory tracking... no
checking whether to enable hiding of library internal symbols... yes
checking whether to enable c-ares for DNS lookups... no
checking whether to disable dependency on -lrt... (assumed no)
;;
*
no
checking for path separator... :
checking for sed... /usr/bin/sed
checking for grep... /usr/bin/grep
checking for egrep... /usr/bin/grep -E
checking for i386-apple-darwin-ar... no
checking for ar... /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin//ar
checking for a BSD-compatible install... /usr/bin/install -c
checking for i386-apple-darwin-gcc... clang -arch armv7 -arch armv7s
checking whether the C compiler works... no
configure: error: in `/0x-foreign-src/lib-curl/lib-iOS/src/curl-7.44.0':
configure: error: C compiler cannot create executables
See `config.log' for more details
michis-MBP:curl-7.44.0 michi$
flagsoft commented
config.log:
-----------
[...]
configure: failed program was:
| /* confdefs.h */
| #define PACKAGE_NAME "curl"
| #define PACKAGE_TARNAME "curl"
| #define PACKAGE_VERSION "-"
| #define PACKAGE_STRING "curl -"
| #define PACKAGE_BUGREPORT "a suitable curl mailing list: http://curl.haxx.se/mail/"
| #define PACKAGE_URL ""
| /* end confdefs.h. */
|
| int main (void)
| {
|
| ;
| return 0;
| }
configure:4319: error: in `/0x-foreign-src/lib-curl/lib-iOS/src/curl-7.44.0':
configure:4321: error: C compiler cannot create executables
See `config.log' for more details
-----------
I commented some lines (build for OS X now it's builging but with error:)
fatal error: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/lipo: can't open input file: /tmp/build_libcurl_44900/i386/lib/libcurl.a (No such file or directory)
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 877 100 877 0 0 1687 0 --:--:-- --:--:-- --:--:-- 1686
patching file /tmp/build_libcurl_44900/include/curl/curlbuild.h
michis-MBP:curl-7.47.1 michi$
sinofool commented
Which version of Xcode?
I tried 7.2.1(7C1002) on 7.44.0 and latest 7.47.1.
flagsoft commented
I used:
Xcode 7.2.1 (7C1002)
OS X 10.11.2
curl Version 7.44.0
sinofool commented
Toolchain versions look good. I found a clean Mac with only Xcode installed, it also works.
This script is only run "configure->make->install" process for different platforms.
You can try to run ./configure manually and compile it.
The attached config.log showing an empty main function failed to compile, will you check if you have proper permission to the directory?