RE: building cross-compiler for m68hc11/m68hc12

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Thank you Kai Ruottu for all your help.

I managed to build binutils-2.19. After that I tried building gcc-4.3.2, which failed due to "compiler internal 
error: segmentation fault". I then tried building gcc-3.3.6 (the version which was used to compile the successful 
m68hc11 build), which failed as well because of "open with O_CREAT in second argument needs 3 arguments".

Fortunately however, the link you indicated contains a guide for installing the m68hc11 port from sources:
http://www.gnu-m68hc11.org/m68hc11_inst_ptc.php
The first step is building binutils-2.15. I tried it both with applying the supplied patch (binutils-2.15-
m68hc1x-20040801.diffs.gz) and without applying it, but it failed both times with the message:
"array type has incomplete element type" in tc-m68hc11.h.

The prerequisites state that a gcc-3.2 or gcc-3.3 host compiler and binutils-2.14 or binutils-2.15 are required. 
Do I actually need gcc-3.3 and binutils-2.15 in order to build gcc-3.3 and binutils-2.15? If so, how do I go about it?


________________________________________
From: Kai Ruottu [kai.ruottu@xxxxxxxxxxx]
Sent: Wednesday, February 29, 2012 12:12 PM
To: Mihai Daniel OPREA
Cc: gcc-help@xxxxxxxxxxx
Subject: Re: building cross-compiler for m68hc11/m68hc12

29.2.2012 12:40, Kai Ruottu kirjoitti:

> Ok, I tried your task... First with gcc-4.3.6 (the latest gcc-4.3),
> it crashed in libgcc build. The earlier gcc-4.2.4 crashed with the
> following :
>
> -DMISSING_SYSCALL_NAMES -fno-builtin -O2 -Os -m68hc11 -c
> ../../../../../../newlib/libc/stdio/vfwscanf.c -o lib_a-vfwscanf.o
> ../../../../../../newlib/libc/stdio/vfwscanf.c: In function
> '__svfwscanf_r':
> ../../../../../../newlib/libc/stdio/vfwscanf.c:1454: error: insn does
> not satisfy its constraints:
> (insn 5773 5771 5774 507 (set (reg:HI 2 y)
> (plus:HI (reg:HI 0 x)
> (const_int 21 [0x15]))) 52 {*addhi3} (nil)
> (nil))
> ../../../../../../newlib/libc/stdio/vfwscanf.c:1454: internal compiler
> error: in reload_cse_simplify_operands, at postreload.c:392
>
> My binutils for 'm68hc11-elf' were quite old :
>
> [root@localhost build]# /usr/local/m68hc11-elf/bin/ld -V
> GNU ld version 030318 20030318
>
> I maybe will still try gcc-4.1.2 and newlib-1.18.0 (or some much older)
> after updating those in 2003 installed binutils...

Updated to binutils-2.14.90.0.8 and tried the gcc-4.1.2 sources...
The result was a similar crash during newlib build :

../../../../../../newlib/libc/stdio/vfwscanf.c: In function '__svfwscanf_r':
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: error: insn does
not satisfy its constraints:
(insn 5720 5718 5721 500 (set (reg:HI 2 y)
         (plus:HI (reg:HI 0 x)
             (const_int 21 [0x15]))) 52 {*addhi3} (nil)
     (nil))
../../../../../../newlib/libc/stdio/vfwscanf.c:1454: internal compiler
error: in reload_cse_simplify_operands, at postreload.c:393

Ok, if one doesn't need a standard C library like newlib, the GCC (and
libgcc with it) builds should succeed up to gcc-4.2.4, in gcc-4.3.x the
libgcc build may crash...





[Index of Archives]     [Linux C Programming]     [Linux Kernel]     [eCos]     [Fedora Development]     [Fedora Announce]     [Autoconf]     [The DWARVES Debugging Tools]     [Yosemite Campsites]     [Yosemite News]     [Linux GCC]

  Powered by Linux