<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 05:21:45 UTC 2024

It is possible to restrict the fields that are returned in this document by specifying the 'field' parameter in your request.
For example, to request only the issue key and summary append 'field=key&field=summary' to the URL of your request.
-->
<rss version="0.92" >
<channel>
    <title>MongoDB Jira</title>
    <link>https://jira.mongodb.org</link>
    <description>This file is an XML representation of an issue</description>
    <language>en-us</language>    <build-info>
        <version>9.7.1</version>
        <build-number>970001</build-number>
        <build-date>13-04-2023</build-date>
    </build-info>


<item>
            <title>[SERVER-50115] arm64/aarch64 support for macOS</title>
                <link>https://jira.mongodb.org/browse/SERVER-50115</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;Looks like mongodb 4.4.0 supports x86_64 on Linux and macOS, and arm64/aarch64 on Linux but not yet on macOS; I get this error:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&amp;lt;built-in&amp;gt;:1:10: fatal error: &apos;js-confdefs.h&apos; file not found&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;#include &quot;js-confdefs.h&quot;&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;&#160;^~~~~~~~~~~~~~~&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;I see lots of js-confdefs.h files, just not in an aarch64/macOS directory:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;% find . -name js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/ppc64le/linux/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/s390x/linux/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/aarch64/linux/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/x86_64/macOS/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/x86_64/freebsd/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/x86_64/linux/build/js-confdefs.h&lt;/tt&gt;&lt;br/&gt;
&lt;tt&gt;./src/third_party/mozjs-60/platform/x86_64/windows/build/js-confdefs.h&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;So we need to add a ./src/third_party/mozjs-60/platform/aarch64/macOS directory with all of its contents. I can try to do it, if you&apos;ll let me know how the existing directories were created.&lt;/p&gt;</description>
                <environment></environment>
        <key id="1430589">SERVER-50115</key>
            <summary>arm64/aarch64 support for macOS</summary>
                <type id="4" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14710&amp;avatarType=issuetype">Improvement</type>
                                            <priority id="4" iconUrl="https://jira.mongodb.org/images/icons/priorities/minor.svg">Minor - P4</priority>
                        <status id="6" iconUrl="https://jira.mongodb.org/images/icons/statuses/closed.png" description="The issue is considered finished, the resolution is correct. Issues which are closed can be reopened.">Closed</status>
                    <statusCategory id="3" key="done" colorName="success"/>
                                    <resolution id="13201">Fixed</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="ryandesign">Ryan Schmidt</reporter>
                        <labels>
                            <label>platform-request</label>
                    </labels>
                <created>Wed, 5 Aug 2020 10:42:47 +0000</created>
                <updated>Sun, 29 Oct 2023 22:04:48 +0000</updated>
                            <resolved>Sat, 2 Apr 2022 03:14:22 +0000</resolved>
                                    <version>4.4.0</version>
                                    <fixVersion>6.0.0-rc0</fixVersion>
                                    <component>Build</component>
                                        <votes>14</votes>
                                    <watches>37</watches>
                                                                                                                <comments>
                            <comment id="4451744" author="xgen-internal-githook" created="Fri, 1 Apr 2022 21:41:10 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Andrew Morrow&apos;, &apos;email&apos;: &apos;acm@mongodb.com&apos;, &apos;username&apos;: &apos;acmorrow&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-50115&quot; title=&quot;arm64/aarch64 support for macOS&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-50115&quot;&gt;&lt;del&gt;SERVER-50115&lt;/del&gt;&lt;/a&gt; &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-64543&quot; title=&quot;Build Stitch Support Lib on macOS arm64&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-64543&quot;&gt;&lt;del&gt;SERVER-64543&lt;/del&gt;&lt;/a&gt; Add macOS arm release builders&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo/commit/362859101de94cf094ae82e6b029b9a22d0d3bd5&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo/commit/362859101de94cf094ae82e6b029b9a22d0d3bd5&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4415961" author="JIRAUSER1256529" created="Wed, 16 Mar 2022 16:08:49 +0000"  >&lt;p&gt;This is marked as blocked, but all dependency tickets are closed. Is this still blocked at this point?&lt;/p&gt;</comment>
                            <comment id="3948549" author="acm" created="Sun, 18 Jul 2021 13:58:48 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt; - We are still waiting on an ESR release from Mozilla that contains Apple Silicon support, after which we will need to do the work to upgrade to the new release. That work is being tracked in &lt;a href=&quot;https://jira.mongodb.org/browse/SERVER-42427&quot; title=&quot;Upgrade MozJS/Spidermonkey to ESR 91&quot; class=&quot;issue-link&quot; data-issue-key=&quot;SERVER-42427&quot;&gt;&lt;del&gt;SERVER-42427&lt;/del&gt;&lt;/a&gt;, on which this ticket is blocked.&lt;/p&gt;</comment>
                            <comment id="3948460" author="ryandesign" created="Sun, 18 Jul 2021 06:38:06 +0000"  >&lt;p&gt;Was this supposed to have been fixed in 5.0.0? When I try to build 5.0.0 on Apple Silicon without &lt;tt&gt;--js-engine=none&lt;/tt&gt; I get:&lt;/p&gt;

&lt;p/&gt;
&lt;div id=&quot;syntaxplugin&quot; class=&quot;syntaxplugin&quot; style=&quot;border: 1px dashed #bbb; border-radius: 5px !important; overflow: auto; max-height: 30em;&quot;&gt;
&lt;table cellspacing=&quot;0&quot; cellpadding=&quot;0&quot; border=&quot;0&quot; width=&quot;100%&quot; style=&quot;font-size: 1em; line-height: 1.4em !important; font-weight: normal; font-style: normal; color: black;&quot;&gt;
		&lt;tbody &gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;  margin-top: 10px;   width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;scons: *** [build/XXX/mongo/scripting/mozjs/countdownlatch.o] AttributeError : &apos;NoneType&apos; object has no attribute &apos;disambiguate&apos;&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
				&lt;tr id=&quot;syntaxplugin_code_and_gutter&quot;&gt;
						&lt;td  style=&quot; line-height: 1.4em !important; padding: 0em; vertical-align: top;&quot;&gt;
					&lt;pre style=&quot;font-size: 1em; margin: 0 10px;   margin-bottom: 10px;  width: auto; padding: 0;&quot;&gt;&lt;span style=&quot;color: black; font-family: &apos;Consolas&apos;, &apos;Bitstream Vera Sans Mono&apos;, &apos;Courier New&apos;, Courier, monospace !important;&quot;&gt;scons: building terminated because of errors.&lt;/span&gt;&lt;/pre&gt;
			&lt;/td&gt;
		&lt;/tr&gt;
			&lt;/tbody&gt;
&lt;/table&gt;
&lt;/div&gt;
&lt;p/&gt;

&lt;p&gt;With &lt;tt&gt;--js-engine=none&lt;/tt&gt; it builds, as did 4.x.&lt;/p&gt;</comment>
                            <comment id="3347093" author="acm" created="Wed, 19 Aug 2020 14:22:58 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt; - I created the configurations, however, MozJS does not seem to build out of the box, failing somewhere inside WASM support. This suggests that full MacOS ARM support is going to require an upgrade to a MozJS ESR release that supports MacOS ARM. In the meantime, you can build with &lt;tt&gt;--js-engine=none&lt;/tt&gt; to work around this. This will, however, mean that the resulting &lt;tt&gt;mongod&lt;/tt&gt; binary has no &lt;tt&gt;$where&lt;/tt&gt; or other JS based feature support, and the &lt;tt&gt;mongo&lt;/tt&gt; shell won&apos;t exist at all. &lt;/p&gt;</comment>
                            <comment id="3346998" author="acm" created="Wed, 19 Aug 2020 13:49:41 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt; - I managed to get it working after grubbing around in some Mozilla bug reports like &lt;a href=&quot;https://bugzilla.mozilla.org/show_bug.cgi?id=1588340&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://bugzilla.mozilla.org/show_bug.cgi?id=1588340&lt;/a&gt;. I added &lt;tt&gt;--disable-shared-js&lt;/tt&gt; to the &lt;tt&gt;configure&lt;/tt&gt; invocation and that seems to have fixed it. What I can&apos;t explain is how we managed to generate the existing macOS x86_64 configurations without that. I checked out the original commit where we added ESR 60 and it still didn&apos;t work without that flag. The only thing I can figure is that it is something environmental based on running on a newer macOS version. In any event, I have the configs generated and will get them reviewed and committed. Whether the generated JS integration actually functions is another question entirely.&lt;/p&gt;</comment>
                            <comment id="3346809" author="acm" created="Wed, 19 Aug 2020 11:47:49 +0000"  >&lt;p&gt;&lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt; - &lt;/p&gt;

&lt;p&gt;I was surprised to hear that the build scripts created a virtualenv - a little digging reveals that it seems to be within one of Mozilla&apos;s own build scripts. That is a hassle, as of course is Apple&apos;s behavior here: breaking virtualenv is ... a little extreme. So that precludes, at least temporarily, doing a native build.&lt;/p&gt;

&lt;p&gt;Regarding the attempts to do this on an Intel mac, I don&apos;t think we have ever tried to use the MozJS configure process in a cross-compilation setting. It probably was never considered necessary and never attempted. I think your observation that we are saying &lt;tt&gt;&amp;#45;&amp;#45;host&lt;/tt&gt; when we ought to be saying &lt;tt&gt;&amp;#45;&amp;#45;target&lt;/tt&gt; is likely correct, assuming that the &lt;tt&gt;configure&lt;/tt&gt; script is sane.&lt;/p&gt;

&lt;p&gt;I don&apos;t happen to know what that error you received is about. It is quite obscure. I will try it locally and get back to you.&lt;/p&gt;
</comment>
                            <comment id="3324052" author="ryandesign" created="Thu, 6 Aug 2020 07:15:50 +0000"  >&lt;p&gt;Thanks for the pointers. Sounds straightforward enough. Here&apos;s where I&apos;ve got to so far.&lt;/p&gt;

&lt;p&gt;I added these lines to the case statement in gen-config.sh:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&#160;&#160;&#160;&#160;&quot;platform/aarch64/macOS&quot;)&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_xcode_setup &quot;macosx&quot; &quot;arm64&quot; &quot;macos-version-min=11.0&quot;&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;_CONFIG_OPTS=&quot;--target=aarch64-apple-darwin&quot;&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;;;&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;I didn&apos;t get very far trying to run the script on an ARM Mac. I ran &lt;tt&gt;./gen-config.sh aarch64 macOS&lt;/tt&gt; but the build process creates a virtualenv and that fails:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;ERROR: virtualenv is not compatible with this system or executable&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Apparently creating a virtualenv copies the system&apos;s python executable &#8211; which was compiled arm64e &#8211; into the virtualenv, at which point it&apos;s not a blessed system executable anymore; it&apos;s just a regular user executable which isn&apos;t allowed to be arm64e, so the copied python doesn&apos;t work.&lt;/p&gt;

&lt;p&gt;I switched over to an Intel Mac and got further, but it soon failed with:&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;Traceback (most recent call last):&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;./../../configure.py&quot;, line 127, in &amp;lt;module&amp;gt;&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;sys.exit(main(sys.argv))&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;./../../configure.py&quot;, line 34, in main&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;return config_status(config)&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;./../../configure.py&quot;, line 122, in config_status&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;return config_status(args=[], **encode(sanitized_config, encoding))&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;/Users/rschmidt/mongodb-src-r4.4.0/src/third_party/mozjs-60/mozilla-release/python/mozbuild/mozbuild/config_status.py&quot;, line 144, in config_status&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;definitions = list(definitions)&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;/Users/rschmidt/mongodb-src-r4.4.0/src/third_party/mozjs-60/mozilla-release/python/mozbuild/mozbuild/frontend/emitter.py&quot;, line 195, in emit&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;objs = list(self._emit_libs_derived(contexts))&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;File &quot;/Users/rschmidt/mongodb-src-r4.4.0/src/third_party/mozjs-60/mozilla-release/python/mozbuild/mozbuild/frontend/emitter.py&quot;, line 285, in _emit_libs_derived&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;contexts&lt;span class=&quot;error&quot;&gt;&amp;#91;lib.objdir&amp;#93;&lt;/span&gt;)&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;mozbuild.frontend.reader.SandboxValidationError:&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;==============================&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;FATAL ERROR PROCESSING MOZBUILD FILE&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;==============================&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;The error occurred while processing the following file or one of the files it includes:&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&#160;&#160;&#160;&#160;/Users/rschmidt/mongodb-src-r4.4.0/src/third_party/mozjs-60/mozilla-release/js/src/build/moz.build&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;The error occurred when validating the result of the execution. The reported error is:&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&#160;&#160;&#160;&#160;The static &quot;js&quot; library is not used in a shared library or a program, but USE_LIBS contains the following shared library names:&lt;/tt&gt;&lt;br/&gt;
 &lt;tt&gt;&#160;&#160;&#160;&#160;&#160;&#160;&#160;&#160;mozglue&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;&lt;tt&gt;&#160;&#160;&#160;&#160;Maybe you can remove the static &quot;js&quot; library?&lt;/tt&gt;&lt;/p&gt;

&lt;p&gt;Have you seen this error before or know what it&apos;s talking about? The error is the same if I try to &lt;tt&gt;./gen-config.sh x86_64 macOS&lt;/tt&gt; without my modifications, even on an older system running macOS 10.13, so it appears just to be broken somehow.&lt;/p&gt;

&lt;p&gt;P.S: Shouldn&apos;t the places where gen-config.sh is using &lt;tt&gt;&amp;#45;-host&lt;/tt&gt; in &lt;tt&gt;_CONFIG_OPTS&lt;/tt&gt; be using &lt;tt&gt;&amp;#45;-target&lt;/tt&gt; instead?&lt;/p&gt;</comment>
                            <comment id="3322240" author="acm" created="Wed, 5 Aug 2020 13:59:54 +0000"  >&lt;p&gt;Hi &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=ryandesign&quot; class=&quot;user-hover&quot; rel=&quot;ryandesign&quot;&gt;ryandesign&lt;/a&gt; -&lt;/p&gt;

&lt;p&gt;As of right now, macOS on ARM is not a supported platform for MongoDB v4.4, or any other stable MongoDB release. We are in the process of finalizing the platform roadmap for future releases. That proposed roadmap currently includes an investigation into supporting macOS on ARM, and includes backporting any such support to at least v4.4, if possible.&lt;/p&gt;

&lt;p&gt;Given that, it is interesting to note that the current r4.4.0 sources largely build without modification on the macOS ARM platform, with the exception of SpiderMonkey, for which we do not yet have the necessary platform configuration files, as you have discovered.&lt;/p&gt;

&lt;p&gt;Producing those files isn&apos;t straightforward, and we have not yet investigated whether the vendored version of SpiderMonkey even builds or works on macOS ARM. If not, then adding support for macOS on ARM will require upgrading to a version of SpiderMonkey which does, which is a significant undertaking. There may not even be such a version, yet.&lt;/p&gt;

&lt;p&gt;Meanwhile, you can build the majority of the tree by using the flag &lt;tt&gt;--js-engine=none&lt;/tt&gt;, which will disable JavaScript entirely. This will of course mean that you don&apos;t get a binary for the &lt;tt&gt;mongo&lt;/tt&gt; shell, which is inherently JS based.&lt;/p&gt;

&lt;p&gt;Finally, I&apos;ll note here a few important caveats and other pieces of information that may be helpful while experimenting with building the tree for macOS ARM:&lt;/p&gt;

&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;For the most part, the SCons build ignores the shell environment from which it is invoked, but on macOS we make an exception and do honor &lt;tt&gt;DEVELOPER_DIR&lt;/tt&gt; if it is set. So if you have Xcode in a non-standard location, you can say {{DEVELOPER_DIR=/Path/To/Xcode-beta.app scons ... }} and it will do the right thing.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;With Xcode 12, some new warnings are produced and by default the server build promotes warnings to errors. You can work around this by building with &lt;tt&gt;--disable-warnings-as-errors&lt;/tt&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;As noted above, JavaScript support via SpiderMonkey does not yet work, but you can disable it with &lt;tt&gt;--js-engine=none&lt;/tt&gt;. No &lt;tt&gt;mongo&lt;/tt&gt; shell will be produced.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It is possible to cross compile to macOS ARM on an x86_64 macOS machine with the current build system, by setting &lt;tt&gt;CCFLAGS&lt;/tt&gt; and &lt;tt&gt;LINKFLAGS&lt;/tt&gt;, either on your &lt;tt&gt;scons&lt;/tt&gt; command line or in a SCons &lt;tt&gt;Variables&lt;/tt&gt; file. Something like &lt;tt&gt;DEVELOPER_DIR=/Path/To/Xcode-beta.app scons ... --variables-files=etc/scons/xcode_macosx.vars ... CCFLAGS=&quot;-isysroot $(DEVELOPER_DIR=/Path/To/Xcode-beta.app xcrun --sdk macosx --show-sdk-path) -mmacosx-version-min=11.0 -arch arm64&quot; LINKFLAGS=&quot;-Wl,-syslibroot,$(DEVELOPER_DIR=/Path/To/Xcode-beta.app xcrun --sdk macosx --show-sdk-path) -mmacosx-version-min=11.0 -arch arm64&quot; ...&lt;/tt&gt;&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It is not currently possible to do a single build targeting both architectures (i.e. &lt;tt&gt;-arch x86_64 -arch arm64&lt;/tt&gt;). The builds must be produced separately and then fused with &lt;tt&gt;lipo&lt;/tt&gt;.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;Some small changes are probably required to ensure that hardware accelerated crc32 is are used when targeting macOS ARM. Support for hardware accelerated crc32 on ARM is available in the tree, but is currently only enabled for Linux. Without this change support will fall back to a software implementation.&lt;/li&gt;
&lt;/ul&gt;


&lt;ul class=&quot;alternate&quot; type=&quot;square&quot;&gt;
	&lt;li&gt;It is possible to target &lt;tt&gt;arm64e&lt;/tt&gt; rather than &lt;tt&gt;arm64&lt;/tt&gt;, but such binaries apparently do not run on the available hardware without enabling the preview &lt;tt&gt;arm64e&lt;/tt&gt; ABI (see &lt;a href=&quot;https://developer.apple.com/forums/thread/652340&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://developer.apple.com/forums/thread/652340&lt;/a&gt;), which we have not attempted.&lt;/li&gt;
&lt;/ul&gt;


&lt;p&gt;Regarding your specific question about how to generate the configurations for MozJS: you can see this thread from a while back about how to go about it: &lt;a href=&quot;https://groups.google.com/g/mongodb-dev/c/G-kGjZEEam0/m/VSVB9fYCBAAJ&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://groups.google.com/g/mongodb-dev/c/G-kGjZEEam0/m/VSVB9fYCBAAJ&lt;/a&gt;. Obviously some versions have changed, but the general procedure has not. Overall, this all depends on how well the MozJS ESR 60 release happens to do when targeting macOS and ARM simultaneously. If you are interested in trying it out we are of course interested in any results you obtain. Otherwise, this will be one of the first things we pick up if and when we officially start our efforts to target macOS on ARM.&lt;/p&gt;

&lt;p&gt;Please let us know if there is anything else we can do to help.&lt;/p&gt;
</comment>
                    </comments>
                <issuelinks>
                            <issuelinktype id="10011">
                    <name>Depends</name>
                                            <outwardlinks description="depends on">
                                        <issuelink>
            <issuekey id="1996157">SERVER-64295</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="875870">SERVER-42427</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1302189">SERVER-47276</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1909864">SERVER-61008</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is depended on by">
                                        <issuelink>
            <issuekey id="1707939">SERVER-56782</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="2002512">SERVER-64543</issuekey>
        </issuelink>
                            </inwardlinks>
                                    </issuelinktype>
                            <issuelinktype id="10010">
                    <name>Duplicate</name>
                                            <outwardlinks description="duplicates">
                                                        </outwardlinks>
                                                        </issuelinktype>
                            <issuelinktype id="10012">
                    <name>Related</name>
                                            <outwardlinks description="related to">
                                        <issuelink>
            <issuekey id="1544920">MONGOSH-442</issuekey>
        </issuelink>
            <issuelink>
            <issuekey id="1729804">MONGOSH-773</issuekey>
        </issuelink>
                            </outwardlinks>
                                                                <inwardlinks description="is related to">
                                                        </inwardlinks>
                                    </issuelinktype>
                    </issuelinks>
                <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18555" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname># of Sprints</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1.0</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10011" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Backwards Compatibility</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="10038"><![CDATA[Fully Compatible]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Wed, 5 Aug 2020 13:59:54 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        1 year, 44 weeks, 5 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[<s><a href='https://jira.mongodb.org/browse/SERVER-47276'>SERVER-47276</a></s>, <s><a href='https://jira.mongodb.org/browse/BUILD-11575'>BUILD-11575</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-42427'>SERVER-42427</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-61008'>SERVER-61008</a></s>, <s><a href='https://jira.mongodb.org/browse/SERVER-64295'>SERVER-64295</a></s>]]></customfieldvalue>


                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                        <customfield id="customfield_17050" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Downstream Team Attention</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="16941"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_10057" key="com.atlassian.jira.toolkit:lastusercommented">
                        <customfieldname>Last comment by Customer</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>true</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                            <customfield id="customfield_10056" key="com.atlassian.jira.toolkit:lastupdaterorcommenter">
                        <customfieldname>Last commenter</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>luke.bonanomi@mongodb.com</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_11151" key="com.atlassian.jira.toolkit:LastCommentDate">
                        <customfieldname>Last public comment date</customfieldname>
                        <customfieldvalues>
                            1 year, 44 weeks, 5 days ago
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_10051" key="com.atlassian.jira.toolkit:participants">
                        <customfieldname>Participants</customfieldname>
                        <customfieldvalues>
                                        <customfieldvalue>andrew.morrow@mongodb.com</customfieldvalue>
            <customfieldvalue>anna.henningsen@mongodb.com</customfieldvalue>
            <customfieldvalue>xgen-internal-githook</customfieldvalue>
            <customfieldvalue>ryandesign</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxyf87:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|i07id7:zzr</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10558" key="com.pyxis.greenhopper.jira:gh-global-rank">
                        <customfieldname>Rank (Obsolete)</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>9223372036854775807</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                    <customfield id="customfield_22250" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Special Downgrade Instructions Required</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="23343"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10557" key="com.pyxis.greenhopper.jira:gh-sprint">
                        <customfieldname>Sprint</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue id="5983">Dev Platform 2022-04-04</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                            <customfield id="customfield_10053" key="com.atlassian.jira.ext.charting:timeinstatus">
                        <customfieldname>Time In Status</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_22870" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Triagers</customfieldname>
                        <customfieldvalues>
                                

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                    <customfield id="customfield_14350" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>serverRank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hxy1hj:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                    </customfields>
    </item>
</channel>
</rss>