Issue 8531: test_ascii_formatd fails if ctypes module is missing (original) (raw)

This issue has been migrated to GitHub: https://github.com/python/cpython/issues/52777

classification

Title: test_ascii_formatd fails if ctypes module is missing
Type: Stage:
Components: Library (Lib) Versions: Python 3.1

process

Status: closed Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: doko, vstinner
Priority: normal Keywords:

Created on 2010-04-25 22:51 by vstinner, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Messages (5)
msg104179 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-25 22:51
Errors on ARMv7Thumb Ubuntu 3.1 buildbot. http://www.python.org/dev/buildbot/builders/ARMv7Thumb Ubuntu 3.1/builds/37/steps/compile/logs/stdio creating build/temp.linux-armv7l-3.1-pydebug/libffi checking build system type... armv7l-unknown-linux-gnu checking host system type... armv7l-unknown-linux-gnu checking target system type... armv7l-unknown-linux-gnu checking for a BSD-compatible install... /usr/bin/install -c ... config.status: executing src commands building '_ctypes' extension creating build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi creating build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src creating build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/_ctypes.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/_ctypes.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/callbacks.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/callbacks.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/callproc.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/callproc.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/stgdict.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/stgdict.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/cfield.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/cfield.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/malloc_closure.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/malloc_closure.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/prep_cif.o gcc -pthread -fPIC -fno-strict-aliasing -g -O2 -g -Wall -Wstrict-prototypes -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi/include -Ibuild/temp.linux-armv7l-3.1-pydebug/libffi -I/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src -I. -I./Include -I/usr/local/include -IInclude -I/home/doko/buildarea/3.1.klose-linux-arm/build -c /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S -o build/temp.linux-armv7l-3.1-pydebug/home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.o /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S: Assembler messages: /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S:203: Error: selected processor does not support `stfeqs f0,[r2]' /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S:208: Error: selected processor does not support `stfeqd f0,[r2]' /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S:283: Error: selected processor does not support `ldfs f0,[sp]' /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S:286: Error: selected processor does not support `ldfd f0,[sp]' /home/doko/buildarea/3.1.klose-linux-arm/build/Modules/_ctypes/libffi/src/arm/sysv.S:289: Error: selected processor does not support `ldfd f0,[sp]'
msg104181 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-25 22:59
Python 3.x doesn't have this issue because it uses libffi 3.0.9 and this version was fixed for ARMv7. Python 3.1 uses libffi 3.0.5. The buildbot should install libffi 3.0.9 and set system libffi path to Python configure script. ... or fix test_ascii_formatd: skip the test if _ctypes module is missing. See #8142 (libffi update to 3.0.9).
msg104182 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-25 23:09
This issue is specific to Python 3.1: test_ascii_formatd starts with "PyOS_ascii_formatd is deprecated and not called from anywhere in Python itself. So this module is the only place it gets tested. Test that it works, and test that it's deprecated." I prefer to fix the test than the buildbot because _ctypes compilation may fail on different CPU/OS, ctypes should not be mandatory. Fixed by r80495.
msg104184 - (view) Author: Matthias Klose (doko) * (Python committer) Date: 2010-04-25 23:18
libffi 3.0.9 is installed. the buildbot master needs to pass --with-system-libffi to configure.
msg104187 - (view) Author: STINNER Victor (vstinner) * (Python committer) Date: 2010-04-25 23:25
> libffi 3.0.9 is installed. the buildbot master needs to pass --with-system-libffi to configure. I fixed this issue by fixing my initial problem: test_ascii_formatd failure. Would you like to contact buildbot master owner to change the configuration? (are you the owner?) I don't want to work on this anymore.
History
Date User Action Args
2022-04-11 14:57:00 admin set github: 52777
2010-04-25 23:25:49 vstinner set messages: +
2010-04-25 23🔞15 doko set nosy: + dokomessages: +
2010-04-25 23:09:40 vstinner set status: open -> closedmessages: + title: libffi: selected processor does not support stfeqd/ldfd (ARMv7Thumb) -> test_ascii_formatd fails if ctypes module is missing
2010-04-25 22:59:05 vstinner set messages: +
2010-04-25 22:51:33 vstinner create