classification
Title: HP-UX: _ctypes/libffi/src/ia64/ffi/__attribute__/native cc
Type: compile error Stage:
Components: ctypes Versions: Python 3.2, Python 3.1, Python 2.7
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: theller Nosy List: BreamoreBoy, cgaspar, jabt, theller
Priority: low Keywords:

Created on 2007-01-31 15:07 by jabt, last changed 2010-09-16 20:01 by BreamoreBoy.

Messages (4)
msg31147 - (view) Author: Johannes Abt (jabt) Date: 2007-01-31 15:07
_ctypes/libffi/src/ia64/ffi.c uses __attribute__((...)) twice. Consequently, ffi.c does not compile with the native compiler 
(cc: HP C/aC++ B3910B A.06.12 [Aug 17 2006]).
msg31148 - (view) Author: Thomas Heller (theller) * (Python committer) Date: 2007-01-31 19:43
I tried that on a HP testdrive machine.  While the _ctypes extension buils fine with GCC (*), it does indeed not compile with the native C compiler. But cc not understanding __attribute__ is only the first problem; if it is removed there are lots of other compilation problems.  Unless someone can provide a patch, I'll close this as 'won't fix'.

(*) _ctypes_test.so is also built but fails to load as shared library, because the symbol __divsf3 is not defined.
msg31149 - (view) Author: Carson Gaspar (cgaspar) Date: 2007-03-07 09:05
Fails on Solaris x86 10 U3 / Sun Studio 11 for the same reasons. It's uncompilable on x86_64 anyway though, as Sun has no 128-bit integer type, so the __int128_t in x86/ffi64.c will never compile. I haven't tried building it in 32-bit mode.


msg116600 - (view) Author: Mark Lawrence (BreamoreBoy) Date: 2010-09-16 20:01
Is this still a problem with later versions of Python and/or the quoted OSes?
History
Date User Action Args
2010-09-16 20:01:19BreamoreBoysetnosy: + BreamoreBoy

messages: + msg116600
versions: + Python 3.1, Python 2.7, Python 3.2, - Python 2.6, Python 3.0
2009-05-05 19:56:18thellersetnosy: theller, jabt, cgaspar
components: - Build
stage: test needed ->
2009-03-30 20:07:27ajaksu2setversions: + Python 2.6, Python 3.0, - Python 2.5
priority: normal -> low
assignee: theller
components: + ctypes
type: compile error
stage: test needed
2007-01-31 15:07:02jabtcreate