On 5/29/07, Mary Haley <[EMAIL PROTECTED]> wrote:


On Tue, 29 May 2007, Charles R Harris wrote:

> On 5/29/07, Mary Haley <[EMAIL PROTECTED]> wrote:
>>
>>
>> Hi all,
>>
>> I have been trying to build numpy 1.0.3 on my SGI/IRIX64 box (64-bit
>> version) with no luck.  I'm using Python 2.4.4.
>
>
> There have been other reports of problems on IRIX 6.5. What we need is
> someone running on an SGI box and willing to help us get things working.

Chuck,

I will be willing to help here. Unfortunately I can't give people logins
to this system, but I will be willing to try a bunch of things.

> I've tried setting CC to both the default "cc" compiler (which
>> I built python with), and "gcc", with no luck.  I tried c89 and c99,
>> still with no luck. I get errors like:
>>
>> cc -64 _configtest.o -L/usr/local/lib -L/usr/lib -o _configtest
>> ld64: FATAL   12 : Expecting n64 objects: /usr/lib/crt1.o is o32.
>> ld64: FATAL   12 : Expecting n64 objects: /usr/lib/crt1.o is o32.
>
>
> Looks like ld is trying to link a 64bit program to a 32bit library. I
wonder
> what crt1 is? Is there a 64bit version? How are the 64 and 32 bit
libraries
> in IRIX distinguished?

I was wondering about this /usr/lib/crt1.o myself.  Generally when you
see this error message, it means that some of the code is getting
compiled in 64-bit mode (using the -64 option) and some is being
compiled in 32-bit mode (using -32 or -n32). You can't mix these
two.

This can also happen, I think, if compilers are mixed. That is,
if you try to use "cc -64" for some code, and then "gcc" for
other code, as the "gcc" compiler doesn't recognize the -64 or
-n32 options.


I believe the options are -m32 and -m64. Do gcc -v to see what the target
is.

Can I build NumPy a certain way for you that might give you
more debug information to go on?


I'm waiting for one of the build gurus to check in, it's not my area of
expertise. Are the 32 and 64 bit libraries in IRIX put in different places?
On linux, for instance, the (non-debian) standard is 32 bit in the usual
location, 64 bit in lib64. You can control where numpy looks for libraries
by editing the site.cfg file at the top of the numpy directory.

Chuck
_______________________________________________
Numpy-discussion mailing list
[email protected]
http://projects.scipy.org/mailman/listinfo/numpy-discussion

Reply via email to