This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

building cross-compiler for m68hc11/m68hc12


I am trying to build gcc-4.3.2 as a cross compiler for the Motorola m68hc11 target on a standard, clean installation of Ubuntu 11.10 32-bit. I also want to build binutils (2.19) so I included the binutils-2.19 directory (without stripping the version from the name) inside the gcc-4.3.2 directory. 
The versions have been chosen arbitrarily in the thought of minimizing the port's potential compatibility issues with newer versions while still using rather contemporary iterations of both gcc and binutils.

I have downloaded the source code for the MPFR, MPC and GMP libs from gcc/gnu/org/pub/gcc/infrastructure and included it in the gcc-4.3.2 directory in corresponding directories (stripping the version number) so they are built together with GCC and binutils.

My srcdir is /home/mihai/licenta/gcc-4.3.2 and my objdir is /home/mihai/licenta/hcs12x. Everything has r/w/x rights. The configure command I have run is:
cd hcs12x
../gcc-4.3.2/configure --prefix=/home/mihai/licenta --enable-languages=c --target=m68hc11
I am not sure if the configure parameters are enough, nor am I sure whether the name for the target is m68hc11 or some other variation: m68hc11-elf, m68hc11-linux or m68hc1x. The config output says: "checking target system type ... m68hc11-unknown-none" so it is not clear to me whether gcc recognizes the target.

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

Here is a fragment of the respective config.log:

configure:2376: /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 -V </dev/null >&5
xgcc: '-V' must come at the start of the command line
configure:2379: $? = 1
configure:2398: /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 -o conftest -O2 -g -g -O2     conftest.c  >&5
exec: 79: : Permission denied
configure:2401: $? = 1
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
configure:2591: $? = 1
configure: failed program was:
| /* confdefs.h.  */
| 
| #define PACKAGE_NAME "GNU C Runtime Library"
| #define PACKAGE_TARNAME "libgcc"
| #define PACKAGE_VERSION "1.0"
| #define PACKAGE_STRING "GNU C Runtime Library 1.0"
| #define PACKAGE_BUGREPORT ""
| /* end confdefs.h.  */
| 
| int
| main ()
| {
| 
|   ;
|   return 0;
| }
configure:2605: error: cannot compute suffix of object files: cannot compile


Any help is greatly appreciated, both with the issue at hand (permission denied) as well as with potential omissions / mistakes I've surely made.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]