472,353 Members | 2,019 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,353 software developers and data experts.

Python 2.3C1 Fails to build ?

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.
Jul 18 '05 #1
1 1624
"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

Jul 18 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
by: Jeffrey Barish | last post by:
Since upgrading to python 2.4 yesterday, I am no longer able to use Tkinter. From http://www.python.org/moin/TkInter I learned that I need to edit...
1
by: Berthold Höllmann | last post by:
I am trying to compile Python on an Opteron machine using the PGI C compiler under Linux. I use: CC=pgcc ./configure ...
0
by: stefvienna | last post by:
Hi group, I'm trying compiling Python-2.4.1 and it fails builing the _socket extension with the following message: building '_socket'...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 420 open ( +4) / 3410 closed ( +2) / 3830 total ( +6) Bugs : 915 open (+17) / 6186...
0
by: Kurt B. Kaiser | last post by:
Patch / Bug Summary ___________________ Patches : 431 open ( +3) / 3425 closed ( +8) / 3856 total (+11) Bugs : 916 open (-23) / 6273...
1
by: Justin Johnson | last post by:
Hello, I'm trying to build Python 2.5.0 on AIX 5.3 using IBM's compiler (VisualAge C++ Professional / C for AIX Compiler, Version 6). I run...
5
by: jgelfand | last post by:
I'm installing Python 2.4.4 on a CentOS release 4.6 (Final) 64-bit machine. Running "./configure --prefix="/ usr/local/yosi/ciao-4.0/ots"...
3
by: spectrumdt | last post by:
Hello. I am trying to install Pypvm (http://pypvm.sourceforge.net/), the Python interface to PVM ("Parallel Virtual Machine"). Unfortunately,...
3
by: Helmut Jarausch | last post by:
Hi, trying to build Python-3.0b1 on my Gentoo Linux box fails with Failed to find the necessary bits to build these modules: _gestalt ...
1
by: Kemmylinns12 | last post by:
Blockchain technology has emerged as a transformative force in the business world, offering unprecedented opportunities for innovation and...
0
by: Naresh1 | last post by:
What is WebLogic Admin Training? WebLogic Admin Training is a specialized program designed to equip individuals with the skills and knowledge...
0
jalbright99669
by: jalbright99669 | last post by:
Am having a bit of a time with URL Rewrite. I need to incorporate http to https redirect with a reverse proxy. I have the URL Rewrite rules made...
0
by: antdb | last post by:
Ⅰ. Advantage of AntDB: hyper-convergence + streaming processing engine In the overall architecture, a new "hyper-convergence" concept was...
0
by: Matthew3360 | last post by:
Hi there. I have been struggling to find out how to use a variable as my location in my header redirect function. Here is my code. ...
0
by: Arjunsri | last post by:
I have a Redshift database that I need to use as an import data source. I have configured the DSN connection using the server, port, database, and...
0
hi
by: WisdomUfot | last post by:
It's an interesting question you've got about how Gmail hides the HTTP referrer when a link in an email is clicked. While I don't have the specific...
0
by: Matthew3360 | last post by:
Hi, I have been trying to connect to a local host using php curl. But I am finding it hard to do this. I am doing the curl get request from my web...
0
by: Carina712 | last post by:
Setting background colors for Excel documents can help to improve the visual appeal of the document and make it easier to read and understand....

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.