Author Topic: Openttd 0.5.0 Compile Error  (Read 2487 times)

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Openttd 0.5.0 Compile Error
« on: March 17, 2007, 05:36:08 pm »
I am trying to compile OpenTTD 0.50 for my friend.

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!
« Last Edit: March 17, 2007, 05:36:37 pm by ZDevil »

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

tanjian2

  • Jr. Member
  • **
  • Posts: 98
    • View Profile
Openttd 0.5.0 Compile Error
« Reply #1 on: March 17, 2007, 07:56:15 pm »
Google produced this link which suggests that compiling with -O1 might help..

My 0.02p worth.
« Last Edit: March 17, 2007, 07:56:39 pm by tanjian2 »
SL-C3000(Spitz) - pdaXii13 5.5alpha + sound enhanced kernel - MD in 1 great big partition -  Ambicom CF Wifi + USB Ethernet  and NOW Zubuntu on a 4Gb SD

ZDevil

  • Hero Member
  • *****
  • Posts: 1998
    • View Profile
    • http://
Openttd 0.5.0 Compile Error
« Reply #2 on: March 17, 2007, 08:08:52 pm »
Great! With -O1, make build misc_gui.o!  Many thanks again, tanjian2.

Life is too precious for hacking *too much*
Visit my Z screencap gallery[/color]
My EeePC 701 Black = Debian (Lenny) on IceRocks + Transcend SDHC Class6 8GB + 2GB RAM
My Zaurus SL-C3200 = Debian EABI (kernel 2.6.24.3-yonggun) on a swapped internal Sandisk Extreme III CF 16gb
My Debian EABI feed: http://matrixmen.free.fr/zaurus/debian/
My OpenBSD/Zaurus feeds:  Link1, Link2
[/i][/font][/color][/size]

jpmatrix

  • Hero Member
  • *****
  • Posts: 1014
    • View Profile
    • http://matrixmen.free.fr
Openttd 0.5.0 Compile Error
« Reply #3 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
**Fujitsu U1010 !!!  
**ex-Zaurus SL-C3000 owner with Debian kernel 2.6.24-yonggun