configure failed for installing gcc

Jonathan Wakely jwakely.gcc@gmail.com
Sun May 5 11:37:00 GMT 2013


On 5 May 2013 01:37, Brian Lee wrote:
> To Whom It May Concern:
>
> A failure occurred when I did configure for installing gcc. Maybe the failure occurred because I deleted /usr/bin/../libexec/darwin/x86_64/as. The following is the console output:
>
> brian-lees-macbook:objdir brianlee$ ~/gcc/configure --enable-languages=c,c++
> checking build system type... i386-apple-darwin10.8.0
> checking host system type... i386-apple-darwin10.8.0
> checking target system type... i386-apple-darwin10.8.0
> 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... gawk
> checking for gcc... gcc
> checking for C compiler default output file name...
> configure: error: in `/Users/brianlee/objdir':
> configure: error: C compiler cannot create executables
> See `config.log' for more details.
>
> Attached to this email is config.log. Please take a look at it. Thank you.

I took a look.  It confirms the problem is because you deleted that assembler.

as: assembler (/usr/bin/../libexec/gcc/darwin/x86_64/as or
/usr/bin/../local/libexec/gcc/darwin/x86_64/as) for architecture
x86_64 not installed
Installed assemblers are:
/usr/bin/../libexec/gcc/darwin/ppc64/as for architecture ppc64
/usr/bin/../libexec/gcc/darwin/ppc/as for architecture ppc
/usr/bin/../libexec/gcc/darwin/i386/as for architecture i386


Your existing compiler is an x86_64 compiler, so it needs the x86_64 assembler.
You could try passing the -m32 flag to the bootstrap compiler so it
only outputs 32-bit code, but it would probably be easier to restore
the assembler you deleted.



More information about the Gcc-help mailing list