Re: Cannot install Bison
On Dec 23, 2007, at 11:36, Michael Welch wrote:
On Dec 23, 2007, at 11:03 AM, Ryan Schmidt wrote:
On Dec 23, 2007, at 10:59, Michael Welch wrote:
Macintosh:~ jswelch$ sudo port install bison ---> Configuring expat Error: Target org.macports.configure returned: configure failure: shell command " cd "/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_tex tproc_expat/work/expat-2.0.1" && ./configure --prefix=/opt/local --mandir=/opt/local/share/man " returned error 77 Command output: checking build system type... i386-apple-darwin9.1.0 checking host system type... i386-apple-darwin9.1.0 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.
Error: The following dependencies failed to build: gettext expat libiconv m4 Error: Status 1 encountered during processing.
So the problem here is with expat, not bison. And it says it cannot find a compiler. Did you install Xcode? You need to. The current version of Xcode is 3.0 for Leopard, 2.5 for Tiger or 1.5 for Panther. Please download and install the correct version from http://developer.apple.com/
I've got Xcode 3 and 2.5 installed on leopard. Could that be the problem?
I would expect that to be fine. (And if it's not, we need to fix MacPorts so that it's fine.) What does the config.log say? It'll be in the directory /opt/local/ var/macports/build/ _opt_local_var_macports_sources_rsync.macports.org_release_ports_textpro c_expat/work/expat-2.0.1 Please remember to reply to all when replying, so your mail gets to the list, too.
This is what the entire config.log says: This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. It was created by expat configure 2.0.1, which was generated by GNU Autoconf 2.59. Invocation command line was $ ./configure --prefix=/opt/local --mandir=/opt/local/share/man ## --------- ## ## Platform. ## ## --------- ## hostname = Macintosh.local uname -m = i386 uname -r = 9.1.0 uname -s = Darwin uname -v = Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 /usr/bin/uname -p = i386 /bin/uname -X = unknown /bin/arch = unknown /usr/bin/arch -k = unknown /usr/convex/getsysinfo = unknown hostinfo = Mach kernel version: Darwin Kernel Version 9.1.0: Wed Oct 31 17:46:22 PDT 2007; root:xnu-1228.0.2~1/RELEASE_I386 Kernel configured for up to 2 processors. 2 processors are physically available. 2 processors are logically available. Processor type: i486 (Intel 80486) Processors active: 0 1 Primary memory available: 2.00 gigabytes Default processor set: 78 tasks, 331 threads, 2 processors Load average: 1.02, Mach factor: 1.07 /bin/machine = unknown /usr/bin/oslevel = unknown /bin/universe = unknown PATH: /opt/local/bin PATH: /opt/local/sbin PATH: /bin PATH: /sbin PATH: /usr/bin PATH: /usr/sbin PATH: /usr/X11R6/bin ## ----------- ## ## Core tests. ## ## ----------- ## configure:2092: checking build system type configure:2110: result: i386-apple-darwin9.1.0 configure:2118: checking host system type configure:2132: result: i386-apple-darwin9.1.0 configure:2186: checking for gcc configure:2202: found /usr/bin/gcc configure:2212: result: gcc configure:2456: checking for C compiler version configure:2459: gcc --version </dev/null >&5 i686-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc. build 5370) Copyright (C) 2005 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:2462: $? = 0 configure:2464: gcc -v </dev/null >&5 Using built-in specs. Target: i686-apple-darwin8 Configured with: /var/tmp/gcc/gcc-5370~2/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 --with-arch=nocona --with- tune=generic --program-prefix= --host=i686-apple-darwin8 --target=i686- apple-darwin8 Thread model: posix gcc version 4.0.1 (Apple Computer, Inc. build 5370) configure:2467: $? = 0 configure:2469: gcc -V </dev/null >&5 gcc: argument to `-V' is missing configure:2472: $? = 1 configure:2495: checking for C compiler default output file name configure:2498: gcc -O2 -I/opt/local/include -L/opt/local/lib conftest.c >&5 /usr/libexec/gcc/i686-apple-darwin8/4.0.1/as: assembler (/usr/bin/../ libexec/gcc/darwin/i386/as or /usr/bin/../local/libexec/gcc/darwin/ i386/as) for architecture i386 not installed Installed assemblers are: /usr/bin/../libexec/gcc/darwin/ppc64/as for architecture ppc64 /usr/bin/../libexec/gcc/darwin/x86_64/as for architecture x86_64 configure:2501: $? = 1 configure: failed program was: | /* confdefs.h. */ | | #define PACKAGE_NAME "expat" | #define PACKAGE_TARNAME "expat" | #define PACKAGE_VERSION "2.0.1" | #define PACKAGE_STRING "expat 2.0.1" | #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org" | /* end confdefs.h. */ | | int | main () | { | | ; | return 0; | } configure:2540: error: C compiler cannot create executables See `config.log' for more details. ## ---------------- ## ## Cache variables. ## ## ---------------- ## ac_cv_build=i386-apple-darwin9.1.0 ac_cv_build_alias=i386-apple-darwin9.1.0 ac_cv_env_CC_set= ac_cv_env_CC_value= ac_cv_env_CFLAGS_set=set ac_cv_env_CFLAGS_value=-O2 ac_cv_env_CPPFLAGS_set=set ac_cv_env_CPPFLAGS_value=-I/opt/local/include 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=set ac_cv_env_CXXFLAGS_value=-O2 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=-L/opt/local/lib 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=i386-apple-darwin9.1.0 ac_cv_host_alias=i386-apple-darwin9.1.0 ac_cv_prog_ac_ct_CC=gcc ## ----------------- ## ## Output variables. ## ## ----------------- ## AR='' AS='' CC='gcc' CFLAGS='-O2' CPP='' CPPFLAGS='-I/opt/local/include' CXX='' CXXCPP='' CXXFLAGS='-O2' DEFS='' DLLTOOL='' ECHO='/bin/echo' ECHO_C='ECHO_N='' ECHO_T='' EGREP='' EXEEXT='' F77='' FFLAGS='' FILEMAP='' INSTALL_DATA='' INSTALL_PROGRAM='' INSTALL_SCRIPT='' LDFLAGS='-L/opt/local/lib' LIBAGE='5' LIBCURRENT='6' LIBOBJS='' LIBREVISION='2' LIBS='' LIBTOOL='' LN_S='' LTLIBOBJS='' OBJDUMP='' OBJEXT='' PACKAGE_BUGREPORT='expat-bugs@libexpat.org' PACKAGE_NAME='expat' PACKAGE_STRING='expat 2.0.1' PACKAGE_TARNAME='expat' PACKAGE_VERSION='2.0.1' PATH_SEPARATOR=':' RANLIB='' SHELL='/bin/sh' STRIP='' ac_ct_AR='' ac_ct_AS='' ac_ct_CC='gcc' ac_ct_CXX='' ac_ct_DLLTOOL='' ac_ct_F77='' ac_ct_OBJDUMP='' ac_ct_RANLIB='' ac_ct_STRIP='' bindir='${exec_prefix}/bin' build='i386-apple-darwin9.1.0' build_alias='' build_cpu='i386' build_os='darwin9.1.0' build_vendor='apple' datadir='${prefix}/share' exec_prefix='NONE' host='i386-apple-darwin9.1.0' host_alias='' host_cpu='i386' host_os='darwin9.1.0' host_vendor='apple' includedir='${prefix}/include' infodir='${prefix}/info' libdir='${exec_prefix}/lib' libexecdir='${exec_prefix}/libexec' localstatedir='${prefix}/var' mandir='/opt/local/share/man' oldincludedir='/usr/include' prefix='/opt/local' program_transform_name='s,x,x,' sbindir='${exec_prefix}/sbin' sharedstatedir='${prefix}/com' sysconfdir='${prefix}/etc' target_alias='' ## ----------- ## ## confdefs.h. ## ## ----------- ## #define PACKAGE_BUGREPORT "expat-bugs@libexpat.org" #define PACKAGE_NAME "expat" #define PACKAGE_STRING "expat 2.0.1" #define PACKAGE_TARNAME "expat" #define PACKAGE_VERSION "2.0.1" configure: exit 77 On Dec 23, 2007, at 11:53 AM, Ryan Schmidt wrote:
/opt/local/var/macports/build/ _opt_local_var_macports_sources_rsync .macports.org_release_ports_textproc_expat/work/expat-2.0.1
participants (2)
-
Michael Welch
-
Ryan Schmidt