python-greenlet does not build (including fix)

Bug #1093252 reported by VS
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Raspbian
Fix Released
Undecided
Unassigned

Bug Description

The build log for python-greenlet gives the following error:
platform/switch_arm32_gcc.h:48:1: error: fp cannot be used in asm here

This can easily be fixed by commenting the fp-part on line 28 in platform/switch_arm32_gcc.h. This fix is also documented in the same file. Line 28 should thus look like this:
#define REGS_TO_SAVE /*"r1", "r2", "r3", "r4",*/ "r5", "r6", /*"fp",*/ "ip", "lr"

This should hopefully allow packages that depend on python-greenlet to be built as well, such as python-gobject.

Revision history for this message
Davide Miceli (dauwak) wrote :

Installing greenlet I had also another problem:

creating build/temp.linux-armv6l-2.7

gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/python2.7 -c greenlet.c -o build/temp.linux-armv6l-2.7/greenlet.o

In file included from greenlet.c:5:0:

greenlet.h:8:20: fatal error: Python.h: No such file or directory

compilation terminated.

error: command 'gcc' failed with exit status 1

----------------------------------------
Command /usr/bin/python -c "import setuptools;__file__='/tmp/pip-build/greenlet/setup.py';exec(compile(open(__file__).read().replace('\r\n', '\n'), __file__, 'exec'))" install --record /tmp/pip-LpdJMC-record/install-record.txt --single-version-externally-managed failed with error code 1 in /tmp/pip-build/greenlet
Storing complete log in /home/pi/.pip/pip.log

Revision history for this message
peter green (plugwash) wrote :

The python-greenlet package has now been built successfully in raspbian.

Changed in raspbian:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.