View previous topic :: View next topic |
Author |
Message |
emtone n00b
Joined: 11 Apr 2017 Posts: 48
|
Posted: Sun Nov 21, 2021 5:09 am Post subject: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f |
|
|
Hi, the error message is :
ImportError: No module named pkgtuil |
|
Back to top |
|
|
skiwarz Apprentice
Joined: 23 Feb 2014 Posts: 267
|
Posted: Sun Nov 21, 2021 6:09 am Post subject: |
|
|
Check your /etc/python-exec/python-exec.conf and see which python version it points to. Then make sure that version is installed. The latest stable is 3.9 |
|
Back to top |
|
|
Zucca Moderator
Joined: 14 Jun 2007 Posts: 3776 Location: Rasi, Finland
|
Posted: Sun Nov 21, 2021 9:39 am Post subject: Re: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f |
|
|
Please use wgetpaste or similar too to paste the full compile log. emtone wrote: | ImportError: No module named pkgtuil | Was "pkgtuil" your typo? If not then we may have typo in some makefile there. _________________ ..: Zucca :..
My gentoo installs: | init=/sbin/openrc-init
-systemd -logind -elogind seatd |
Quote: | I am NaN! I am a man! |
|
|
Back to top |
|
|
emtone n00b
Joined: 11 Apr 2017 Posts: 48
|
Posted: Sun Nov 21, 2021 12:00 pm Post subject: |
|
|
skiwarz wrote: | Check your /etc/python-exec/python-exec.conf and see which python version it points to. Then make sure that version is installed. The latest stable is 3.9 |
I try python 2.7 and python 3.7 the same error |
|
Back to top |
|
|
emtone n00b
Joined: 11 Apr 2017 Posts: 48
|
Posted: Sun Nov 21, 2021 12:09 pm Post subject: Re: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f |
|
|
Zucca wrote: | Please use wgetpaste or similar too to paste the full compile log. emtone wrote: | ImportError: No module named pkgtuil | Was "pkgtuil" your typo? If not then we may have typo in some makefile there. |
Sorry, I type wrong. The module named pkgutil.
The ebuild log: | [32;01m * [39;49;00mPackage: dev-lang/spidermonkey-60.5.2_p0-r3
[32;01m * [39;49;00mRepository: gentoo
[32;01m * [39;49;00mMaintainer: mozilla@gentoo.org
[32;01m * [39;49;00mUSE: abi_mips_n32 elibc_glibc kernel_linux mips system-icu userland_GNU
[32;01m * [39;49;00mFEATURES: network-sandbox preserve-libs sandbox userpriv usersandbox
Unable to unshare: EINVAL (for FEATURES="pid-sandbox")
[32;01m*[0m Using python2.7 to build
Unable to unshare: EINVAL (for FEATURES="ipc-sandbox network-sandbox pid-sandbox")
>>> Unpacking source...
>>> Unpacking mozjs-60.5.2.tar.bz2 to /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work
>>> Unpacking spidermonkey-60.0-patches-04.tar.xz to /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work
>>> Source unpacked in /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work
Unable to unshare: EINVAL (for FEATURES="ipc-sandbox network-sandbox pid-sandbox")
>>> Preparing source in /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2 ...
[32;01m*[0m Applying patches from /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/spidermonkey ...
[32;01m*[0m 0001-Bug-1488552-Ensure-proper-running-on-64-bit-and-32-b.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0002-build-Fix-library-install-name-on-macOS.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0003-build-Include-configure-script-be-nicer-about-option.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0004-We-must-drop-build-id-as-it-causes-conflicts-when-me.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0005-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0006-Ensure-we-fortify-properly-features.h-is-pulled-in-v.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m 0007-set-pthread-name-for-non-glibc-systems.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Applying spidermonkey-60.5.2-ia64-support.patch ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Running autoconf old-configure.in ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
[32;01m*[0m Running autoconf ...
[A[72C [34;01m[ [32;01mok[34;01m ][0m
>>> Source prepared.
Unable to unshare: EINVAL (for FEATURES="ipc-sandbox network-sandbox pid-sandbox")
>>> Configuring source in /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2 ...
* econf: updating mozjs-60.5.2/js/src/ctypes/libffi/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mozjs-60.5.2/js/src/ctypes/libffi/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating mozjs-60.5.2/nsprpub/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mozjs-60.5.2/nsprpub/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating mozjs-60.5.2/build/autoconf/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mozjs-60.5.2/build/autoconf/config.guess with /usr/share/gnuconfig/config.guess
* econf: updating mozjs-60.5.2/intl/icu/source/config.sub with /usr/share/gnuconfig/config.sub
* econf: updating mozjs-60.5.2/intl/icu/source/config.guess with /usr/share/gnuconfig/config.guess
/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/js/src/configure --prefix=/usr --build=mips64el-unknown-linux-gnu --host=mips64el-unknown-linux-gnu --mandir=/usr/share/man --infodir=/usr/share/info --datadir=/usr/share --sysconfdir=/etc --localstatedir=/var/lib --libdir=/usr/lib32 --disable-jemalloc --enable-readline --with-system-nspr --with-system-zlib --disable-optimize --with-intl-api --with-system-icu --disable-debug --disable-ion --disable-tests XARGS=/usr/bin/xargs CONFIG_SHELL=/bin/bash CC=mips64el-unknown-linux-gnu-gcc CXX=mips64el-unknown-linux-gnu-g++ LD=mips64el-unknown-linux-gnu-ld AR= RANLIB=
Creating Python environment
New python executable in /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj/_virtualenv/bin/python2.7
Also creating executable in /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj/_virtualenv/bin/python
Installing setuptools, pip, wheel...
Complete output from command /var/tmp/portage/dev...ualenv/bin/python2.7 - setuptools pip wheel:
Traceback (most recent call last):
File "<stdin>", line 3, in <module>
ImportError: No module named pkgutil
----------------------------------------
...Installing setuptools, pip, wheel...done.
Traceback (most recent call last):
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/third_party/python/virtualenv/virtualenv.py", line 2325, in <module>
main()
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/third_party/python/virtualenv/virtualenv.py", line 711, in main
symlink=options.symlink and hasattr(os, 'symlink')) # MOZ: Make sure we don't use symlink when we don't have it
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/third_party/python/virtualenv/virtualenv.py", line 944, in create_environment
download=download,
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/third_party/python/virtualenv/virtualenv.py", line 900, in install_wheel
call_subprocess(cmd, show_stdout=False, extra_env=env, stdin=SCRIPT)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/third_party/python/virtualenv/virtualenv.py", line 795, in call_subprocess
% (cmd_desc, proc.returncode))
OSError: Command /var/tmp/portage/dev...ualenv/bin/python2.7 - setuptools pip wheel failed with error code 1
Traceback (most recent call last):
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/js/src/../../configure.py", line 127, in <module>
sys.exit(main(sys.argv))
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/js/src/../../configure.py", line 29, in main
sandbox.run(os.path.join(os.path.dirname(__file__), 'moz.configure'))
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 399, in run
self.include_file(path)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 390, in include_file
exec_(code, self)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/util.py", line 59, in exec_
exec(object, globals, locals)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/moz.configure", line 7, in <module>
include('build/moz.configure/init.configure')
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 694, in include_impl
self.include_file(what)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 390, in include_file
exec_(code, self)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/util.py", line 59, in exec_
exec(object, globals, locals)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/build/moz.configure/init.configure", line 207, in <module>
@imports('distutils.sysconfig')
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 677, in decorator
depends = DependsFunction(self, func, dependencies, when=when)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 96, in __init__
sandbox._value_for(self)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 474, in _value_for
return self._value_for_depends(obj, need_help_dependency)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/util.py", line 944, in method_call
cache[args] = self.func(instance, *args)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 483, in _value_for_depends
return obj.result(need_help_dependency)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/util.py", line 944, in method_call
cache[args] = self.func(instance, *args)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 123, in result
return self._func(*resolved_args)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/configure/__init__.py", line 1003, in wrapped
return new_func(*args, **kwargs)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/build/moz.configure/init.configure", line 255, in virtualenv_python
manager.build(python)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/virtualenv.py", line 439, in build
self.create(python)
File "/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/python/mozbuild/mozbuild/virtualenv.py", line 203, in create
'Failed to create virtualenv: %s' % self.virtualenv_root)
Exception: Failed to create virtualenv: /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj/_virtualenv
!!! Please attach the following file when seeking support:
!!! /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj/config.log
[31;01m*[0m ERROR: dev-lang/spidermonkey-60.5.2_p0-r3::gentoo failed (configure phase):
[31;01m*[0m econf failed
[31;01m*[0m
[31;01m*[0m Call stack:
[31;01m*[0m ebuild.sh, line 125: Called src_configure
[31;01m*[0m environment, line 4174: Called econf '--disable-jemalloc' '--enable-readline' '--with-system-nspr' '--with-system-zlib' '--disable-optimize' '--with-intl-api' '--with-system-icu' '--disable-debug' '--disable-ion' '--disable-tests' 'XARGS=/usr/bin/xargs' 'CONFIG_SHELL=/bin/bash' 'CC=mips64el-unknown-linux-gnu-gcc' 'CXX=mips64el-unknown-linux-gnu-g++' 'LD=mips64el-unknown-linux-gnu-ld' 'AR=' 'RANLIB='
[31;01m*[0m phase-helpers.sh, line 681: Called __helpers_die 'econf failed'
[31;01m*[0m isolated-functions.sh, line 112: Called die
[31;01m*[0m The specific snippet of code:
[31;01m*[0m die "$@"
[31;01m*[0m
[31;01m*[0m If you need support, post the output of `emerge --info '=dev-lang/spidermonkey-60.5.2_p0-r3::gentoo'`,
[31;01m*[0m the complete build log and the output of `emerge -pqv '=dev-lang/spidermonkey-60.5.2_p0-r3::gentoo'`.
[31;01m*[0m The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/temp/build.log'.
[31;01m*[0m The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/temp/environment'.
[31;01m*[0m Working directory: '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj'
[31;01m*[0m S: '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2' |
MOD edit: Added code -tags for easier readability. -- Zucca |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|