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.

classification
Title: ctypes doesn't build on hp-ux
Type: compile error Stage:
Components: Build, ctypes Versions: Python 2.7
process
Status: languishing Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: BreamoreBoy, adiroiban, christian.heimes, loewis, ronaldoussoren
Priority: low Keywords:

Created on 2010-07-06 09:15 by ronaldoussoren, last changed 2022-04-11 14:57 by admin.

Messages (7)
msg109374 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-06 09:15
During the build of python2.7 on a HP-UX machine I get this compile error when building the ctypes extension:

cc -Ae +z -Olimit 1500 -g -DNDEBUG -O -Ibuild/temp.hp-ux-B.11.23-9000-800-2.7/libffi/include -Ibuild/temp.hp-ux-B.11.23-9000-800-2.7/libffi -I/home/xsupport/bld/Python-2.7/Modules/_ctypes/libffi/src -I/opt/python2.7/include -I. -IInclude -I./Include -I/home/xsupport/bld/Python-2.7/Include -I/home/xsupport/bld/Python-2.7 -c /home/xsupport/bld/Python-2.7/Modules/_ctypes/_ctypes.c -o build/temp.hp-ux-B.11.23-9000-800-2.7/home/xsupport/bld/Python-2.7/Modules/_ctypes/_ctypes.o
cpp: "build/temp.hp-ux-B.11.23-9000-800-2.7/libffi/include/ffi.h", line 133: error 4044: Constant literal too large.
cpp: "build/temp.hp-ux-B.11.23-9000-800-2.7/libffi/include/ffi.h", line 134: error 4062: "no 64-bit data type supported"

Compiler version:

  B9007AA               C.11.23.12     HP C/aC++ Developer's Bundle 

System info:


HP-UX ah006b02 B.11.23 U 9000/800 2284397887 unlimited-user license
msg109418 - (view) Author: Martin v. Löwis (loewis) * (Python committer) Date: 2010-07-06 20:17
I don't think ctypes supports acc; try gcc instead.
msg109455 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2010-07-07 06:11
I don't think installing GCC will be possible on the machine I did the build on (for non-technical reasons).
msg192368 - (view) Author: Christian Heimes (christian.heimes) * (Python committer) Date: 2013-07-05 22:34
Is this issue still relevant?
msg192390 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2013-07-06 08:49
Good question, the libffi copy included with cpython has recently changed.

There are HP-UX buildbots, but they have build problems. I'll try to test on an HP-UX system I've access to.
msg192391 - (view) Author: Ronald Oussoren (ronaldoussoren) * (Python committer) Date: 2013-07-06 09:07
So much for testing, the machine I'm trying to test on is fairly old and doesn't have an up to date compiler. That compiler crashes when trying to build the 2.7.5 release :-(
msg221251 - (view) Author: Mark Lawrence (BreamoreBoy) * Date: 2014-06-22 13:12
Was this ever a Python issue if the compiler isn't supported by ctypes?  If it is a Python issue what is the likelihood of a fix being put in place for the 2.7 series?
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53421
2014-06-22 13:12:12BreamoreBoysetnosy: + BreamoreBoy
messages: + msg221251
2013-07-06 09:07:42ronaldoussorensetmessages: + msg192391
2013-07-06 08:49:33ronaldoussorensetmessages: + msg192390
2013-07-05 22:34:06christian.heimessetstatus: open -> languishing
nosy: + christian.heimes
messages: + msg192368

2012-04-12 01:45:34adiroibansetnosy: + adiroiban
2011-09-02 02:51:09meador.ingesetpriority: normal -> low
assignee: theller ->

nosy: - theller
2010-07-07 06:11:59ronaldoussorensetmessages: + msg109455
2010-07-06 20:17:27loewissetnosy: + loewis
messages: + msg109418
2010-07-06 09:15:35ronaldoussorencreate