View Single Post
Old 10-29-2020, 10:40 PM   #6
nomoi
Member
nomoi is on a distinguished road
 
Posts: 13
Karma: 68
Join Date: Jun 2020
Device: pb740
issues on compilation

Quote:
Originally Posted by brucelee View Post
Python source: https://www.python.org/ftp/python/3....n-3.5.2.tar.xz
SDK: https://github.com/blchinezu/pocketbook-sdk

Build instructions for Linux with SDK_481 (FW5):

- Get the SDK and put it in your home dir ~/
- Get the python source, extract it and put the dir in ~/PBDEV/sources
- Extract the attached pocketbook-build.sh.zip and put the script in ~/PBDEV/sources/Python-3.5.2
- run the script

Or you could just try the build I attached. I didn't test it but I suppose it should work.
When I try this I get the following after "make python":

arm-obreey-linux-gnueabi-gcc -c -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrap
v -O3 -Wall -Wstrict-prototypes -Werror=declaration-after-statement -I. -IInclu
de -I./Include -DPy_BUILD_CORE -o Programs/python.o ./Programs/python.c
as: loadlocale.c:130: _nl_intern_locale_data: Assertion `cnt < (sizeof (_nl_value_ty
pe_LC_TIME) / sizeof (_nl_value_type_LC_TIME[0]))' failed.
arm-obreey-linux-gnueabi-gcc: internal compiler error: Aborted (program as)
Please submit a full bug report,
with preprocessed source if appropriate.
See <http://gcc.gnu.org/bugs.html> for instructions.
make: *** [Makefile:773: Programs/python.o] Error 4

It's no priority for me to compile python especially, because I intended to compile mg, ssh and such, but I wanted to understand the procedure and I'm not sure how to do properly.

Last edited by nomoi; 10-29-2020 at 10:42 PM. Reason: syntax
nomoi is offline   Reply With Quote