hi.
yesterday i finally managed to cross-compile zexy for w32 on my debian/gnu-linux system using the MinGW32 cross-compiler.
while cross-compilation of other libraries (namely: iemmatrix) has worked for quite a while, i ran into a problem which i don't really understand: when compiling zexy with "-O2", pd cannot load the library and bails out with "pd_new: apparently called before setup routine" iirc, this happens at loading time (i am loading the library with "-lib zexy") and NOT when an object is created. when i compile zexy without optimizations, it loads fine.
i haven't yet found time to track down the error to a special optimization that is turned with "-O2".
however, the same optimization-level (O2) with (say) "iemmatrix" does not yield an error.
turning on other optimizations (like SSE) is unproblematic.
i am using pd-0.39-2.msw as found on miller's website. (actually it is the mirror on ftp.iem.at that i use, but they should be identical (as in "mirror"))
does anybody has an idea what might be the cause of this behaviour?
mfg.asd.r IOhannes
PS: looking forward to the time where i can compile everything without having to switch to w32. btw, is there a w32 cross-compiler setup at sourceforge?
On Jan 25, 2006, at 4:20 AM, IOhannes m zmoelnig wrote:
hi.
yesterday i finally managed to cross-compile zexy for w32 on my debian/gnu-linux system using the MinGW32 cross-compiler.
while cross-compilation of other libraries (namely: iemmatrix) has worked for quite a while, i ran into a problem which i don't really understand: when compiling zexy with "-O2", pd cannot load the library and bails out with "pd_new: apparently called before setup routine" iirc, this happens at loading time (i am loading the library with "-lib zexy") and NOT when an object is created. when i compile zexy without optimizations, it loads fine.
i haven't yet found time to track down the error to a special optimization that is turned with "-O2".
however, the same optimization-level (O2) with (say) "iemmatrix" does not yield an error.
turning on other optimizations (like SSE) is unproblematic.
i am using pd-0.39-2.msw as found on miller's website. (actually it is the mirror on ftp.iem.at that i use, but they should be identical (as in "mirror"))
does anybody has an idea what might be the cause of this behaviour?
mfg.asd.r IOhannes
PS: looking forward to the time where i can compile everything without having to switch to w32. btw, is there a w32 cross-compiler setup at sourceforge?
I don't know what's on SourceForge, but it should be relatively easy to set up on Debian, I believe its all packaged:
http://rooster.stanford.edu/~ben/linux/cross.php
.hc
________________________________________________________________________ ____
As we enjoy great advantages from inventions of others, we should be glad of an opportunity to serve others by any invention of ours; and this we should do freely and generously. - Benjamin Franklin
Hallo!
PS: looking forward to the time where i can compile everything without having to switch to w32. btw, is there a w32 cross-compiler setup at sourceforge?
I don't know what's on SourceForge, but it should be relatively easy to set up on Debian, I believe its all packaged:
btw: how do you crosscompile things, which depend on other libraries ? (e.g. Gem)
LG Georg
Zitiere Georg Holzmann grhPD@gmx.at:
Hallo!
PS: looking forward to the time where i can compile everything without having to switch to w32. btw, is there a w32 cross-compiler setup at sourceforge?
I don't know what's on SourceForge, but it should be relatively easy
to
set up on Debian, I believe its all packaged:
oh gosh, and i always did "aptitude install mingw32" :-)
the page is a great ressource for getting started, but unfortunately it does not seem to hold any hint to my specific problem (my problem is not with setting up a cross-compilation environment (i have one working for 1 year or so), but with a weird behaviour at optimization - and even weirder since it works fine with one library and not with another one)
btw: how do you crosscompile things, which depend on other libraries ? (e.g. Gem)
well, that's on my todo list. once i get to Gem, i think the real problems will be at linking to DirectX. i think thoralf has managed to compile Gem with mingw on w32 (no cross-compilation) i guess one could build on that.
mfg.asdr. IOhannes
IOhannes m zmoelnig wrote:
hi.
i haven't yet found time to track down the error to a special optimization that is turned with "-O2".
i tracked it down to the "-funit-at-a-time" part of "-O2". for now it seems to work to turn this particular optimization off via "-fno-unit-at-a-time". (i don't know yet, whether this is a good idea...)
mfg.adsr IOhannes