Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Python > Python 2.3C1 Fails to build ?

Reply
Thread Tools

Python 2.3C1 Fails to build ?

 
 
Holden Caulfield
Guest
Posts: n/a
 
      07-25-2003
Hi,

I am trying to build Python 2.3 RC1 (2.3c1) on Cray SV1 running UNICOS 10.0.
And I am difficulty
building it on this architecture.

Background
--------------

.. Python 2.2.3 builds withs no problem. (without any changes).
.. This architecture has all C-datatypes as 8 bytes.

Try 1:
-------

I got this error message first time around.

~~~~ Cut ~~
cc -h nomessage=450 -h nostdc -h noconform -c -DNDEBUG -h scalar0 -h
vector0 -I. -I./Include -DPy_BUILD_CORE -o Parser/grammar.o
Parser/grammar.c
CC-513 cc: ERROR File = Parser/grammar.c, Line = 45
A value of type "int" cannot be assigned to an entity of type "char *".

d->d_name = strdup(name);
^

CC-513 cc: ERROR File = Parser/grammar.c, Line = 105
A value of type "int" cannot be assigned to an entity of type "char *".

lb->lb_str = strdup(str);
^

Total errors detected in Parser/grammar.c: 2
make: *** [Parser/grammar.o] Error 1

~~~~~~

- For some reason the strdup prototype does not get picked by the python
build.
Anyways, since strdup is there in libc, I just #ifdef'ed the prototype for
_CRAY and proceeded. It went
further this time around, but now I get this error in obmalloc.c, which
seems more problematic to fix.

~~~ Error message cut ~~~
cc -h nomessage=450 -h nostdc -h noconform -c -DNDEBUG -h scalar0 -h
vector0 -I. -I./Include -DPy_BUILD_CORE -o Objects/obmalloc.o
Objects/obmalloc.c
CC-61 cc: ERROR File = Objects/obmalloc.c, Line = 371
The integer operation result is out of range.

PT(0), PT(1), PT(2), PT(3), PT(4), PT(5), PT(6), PT(7)
^

CC-61 cc: ERROR File = Objects/obmalloc.c, Line = 371
The integer operation result is out of range.

PT(0), PT(1), PT(2), PT(3), PT(4), PT(5), PT(6), PT(7)
^

Total errors detected in Objects/obmalloc.c: 2
make: *** [Objects/obmalloc.o] Error 1
~~~~~~~~~~~~~~

Any ideas what is going on?

Thanks.


 
Reply With Quote
 
 
 
 
Martin v. =?iso-8859-15?q?L=F6wis?=
Guest
Posts: n/a
 
      07-25-2003
"Holden Caulfield" <phoebe_1@no_spam.worldnet.att.net> writes:

> The integer operation result is out of range.
>
> PT(0), PT(1), PT(2), PT(3), PT(4), PT(5), PT(6), PT(7)

[...]
> Any ideas what is going on?


I'd say there is a bug in the compiler. PT(0) is PTA(0), PTA(0),
which is

((poolp )((uchar *)&(usedpools[2*(0)]) - 2*sizeof(block *)))

Assuming that "2*(0)*" and "2*sizeof(block*)" are all not out of
range, abouth the only remaining operation is the subtraction, which
is of type "uchar* - size_t". This is, however, not an integer
operation, but a pointer operation.

You might want to try similar expressions in a separate program, to
narrow down the problem further.

Regards,
Martin

 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Python 2.7.1 64-bit Build on HP-UX11.31 ia64 with aCC - Manymodules failed to build Wong Wah Meng-R32813 Python 0 09-18-2011 09:41 AM
Python-3.0b1 build fails on Linux : _gestalt Helmut Jarausch Python 3 06-20-2008 02:39 AM
build now requires Python exist before the build starts Toon Knapen Python 2 05-17-2006 07:11 AM
SWsoft Acronis Disk Director Suite 9.0 Build 508, Acronis OS Selector 8.0 Build 917, Acronis Partition Expert 2003 Build 292, Acronis Power Utilities 2004 Build 502, F-SECURE.ANTI vIRUS.PROXY v1.10.17.WINALL, F-SECURE.ANTI vIRUS v5.50.10260 for CITRI vvcd Computer Support 0 09-25-2004 01:38 AM
Python 2.3.3 : Win32 build vs Cygwin build performance ? Nicolas Lehuen Python 3 01-28-2004 07:30 AM



Advertisments