On 21 September 2011 05:06, James Paige <[email protected]> wrote:
> I have been experimenting with running the Windows nightly build scripts
> from wine on a linux box, as I have a plethora of those available, and
> available windows boxes are scarce around here.
>
> It is actually working quite nicely so far. scons, fbc, mingw, and euc
> all seem to work great, and I am getting working executables.
Wow, I'm surprised that everything works without problems... but I
guess all these commandline utilities don't stress wine much.
> I did however, run into problems when linking unlump.exe and relump.exe
>
> Z:\home\james\src\nightly\ohrwip>scons unlump.exe
> scons: Reading SConscript files ...
> scons: done reading SConscript files.
> scons: Building targets ...
> fbc -lang deprecated -mt -exx -g -x unlump.exe unlump.bas lumpfile.o
> os_windows.o util.o blit.o base64.o array.o vector.o common_base.o
> C:\PROG~FBU\FREE~SDA\bin\win32\ld.exe: Dwarf Error: mangled line number
> section.
> array.o:array.c:(.text+0x3a8): undefined reference to `__chkstk_ms'
> array.o:array.c:(.text+0xbd0): undefined reference to `__chkstk_ms'
> scons: *** [unlump.exe] Error 1
> scons: building terminated because of errors.
>
> Yes, it is our old friend the Dwarf Error. I don't know if this is a
> wine-specific error, because the now-dead windows nightly build box was
> the only real windows box I had available to test if this same error was
> happening there.
>
> I also tried compiling unlump.exe with linkgcc=1 but it did not make any
> difference.
Actually, it's our new friend, the stack probe error! 'chkstk_ms' is
the windows-specific ("ms") function to probe the stack. (It's called
from alloca which is used in array.c.) I see that this function was
introduced just one year ago, and it seems that the libraries FB
distributes aren't compatible with the version of GCC you're using.
Which version is it? Anyway, linking with GCC gets around this
problem, however the linkgcc=1 option only affected linking of Game
and Custom. I've fixed that now (hopefully, didn't test on Windows).
> ---
> James
> _______________________________________________
> Ohrrpgce mailing list
> [email protected]
> http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org
>
_______________________________________________
Ohrrpgce mailing list
[email protected]
http://lists.motherhamster.org/listinfo.cgi/ohrrpgce-motherhamster.org