Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 768840 - games-strategy/0ad-0.0.24_alpha_pre20210116040036 w/ spidermonkey-78.7: error: cannot convert ‘JS::Zone*’ to ‘JSContext*’
Summary: games-strategy/0ad-0.0.24_alpha_pre20210116040036 w/ spidermonkey-78.7: error...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-02-05 09:34 UTC by Nowa Ammerlaan
Modified: 2021-02-12 20:18 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge environment (env.txt,89.14 KB, text/plain)
2021-02-05 09:34 UTC, Nowa Ammerlaan
Details
emerge --info (emerge-info.txt,8.00 KB, text/plain)
2021-02-05 09:35 UTC, Nowa Ammerlaan
Details
build.log + emerge --info.txt.xz (build.log-emerge-info.txt.xz,62.86 KB, application/x-xz)
2021-02-05 17:54 UTC, Ionen Wolkens
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Nowa Ammerlaan gentoo-dev 2021-02-05 09:34:00 UTC
emerge -pqv '=games-strategy/0ad-0.0.24_alpha_pre20210116040036::gentoo'
[ebuild     U ] games-strategy/0ad-0.0.24_alpha_pre20210116040036 [0.0.23b_alpha] USE="editor lobby (nvtt*) -pch -test"
[ebuild     U ] games-strategy/0ad-data-0.0.24_alpha_pre20210116040036 [0.0.23b_alpha]


The 0.0.24 prerelease fails to compile for me:

../../../source/scriptinterface/ScriptContext.cpp: In member function ‘void ScriptContext::UnRegisterRealm(JS::Realm*)’:
../../../source/scriptinterface/ScriptContext.cpp:136:39: error: cannot convert ‘JS::Zone*’ to ‘JSContext*’
136 |  JS::PrepareZoneForGC(js::GetRealmZone(realm));
|                       ~~~~~~~~~~~~~~~~^~~~~~~
|                                       |
|                                       JS::Zone*
Comment 1 Nowa Ammerlaan gentoo-dev 2021-02-05 09:34:58 UTC
Created attachment 685830 [details]
emerge environment
Comment 2 Nowa Ammerlaan gentoo-dev 2021-02-05 09:35:17 UTC
Created attachment 685833 [details]
emerge --info
Comment 3 Ionen Wolkens gentoo-dev 2021-02-05 17:54:49 UTC
Created attachment 685872 [details]
build.log + emerge --info.txt.xz

Next time please attach the full build.log in case, "if" it's over 1MB it's okay to compress it (but otherwise leave uncompressed).

That aside, this looks like an incompatibility with spidermonkey-78.7, built with stable 78.6 (not that I've tested it given I'm getting segmentation faults, I think I can see why this is still masked)
Comment 4 Nowa Ammerlaan gentoo-dev 2021-02-06 05:12:16 UTC
Downgrading to spidermoneky-78.6 solved the compilation issues with 0ad, but then I also ran into a segfault compiling 0ad-data which I reported here: https://bugs.gentoo.org/768930

Game itself runs but has some issues rendering some fonts, which presumably is because it is running against the wrong version of 0ad-data at the moment.
Comment 5 Ionen Wolkens gentoo-dev 2021-02-06 05:55:40 UTC
Most of these issues are being covered in bug #735352, sounds like this still has a way to go.
Comment 6 Larry the Git Cow gentoo-dev 2021-02-12 20:18:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=815ab784f5f549e0f4cb803bbd813199d2c94c90

commit 815ab784f5f549e0f4cb803bbd813199d2c94c90
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2021-02-12 20:18:08 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2021-02-12 20:18:47 +0000

    games-strategy/0ad: revert to bundled libraries
    
    * SpiderMonkey changes the consumed interfaces
      even within minor versions, so using
      the system version is a no go.
    
    * nvtt is abandoned upstream and using the
      system version results in segfaults.
    
      Use 0ad's version which has fixes instead.
    
    Bug: https://bugs.gentoo.org/735352
    Bug: https://bugs.gentoo.org/689124
    Closes: https://bugs.gentoo.org/768840
    Closes: https://bugs.gentoo.org/759934
    Closes: https://bugs.gentoo.org/768930
    Package-Manager: Portage-3.0.14, Repoman-3.0.2
    Signed-off-by: Sam James <sam@gentoo.org>

 ...> 0ad-0.0.24_alpha_pre20210116040036-r1.ebuild} | 28 ++++++++++++++++++----
 1 file changed, 23 insertions(+), 5 deletions(-)