Password: No download needed for /Developer/Cocotron/1.0/Downloads/mingwrt-3.20-mingw32-dev.tar.gz No download needed for /Developer/Cocotron/1.0/Downloads/w32api-3.17-2-mingw32-dev.tar.gz -n Unarchiving /Developer/Cocotron/1.0/Downloads/mingwrt-3.20-mingw32-dev.tar.gz ... done. -n Unarchiving /Developer/Cocotron/1.0/Downloads/w32api-3.17-2-mingw32-dev.tar.gz ... done. No download needed for /Developer/Cocotron/1.0/Downloads/gcc-4.3.1-02242010.tar.bz2 No download needed for /Developer/Cocotron/1.0/Downloads/gmp-4.2.3.tar.bz2 No download needed for /Developer/Cocotron/1.0/Downloads/binutils-2.21-20111025.tar.gz No download needed for /Developer/Cocotron/1.0/Downloads/mpfr-2.3.2.tar.bz2 -n Unarchiving /Developer/Cocotron/1.0/Downloads/gcc-4.3.1-02242010.tar.bz2 ... done. -n Unarchiving /Developer/Cocotron/1.0/Downloads/binutils-2.21-20111025.tar.gz ... done. -n Unarchiving /Developer/Cocotron/1.0/Downloads/gmp-4.2.3.tar.bz2 ... done. -n Unarchiving /Developer/Cocotron/1.0/Downloads/mpfr-2.3.2.tar.bz2 ... done. Configuring, building and installing binutils 2.21-20111025 /Developer/Cocotron/1.0/build/Windows/i386/binutils-2.21-20111025 ~/Desktop/InstallCDT-2011-12-27 checking build system type... i386-apple-darwin11.4.0 checking host system type... i386-apple-darwin11.4.0 checking target system type... i386-pc-mingw32msvc checking for a BSD-compatible install... /usr/bin/install -c checking whether ln works... yes checking whether ln -s works... yes checking for a sed that does not truncate output... /usr/bin/sed checking for gawk... no checking for mawk... no checking for nawk... no checking for awk... awk checking for gcc... gcc checking for C compiler default output file name... configure: error: in `/Developer/Cocotron/1.0/build/Windows/i386/binutils-2.21-20111025': configure: error: C compiler cannot create executables See `config.log' for more details.
And the content of config.log is as beneath,
running configure, to aid debugging if configure makes a mistake. It was created by configure, which was $ /Developer/Cocotron/1.0/Source/binutils-2.21-20111025/configure --prefix=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1 --target=i386-mingw32msvc Kernel configured for up to 2 processors. configure:2197: checking build system type configure:2211: result: i386-apple-darwin11.4.0 configure:2258: checking host system type configure:2271: result: i386-apple-darwin11.4.0 configure:2291: checking target system type configure:2304: result: i386-pc-mingw32msvc configure:2358: checking for a BSD-compatible install configure:2426: result: /usr/bin/install -c configure:2437: checking whether ln works configure:2459: result: yes configure:2463: checking whether ln -s works configure:2467: result: yes configure:2474: checking for a sed that does not truncate output configure:2538: result: /usr/bin/sed configure:2547: checking for gawk configure:2577: result: no configure:2547: checking for mawk configure:2577: result: no configure:2547: checking for nawk configure:2577: result: no configure:2547: checking for awk configure:2563: found /usr/bin/awk configure:2574: result: awk configure:3858: checking for gcc configure:3874: found /usr/bin/gcc configure:3885: result: gcc configure:4114: checking for C compiler version configure:4123: gcc --version >&5 configure:4134: $? = 0 configure:4123: gcc -v >&5 Configured with: ../gcc-4.7-20120204/configure --enable-languages=c,c++,fortran configure:4134: $? = 0 configure:4123: gcc -V >&5 configure:4134: $? = 1 configure:4123: gcc -qversion >&5 configure:4134: $? = 1 configure:4154: checking for C compiler default output file name configure:4176: gcc -m32 -Wformat=0 -Wno-error=deprecated-declarations conftest.c >&5 configure:4180: $? = 1 configure:4217: result: configure: failed program was: configure:4223: error: in `/Developer/Cocotron/1.0/build/Windows/i386/binutils-2.21-20111025': configure:4227: error: C compiler cannot create executables CONFIGURE_GDB_TK='' TOPLEVEL_CONFIGURE_ARGUMENTS='/Developer/Cocotron/1.0/Source/binutils-2.21- 20111025/configure --prefix=/Developer/Cocotron/1.0/Windows/i386/gcc-4.3.1 --target=i386-mingw32msvc' extra_host_libiberty_configure_flags='' extra_mpc_gmp_configure_flags='' extra_mpc_mpfr_configure_flags='' extra_mpfr_configure_flags='' configure: exit 77
Could someone please tell me what's wrong? What's the right steps to install CDT?
On Monday, October 15, 2012 9:37:05 AM UTC+1, Joyce Wu wrote: > configure:4123: gcc -v >&5 > Configured with: ../gcc-4.7-20120204/configure > --enable-languages=c,c++,fortran
You appear to have a gcc installed somewhere that is not configured to support objective-C. Make sure to remove it from PATH so that the system gcc supplied by Apple is found instead, which has objc support compiled in. The output produced by gcc -v should then have "--enable-languages=c,objc,c++,obj-c++" somewhere in it. Then start a new install.
> You appear to have a gcc installed somewhere that is not configured to > support objective-C.
That should not be the problem, as Joyce is trying to build the Cocotron cross-compiler gcc, which doesn't require Objective-C. There is a long-standing problem with compiling gcc using Apple's standard llvm compiler, hence my tutorial's instructions to use another compiler instead to build gcc for Cocotron. Joyce appears to be using the "HPC" (http://hpc.sourceforge.net/ ) gcc build, which has worked for me in the past.
Joyce, are you on Mountain Lion? If so, that might be the issue: the HPC GCC installer provided in my tutorial is perhaps not compatible with Mountain Lion (10.8 was not out when I wrote the tutorial).