OESF Portables Forum

Model Specific Forums => Sharp Zaurus => Zaurus - pdaXrom => Topic started by: ZDevil on March 17, 2007, 05:36:08 pm

Title: Openttd 0.5.0 Compile Error
Post by: ZDevil on March 17, 2007, 05:36:08 pm
I am trying to compile OpenTTD 0.50 for my friend.

http://www.openttd.com/ (http://www.openttd.com/)

Make stops here:

Code: [Select]
===> DEP video/sdl_v.c
===> DEP sound/sdl_s.c
===> DEP sdl.c
===> Compiling misc_gui.c
misc_gui.c: In function `CheatsWndProc':
misc_gui.c:1851: error: unrecognizable insn:
(insn:HI 245 243 1053 11 variables.h:375 (set (mem/s:SI (plus:SI (mult:SI (subreg:SI (reg:DI 138 [ i ]) 0)
                    (const_int 4 [0x4]))
                (reg/f:SI 130)) [5 _decode_parameters S4 A32])
        (subreg:SI (reg:DI 138 [ i ]) 0)) -1 (nil)
    (expr_list:REG_EQUAL (const_int 0 [0x0])
        (nil)))
misc_gui.c:1851: internal compiler error: in extract_insn, at recog.c:2083
Please submit a full bug report,
with preprocessed source if appropriate.
See for instructions.
make: *** [misc_gui.o] Error 1

Then I talked to the developer of OpenTTD. This is his reply:
Code: [Select]
our compiler seems to crash on OTTD's source code. It is not a bug in our code, but a bug in the compiler you are using. Try updating the compiler and when that doesn't fix the problem, you have to report the bug at the people who wrote the compiler.
So can somebody explain the situation here?  Thanks!
Title: Openttd 0.5.0 Compile Error
Post by: tanjian2 on March 17, 2007, 07:56:15 pm
Google produced this link (http://gcc.gnu.org/ml/gcc-bugs/1999-10/msg00097.html) which suggests that compiling with -O1 might help..

My 0.02p worth.
Title: Openttd 0.5.0 Compile Error
Post by: ZDevil on March 17, 2007, 08:08:52 pm
Great! With -O1, make build misc_gui.o!  Many thanks again, tanjian2.
Title: Openttd 0.5.0 Compile Error
Post by: jpmatrix on March 19, 2007, 09:42:08 am
it's funny because i've just installed it on my PSP ! (firmware 1.5 rulez

i'll try it under the Zaurus then .... and sell my psp back