Date: Sun, 1 Aug 2010 04:04:50 GMT From: Nicole Reid <root@cooltrainer.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/149167: lang/python26 fails to build _ctypes on Sheevaplug (ARM) Message-ID: <201008010404.o7144oAP048749@www.freebsd.org> Resent-Message-ID: <201008010410.o714A5np055742@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 149167 >Category: ports >Synopsis: lang/python26 fails to build _ctypes on Sheevaplug (ARM) >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Sun Aug 01 04:10:05 UTC 2010 >Closed-Date: >Last-Modified: >Originator: Nicole Reid >Release: 8.1 >Organization: >Environment: FreeBSD pochan 8.1-RELEASE FreeBSD 8.1-RELEASE #23: Sat Jul 31 12:25:27 EDT 2010 nicole@Emi.cooltrainer.org:/usr/obj/arm/usr/src/sys/DOCKSTAR arm >Description: I built Python 2.6.5 using the ports tree supplied with 8.1-RELEASE. _ctypes fails during the build, but it then installs without error. Packaging fails, and deinstall mentions the missing file. Here's the relevant except from the build: […] running build_ext INFO: Can't locate Tcl/Tk libs and/or headers building '_ctypes' extension cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/_ctypes.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/_ctypes.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/callbacks.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/callbacks.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/callproc.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/callproc.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/stgdict.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/stgdict.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/cfield.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/cfield.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/malloc_closure.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/malloc_closure.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/prep_cif.c -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/prep_cif.o cc -fPIC -fno-strict-aliasing -DNDEBUG -O -pipe -D__wchar_t=wchar_t -DTHREAD_STACK_SIZE=0x20000 -I. -I/usr/ports/lang/python26/work/Python-2.6.5/./Include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi/include -Ibuild/temp.freebsd-8.1-RELEASE-arm-2.6/libffi -I/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src -I. -IInclude -I./../Include -I/usr/local/include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static/Include -I/usr/ports/lang/python26/work/Python-2.6.5/portbld.static -c /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/arm/sysv.S -o build/temp.freebsd-8.1-RELEASE-arm-2.6/usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/arm/sysv.o /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/arm/sysv.S: Assembler messages: /usr/ports/lang/python26/work/Python-2.6.5/Modules/_ctypes/libffi/src/arm/sysv.S:246: Error: unknown pseudo-op: `.pad' Failed to find the necessary bits to build these modules: _bsddb _sqlite3 _tkinter gdbm linuxaudiodev spwd sunaudiodev To find the necessary bits, look in setup.py in detect_modules() for the module's name. Failed to build these modules: _ctypes Creating directory /usr/local/lib/python2.6/lib-tk Creating directory /usr/local/lib/python2.6/site-packages […] The failure to package: pochan# make package ===> Building package for python26-2.6.5 Creating package /usr/ports/lang/python26/python26-2.6.5.tbz Registering depends:. Creating bzip'd tar ball in '/usr/ports/lang/python26/python26-2.6.5.tbz' tar: lib/python2.6/lib-dynload/_ctypes.so: Cannot stat: No such file or directory tar: Error exit delayed from previous errors. pkg_create: make_dist: tar command failed with code 256 *** Error code 1 Stop in /usr/ports/lang/python26. *** Error code 1 Stop in /usr/ports/lang/python26. pochan# >How-To-Repeat: make in lang/python26. >Fix: Here is a post from the cygwin list relating to the same error in libffi that says commenting the offending line may let it build successfully: http://cygwin.ru/ml/libffi-discuss/2008/msg00127.html >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201008010404.o7144oAP048749>