Opened 7 years ago

Closed 7 years ago

#1157 closed bug (invalid)

hxt cannot be compiled with optimization level 2 (-O2)

Reported by: maeder@… Owned by:
Priority: normal Milestone: 6.6.1
Component: libraries (other) Version: 6.6
Keywords: Cc: hxmltoolbox@…
Operating System: MacOS X Architecture: powerpc
Type of failure: Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

When trying to install HXT-7.1 on our power mac compilation failed with:

[ 89 of 114] Compiling Control.Arrow.ListArrow ( src/Control/Arrow/ListArrow.hs,
 dist/build/Control/Arrow/ListArrow.o )
/tmp/ghc27401_0/ghc27401_0.hc: In function `hxtzm7zi1_ControlziArrowziListArrow_
zdf3_entry':

/tmp/ghc27401_0/ghc27401_0.hc:3234:0:
     error: insn does not satisfy its constraints:
(jump_insn:HI 197 280 198 2 0x10163c8 (set (pc)
        (reg/u:SI 2 r2)) 542 {indirect_jumpsi} (insn_list:REG_DEP_ANTI 177 (insn
_list:REG_DEP_ANTI 178 (insn_list:REG_DEP_ANTI 179 (insn_list:REG_DEP_ANTI 173 (
insn_list:REG_DEP_ANTI 174 (insn_list:REG_DEP_ANTI 175 (insn_list:REG_DEP_ANTI 1
70 (insn_list:REG_DEP_ANTI 171 (insn_list:REG_DEP_ANTI 165 (insn_list:REG_DEP_AN
TI 166 (insn_list:REG_DEP_ANTI 167 (insn_list:REG_DEP_ANTI 162 (insn_list:REG_DE
P_ANTI 163 (insn_list:REG_DEP_ANTI 158 (insn_list:REG_DEP_ANTI 159 (insn_list:RE
G_DEP_ANTI 154 (insn_list:REG_DEP_ANTI 155 (insn_list:REG_DEP_ANTI 150 (insn_lis
t:REG_DEP_ANTI 151 (insn_list:REG_DEP_ANTI 146 (insn_list:REG_DEP_ANTI 147 (insn
_list:REG_DEP_ANTI 142 (insn_list:REG_DEP_ANTI 143 (insn_list:REG_DEP_ANTI 138 (
insn_list:REG_DEP_ANTI 139 (insn_list:REG_DEP_ANTI 134 (insn_list:REG_DEP_ANTI 1
35 (insn_list:REG_DEP_ANTI 130 (insn_list:REG_DEP_ANTI 131 (insn_list:REG_DEP_AN
TI 126 (insn_list:REG_DEP_ANTI 127 (insn_list:REG_DEP_ANTI 122 (insn_list:REG_DE
P_ANTI 123 (insn_list:REG_DEP_ANTI 118 (insn_list:REG_DEP_ANTI 119 (insn_list:RE
G_DEP_ANTI 114 (insn_list:REG_DEP_ANTI 115 (insn_list:REG_DEP_ANTI 109 (insn_lis
t:REG_DEP_ANTI 110 (insn_list:REG_DEP_ANTI 111 (insn_list:REG_DEP_ANTI 106 (insn
_list:REG_DEP_ANTI 107 (insn_list:REG_DEP_ANTI 101 (insn_list:REG_DEP_ANTI 102 (
insn_list:REG_DEP_ANTI 103 (insn_list:REG_DEP_ANTI 98 (insn_list:REG_DEP_ANTI 99
 (insn_list:REG_DEP_ANTI 94 (insn_list:REG_DEP_ANTI 95 (insn_list:REG_DEP_ANTI 9
0 (insn_list:REG_DEP_ANTI 91 (insn_list:REG_DEP_ANTI 86 (insn_list:REG_DEP_ANTI
87 (insn_list:REG_DEP_ANTI 82 (insn_list:REG_DEP_ANTI 83 (insn_list:REG_DEP_ANTI
 78 (insn_list:REG_DEP_ANTI 79 (insn_list:REG_DEP_ANTI 74 (insn_list:REG_DEP_ANT
I 75 (insn_list:REG_DEP_ANTI 70 (insn_list:REG_DEP_ANTI 71 (insn_list:REG_DEP_AN
TI 66 (insn_list:REG_DEP_ANTI 67 (insn_list:REG_DEP_ANTI 61 (insn_list:REG_DEP_A
NTI 62 (insn_list:REG_DEP_ANTI 63 (insn_list:REG_DEP_ANTI 54 (insn_list:REG_DEP_
ANTI 55 (insn_list:REG_DEP_ANTI 56 (insn_list:REG_DEP_ANTI 50 (insn_list:REG_DEP
_ANTI 51 (insn_list:REG_DEP_ANTI 52 (insn_list:REG_DEP_ANTI 47 (insn_list:REG_DE
P_ANTI 48 (insn_list:REG_DEP_ANTI 59 (insn_list:REG_DEP_ANTI 34 (insn_list:REG_D
EP_ANTI 35 (insn_list:REG_DEP_ANTI 36 (insn_list:REG_DEP_ANTI 43 (insn_list:REG_
DEP_ANTI 44 (insn_list:REG_DEP_ANTI 195 (nil))))))))))))))))))))))))))))))))))))
))))))))))))))))))))))))))))))))))))))))))))))
    (nil))

/tmp/ghc27401_0/ghc27401_0.hc:3234:0:
     internal compiler error: in reload_cse_simplify_operands, at reload1.c:8346
Please submit a full bug report,
with preprocessed source if appropriate.
See <URL:http://developer.apple.com/bugreporter> for instructions.
Preprocessing library hxt-7.1...

A workaround is to replace -O2 with -O in hxt.cabal.

Change History (1)

comment:1 Changed 7 years ago by igloo

  • Resolution set to invalid
  • Status changed from new to closed

This looks like an internal compiler error from gcc.

The web has similar reports that it claims are fixed in gcc 3.3.1, so upgrading may fix the problem. If not, you'll have to file a bug against gcc.

Thanks

Ian

Note: See TracTickets for help on using tickets.