OESF Portal | OESF Forum | OESF Wiki | LinuxPDA | #planetgemini chat on matrix.org | #gemini-pda chat on Freenode | #zaurus and #alarmz chat on Freenode | ELSI (coming soon) | Ibiblio

IPB

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> Openttd 0.5.0 Compile Error, A bug in the compiler?
ZDevil
post Mar 17 2007, 01:36 PM
Post #1





Group: Members
Posts: 1,998
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



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!
Go to the top of the page
 
+Quote Post
tanjian2
post Mar 17 2007, 03:56 PM
Post #2





Group: Members
Posts: 98
Joined: 13-November 06
Member No.: 12,390



Google produced this link which suggests that compiling with -O1 might help..

My 0.02p worth.
Go to the top of the page
 
+Quote Post
ZDevil
post Mar 17 2007, 04:08 PM
Post #3





Group: Members
Posts: 1,998
Joined: 16-April 04
From: the Netherlands && /dev/null
Member No.: 2,882



Great! With -O1, make build misc_gui.o! Many thanks again, tanjian2.
Go to the top of the page
 
+Quote Post
jpmatrix
post Mar 19 2007, 05:42 AM
Post #4





Group: Members
Posts: 1,014
Joined: 15-February 05
From: France
Member No.: 6,477



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
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 19th April 2019 - 09:06 PM