New submission from DiazSoho:

when I try to do cross compile Python-2.7.12, it gets error when trying 
install. because the command is using compile host python to compile .py file 
with *.so files, but the *.so are built by cross platform toolchain already, 
then it will say "cannot open shared object file: No such file or directory"
the log is below:

PYTHONPATH=/home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7   \
        _PYTHON_PROJECT_BASE=/home/real_users/avs_py/Python/Python-2.7.12 
_PYTHON_HOST_PLATFORM=linux2-mips 
PYTHONPATH=/home/real_users/avs_py/Python/Python-2.7.12/build/lib.linux2-mips-2.7:/home/real_users/avs_py/Python/Python-2.7.12/Lib:/home/real_users/avs_py/Python/Python-2.7.12/Lib/plat-linux2
 python2.7 -Wi -tt 
/home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7/compileall.py 
\
        -d /home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7 -f 
\
        -x 'bad_coding|badsyntax|site-packages|lib2to3/tests/data' \
        /home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7
Traceback (most recent call last):
  File 
"/home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7/compileall.py",
 line 16, in <module>
    import struct
  File 
"/home/real_users/avs_py/Python/py_install/usr/local/lib/python2.7/struct.py", 
line 1, in <module>
    from _struct import *
ImportError: 
/home/real_users/avs_py/Python/Python-2.7.12/build/lib.linux2-mips-2.7/_struct.so:
 cannot open shared object file: No such file or directory
make[5]: *** [libinstall] Error 1

----------
components: Cross-Build
messages: 279926
nosy: Alex.Willmer, DiazSoho
priority: normal
severity: normal
status: open
title: get error when compile .py file during install stage if cross compile
type: compile error
versions: Python 2.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue28589>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to