Skip to content

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

Closed

Description

@doko42
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']

Activity

  1. doko42 commented on Nov 12, 2008

    @doko42
    MemberAuthor

    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.

  2. added
    build
    on Nov 12, 2008
  3. warsaw commented on Nov 21, 2008

    @warsaw
    Member

    Deferring until 3.0 final is out.

  4. loewis commented on Dec 10, 2008

    loewismannequin
    Mannequin

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

  5. theller commented on Dec 10, 2008

    @theller

    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'.

  6. loewis commented on Dec 10, 2008

    loewismannequin
    Mannequin

    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?

  7. theller commented on Dec 10, 2008

    @theller

    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?

  8. loewis commented on Dec 10, 2008

    loewismannequin
    Mannequin

    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...

  9. loewis commented on Dec 10, 2008

    loewismannequin
    Mannequin

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

  10. loewis commented on Dec 13, 2008

    loewismannequin
    Mannequin

    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".

  11. transferred this issue fromon Apr 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

buildrelease-blockertopic-ctypes

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions