Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.5 regression] ctypes fails to build on arm-linux-gnu #48553

Closed
doko42 opened this issue Nov 12, 2008 · 9 comments
Closed

[2.5 regression] ctypes fails to build on arm-linux-gnu #48553

doko42 opened this issue Nov 12, 2008 · 9 comments
Assignees
Labels
build The build process and cross-build release-blocker topic-ctypes

Comments

@doko42
Copy link
Member

doko42 commented Nov 12, 2008

BPO 4303
Nosy @loewis, @warsaw, @theller, @doko42

Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

Show more details

GitHub fields:

assignee = 'https://github.com/theller'
closed_at = <Date 2008-12-13.14:15:39.997>
created_at = <Date 2008-11-12.09:00:53.336>
labels = ['ctypes', 'build', 'release-blocker']
title = '[2.5 regression] ctypes fails to build on arm-linux-gnu'
updated_at = <Date 2008-12-13.14:15:39.996>
user = 'https://github.com/doko42'

bugs.python.org fields:

activity = <Date 2008-12-13.14:15:39.996>
actor = 'loewis'
assignee = 'theller'
closed = True
closed_date = <Date 2008-12-13.14:15:39.997>
closer = 'loewis'
components = ['ctypes']
creation = <Date 2008-11-12.09:00:53.336>
creator = 'doko'
dependencies = []
files = []
hgrepos = []
issue_num = 4303
keywords = []
message_count = 9.0
messages = ['75779', '76185', '77491', '77522', '77524', '77531', '77557', '77558', '77733']
nosy_count = 4.0
nosy_names = ['loewis', 'barry', 'theller', 'doko']
pr_nums = []
priority = 'release blocker'
resolution = 'wont fix'
stage = None
status = 'closed'
superseder = None
type = 'compile error'
url = 'https://bugs.python.org/issue4303'
versions = ['Python 2.5.3']

@doko42
Copy link
Member Author

doko42 commented Nov 12, 2008

ctypes fails to build on arm-linux-gnu, see
http://python.org/dev/buildbot/2.5/ARM Linux 2.5/builds/3/step-compile/0

gcc -pthread -fPIC -fno-strict-aliasing -g -Wall -Wstrict-prototypes -I.
-I/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/./Include
-Ibuild/temp.linux-armv5tel-2.5/libffi/include
-Ibuild/temp.linux-armv5tel-2.5/libffi
-I/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/libffi/src
-I. -IInclude -I./Include -I/usr/local/include
-I/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Include
-I/home/pybot/buildarea-arm/2.5.klose-linux-arm/build -c
/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/_ctypes.c
-o
build/temp.linux-armv5tel-2.5/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/_ctypes.o
In file included from
/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/_ctypes.c:127:
/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/ctypes.h:72:
error: expected specifier-qualifier-list before 'ffi_closure'
/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/_ctypes.c:
In function 'CFuncPtr_new':
/home/pybot/buildarea-arm/2.5.klose-linux-arm/build/Modules/_ctypes/_ctypes.c:2955:
error: 'CThunkObject' has no member named 'pcl'

this is a regression compared to 2.5.2. Not seen on 2.6 or 3.0. Please
consider a fix before 2.5.3 is released.

@doko42 doko42 added the build The build process and cross-build label Nov 12, 2008
@warsaw
Copy link
Member

warsaw commented Nov 21, 2008

Deferring until 3.0 final is out.

@loewis
Copy link
Mannequin

loewis mannequin commented Dec 10, 2008

Thomas, do you have an idea what might be causing this problem, or a
proposal how to resolve it?

@theller
Copy link

theller commented Dec 10, 2008

Is this really a regression? I do not think so; the libffi library
included with the Python 2.5 ctypes does not support closures on the
arm. See file Modules/_ctypes/libffi/src/arm/ffitarget.h, it contains
'#define FFI_CLOSURES 0'.

@loewis
Copy link
Mannequin

loewis mannequin commented Dec 10, 2008

The question is whether it used to build in 2.5.2, but doesn't build
anymore now. If that's what happening, it is a regression.

It seems that ffi_info moved into ctypes.h: could that have caused the
breakage?

@theller
Copy link

theller commented Dec 10, 2008

It seems that ffi_info moved into ctypes.h: could that have caused the
breakage?

Not sure what you mean exactly (there is no ffi_info in ctypes.h), but I
assume you are referring to svn rev. 62504?

@loewis
Copy link
Mannequin

loewis mannequin commented Dec 10, 2008

That's the revision I meant, yes. It seems that ffi_info just got
renamed, so I misread the change. In any case, it's (now) unclear how
this did compile before, as ffi_closure was always referenced in ctypes.h...

@loewis
Copy link
Mannequin

loewis mannequin commented Dec 10, 2008

Unfortunately, the ARM buildbot is down right now, so no tests can be
performed.

@loewis
Copy link
Mannequin

loewis mannequin commented Dec 13, 2008

As the ARM buildbot is still down, we have no way of analysing or fixing
this problem, so I'm closing this as "won't fix".

@loewis loewis mannequin closed this as completed Dec 13, 2008
@ezio-melotti ezio-melotti transferred this issue from another repository Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build The build process and cross-build release-blocker topic-ctypes
Projects
None yet
Development

No branches or pull requests

3 participants