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

Error to build 2 #31

Closed
blackeangel opened this issue May 19, 2020 · 5 comments
Closed

Error to build 2 #31

blackeangel opened this issue May 19, 2020 · 5 comments

Comments

@blackeangel
Copy link

Linux Mint 19.3
Python3.9 installed to system for method :./configure && make && sudo make install
Have the next Error:
`
.........
cd misc && make DESTDIR="/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot" RPATH_LIST="/usr/lib" install
make[1]: вход в каталог «/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/deps/ncurses-6.2/misc»
mkdir -p /home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot/usr/share/tabset
DESTDIR=/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot
prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
top_srcdir=..
srcdir=.
datadir=/usr/share
ticdir=/usr/share/terminfo
source=terminfo.tmp
cross_compiling=yes
/bin/sh ./run_tic.sh
** Building terminfo database, please wait...
Running tic to install /home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot/usr/share/terminfo ...

    You may see messages regarding extended capabilities, e.g., AX.
    These are extended terminal capabilities which are compiled
    using
    	    tic -x
    If you have ncurses 4.2 applications, you should read the INSTALL
    document, and install the terminfo without the -x option.

"terminfo.tmp", line 1115, col 36, terminal 'fbterm': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4800, col 36, terminal 'xterm+256color': limiting value of pairs' from 0x10000 to 0x7fff
"terminfo.tmp", line 4819, col 36, terminal 'xterm+256setaf': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4863, col 25, terminal 'xterm+direct2': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4863, col 40, terminal 'xterm+direct2': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4878, col 25, terminal 'xterm+direct': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4878, col 40, terminal 'xterm+direct': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4900, col 25, terminal 'xterm+indirect': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4900, col 40, terminal 'xterm+indirect': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 7641, col 36, terminal 'dvtm-256color': limiting value of pairs' from 0x10000 to 0x7fff
"terminfo.tmp", line 4790, terminal 'xterm-16color': error writing /home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot/usr/share/terminfo/x/xterm-16color
? tic could not build /home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot/usr/share/terminfo
Makefile:93: recipe for target 'install.data' failed
make[1]: *** [install.data] Error 1
make[1]: выход из каталога «/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/deps/ncurses-6.2/misc»
Makefile:118: recipe for target 'install' failed
make: *** [install] Error 2
Traceback (most recent call last):
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 170, in
main()
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 167, in main
build_package(pkg_cls(args.target_arch_name, args.android_api_level))
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 145, in build_package
pkg.build()
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 27, in build
self.make_install()
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 42, in make_install
self.run(['make', 'install', f'DESTDIR={SYSROOT}'])
File "/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/./Android/build_deps.py", line 22, in run
subprocess.check_call(cmd, cwd=cwd)
File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'install', 'DESTDIR=/home/sam/Загрузки/python3-android-master/src/Python-3.9.0a6/Android/sysroot']' returned non-zero exit status 2.
sam@sam-B250M-D2V:~/Загрузки/python3-android-master$
`
What her want from me?!

yan12125 pushed a commit that referenced this issue May 21, 2020
@yan12125
Copy link
Owner

Yet another missing entry in prerequisites... should be fixed after installing ncurses 6.2 on your system (6.1 should also work, and ncurses<=6.0 is known to be incompatible)

@blackeangel
Copy link
Author

i install ncurses 6.2 on your system to net code
cd /home/sam/Загрузки wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz tar xzf ncurses-6.2.tar.gz cd ncurses-6.2 ./configure --prefix=/opt/ncurses make sudo make install ls -la /opt/ncurses cd .. rm -rf ./ncurses-6.2 ./ncurses-6.2.tar.gz
and have the netx error
`
DESTDIR=/home/sam/python3android/Android/sysroot
prefix=/usr
exec_prefix=/usr
bindir=/usr/bin
top_srcdir=..
srcdir=.
datadir=/usr/share
ticdir=/usr/share/terminfo
source=terminfo.tmp
cross_compiling=yes
/bin/sh ./run_tic.sh
** Building terminfo database, please wait...
Running tic to install /home/sam/python3android/Android/sysroot/usr/share/terminfo ...

You may see messages regarding extended capabilities, e.g., AX.
These are extended terminal capabilities which are compiled
using
	tic -x
If you have ncurses 4.2 applications, you should read the INSTALL
document, and install the terminfo without the -x option.

"terminfo.tmp", line 1115, col 36, terminal 'fbterm': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4800, col 36, terminal 'xterm+256color': limiting value of pairs' from 0x10000 to 0x7fff
"terminfo.tmp", line 4819, col 36, terminal 'xterm+256setaf': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4863, col 25, terminal 'xterm+direct2': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4863, col 40, terminal 'xterm+direct2': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4878, col 25, terminal 'xterm+direct': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4878, col 40, terminal 'xterm+direct': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4900, col 25, terminal 'xterm+indirect': limiting value of colors' from 0x1000000 to 0x7fff
"terminfo.tmp", line 4900, col 40, terminal 'xterm+indirect': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 7641, col 36, terminal 'dvtm-256color': limiting value of pairs' from 0x10000 to 0x7fff
"terminfo.tmp", line 4790, terminal 'xterm-16color': error writing /home/sam/python3android/Android/sysroot/usr/share/terminfo/x/xterm-16color
? tic could not build /home/sam/python3android/Android/sysroot/usr/share/terminfo
Makefile:93: recipe for target 'install.data' failed
make[1]: *** [install.data] Error 1
make[1]: выход из каталога «/home/sam/python3android/Android/deps/ncurses-6.2/misc»
Makefile:118: recipe for target 'install' failed
make: *** [install] Error 2
Traceback (most recent call last):
File "/home/sam/python3android/Android/build_deps.py", line 170, in
main()
File "/home/sam/python3android/Android/build_deps.py", line 167, in main
build_package(pkg_cls(args.target_arch_name, args.android_api_level))
File "/home/sam/python3android/Android/build_deps.py", line 145, in build_package
pkg.build()
File "/home/sam/python3android/Android/build_deps.py", line 27, in build
self.make_install()
File "/home/sam/python3android/Android/build_deps.py", line 42, in make_install
self.run(['make', 'install', f'DESTDIR={SYSROOT}'])
File "/home/sam/python3android/Android/build_deps.py", line 22, in run
subprocess.check_call(cmd, cwd=cwd)
File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call
raise CalledProcessError(retcode, cmd)
subprocess.CalledProcessError: Command '['make', 'install', 'DESTDIR=/home/sam/python3android/Android/sysroot']' returned non-zero exit status 2.
sam@sam-B250M-D2V:~/python3android$
`
WTF?

@yan12125
Copy link
Owner

yan12125 commented May 21, 2020 via email

@blackeangel
Copy link
Author

Most likely your $PATH is not properly set to pick tic binary from ncurses 6.2. Павел Шляпин notifications@github.com 於 2020年5月21日 週四 下午9:31寫道:

i install ncurses 6.2 on your system to net code cd /home/sam/Загрузки wget https://ftp.gnu.org/pub/gnu/ncurses/ncurses-6.2.tar.gz tar xzf ncurses-6.2.tar.gz cd ncurses-6.2 ./configure --prefix=/opt/ncurses make sudo make install ls -la /opt/ncurses cd .. rm -rf ./ncurses-6.2 ./ncurses-6.2.tar.gz and have the netx error DESTDIR=/home/sam/python3android/Android/sysroot prefix=/usr exec_prefix=/usr bindir=/usr/bin top_srcdir=.. srcdir=. datadir=/usr/share ticdir=/usr/share/terminfo source=terminfo.tmp cross_compiling=yes /bin/sh ./run_tic.sh ** Building terminfo database, please wait... Running tic to install /home/sam/python3android/Android/sysroot/usr/share/terminfo ... You may see messages regarding extended capabilities, e.g., AX. These are extended terminal capabilities which are compiled using tic -x If you have ncurses 4.2 applications, you should read the INSTALL document, and install the terminfo without the -x option. "terminfo.tmp", line 1115, col 36, terminal 'fbterm': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4800, col 36, terminal 'xterm+256color': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4819, col 36, terminal 'xterm+256setaf': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4863, col 25, terminal 'xterm+direct2': limiting value of colors' from 0x1000000 to 0x7fff "terminfo.tmp", line 4863, col 40, terminal 'xterm+direct2': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4878, col 25, terminal 'xterm+direct': limiting value of colors' from 0x1000000 to 0x7fff "terminfo.tmp", line 4878, col 40, terminal 'xterm+direct': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4900, col 25, terminal 'xterm+indirect': limiting value of colors' from 0x1000000 to 0x7fff "terminfo.tmp", line 4900, col 40, terminal 'xterm+indirect': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 7641, col 36, terminal 'dvtm-256color': limiting value of pairs' from 0x10000 to 0x7fff "terminfo.tmp", line 4790, terminal 'xterm-16color': error writing /home/sam/python3android/Android/sysroot/usr/share/terminfo/x/xterm-16color ? tic could not build /home/sam/python3android/Android/sysroot/usr/share/terminfo Makefile:93: recipe for target 'install.data' failed make[1]: *** [install.data] Error 1 make[1]: выход из каталога «/home/sam/python3android/Android/deps/ncurses-6.2/misc» Makefile:118: recipe for target 'install' failed make: *** [install] Error 2 Traceback (most recent call last): File "/home/sam/python3android/Android/build_deps.py", line 170, in main() File "/home/sam/python3android/Android/build_deps.py", line 167, in main build_package(pkg_cls(args.target_arch_name, args.android_api_level)) File "/home/sam/python3android/Android/build_deps.py", line 145, in build_package pkg.build() File "/home/sam/python3android/Android/build_deps.py", line 27, in build self.make_install() File "/home/sam/python3android/Android/build_deps.py", line 42, in make_install self.run(['make', 'install', f'DESTDIR={SYSROOT}']) File "/home/sam/python3android/Android/build_deps.py", line 22, in run subprocess.check_call(cmd, cwd=cwd) File "/usr/local/lib/python3.9/subprocess.py", line 373, in check_call raise CalledProcessError(retcode, cmd) subprocess.CalledProcessError: Command '['make', 'install', 'DESTDIR=/home/sam/python3android/Android/sysroot']' returned non-zero exit status 2. ***@***.***B250M-D2V:~/python3android$ WTF? — You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub <#31 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAOZCGIXJ5W722MQ3JODEODRSUUMVANCNFSM4NFFKPHA .

yes. i'll reinstall ncurses to root folder and continue make
but. get next error:
ERROR: Exception: Traceback (most recent call last): File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 188, in main status = self.run(options, args) File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/commands/install.py", line 286, in run with self._build_session(options) as session: File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/cli/base_command.py", line 101, in _build_session session = PipSession( File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/download.py", line 559, in __init__ self.headers["User-Agent"] = user_agent() File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_internal/download.py", line 144, in user_agent zip(["name", "version", "id"], distro.linux_distribution()), File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 122, in linux_distribution return _distro.linux_distribution(full_distribution_name) File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 677, in linux_distribution self.version(), File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 737, in version self.lsb_release_attr('release'), File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 899, in lsb_release_attr return self._lsb_release_info.get(attribute, '') File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 552, in __get__ ret = obj.__dict__[self._fname] = self._f(obj) File "/tmp/tmpb8zhfsk5/pip-19.2.3-py2.py3-none-any.whl/pip/_vendor/distro.py", line 1012, in _lsb_release_info stdout = subprocess.check_output(cmd, stderr=devnull) File "/home/sam/python3android/src/Python-3.9.0b1/Lib/subprocess.py", line 420, in check_output return run(*popenargs, stdout=PIPE, timeout=timeout, check=True, File "/home/sam/python3android/src/Python-3.9.0b1/Lib/subprocess.py", line 524, in run raise CalledProcessError(retcode, process.args, subprocess.CalledProcessError: Command '('lsb_release', '-a')' returned non-zero exit status 1. Makefile:1242: recipe for target 'install' failed make: *** [install] Error 2 sam@sam-B250M-D2V:~/python3android$
what now?

@yan12125
Copy link
Owner

That is the same issue as what you first got in #30. You need to fix lsb_release on your system or wait for python-distro/distro#260.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants