This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Title: HP-UX: _ctypes/libffi/src/ia64/ffi/__attribute__/native cc
Type: compile error Stage: resolved
Components: ctypes Versions: Python 3.1, Python 3.2, Python 2.7
Status: closed Resolution: out of date
Dependencies: Superseder:
Assigned To: theller Nosy List: cgaspar, jabt, michael-o, theller
Priority: low Keywords:

Created on 2007-01-31 15:07 by jabt, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Messages (5)
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'.

(*) 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?
msg323777 - (view) Author: Michael Osipov (michael-o) * Date: 2018-08-20 08:12
Cannot verify:
$ file ./build/lib.hp-ux-B.11.31-ia64-3.8-pydebug/
./build/lib.hp-ux-B.11.31-ia64-3.8-pydebug/  ELF-32 shared object file - IA64
$ ldd ./build/lib.hp-ux-B.11.31-ia64-3.8-pydebug/

./build/lib.hp-ux-B.11.31-ia64-3.8-pydebug/ =>    /usr/local/lib/hpux32/ =>   /usr/lib/hpux32/ =>    /usr/lib/hpux32/

This issue can be closed.
Date User Action Args
2022-04-11 14:56:22adminsetgithub: 44529
2020-05-08 02:37:06ned.deilysetstatus: open -> closed
resolution: out of date
stage: resolved
2018-08-20 08:12:37michael-osetnosy: + michael-o
messages: + msg323777
2014-02-03 19:44:54BreamoreBoysetnosy: - BreamoreBoy
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 -> (no value)
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