News:

The Forum Rules and Guidelines
Our forum has Rules and Guidelines. Please, be kind and read them ;).

makefile patch for compiling 32bit binaries on 64bit linux

Started by paco_m, March 12, 2011, 10:46:12 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

paco_m

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.

jamespetts

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...
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.


jamespetts

I see. Has anyone experienced the like issue on the 64-bit version of Simutrans-Experimental?
Download Simutrans-Extended.

Want to help with development? See here for things to do for coding, and here for information on how to make graphics/objects.

Follow Simutrans-Extended on Facebook.

paco_m

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

prissi

Aparently the connected bug report was closed. SO I am also closing this.