Ticket #715 (closed defect: fixed)

Opened 2 years ago

Last modified 2 years ago

[PATCH] Bundled SpiderMonkey fails to build on 32bit userland on 64bit kernel (Linux)

Reported by: strohel Owned by:
Priority: Should Have Milestone: Alpha 4
Component: Non-game systems Keywords: buildsystem, review
Cc:

Description

Due to some silly autodetection, Spidermonkey wants to compile itself as 64bit (64bit macros are set), but the compiler still builds it as 32bit, resulting in a build failue.

On such build log can be found at http://bugs.gentoo.org/attachment.cgi?id=244021&action=view (more info at http://bugs.gentoo.org/show_bug.cgi?id=278541#c37)

Attached patch adds support for (fairly standardised) CTARGET, CHOST and CBUILD environment variables to libraries/spidermonkey-tip/build.sh. This change alone fixes build in Gentoo, whose package manager sets these variables during build.

(the echo line in the patch is just debug, you may want to strip these (or not))

Attachments

0ad-spidermonkey-respect-CHOST.patch (1002 bytes) - added by strohel 2 years ago.
0ad-spidermonkey-respect-CHOST.patch

Change History

Changed 2 years ago by strohel

0ad-spidermonkey-respect-CHOST.patch

comment:1 Changed 2 years ago by feneur

  • Keywords buildsystem, review added; buildsystem removed

comment:2 Changed 2 years ago by philip

  • Status changed from new to closed
  • Resolution set to fixed

(In [8858]) Fix #715 (respect CHOST/etc when building SpiderMonkey?), based on patch from strohel

comment:3 Changed 2 years ago by k776

  • Milestone changed from Backlog to Alpha 4
Note: See TracTickets for help on using tickets.