I am trying to install this on OSX mavericks, and am receiving the error: error: C compiler cannot create executables
I have updated the XCODE developer tools and can successfully build a hello world c program using gcc.
Here is the relevant section from config.log:
## ----------- ##
## Core tests. ##
## ----------- ##
configure:2339: checking for grep that handles long lines and -e
configure:2397: result: /usr/bin/grep
configure:2402: checking for egrep
configure:2464: result: /usr/bin/grep -E
configure:2469: checking for a sed that does not truncate output
configure:2523: result: /usr/bin/sed
configure:2713: checking for C compiler version
configure:2722: gcc --version >&5
Apple LLVM version 5.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
Configured with: --prefix=/Applications/Xcode.app/Contents/Developer/usr --with-gxx-include-dir=/usr/include/c++/4.2.1
configure:2733: $? = 0
configure:2722: 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.1 (clang-503.0.38) (based on LLVM 3.4svn)
Target: x86_64-apple-darwin13.1.0
Thread model: posix
configure:2733: $? = 0
configure:2722: gcc -V >&5
clang: error: argument to '-V' is missing (expected 1 value)
clang: error: no input files
configure:2733: $? = 1
configure:2722: gcc -qversion >&5
clang: error: unknown argument: '-qversion' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
clang: error: no input files
configure:2733: $? = 1
configure:2753: checking whether the C compiler works
configure:2775: gcc -O2 -fno-delete-null-pointer-checks conftest.c >&5
clang: error: unknown argument: '-fno-delete-null-pointer-checks' [-Wunused-command-line-argument-hard-error-in-future]
clang: note: this will be a hard error (cannot be downgraded to a warning) in the future
configure:2779: $? = 1
configure:2817: result: no
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:2822: error: in `/Applications/AMPPS/phalcon/cphalcon/build/64bits':
configure:2824: error: C compiler cannot create executables
See `config.log' for more details
Not being too well versed in compiler errors im a bit lost as to what is going on, but I think the gcc compilation test program has a syntax error:
| int
| main ()
| {
|
| ;
| return 0;
| }
Can anyone help me get this sucker installed so I can write some kick-ass PHP?
Cheers
Ben