[Prev] Thread [Next]  |  [Prev] Date [Next]

Re: building cross-compiler for m68hc11/m68hc12 Ian Lance Taylor Tue Feb 28 11:00:28 2012

Mihai Daniel OPREA <[EMAIL PROTECTED]> writes:

> Building the compiler with make fails with the infamous error:
> "configure: error: cannot compute suffix of object files: cannot compile"
> while in directory hcs12x/m68hc11/libgcc


> configure:2567: checking for suffix of object files
> configure:2588: /home/mihai/licenta/hcs12x/./gcc/xgcc 
> -B/home/mihai/licenta/hcs12x/./gcc/ -B/home/mihai/licenta/m68hc11/bin/ 
> -B/home/mihai/licenta/m68hc11/lib/ -isystem 
> /home/mihai/licenta/m68hc11/include -isystem 
> /home/mihai/licenta/m68hc11/sys-include -c -O2 -g -g -O2    conftest.c >&5
> exec: 79: : Permission denied

Try running this exact command yourself.  Presumably you will see the
same error.  Figure out why.

Here is my guess.  Look at the file gcc/as.  Look at the value for
ORIGINAL_AS_FOR_TARGET near the start of the file.  I bet it is the
empty string.  That suggests that you don't have an cross-assembler for
your target.  You need to make and install the cross-binutils before you
configure gcc.