Help - Search - Members - Calendar
Full Version: Openttd 0.5.0 Compile Error
OESF Forums > Distros, Development, and Model Specific Forums > Distro Support and Discussion > pdaXrom
ZDevil
I am trying to compile OpenTTD 0.50 for my friend.

http://www.openttd.com/

Make stops here:

CODE
===> 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 <URL:http://gcc.gnu.org/bugs.html> for instructions.
make: *** [misc_gui.o] Error 1


Then I talked to the developer of OpenTTD. This is his reply:
CODE
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!
tanjian2
Google produced this link which suggests that compiling with -O1 might help..

My 0.02p worth.
ZDevil
Great! With -O1, make build misc_gui.o! Many thanks again, tanjian2.
jpmatrix
it's funny because i've just installed it on my PSP ! (firmware 1.5 rulez wink.gif

i'll try it under the Zaurus then .... and sell my psp back wink.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2015 Invision Power Services, Inc.