Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Error when building, issue with "io.py" #19

Description

@isaaclo123

When running make, make fails with this error

/home/isaac/Android/Ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang -shared -L/home/isaac/git/python3.8-android/build/sysroot/usr/lib -fuse-ld=lld -march=armv7-a    -Wl,--no-as-needed -o libpython3.so -Wl,-hlibpython3.so libpython3.8.so
ld.lld: warning: lld uses blx instruction, no object with architecture supporting feature detected.
ld.lld: warning: lld uses extended branch encoding, no object with architecture supporting feature detected.
ld.lld: warning: lld may use movt/movw, no object with architecture supporting feature detected.
/home/isaac/Android/Ndk/toolchains/llvm/prebuilt/linux-x86_64/bin/armv7a-linux-androideabi21-clang -L/home/isaac/git/python3.8-android/build/sysroot/usr/lib -fuse-ld=lld -march=armv7-a    -pie -Xlinker -export-dynamic -o python Programs/python.o -L. -lpython3.8 -ldl  -lm   -lm 
_PYTHON_PROJECT_BASE=/home/isaac/git/python3.8-android/src/cpython _PYTHON_HOST_PLATFORM=linux-arm PYTHONPATH=./Lib _PYTHON_SYSCONFIGDATA_NAME=_sysconfigdata__linux_ python3.8 -S -m sysconfig --generate-posix-vars ;\
	if test $? -ne 0 ; then \
		echo "generate-posix-vars failed" ; \
		rm -f ./pybuilddir.txt ; \
		exit 1 ; \
	fi
Fatal Python error: init_sys_streams: can't initialize sys standard streams
Traceback (most recent call last):
  File "./Lib/io.py", line 54, in <module>
ImportError: cannot import name 'open_code' from 'io' (unknown location)
generate-posix-vars failed
make[1]: *** [pybuilddir.txt] Error 1
make[1]: Leaving directory `/home/isaac/git/python3.8-android/src/cpython'
Traceback (most recent call last):
  File "/usr/lib/python3.7/runpy.py", line 193, in _run_module_as_main
    "__main__", mod_spec)
  File "/usr/lib/python3.7/runpy.py", line 85, in _run_code
    exec(code, run_globals)
  File "/home/isaac/git/python3.8-android/pybuild/__main__.py", line 3, in <module>
    main()
  File "/home/isaac/git/python3.8-android/pybuild/main.py", line 52, in main
    build_package('python')
  File "/home/isaac/git/python3.8-android/pybuild/main.py", line 44, in build_package
    pkg.build()
  File "/home/isaac/git/python3.8-android/pybuild/packages/python.py", line 64, in build
    self.run(['make'])
  File "/home/isaac/git/python3.8-android/pybuild/package.py", line 108, in run
    self.source.run_in_source_dir(cmd, *args, **kwargs)
  File "/home/isaac/git/python3.8-android/pybuild/source.py", line 52, in run_in_source_dir
    return run_in_dir(cmd, self.source_dir, env, mode)
  File "/home/isaac/git/python3.8-android/pybuild/util.py", line 65, in run_in_dir
    check_call(cmd, cwd=cwd, env=real_env)
  File "/usr/lib/python3.7/subprocess.py", line 347, in check_call
    raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make']' returned non-zero exit status 2.
make: *** [all] Error 1

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions