Sam <samuelbry...@gmx.ch> added the comment:

Has there been any update on this? I've run into this issue trying to 
cross-compile python for Android. I've tried 3.7.4, 3.8 and current master, 
both in-source and out of source builds, all ending with the modules failing to 
compile due to wrong paths.



...
CC='/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang'
 
LDSHARED='/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang
 -shared -Wl,--exclude-libs,libgcc.a     -Wl,--exclude-libs,libatomic.a     
-static-libstdc++     -Wl,--build-id     -Wl,--warn-shared-textrel     
-Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack 
-Wl,--gc-sections      -lc++ -lm -lgcc -ldl -lc -lgcc -ldl -latomic -lm     
-Wl,--exclude-libs,libgcc.a     -Wl,--exclude-libs,libatomic.a     
-static-libstdc++     -Wl,--build-id     -Wl,--warn-shared-textrel     
-Wl,--fatal-warnings -Wl,--no-undefined -Qunused-arguments -Wl,-z,noexecstack 
-Wl,--gc-sections      -lc++ -lm -lgcc -ldl -lc -lgcc -ldl -latomic -lm  ' 
OPT='-DNDEBUG -g -fwrapv -O3 -Wall'       _TCLTK_INCLUDES='' _TCLTK_LIBS=''     
  _PYTHON_PROJECT_BASE=/home/samuel/android/cpython 
_PYTHON_HOST_PLATFORM=linux-aarch64 PYTHONPATH=/home/s
 amuel/android/cpython/build/lib.linux-aarch64-3.7:./Lib 
_PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata_m_linux_ python3 ./setup.py  build
running build
running build_ext
INFO: Can't locate Tcl/Tk libs and/or headers
building '_struct' extension
/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/bin/aarch64-linux-android26-clang
 -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O3 
-Wall --target=aarch64-none-linux-android26 
--gcc-toolchain=/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64
 
--sysroot=/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot
 -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables 
-fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack 
-Wformat -Werror=format-security -O3 -fPIE 
--target=aarch64-none-linux-android26 
--gcc-toolchain=/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64
 
--sysroot=/home/samuel/android/sdk/ndk-bundle/toolchains/llvm/prebuilt/linux-x86_64/sysroot
 -g -DANDROID -fdata-sections -ffunction-sections -funwind-tables 
-fstack-protector-strong -no-canonical-prefixes -fno-addrsig -Wa,--noexecstack 
-Wformat -Werror=format-security -O3
  -fPIE -std=c99 -Wextra -Wno-unused-result -Wno-unused-parameter 
-Wno-missing-field-initializers -Wstrict-prototypes 
-Werror=implicit-function-declaration -I./Include -I. 
-I/home/samuel/android/cpython_build/host/venv/include 
-I/home/samuel/android/cpython_build/host/install/include/python3.7m -c 
_struct.c -o build/temp.linux-aarch64-3.7/_struct.o
clang: error: no such file or directory: '_struct.c'
clang: error: no input files
...
Failed to build these modules:
_asyncio              _bisect               _blake2            
_bz2                  _codecs_cn            _codecs_hk         
_codecs_iso2022       _codecs_jp            _codecs_kr         
_codecs_tw            _contextvars          _crypt             
_csv                  _ctypes               _ctypes_test       
_datetime             _decimal              _heapq             
_json                 _lsprof               _md5               
_multibytecodec       _multiprocessing      _opcode            
_pickle               _posixsubprocess      _queue             
_random               _sha1                 _sha256            
_sha3                 _sha512               _socket            
_struct               _testbuffer           _testcapi          
_testimportmultiple   _testmultiphase       _uuid              
_xxtestfuzz           array                 audioop            
binascii              cmath                 fcntl              
grp                   math                  mmap               
ossaudiodev           parser                pyexpat            
resource              select                spwd               
syslog                termios               unicodedata        
xxlimited                                                      
...

----------
nosy: +iliis

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

Reply via email to