Configure problem of llvm2.5 in Mac OS X 10.4.11

I can configure it now. Thank You!

— On Wed, 6/17/09, Bill Wendling isanbard@gmail.com wrote:


> From: Bill Wendling isanbard@gmail.com
> Subject: Re: [LLVMdev] Configure problem of llvm2.5 in Mac OS X 10.4.11
> To: “LLVM Developers Mailing List” llvmdev@cs.uiuc.edu
> Date: Wednesday, June 17, 2009, 6:26 PM
>
> Hi Murat,
>
> This looks suspicious:
>
> LDFLAGS=‘-flat-namespace’
>
> It looks like it’s already defined as an environment variable. I can’t
> see where ‘-flat-namespace’ is used in the configuration files. Check
> to make sure that LDFLAGS has no value during the configure. :slight_smile:
>
> -bw
>
> On Wed, Jun 17, 2009 at 3:07 PM, Murat Bmurat8307@yahoo.com wrote:
> > Hi,
> >
> > I am trying to install llvm 2.5 in my PowerPC machine. I have already
> > installed XCode Tools 2.4.1.
> > I can compile programs using gcc run them.
> > I try to configure llvm 2.5, the configuration aborts with following
> > message:
> >
> > checking build system type… powerpc-apple-darwin8.11.0
> > checking host system type… powerpc-apple-darwin8.11.0
> > checking target system type… powerpc-apple-darwin8.11.0
> > checking type of operating system we’re going to host on… Darwin
> > checking target architecture… PowerPC
> > checking for gcc… gcc
> > checking for C compiler default output file name… configure: error: C
> > compiler cannot create executables
> > See config.log' for more details.<br>> ><br>> > Does anyone know why it aborts at that point? I also copy the content of<br>> > 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;<br>> > 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;<br>> > 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<br>> > 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<br>> > --disable-checking -enable-werror --prefix=/usr --mandir=/share/man<br>> > --enable-languages=c,objc,c++,obj-c++<br>> > --program-transform-name=/^[cg][^.-]*$/s/$/-4.0/<br>> > --with-gxx-include-dir=/include/c++/4.0.0 --with-slibdir=/usr/lib<br>> > --build=powerpc-apple-darwin8 --host=powerpc-apple-darwin8<br>> > --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
> > configure:2750: $? = 1
> > configure:2773: checking for C compiler default output file name
> > configure:2800: gcc -flat-namespace conftest.c >&5
> > cc1: error: unrecognized command line option “-flat-namespace”
> > configure:2803: $? = 1
> > configure: failed program was:
> > | /* confdefs.h. /
> > | #define PACKAGE_NAME “llvm”
> > | #define PACKAGE_TARNAME “-llvm-”
> > | #define PACKAGE_VERSION “2.5”
> > | #define PACKAGE_STRING “llvm 2.5”
> > | #define PACKAGE_BUGREPORT “llvmbugs@cs.uiuc.edu”
> > | #define LLVM_ON_UNIX 1
> > | /
end confdefs.h. */
> > |
> > | int
> > | main ()
> > | {
> > |
> > | ;
> > | return 0;
> > | }
> > configure:2842: error: C compiler cannot create executables
> > See `config.log’ for more details.
> >
> > ## ---------------- ##
> > ## Cache variables. ##
> > ## ---------------- ##
> >
> > ac_cv_build=powerpc-apple-darwin8.11.0
> > ac_cv_env_CCC_set=
> > ac_cv_env_CCC_value=
> > ac_cv_env_CC_set=
> > ac_cv_env_CC_value=
> > ac_cv_env_CFLAGS_set=
> > ac_cv_env_CFLAGS_value=
> > ac_cv_env_CPPFLAGS_set=
> > ac_cv_env_CPPFLAGS_value=
> > ac_cv_env_CPP_set=
> > ac_cv_env_CPP_value=
> > ac_cv_env_CXXCPP_set=
> > ac_cv_env_CXXCPP_value=
> > ac_cv_env_CXXFLAGS_set=
> > ac_cv_env_CXXFLAGS_value=
> > ac_cv_env_CXX_set=
> > ac_cv_env_CXX_value=
> > ac_cv_env_F77_set=
> > ac_cv_env_F77_value=
> > ac_cv_env_FFLAGS_set=
> > ac_cv_env_FFLAGS_value=
> > ac_cv_env_LDFLAGS_set=set
> > ac_cv_env_LDFLAGS_value=-flat-namespace
> > ac_cv_env_YACC_set=
> > ac_cv_env_YACC_value=
> > ac_cv_env_YFLAGS_set=
> > ac_cv_env_YFLAGS_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_host=powerpc-apple-darwin8.11.0
> > ac_cv_prog_ac_ct_CC =gcc
> > ac_cv_target=powerpc-apple-darwin8.11.0
> > llvm_cv_link_all_option=-Wl,-all_load
> > llvm_cv_no_link_all_option=-Wl,-noall_load
> > llvm_cv_os_type=Darwin
> > llvm_cv_platform_type=Unix
> > llvm_cv_target_arch=PowerPC
> >
> > ## ----------------- ##
> > ## Output variables. ##
> > ## ----------------- ##
> >
> > ALLOCA=‘’
> > ALL_BINDINGS=‘’
> > AR=‘’
> > ARCH=‘PowerPC’
> > BINDINGS_TO_BUILD=‘’
> > BINPWD=‘’
> > BISON=‘’
> > BUILD_CC=‘’
> > BUILD_CXX=‘’
> > BUILD_EXEEXT=‘’
> > BZIP2=‘’
> > CC=‘gcc’
> > CFLAGS=‘’
> > CMP=‘’
> > CONVENIENCE_LTDL_FALSE=‘’
> > CONVENIENCE_LTDL_TRUE=‘’
> > CP=‘’
> > CPP=‘’
> > CPPFLAGS=‘’
> > CVSBUILD=‘’
> > CXX=‘’
> > CXXCPP=‘’
> > CXXFLAGS=‘’
> > DATE=‘’
> > DEBUG_RUNTIME=‘’
> > DEFS=‘’
> > DISABLE_ASSERTIONS=‘’
> > DOT=‘’
> > DOTTY=‘’
> > DOXYGEN=‘’
> > ECHO=‘echo’
> > ECHO_C=‘’
> > ECHO_N=‘-n’
> > ECHO_T=‘’
> > EGREP=‘’
> > ENABLE_CBE_PRINTF_A=‘’
> > ENABLE_DOXYGEN=‘’
> > ENABLE_EXPENSIVE_CHECKS=‘’
> > ENABLE_OPTIMIZED=‘’
> > ENABLE_PIC=‘’
> > ENABLE_THREADS=‘’
> > ENABLE_VISIBILITY_INLINES_HIDDEN=‘’
> > ENDIAN=‘’
> > EXEEXT=‘’
> > EXPENSIVE_CHECKS=‘’
> > EXTRA_OPTIONS=‘’
> > F77=‘’
> > FFLAGS=‘’
> > FIND=‘’
> > FLEX=‘’
> > GAS=‘’
> > GRAPHVIZ=‘’
> > GREP=‘’
> > GROFF=‘’
> > GV=‘’
> > GZIP=‘’
> > HAVE_PERL=‘’
> > HAVE_PTHREAD=‘’
> > HUGE_VAL_SANITY=‘’
> > INSTALL_DATA=‘’
> > I NSTALL_LTDL_FALSE=‘’
> > INSTALL_LTDL_TRUE=‘’
> > INSTALL_PROGRAM=‘’
> > INSTALL_SCRIPT=‘’
> > JIT=‘’
> > LDFLAGS=‘-flat-namespace’
> > LEX=‘’
> > LEXLIB=‘’
> > LEX_OUTPUT_ROOT=‘’
> > LIBADD_DL=‘’
> > LIBOBJS=‘’
> > LIBS=‘’
> > LIBTOOL=‘’
> > LINKALL=‘-Wl,-all_load’
> > LLVMCC1=‘’
> > LLVMCC1PLUS=‘’
> > LLVMGCC=‘’
> > LLVMGCCDIR=‘’
> > LLVMGCCLIBEXEC=‘’
> > LLVMGCC_LANGS=‘’
> > LLVMGCC_MAJVERS=‘’
> > LLVMGCC_VERSION=‘’
> > LLVMGXX=‘’
> > LLVM_BINDIR=‘’
> > LLVM_CONFIGTIME=‘’
> > LLVM_COPYRIGHT=‘Copyright (c) 2003-2008 University of Illinois at
> > Urbana-Champaign.’
> > LLVM_CROSS_COMPILING=‘’
> > LLVM_DATADIR=‘’
> > LLVM_DOCSDIR=‘’
> > LLVM_ETCDIR=‘’
> > LLVM_INCLUDEDIR=‘’
> > LLVM_INFODIR=‘’
> > LLVM_LIBDIR=‘’
> > LLVM_MANDIR=‘’
> > LLVM_ON_UNIX=‘1’
> > LLVM_ON_WIN32=‘0’
> > LLVM_PREFIX=‘’
> > LN_S=‘’
> > LTLIBOBJS=‘’
> > MKDIR=‘’
> > MMAP_FILE=‘’
> > MV=‘’
> > NM=‘’
> > NOLINKALL=‘-Wl,-noall_load’
> > OBJEXT=‘’
> > OCAMLC=‘’
> > OCAMLDEP=‘’
> > OCAMLDOC=‘’
> > OCAMLOPT=‘’
> > OCAML_LIBDIR=‘’
> > OS=‘Darwin’
> > PACKAGE_BUGREPORT=‘llvmbugs@cs.uiuc.edu’
> > PACKAGE_NAME=‘llvm’
> > PACKAGE_STRING=‘llvm 2.5’
> > PACKAGE_TARNAME=‘-llvm-’
> > PACKAGE_VERSION=‘2.5’
> > PATH_SEPARATOR=‘:’
> > PERL=‘’
> > POD2HTML=‘’
> > POD2MAN=‘’
> > RANLIB=‘’
> > RM=‘’
> > RUNTEST=‘’
> > SED=‘’
> > SHELL=‘/bin/sh’
> > SHLIBEXT=‘’
> > STRIP=‘’
> > TAR=‘’
> > TARGETS_TO_BUILD=‘’
> > TARGET_HAS_JIT=‘’
> > TCLSH=‘’
> > USE_UDIS86=‘’
> > YACC=‘’
> > YFLAGS=‘’
> > ZIP=‘’
> > ac_ct_CC=‘gcc’
> > ac_ct_CXX=‘’
> > ac_ct_F77=‘’
> > bindir=‘${exec_prefix}/bin’
> > build=‘powerpc-apple-darwin8.11.0’
> > build_alias=‘’
> > build_cpu=‘powerpc’
> > build_os=‘darwin8.11.0’
> > build_vendor=‘apple’
> > datadir=‘${datarootdir}’
> > datarootdir=‘${prefix}/share’
> > docdir=‘${datarootdir}/doc/${PACKAGE_TARNAME}’
> > dvidir=‘${docdir}’
> > exec_prefix=‘NONE’
> > host=‘powerpc-apple-darwin8.11.0’
> > host_alias=‘’
> > host_cpu=‘powerpc’
> > host_os=‘darwin8.11.0’
> > host_vendor=‘apple’
> > htmldir=‘${docdir}’
> > ifGNUmake=‘’
> > includedir=‘${prefix}/include’
> > infodir=‘${datarootdir}/info’
> > libdir=‘${exec_prefix}/lib’
> > libexe cdir=‘${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’
> > subdirs=’ projects/sample’
> > sysconfdir=‘${prefix}/etc’
> > target=‘powerpc-apple-darwin8.11.0’
> > target_alias=‘’
> > target_cpu=‘powerpc’
> > target_os=‘darwin8.11.0’
> > target_vendor=‘apple’
> >
> > ## ----------- ##
> > ## confdefs.h. ##
> > ## ----------- ##
> >
> > #define PACKAGE_NAME “llvm”
> > #define PACKAGE_TARNAME “-llvm-”
> > #define PACKAGE_VERSION “2.5”
> > #define PACKAGE_STRING “llvm 2.5”
> > #define PACKAGE_BUGREPORT “llvmbugs@cs.uiuc.edu”
> > #define LLVM_ON_UNIX 1
> >
> > configure: exit 77
> >
> >
> >
> > _______________________________________________
> > LLVM Developers mailing list
> > LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> > http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev
> >
> >
>
> _______________________________________________
> LLVM Developers mailing list
> LLVMdev@cs.uiuc.edu http://llvm.cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvmdev

|