Differences between revisions 116 and 117
Revision 116 as of 2008-08-08 02:01:42
Size: 7480
Editor: ?smarenka
Comment:
Revision 117 as of 2008-08-08 02:18:01
Size: 7527
Comment:
Deletions are marked like this. Additions are marked like this.
Line 3: Line 3:
This page tracks current issues with ["GCC"] for ["M68k/Porting"]. User support and buildd admins can be found at debian-68k@lists.debian.org.  This page tracks current issues with ["GCC"] for ["M68k/Porting"]. User support and buildd admins can be found at debian-68k@lists.debian.org .
Line 6: Line 6:
Line 8: Line 7:
  * [optional] build a sid chroot    * [optional] build a sid chroot
Line 11: Line 10:
Line 13: Line 11:
Line 17: Line 14:
Line 24: Line 20:
{{{testreloads.c:207: error: unable to generate reloads for: {{{
testreloads.c:207: error: unable to generate reloads for:
Line 34: Line 31:
Line 36: Line 32:
Line 39: Line 34:
{{{avidec.c:606: error: unable to generate reloads for: {{{
avidec.c:606: error: unable to generate reloads for:
Line 48: Line 44:
Line 51: Line 46:
{{{avidec.c:606: error: unable to generate reloads for: {{{
avidec.c:606: error: unable to generate reloads for:
Line 60: Line 56:
Line 64: Line 59:
{{{InstructionCombining.cpp:9187: error: unable to generate reloads for: {{{
InstructionCombining.cpp:9187: error: unable to generate reloads for:
Line 74: Line 70:
Line 76: Line 71:
Line 83: Line 77:
{{{postreload.c:886: error: insn does not satisfy its constraints: {{{
postreload.c:886: error: insn does not satisfy its constraints:
Line 89: Line 84:
Line 92: Line 86:
{{{Selector.c:3225: error: insn does not satisfy its constraints: {{{
Selector.c:3225: error: insn does not satisfy its constraints:
Line 97: Line 92:
Line 99: Line 93:

Line 104: Line 96:
Line 108: Line 99:
Line 112: Line 102:
Line 115: Line 104:
Line 117: Line 105:
Line 121: Line 108:
Line 125: Line 111:
Line 129: Line 114:
Line 132: Line 116:
Line 135: Line 118:
Line 137: Line 119:
Line 141: Line 122:
Line 145: Line 125:
Line 148: Line 127:
Line 152: Line 130:
Line 156: Line 133:
Line 159: Line 135:
Line 162: Line 137:
Line 165: Line 139:
Line 168: Line 141:

Line 171: Line 142:
Line 174: Line 144:
The glibc support for the C99 inline semantics was added in glibc 2.6 and all the non-TLS support was removed. GCC 4.3 and later
use C99 inline semantics in -std=gnu99 mode.
The glibc support for the C99 inline semantics was added in glibc 2.6 and all the non-TLS support was removed. GCC 4.3 and later use C99 inline semantics in -std=gnu99 mode

This was resolved with -5 (although the first GCC we managed to build was -8).
-std=gnu99 mode can now be used without any issue.
Line 178: Line 149:
Line 180: Line 150:

Line 183: Line 151:
Line 189: Line 156:

Line 192: Line 157:
Line 194: Line 158:
Line 196: Line 159:
Line 198: Line 160:
 
Line 200: Line 161:

This page tracks current issues with ["GCC"] for ["M68k/Porting"]. User support and buildd admins can be found at debian-68k@lists.debian.org .

  • gcc-4.3 is now the default
  • m68k cross-compilers for i386
    • [optional] build a sid chroot
    • add the following to /etc/apt/sources.list: deb http://people.debian.org/~smarenka/m68k/cross-compilers ./

    • apt-get update && apt-get install gcc-4.3-m68k-linux-gnu

Bugs

Gathering the bugs in gcc-4.3_4.3.1-8.

ice in find_reloads

testreloads.c:207: error: unable to generate reloads for:
(insn:QI 631 629 632 41 testreloads.c:94 (parallel [
            (set (cc0)
                (compare (reg/v:DI 0 %d0 [orig:117 j ] [117])
                    (reg:DI 4 %d4 [orig:115 pretmp.69 ] [115])))
            (clobber (reg:DI 273))
        ]) 12 {*m68k.md:521} (expr_list:REG_UNUSED (reg:DI 273)
        (nil)))
testreloads.c:207: internal compiler error: in find_reloads, at reload.c:3744

related?

  • ffmpeg-debian
    • found in gcc-4.3_4.3.1-2

avidec.c:606: error: unable to generate reloads for:
(insn:QI 1388 1785 1389 174 /build/buildd/ffmpeg-debian-0.svn20080206/libavformat/avidec.c:211 (parallel [
            (set (cc0)
                (compare (reg:DI 10 %a2 [orig:62 pretmp.702 ] [62])
                    (reg:DI 4 %d4 [430])))
            (clobber (reg:DI 431))
        ]) 12 {*m68k.md:521} (expr_list:REG_UNUSED (reg:DI 431)
        (nil)))
avidec.c:606: internal compiler error: in find_reloads, at reload.c:3744
  • ffmpeg-free
    • found in gcc-4.3_4.3.0-3

avidec.c:606: error: unable to generate reloads for:
(insn:QI 1388 1785 1389 174 avidec.c:211 (parallel [
            (set (cc0)
                (compare (reg:DI 10 %a2 [orig:62 pretmp.702 ] [62])
                    (reg:DI 4 %d4 [430])))
            (clobber (reg:DI 431))
        ]) 12 {*m68k.md:521} (expr_list:REG_UNUSED (reg:DI 431)
        (nil)))
avidec.c:606: internal compiler error: in find_reloads, at reload.c:3744
  • llvm
    • found in gcc-4.3_4.3.0-3
    • different than above, although same area

InstructionCombining.cpp:9187: error: unable to generate reloads for:
(insn:QI 1193 1192 1194 210 InstructionCombining.cpp:8939 (parallel [
            (set (cc0)
                (compare (reg:DI 0 %d0)
                    (reg:DI 4 %d4 [499])))
            (clobber (reg:DI 501))
        ]) 12 {*m68k.md:521} (expr_list:REG_DEAD (reg:DI 0 %d0)
        (expr_list:REG_UNUSED (reg:DI 501)
            (nil))))
InstructionCombining.cpp:9187: internal compiler error: in find_reloads, at reload.c:3744

ice in reload_cse_simplify_operands

postreload.c:886: error: insn does not satisfy its constraints:
(insn 309 2675 2677 36 postreload.c:446 (set (reg:SI 0 %d0)
        (plus:SI (mem/f:SI (reg:SI 8 %a0) [0 S4 A16])
            (reg:SI 0 %d0))) 132 {*addsi3_internal} (nil))
postreload.c:886: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395
  • pymol
    • found in gcc-4.3_4.3.1-8

Selector.c:3225: error: insn does not satisfy its constraints:
(insn 276 502 504 38 layer3/Selector.c:3213 (set (reg:SI 0 %d0)
        (plus:SI (mem/f:SI (reg:SI 8 %a0) [0 S4 A16])
            (reg:SI 0 %d0))) 132 {*addsi3_internal} (nil))
layer3/Selector.c:3225: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395

related?

  • courier
    • found in gcc-4.3_4.3.0-3
    • utf7.c:229: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395

  • gnome-keyring
    • found in gcc-4.3_4.3.1-2
    • gkr-crypto.c:151: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395

  • insighttoolkit
    • found in gcc-4.3_4.3.1-8
    • jdsample.c:141: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395

  • osptoolkit
    • sptransapi.c:121: internal compiler error: in reload_cse_simplify_operands, at postreload.c:395

ice Segmentation fault: Reconfirm with -8

  • gnome-settings-daemon
    • found in gcc-4.3_4.3.0-3
    • gsd-xmodmap.c:397: internal compiler error: Segmentation fault

  • oolite
    • found in gcc-4.3_4.3.1-2
    • PlayerEntity Additions.m:1882: internal compiler error: Segmentation fault

  • opencv
    • found in gcc-4.3_4.3.1-2
    • cvfundam.cpp:311: internal compiler error: Segmentation fault

  • gmfsk
    • internal compiler error: Segmentation fault

  • gpc-4.1
    • rtsc.pas:430: internal compiler error: Segmentation fault

Reconfirm w/ -8

  • compiz
    • found in gcc-4.3_4.3.0-3
    • decorator.moc.cpp:130: internal compiler error: in value_format, at dwarf2out.c:7015

  • iceowl
    • found in gcc-4.3_4.3.0-3
    • error: asm-specifier for variable ¿result¿ conflicts with asm clobber list

  • linux-2.6
    • found in gcc-4.3
  • simutrans
    • found in gcc-4.3_4.3.0-3
    • route.cc:520: internal compiler error: in subreg_get_info, at rtlanal.c:3185

  • genesis
    • found in gcc-4.3_4.3.0-3
    • hines_chip.c:595: internal compiler error: in reg_overlap_mentioned_for_reload_p, at reload.c:6525

  • gforth
    • ./engine.c:340: error: unable to find a register to spill in class ADDR_REGS

  • libgnupdf
    • ccZe2Dva.s:1523: Error: operands mismatch -- statement `rol.w #0,%d2' ignored

  • openvrml
    • Internal error: Killed (program cc1plus)

  • washngo_2.12-1
    • Internal error: Killed (program cc1)

Old glibc vs. gcc-4.3

Per http://lists.debian.org/debian-68k/2008/04/msg00033.html

The glibc support for the C99 inline semantics was added in glibc 2.6 and all the non-TLS support was removed. GCC 4.3 and later use C99 inline semantics in -std=gnu99 mode

This was resolved with -5 (although the first GCC we managed to build was -8). -std=gnu99 mode can now be used without any issue.

m68k usertags

gcc-4.x bugs

upstream

binNMUs

Compiler status

  • We don't have an Ada or D compiler at the moment since both compilers require special bootstrapping which has never been done. Michael Casadevall has been been able to build the Ada cross-compiler, but hasn't successfully bootstrapped the native compiler
  • D will probably require similar work done for it.