Bugs item #1637120, was opened at 2007-01-16 18:06
Message generated for change (Comment added) made by oirraza
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1637120&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Build
Group: Python 2.5
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Orlando Irrazabal (oirraza)
Assigned to: Thomas Heller (theller)
Summary: Python 2.5 fails to build on AIX 5.3 (xlc_r compiler)

Initial Comment:
Initial Comment:
Build of Python 2.5 on AIX 5.3 with xlc_r fails with the below error message.

The configure line is:
./configure --with-gcc="xlc_r -q64" --with-cxx="xlC_r -q64" --disable-ipv6 
AR="ar -X64"

[...]
building '_ctypes' extension
xlc_r -q64 -DNDEBUG -O -I. -I/sw_install/python-2.5/./Include 
-Ibuild/temp.aix-5.3-2.5/libffi/include -Ibuild/temp.aix-5.3-2.5/libffi 
-I/sw_install/python-2.5/Modules/_ctypes/libffi/src -I./Include -I. 
-I/sw_install/python-2.5/Include -I/sw_install/python-2.5 -c 
/sw_install/python-2.5/Modules/_ctypes/_ctypes.c -o 
build/temp.aix-5.3-2.5/sw_install/python-2.5/Modules/_ctypes/_ctypes.o
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 221.3: 1506-166 (S) 
Definition of function ffi_closure requires parentheses.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 221.15: 1506-276 (S) Syntax 
error: possible missing '{'?
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 248.3: 1506-273 (E) Missing 
type in declaration of ffi_raw_closure.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 251.38: 1506-275 (S) 
Unexpected text '*' encountered.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 252.23: 1506-276 (S) Syntax 
error: possible missing identifier?
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 251.1: 1506-033 (S) 
Function ffi_prep_raw_closure is not valid. Function cannot return a function.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 251.1: 1506-282 (S) The 
type of the parameters must be specified in a prototype.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 254.23: 1506-275 (S) 
Unexpected text 'void' encountered.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 254.38: 1506-275 (S) 
Unexpected text ')' encountered.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 257.43: 1506-275 (S) 
Unexpected text '*' encountered.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 258.28: 1506-276 (S) Syntax 
error: possible missing identifier?
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 257.1: 1506-033 (S) 
Function ffi_prep_java_raw_closure is not valid. Function cannot return a 
function.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 257.1: 1506-282 (S) The 
type of the parameters must be specified in a prototype.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 260.28: 1506-275 (S) 
Unexpected text 'void' encountered.
"build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 260.43: 1506-275 (S) 
Unexpected text ')' encountered.
"/sw_install/python-2.5/Modules/_ctypes/ctypes.h", line 71.9: 1506-046 (S) 
Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/ctypes.h", line 77.26: 1506-195 (S) 
Integral constant expression with a value greater than zero is required.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 2804.31: 1506-068 (E) 
Operation between types "void*" and "int(*)(void)" is not allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 3357.28: 1506-280 (E) 
Function argument assignment between types "int(*)(void)" and "void*" is not 
allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 3417.42: 1506-022 (S) 
"pcl" is not a member of "struct {...}".
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 4749.67: 1506-280 (E) 
Function argument assignment between types "void*" and "void*(*)(void*,const 
void*,unsigned long)" is not allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 4750.66: 1506-280 (E) 
Function argument assignment between types "void*" and 
"void*(*)(void*,int,unsigned long)" is not allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 4751.69: 1506-280 (E) 
Function argument assignment between types "void*" and "struct 
_object*(*)(const char*,long)" is not allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 4752.64: 1506-280 (E) 
Function argument assignment between types "void*" and "struct 
_object*(*)(void*,struct _object*,struct _object*)" is not allowed.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes.c", line 4754.70: 1506-280 (E) 
Function argument assignment between types "void*" and "struct 
_object*(*)(const unsigned int*,int)" is not allowed.
building '_ctypes_test' extension
xlc_r -q64 -DNDEBUG -O -I. -I/sw_install/python-2.5/./Include -I./Include -I. 
-I/sw_install/python-2.5/Include -I/sw_install/python-2.5 -c 
/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c -o 
build/temp.aix-5.3-2.5/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.o
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 61.1: 1506-046 
(S) Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 68.1: 1506-046 
(S) Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 75.1: 1506-046 
(S) Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field M must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field N must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field O must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field P must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field Q must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field R must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 320.9: 1506-009 
(S) Bit-field S must be of type signed int, unsigned int or int.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 371.1: 1506-046 
(S) Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 371.31: 1506-045 
(S) Undeclared identifier get_last_tf_arg_s.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 372.1: 1506-046 
(S) Syntax error.
"/sw_install/python-2.5/Modules/_ctypes/_ctypes_test.c", line 372.31: 1506-045 
(S) Undeclared identifier get_last_tf_arg_u.
[...]



----------------------------------------------------------------------

>Comment By: Orlando Irrazabal (oirraza)
Date: 2007-01-25 11:13

Message:
Logged In: YES 
user_id=876766
Originator: YES

I downloaded with eclipse (subclipse addin) and then ftp to my aix
machine. It's this ok?

----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2007-01-25 03:20

Message:
Logged In: YES 
user_id=21627
Originator: NO

oirraza: when you say "I downloaded", what precisely do you mean? The only
sensible way of downloading it is through subversion checkout, i.e. "svn co
http:...".

----------------------------------------------------------------------

Comment By: Orlando Irrazabal (oirraza)
Date: 2007-01-24 21:08

Message:
Logged In: YES 
user_id=876766
Originator: YES

Thomas, i downloaded the subversion maintenance branch from
http://svn.python.org/projects/python/branches/release25-maint/

but when i run ./configure 

fails with the below error message

[...]
mv: cannot rename config.c to Modules/config.c:
No such file or directory


----------------------------------------------------------------------

Comment By: Thomas Heller (theller)
Date: 2007-01-24 18:00

Message:
Logged In: YES 
user_id=11105
Originator: NO

There seem to be three separate compilation errors:

1. (build/temp.aix-5.3-2.5/libffi/include/ffi.h", line 221.3: 1506-166 (S)
Definition of function ffi_closure requires parentheses)

    >This looks like the compile does not understand the
__attribute__((...)) syntax.

2. In _ctypes_test.c, lines 61/68/75:  The source uses C++ comments
instead of C comments.

3. The compiler does not seem to support bit fields in structures with
type 'short'.

For issue 1: oirraza, can you try the compilation with
'__attribute__((...))' removed?
Issue 2: is fixed now in SVN.
Issue 3: Hm, I don't actually know how to approach this.


----------------------------------------------------------------------

Comment By: Martin v. Löwis (loewis)
Date: 2007-01-18 17:02

Message:
Logged In: YES 
user_id=21627
Originator: NO

oirraza, can you please try the subversion maintenance branch for Python
2.5 instead and report whether the bug has there? It is at

http://svn.python.org/projects/python/branches/release25-maint/

Thomas, can you please take a look at this? If not, unassign.

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=105470&aid=1637120&group_id=5470
_______________________________________________
Python-bugs-list mailing list 
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to