File "/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/python/mozbuild/mozbuild/configure/__init__.py", line 1161, in wrapped return new_func(*args, **kwargs) File "/var/tmp/portage/games-strategy/0ad-0.0.25b_alpha/work/0ad-0.0.25b-alpha/libraries/source/spidermonkey/mozjs-78.6.0/build/moz.configure/init.configure", line 378, in virtualenv_python3 if not distutils.sysconfig.get_python_lib(): AttributeError: module 'distutils' has no attribute 'sysconfig' * ERROR: games-strategy/0ad-0.0.25b_alpha::gentoo failed (compile phase): * Failed to build bundled SpiderMonkey * * Call stack: ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.1_desktop_plasma_systemd-j4-20211122-223706 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-11.2.0 * /usr/lib/llvm/13 13.0.0 Python 3.9.9 Available Ruby profiles: [1] ruby26 (with Rubygems) [2] ruby27 (with Rubygems) [3] ruby30 (with Rubygems) * Available Rust versions: [1] rust-1.56.1 * The Glorious Glasgow Haskell Compilation System, version 8.10.4 php cli: HEAD of ::gentoo commit c7868bb416939fc392b57b65932a01928e17e072 Author: Repository mirror & CI <repomirrorci@gentoo.org> Date: Tue Nov 23 04:36:42 2021 +0000 2021-11-23 04:36:41 UTC emerge -qpvO games-strategy/0ad [ebuild N ] games-strategy/0ad-0.0.25b_alpha USE="lobby nvtt pch -editor -test -verify-sig"
Created attachment 755450 [details] emerge-info.txt
Created attachment 755454 [details] emerge-history.txt
Created attachment 755458 [details] environment
Created attachment 755462 [details] etc.portage.tar.bz2
Created attachment 755466 [details] games-strategy:0ad-0.0.25b_alpha:20211123-071054.log.bz2
Created attachment 755470 [details] logs.tar.bz2
I get the same error after upgrding from dev-python/setuptools-59.8.0 to dev-python/setuptools-60.5.0
There's an upstream Mozilla bug regarding this https://bugzilla.mozilla.org/show_bug.cgi?id=1665675 Applying the fix from https://phabricator.services.mozilla.com/D90627 allows configure to succeed; I'm currently trying to build it.
Created attachment 764495 [details, diff] Patch for spidermonkey python error
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c5948582c8e35c33b8d6793d6e2c83949b152586 commit c5948582c8e35c33b8d6793d6e2c83949b152586 Author: Sam James <sam@gentoo.org> AuthorDate: 2022-02-07 04:30:43 +0000 Commit: Sam James <sam@gentoo.org> CommitDate: 2022-02-07 04:30:57 +0000 games-strategy/0ad: fix build with newer setuptools Closes: https://bugs.gentoo.org/826762 Thanks-to: Stephen Cavilia <sac@atomicradi.us> Signed-off-by: Sam James <sam@gentoo.org> games-strategy/0ad/0ad-0.0.25b_alpha.ebuild | 3 +- .../files/0ad-0.0.25b_alpha-fix-setuptools.patch | 188 +++++++++++++++++++++ 2 files changed, 190 insertions(+), 1 deletion(-)