The International Simutrans Forum

Development => Patches & Projects => Incorporated Patches and Solved Bug Reports => Topic started by: paco_m on March 12, 2011, 10:46:12 PM

Title: makefile patch for compiling 32bit binaries on 64bit linux
Post by: paco_m on March 12, 2011, 10:46:12 PM
My first (very small) contribution here :D
As we encountered a severe bug in the 64bit version (reported on german forum) that according to Dwachs won't be fixed very soon,
I had to compile the posix simutrans in 32bit for my game server.
It took me quite a long time to figure out how to achieve this, at the end it is just adding -m32 to the gcc options and passing this options to the ld linker; my patch is adding a "linux32" ostype to the makefile and activates the before missing pass of gcc options to the linker.
Title: Re: makefile patch for compiling 32bit binaries on 64bit linux
Post by: jamespetts on March 13, 2011, 12:35:45 AM
Out of interest - what's the 64-bit bug? I know that in Experimental, running the 32-bit binary on Linux 64-bit results in bizarre behaviour on occasions; I don't know whether the same problems will occur in Standard. One alternative is to run the Windows version under Wine...
Title: Re: makefile patch for compiling 32bit binaries on 64bit linux
Post by: sdog on March 13, 2011, 04:44:32 AM
http://translate.google.com/translate?js=n&prev=_t&hl=en&ie=UTF-8&layout=2&eotf=1&sl=auto&tl=en&u=http%3A%2F%2Fwww.simutrans-forum.de%2Fforum%2Fthread.php%3Fthreadid%3D6181&act=url
Title: Re: makefile patch for compiling 32bit binaries on 64bit linux
Post by: jamespetts on March 13, 2011, 10:13:54 AM
I see. Has anyone experienced the like issue on the 64-bit version of Simutrans-Experimental?
Title: Re: makefile patch for compiling 32bit binaries on 64bit linux
Post by: paco_m on March 13, 2011, 11:32:54 AM
It was reported also on Mac OS X by cruzer, however I have some new information on this issue and decided to report it here
http://forum.simutrans.com/index.php?topic=7031
Title: Re: makefile patch for compiling 32bit binaries on 64bit linux
Post by: prissi on February 02, 2012, 08:53:27 PM
Aparently the connected bug report was closed. SO I am also closing this.