Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures
View previous topic :: View next topic  
Author Message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 48

PostPosted: Sun Nov 21, 2021 5:09 am    Post subject: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f Reply with quote

Hi, the error message is :
ImportError: No module named pkgtuil
Back to top
View user's profile Send private message
skiwarz
Apprentice
Apprentice


Joined: 23 Feb 2014
Posts: 267

PostPosted: Sun Nov 21, 2021 6:09 am    Post subject: Reply with quote

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
View user's profile Send private message
Zucca
Moderator
Moderator


Joined: 14 Jun 2007
Posts: 3765
Location: Rasi, Finland

PostPosted: Sun Nov 21, 2021 9:39 am    Post subject: Re: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f Reply with quote

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
View user's profile Send private message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 48

PostPosted: Sun Nov 21, 2021 12:00 pm    Post subject: Reply with quote

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
View user's profile Send private message
emtone
n00b
n00b


Joined: 11 Apr 2017
Posts: 48

PostPosted: Sun Nov 21, 2021 12:09 pm    Post subject: Re: Compile spidermonkey-60.5.2_p0-r3 ERROR on loongson 2f Reply with quote

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:
 * Package:    dev-lang/spidermonkey-60.5.2_p0-r3
 * Repository: gentoo
 * Maintainer: mozilla@gentoo.org
 * USE:        abi_mips_n32 elibc_glibc kernel_linux mips system-icu userland_GNU
 * FEATURES:   network-sandbox preserve-libs sandbox userpriv usersandbox
Unable to unshare: EINVAL (for FEATURES="pid-sandbox")
 * 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 ...
 * Applying patches from /var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/spidermonkey ...
 *   0001-Bug-1488552-Ensure-proper-running-on-64-bit-and-32-b.patch ...
 [ ok ]
 *   0002-build-Fix-library-install-name-on-macOS.patch ...
 [ ok ]
 *   0003-build-Include-configure-script-be-nicer-about-option.patch ...
 [ ok ]
 *   0004-We-must-drop-build-id-as-it-causes-conflicts-when-me.patch ...
 [ ok ]
 *   0005-CFLAGS-must-contain-fPIC-when-checking-the-linker.patch ...
 [ ok ]
 *   0006-Ensure-we-fortify-properly-features.h-is-pulled-in-v.patch ...
 [ ok ]
 *   0007-set-pthread-name-for-non-glibc-systems.patch ...
 [ ok ]
 * Applying spidermonkey-60.5.2-ia64-support.patch ...
 [ ok ]
 * Running autoconf old-configure.in ...
 [ ok ]
 * Running autoconf ...
 [ ok ]
>>> 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
 * ERROR: dev-lang/spidermonkey-60.5.2_p0-r3::gentoo failed (configure phase):
 *   econf failed
 *
 * Call stack:
 *               ebuild.sh, line  125:  Called src_configure
 *             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='
 *        phase-helpers.sh, line  681:  Called __helpers_die 'econf failed'
 *   isolated-functions.sh, line  112:  Called die
 * The specific snippet of code:
 *         die "$@"
 *
 * If you need support, post the output of `emerge --info '=dev-lang/spidermonkey-60.5.2_p0-r3::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-lang/spidermonkey-60.5.2_p0-r3::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-lang/spidermonkey-60.5.2_p0-r3/work/mozjs-60.5.2/jsobj'
 * 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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on Alternative Architectures All times are GMT
Page 1 of 1

 
Jump to:  
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