From: Todd M. <jm...@st...> - 2004-06-07 15:06:49
|
On Mon, 2004-06-07 at 10:36, Marc Poinot wrote: > I've got a crash with xlC compiler on AIX 5.1 (using 64 bits mode). > The macro used to check the API function before the call makes the > compiler crazy. You might want to look at numarray-0.9/include/numarray/genapi.py and see if you can modify the macro generation into something xlC can stomach. Right now, the call consists of these parts: 1. A cast of the API jump table pointer and function ID to a pointer to a function with a particular signature. 2. Code which checks to see that the API pointer has been initialized and gives a fatal error rather than dumping core if it has not been inited. The macro generation Python code looks like: PSEUDO = """ #define <function> (<module>_API ? (*(<rval> (*) <proto> ) <module>_API[ <num> ]) : (*(<rval> (*) <proto> ) FatalApiError)) """ You can simplify it to this by eliminating part 2: PSEUDO = """ #define <function> (*(<rval> (*) <proto> ) <module>_API[ <num> ]) """ And then re-install with: python setup.py install --gencode Beyond that, you're in new territory for me. Good luck! Let us know how it goes. > This simple test fails: > > #include "Python.h" > #include "numarray/arrayobject.h" > > int main() > { > char * foo; > int d[3]; // don't care about alloc, it doesn't compile ;) > > NA_vNewArray(foo,tInt64,1,d); > } > > Can I use another function without the macro to replace NA_vNewArray ? > Is there somebody with a successful installed numarray 0.9 on AIX ? > > Yes -> what about this problem above, did you change something ? > No -> great ! Ok, I'm going back to 8086 harware. > > -MP- > > > ------------------------------------------------------- > This SF.Net email is sponsored by the new InstallShield X. > From Windows to Linux, servers to mobile, InstallShield X is the one > installation-authoring solution that does it all. Learn more and > evaluate today! http://www.installshield.com/Dev2Dev/0504 > _______________________________________________ > Numpy-discussion mailing list > Num...@li... > https://lists.sourceforge.net/lists/listinfo/numpy-discussion -- Todd Miller <jm...@st...> |