Skip to content

Instantly share code, notes, and snippets.

@inclement
Created May 17, 2015 18:51
Show Gist options
  • Select an option

  • Save inclement/ea1bd2b9a096f2f8b6a9 to your computer and use it in GitHub Desktop.

Select an option

Save inclement/ea1bd2b9a096f2f8b6a9 to your computer and use it in GitHub Desktop.
running build_ext
building 'pygame.imageext' extension
creating build/temp.linux-x86_64-2.7
creating build/temp.linux-x86_64-2.7/src
arm-linux-androideabi-gcc -DANDROID -mandroid -fomit-frame-pointer --sysroot /opt/android-ndk/platforms/android-14/arch-arm -DNDEBUG -g -fwrapv -O3 -Wall -Wstrict-prototypes -DANDROID -mandroid -fomit-frame-pointer --sysroot /opt/android-ndk/platforms/android-14/arch-arm -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/png -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/jpeg -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl/include -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_mixer -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_ttf -I/home/asandy/devel/betterp4a/build/bootstrap_builds/pygame/jni/sdl_image -fPIC -D_REENTRANT -I/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include -I/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2 -c src/imageext.c -o build/temp.linux-x86_64-2.7/src/imageext.o
In file included from /home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include/Python.h:58:0,
from src/pygame.h:75,
from src/imageext.c:47:
/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include/pyport.h:849:2: error: #error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
#error "LONG_BIT definition appears wrong for platform (bad gcc/glibc config?)."
^
In file included from /home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include/Python.h:126:0,
from src/pygame.h:75,
from src/imageext.c:47:
/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/Include/modsupport.h:27:1: warning: 'PyArg_ParseTuple' is an unrecognized format function type [-Wformat=]
PyAPI_FUNC(int) PyArg_ParseTuple(PyObject *, const char *, ...) Py_FORMAT_PARSETUPLE(PyArg_ParseTuple, 2, 3);
^
src/imageext.c: In function 'write_jpeg':
src/imageext.c:315:9: warning: variable 'lines_written' set but not used [-Wunused-but-set-variable]
int lines_written;
^
src/imageext.c:313:9: warning: variable 'row_stride' set but not used [-Wunused-but-set-variable]
int row_stride;
^
src/imageext.c: In function 'SaveJPEG':
src/imageext.c:391:9: warning: variable 'alpha' set but not used [-Wunused-but-set-variable]
int alpha = 0;
^
In file included from src/imageext.c:47:0:
src/imageext.c: In function 'opengltosdl':
src/pygame.h:109:46: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define RAISE(x,y) (PyErr_SetString((x), (y)), (PyObject*)NULL)
^
src/imageext.c:506:9: note: in expansion of macro 'RAISE'
RAISE (PyExc_RuntimeError, "Cannot get video surface.");
^
src/pygame.h:109:46: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define RAISE(x,y) (PyErr_SetString((x), (y)), (PyObject*)NULL)
^
src/imageext.c:510:9: note: in expansion of macro 'RAISE'
RAISE (PyExc_RuntimeError, "Cannot find glReadPixels function.");
^
src/pygame.h:109:46: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define RAISE(x,y) (PyErr_SetString((x), (y)), (PyObject*)NULL)
^
src/imageext.c:517:9: note: in expansion of macro 'RAISE'
RAISE (PyExc_MemoryError, "Cannot allocate enough memory for pixels.");
^
src/pygame.h:109:46: warning: right-hand operand of comma expression has no effect [-Wunused-value]
#define RAISE(x,y) (PyErr_SetString((x), (y)), (PyObject*)NULL)
^
src/imageext.c:537:9: note: in expansion of macro 'RAISE'
RAISE (PyExc_SDLError, SDL_GetError ());
^
src/imageext.c: In function 'initimageext':
src/imageext.c:659:15: warning: variable 'module' set but not used [-Wunused-but-set-variable]
PyObject *module;
^
error: command 'arm-linux-androideabi-gcc' failed with exit status 1
Traceback (most recent call last):
File "toolchain.py", line 1523, in <module>
ToolchainCL()
File "toolchain.py", line 1346, in __init__
getattr(self, args.command)()
File "toolchain.py", line 1452, in create_android_project
build_recipes(recipes, ctx)
File "toolchain.py", line 1298, in build_recipes
recipe.build()
File "/home/asandy/devel/betterp4a/toolchain.py", line 1000, in build
self.build_arch(self.ctx.archs[0]) # Same here!
File "/home/asandy/devel/betterp4a/toolchain.py", line 1015, in build_arch
getattr(self, build)()
File "/home/asandy/devel/betterp4a/recipes/pygame/__init__.py", line 45, in build_armeabi
shprint(hostpython, 'setup.py', 'install', '-O2', _env=env)
File "/home/asandy/devel/betterp4a/toolchain.py", line 46, in shprint
for line in output:
File "/home/asandy/.local/lib/python2.7/site-packages/sh.py", line 565, in next
self.wait()
File "/home/asandy/.local/lib/python2.7/site-packages/sh.py", line 500, in wait
self.handle_command_exit_code(exit_code)
File "/home/asandy/.local/lib/python2.7/site-packages/sh.py", line 516, in handle_command_exit_code
raise exc(self.ran, self.process.stdout, self.process.stderr)
sh.ErrorReturnCode_1:
RAN: '/home/asandy/devel/betterp4a/build/other_builds/hostpython2/armeabi/Python-2.7.2/hostpython setup.py install -O2'
STDOUT:
running install
running build
running build_py
creating build
creating build/lib.linux-x86_64-2.7
creating build/lib.linux-x86_64-2.7/pygame
copying lib/_camera_vidcapture.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/_numpysndarray.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/colordict.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/_numpysurfarray.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/sysfont.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/cursors.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/compat.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/version.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/pkgdata.py -> build/lib.linux-x86_64-2.7/pygame
copying lib/midi.py -> build/lib.linux-x86... (17881 more, please see e.stdout)
STDERR:
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment