<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">Hi,<br><br>I am trying to install llvm 2.5 in my PowerPC machine. I have already installed XCode Tools 2.4.1.<br>I can compile programs using gcc run them.<br>I try to configure llvm 2.5, the configuration aborts with following message:<br><br>checking build system type... powerpc-apple-darwin8.11.0<br>checking host system type... powerpc-apple-darwin8.11.0<br>checking target system type... powerpc-apple-darwin8.11.0<br>checking type of operating system we're going to host on... Darwin<br>checking target architecture... PowerPC<br>checking for gcc... gcc<br>checking for C compiler default output file name... configure: error: C compiler cannot create executables<br>See `config.log' for more details.<br><br>Does anyone know why it aborts at that point? I also copy the content of config.log below.<br><br>Thanks or your help in
 advance!<br><br>Sincelery,<br>Murat<br><br>File: config.log<br>===========<br><br>This file contains any messages produced by compilers while<br>running configure, to aid debugging if configure makes a mistake.<br><br>It was created by llvm configure 2.5, which was<br>generated by GNU Autoconf 2.60.  Invocation command line was<br><br>  $ ./configure <br><br>## --------- ##<br>## Platform. ##<br>## --------- ##<br><br>hostname = x.local<br>uname -m = Power Macintosh<br>uname -r = 8.11.0<br>uname -s = Darwin<br>uname -v = Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC<br><br>/usr/bin/uname -p = powerpc<br>/bin/uname -X     = unknown<br><br>/bin/arch              = unknown<br>/usr/bin/arch -k       = unknown<br>/usr/convex/getsysinfo =
 unknown<br>/usr/bin/hostinfo      = Mach kernel version:<br>     Darwin Kernel Version 8.11.0: Wed Oct 10 18:26:00 PDT 2007; root:xnu-792.24.17~1/RELEASE_PPC<br>Kernel configured for up to 2 processors.<br>2 processors are physically available.<br>Processor type: ppc970 (PowerPC 970)<br>Processors active: 0 1<br>Primary memory available: 4.50 gigabytes<br>Default processor set: 52 tasks, 173 threads, 2 processors<br>Load average: 0.81, Mach factor: 1.18<br>/bin/machine           = unknown<br>/usr/bin/oslevel       = unknown<br>/bin/universe          = unknown<br><br>PATH: /Users/bolat/bin<br>PATH: /opt/bin<br>PATH: /usr/local/bin<br>PATH: /usr/bin<br>PATH: /bin<br>PATH: /usr/local/sbin/<br>PATH: /usr/sbin<br>PATH: /sbin<br>PATH: /sw/bin<br>PATH:
 /usr/local/teTeX/bin/powerpc-apple-darwin-current<br>PATH: /sw/LessTif/Motif2.0/bin<br>PATH: /usr/X11R6/bin<br>PATH: /Developer/Tools<br><br><br>## ----------- ##<br>## Core tests. ##<br>## ----------- ##<br><br>configure:2131: checking build system type<br>configure:2149: result: powerpc-apple-darwin8.11.0<br>configure:2171: checking host system type<br>configure:2186: result: powerpc-apple-darwin8.11.0<br>configure:2208: checking target system type<br>configure:2223: result: powerpc-apple-darwin8.11.0<br>configure:2252: checking type of operating system we're going to host on<br>configure:2335: result: Darwin<br>configure:2377: checking target architecture<br>configure:2396: result: PowerPC<br>configure:2455: checking for gcc<br>configure:2471: found /usr/bin/gcc<br>configure:2482: result: gcc<br>configure:2720: checking for C compiler version<br>configure:2727: gcc --version >&5<br>powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer,
 Inc. build 5367)<br>Copyright (C) 2005 Free Software Foundation, Inc.<br>This is free software; see the source for copying conditions.  There is NO<br>warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.<br><br>configure:2730: $? = 0<br>configure:2737: gcc -v >&5<br>Using built-in specs.<br>Target: powerpc-apple-darwin8<br>Configured with: /private/var/tmp/gcc/gcc-5367.obj~1/src/configure --disable-checking -enable-werror --prefix=/usr --mandir=/share/man --enable-languages=c,objc,c++,obj-c++ --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/ --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8 --target=powerpc-apple-darwin8<br>Thread model: posix<br>gcc version 4.0.1 (Apple Computer, Inc. build 5367)<br>configure:2740: $? = 0<br>configure:2747: gcc -V >&5<br>gcc: argument to `-V' is missing<br>configure:2750: $? = 1<br>configure:2773:
 checking for C compiler default output file name<br>configure:2800: gcc   -flat-namespace conftest.c  >&5<br>cc1: error: unrecognized command line option "-flat-namespace"<br>configure:2803: $? = 1<br>configure: failed program was:<br>| /* confdefs.h.  */<br>| #define PACKAGE_NAME "llvm"<br>| #define PACKAGE_TARNAME "-llvm-"<br>| #define PACKAGE_VERSION "2.5"<br>| #define PACKAGE_STRING "llvm 2.5"<br>| #define PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu"<br>| #define LLVM_ON_UNIX 1<br>| /* end confdefs.h.  */<br>| <br>| int<br>| main ()<br>| {<br>| <br>|   ;<br>|   return 0;<br>| }<br>configure:2842: error: C compiler cannot create executables<br>See `config.log' for more details.<br><br>## ---------------- ##<br>## Cache variables. ##<br>## ----------------
 ##<br><br>ac_cv_build=powerpc-apple-darwin8.11.0<br>ac_cv_env_CCC_set=<br>ac_cv_env_CCC_value=<br>ac_cv_env_CC_set=<br>ac_cv_env_CC_value=<br>ac_cv_env_CFLAGS_set=<br>ac_cv_env_CFLAGS_value=<br>ac_cv_env_CPPFLAGS_set=<br>ac_cv_env_CPPFLAGS_value=<br>ac_cv_env_CPP_set=<br>ac_cv_env_CPP_value=<br>ac_cv_env_CXXCPP_set=<br>ac_cv_env_CXXCPP_value=<br>ac_cv_env_CXXFLAGS_set=<br>ac_cv_env_CXXFLAGS_value=<br>ac_cv_env_CXX_set=<br>ac_cv_env_CXX_value=<br>ac_cv_env_F77_set=<br>ac_cv_env_F77_value=<br>ac_cv_env_FFLAGS_set=<br>ac_cv_env_FFLAGS_value=<br>ac_cv_env_LDFLAGS_set=set<br>ac_cv_env_LDFLAGS_value=-flat-namespace<br>ac_cv_env_YACC_set=<br>ac_cv_env_YACC_value=<br>ac_cv_env_YFLAGS_set=<br>ac_cv_env_YFLAGS_value=<br>ac_cv_env_build_alias_set=<br>ac_cv_env_build_alias_value=<br>ac_cv_env_host_alias_set=<br>ac_cv_env_host_alias_value=<br>ac_cv_env_target_alias_set=<br>ac_cv_env_target_alias_value=<br>ac_cv_host=powerpc-apple-darwin8.11.0<br>ac_cv_prog_ac_ct_CC
=gcc<br>ac_cv_target=powerpc-apple-darwin8.11.0<br>llvm_cv_link_all_option=-Wl,-all_load<br>llvm_cv_no_link_all_option=-Wl,-noall_load<br>llvm_cv_os_type=Darwin<br>llvm_cv_platform_type=Unix<br>llvm_cv_target_arch=PowerPC<br><br>## ----------------- ##<br>## Output variables. ##<br>## -----------------
 ##<br><br>ALLOCA=''<br>ALL_BINDINGS=''<br>AR=''<br>ARCH='PowerPC'<br>BINDINGS_TO_BUILD=''<br>BINPWD=''<br>BISON=''<br>BUILD_CC=''<br>BUILD_CXX=''<br>BUILD_EXEEXT=''<br>BZIP2=''<br>CC='gcc'<br>CFLAGS=''<br>CMP=''<br>CONVENIENCE_LTDL_FALSE=''<br>CONVENIENCE_LTDL_TRUE=''<br>CP=''<br>CPP=''<br>CPPFLAGS=''<br>CVSBUILD=''<br>CXX=''<br>CXXCPP=''<br>CXXFLAGS=''<br>DATE=''<br>DEBUG_RUNTIME=''<br>DEFS=''<br>DISABLE_ASSERTIONS=''<br>DOT=''<br>DOTTY=''<br>DOXYGEN=''<br>ECHO='echo'<br>ECHO_C=''<br>ECHO_N='-n'<br>ECHO_T=''<br>EGREP=''<br>ENABLE_CBE_PRINTF_A=''<br>ENABLE_DOXYGEN=''<br>ENABLE_EXPENSIVE_CHECKS=''<br>ENABLE_OPTIMIZED=''<br>ENABLE_PIC=''<br>ENABLE_THREADS=''<br>ENABLE_VISIBILITY_INLINES_HIDDEN=''<br>ENDIAN=''<br>EXEEXT=''<br>EXPENSIVE_CHECKS=''<br>EXTRA_OPTIONS=''<br>F77=''<br>FFLAGS=''<br>FIND=''<br>FLEX=''<br>GAS=''<br>GRAPHVIZ=''<br>GREP=''<br>GROFF=''<br>GV=''<br>GZIP=''<br>HAVE_PERL=''<br>HAVE_PTHREAD=''<br>HUGE_VAL_SANITY=''<br>INSTALL_DATA=''<br>I
NSTALL_LTDL_FALSE=''<br>INSTALL_LTDL_TRUE=''<br>INSTALL_PROGRAM=''<br>INSTALL_SCRIPT=''<br>JIT=''<br>LDFLAGS='-flat-namespace'<br>LEX=''<br>LEXLIB=''<br>LEX_OUTPUT_ROOT=''<br>LIBADD_DL=''<br>LIBOBJS=''<br>LIBS=''<br>LIBTOOL=''<br>LINKALL='-Wl,-all_load'<br>LLVMCC1=''<br>LLVMCC1PLUS=''<br>LLVMGCC=''<br>LLVMGCCDIR=''<br>LLVMGCCLIBEXEC=''<br>LLVMGCC_LANGS=''<br>LLVMGCC_MAJVERS=''<br>LLVMGCC_VERSION=''<br>LLVMGXX=''<br>LLVM_BINDIR=''<br>LLVM_CONFIGTIME=''<br>LLVM_COPYRIGHT='Copyright (c) 2003-2008 University of Illinois at
 Urbana-Champaign.'<br>LLVM_CROSS_COMPILING=''<br>LLVM_DATADIR=''<br>LLVM_DOCSDIR=''<br>LLVM_ETCDIR=''<br>LLVM_INCLUDEDIR=''<br>LLVM_INFODIR=''<br>LLVM_LIBDIR=''<br>LLVM_MANDIR=''<br>LLVM_ON_UNIX='1'<br>LLVM_ON_WIN32='0'<br>LLVM_PREFIX=''<br>LN_S=''<br>LTLIBOBJS=''<br>MKDIR=''<br>MMAP_FILE=''<br>MV=''<br>NM=''<br>NOLINKALL='-Wl,-noall_load'<br>OBJEXT=''<br>OCAMLC=''<br>OCAMLDEP=''<br>OCAMLDOC=''<br>OCAMLOPT=''<br>OCAML_LIBDIR=''<br>OS='Darwin'<br>PACKAGE_BUGREPORT='llvmbugs@cs.uiuc.edu'<br>PACKAGE_NAME='llvm'<br>PACKAGE_STRING='llvm
 2.5'<br>PACKAGE_TARNAME='-llvm-'<br>PACKAGE_VERSION='2.5'<br>PATH_SEPARATOR=':'<br>PERL=''<br>POD2HTML=''<br>POD2MAN=''<br>RANLIB=''<br>RM=''<br>RUNTEST=''<br>SED=''<br>SHELL='/bin/sh'<br>SHLIBEXT=''<br>STRIP=''<br>TAR=''<br>TARGETS_TO_BUILD=''<br>TARGET_HAS_JIT=''<br>TCLSH=''<br>USE_UDIS86=''<br>YACC=''<br>YFLAGS=''<br>ZIP=''<br>ac_ct_CC='gcc'<br>ac_ct_CXX=''<br>ac_ct_F77=''<br>bindir='${exec_prefix}/bin'<br>build='powerpc-apple-darwin8.11.0'<br>build_alias=''<br>build_cpu='powerpc'<br>build_os='darwin8.11.0'<br>build_vendor='apple'<br>datadir='${datarootdir}'<br>datarootdir='${prefix}/share'<br>docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'<br>dvidir='${docdir}'<br>exec_prefix='NONE'<br>host='powerpc-apple-darwin8.11.0'<br>host_alias=''<br>host_cpu='powerpc'<br>host_os='darwin8.11.0'<br>host_vendor='apple'<br>htmldir='${docdir}'<br>ifGNUmake=''<br>includedir='${prefix}/include'<br>infodir='${datarootdir}/info'<br>libdir='${exec_prefix}/lib'<br>libexe
cdir='${exec_prefix}/libexec'<br>localedir='${datarootdir}/locale'<br>localstatedir='${prefix}/var'<br>mandir='${datarootdir}/man'<br>oldincludedir='/usr/include'<br>pdfdir='${docdir}'<br>prefix='NONE'<br>program_transform_name='s,x,x,'<br>psdir='${docdir}'<br>sbindir='${exec_prefix}/sbin'<br>sharedstatedir='${prefix}/com'<br>subdirs=' projects/sample'<br>sysconfdir='${prefix}/etc'<br>target='powerpc-apple-darwin8.11.0'<br>target_alias=''<br>target_cpu='powerpc'<br>target_os='darwin8.11.0'<br>target_vendor='apple'<br><br>## ----------- ##<br>## confdefs.h. ##<br>## ----------- ##<br><br>#define PACKAGE_NAME "llvm"<br>#define PACKAGE_TARNAME "-llvm-"<br>#define PACKAGE_VERSION "2.5"<br>#define PACKAGE_STRING "llvm 2.5"<br>#define PACKAGE_BUGREPORT "llvmbugs@cs.uiuc.edu"<br>#define LLVM_ON_UNIX 1<br><br>configure: exit 77<br><br></td></tr></table><br>