<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 08:37:57 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>[GODRIVER-2164] Unable to use go install with mongo driver for Go 1.17 onwards</title>
                <link>https://jira.mongodb.org/browse/GODRIVER-2164</link>
                <project id="14289" key="GODRIVER">Go Driver</project>
                    <description>&lt;p&gt;I am trying to run the following command on my Linux machine before building my binary for the code that is shown below.&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The command I ran:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;

&lt;p&gt;go install -linkshared -buildmode=shared &lt;br/&gt;
 go.mongodb.org/mongo-driver/bson/ go.mongodb.org/mongo-driver/event/ go.mongodb.org/mongo-driver/mongo/options&lt;/p&gt;

&lt;p&gt;```&lt;/p&gt;

&lt;p&gt;Since go 1.17+ I am not able to run the above command, as I always get the following error. I can&apos;t seem to understand what this error actually means and I am stuck at this.&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;Error:&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;```&lt;/b&gt;&lt;/p&gt;

&lt;ol&gt;
	&lt;li&gt;go.mongodb.org/mongo-driver/vendor/github.com/klauspost/compress/zstd/internal/xxhash# go.mongodb.org/mongo-driver/vendor/github.com/klauspost/compress/zstd/internal/xxhashasm: xxhash_amd64.s:120: when dynamic linking, R15 is clobbered by a global variable access and is used here: 00092 (/usr/local/go/src/go.mongodb.org/mongo-driver/vendor/github.com/klauspost/compress/zstd/internal/xxhash/xxhash_amd64.s:120) ADDQ R15, AXasm: assembly failed&lt;/li&gt;
&lt;/ol&gt;


&lt;p&gt;&lt;b&gt;```&lt;/b&gt;&lt;/p&gt;

&lt;p&gt;&#160;&lt;/p&gt;

&lt;p&gt;&lt;b&gt;The code I want to build is attached here.&lt;/b&gt;&lt;/p&gt;</description>
                <environment></environment>
        <key id="1883842">GODRIVER-2164</key>
            <summary>Unable to use go install with mongo driver for Go 1.17 onwards</summary>
                <type id="1" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14703&amp;avatarType=issuetype">Bug</type>
                                            <priority id="1" iconUrl="https://jira.mongodb.org/images/icons/priorities/blocker.svg">Blocker - P1</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="benji.rewis@mongodb.com">Benji Rewis</assignee>
                                    <reporter username="subhanshu.25197@gmail.com">Mukul N/A</reporter>
                        <labels>
                    </labels>
                <created>Sun, 26 Sep 2021 16:31:35 +0000</created>
                <updated>Sat, 28 Oct 2023 11:37:42 +0000</updated>
                            <resolved>Thu, 30 Sep 2021 14:29:33 +0000</resolved>
                                                    <fixVersion>1.7.3</fixVersion>
                                                        <votes>0</votes>
                                    <watches>2</watches>
                                                                                                                <comments>
                            <comment id="4094228" author="benji.rewis" created="Thu, 30 Sep 2021 14:29:33 +0000"  >&lt;p&gt;The updated dependency should be available in the upcoming version 1.7.3 of the Go driver, &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=subhanshu.25197%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;subhanshu.25197@gmail.com&quot;&gt;subhanshu.25197@gmail.com&lt;/a&gt;. Until then, you can always specify v1.13.6 of &lt;tt&gt;klauspost/compress&lt;/tt&gt; in your own &lt;tt&gt;go.mod&lt;/tt&gt; to avoid the dynamic linking error.&lt;/p&gt;</comment>
                            <comment id="4094220" author="xgen-internal-githook" created="Thu, 30 Sep 2021 14:27:56 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2164&quot; title=&quot;Unable to use go install with mongo driver for Go 1.17 onwards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2164&quot;&gt;&lt;del&gt;GODRIVER-2164&lt;/del&gt;&lt;/a&gt; Upgrade klauspost/compress dependency (#759)&lt;br/&gt;
Branch: release/1.7&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/34a4b6d5e1292b9a84db756b91d8d7fc4e357c05&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/34a4b6d5e1292b9a84db756b91d8d7fc4e357c05&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4094214" author="xgen-internal-githook" created="Thu, 30 Sep 2021 14:26:27 +0000"  >&lt;p&gt;Author:&lt;/p&gt;
{&apos;name&apos;: &apos;Benjamin Rewis&apos;, &apos;email&apos;: &apos;32186188+benjirewis@users.noreply.github.com&apos;, &apos;username&apos;: &apos;benjirewis&apos;}
&lt;p&gt;Message: &lt;a href=&quot;https://jira.mongodb.org/browse/GODRIVER-2164&quot; title=&quot;Unable to use go install with mongo driver for Go 1.17 onwards&quot; class=&quot;issue-link&quot; data-issue-key=&quot;GODRIVER-2164&quot;&gt;&lt;del&gt;GODRIVER-2164&lt;/del&gt;&lt;/a&gt; Upgrade klauspost/compress dependency (#759)&lt;br/&gt;
Branch: master&lt;br/&gt;
&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/commit/2dee703bff5677f26bd89c3fba51b84e73f10482&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/commit/2dee703bff5677f26bd89c3fba51b84e73f10482&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4089812" author="benji.rewis" created="Tue, 28 Sep 2021 16:57:08 +0000"  >&lt;p&gt;Thanks again for your report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=subhanshu.25197%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;subhanshu.25197@gmail.com&quot;&gt;subhanshu.25197@gmail.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;This is a &lt;a href=&quot;https://github.com/klauspost/compress/issues/428&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;bug&lt;/a&gt; in one of our dependencies: &lt;a href=&quot;https://github.com/klauspost/compress&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;klauspost/compress&lt;/a&gt;. The bug was fixed in v1.13.6 (the latest version) of &lt;tt&gt;klauspost/compress&lt;/tt&gt;, so we&apos;ll just have to update our dependency. That should fix your build error.&lt;/p&gt;

&lt;p&gt;Here&apos;s a PR to do so:&#160;&lt;a href=&quot;https://github.com/mongodb/mongo-go-driver/pull/759&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;https://github.com/mongodb/mongo-go-driver/pull/759&lt;/a&gt;&lt;/p&gt;</comment>
                            <comment id="4088780" author="subhanshu.25197@gmail.com" created="Tue, 28 Sep 2021 11:33:22 +0000"  >&lt;p&gt;Even while trying to build the application using &lt;b&gt;go build&lt;/b&gt; I am getting the same error.&#160;&lt;/p&gt;</comment>
                            <comment id="4088168" author="benji.rewis" created="Tue, 28 Sep 2021 00:33:30 +0000"  >&lt;p&gt;Thanks for your bug report &lt;a href=&quot;https://jira.mongodb.org/secure/ViewProfile.jspa?name=subhanshu.25197%40gmail.com&quot; class=&quot;user-hover&quot; rel=&quot;subhanshu.25197@gmail.com&quot;&gt;subhanshu.25197@gmail.com&lt;/a&gt;! We&apos;re taking a look now.&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                            <attachment id="337477" name="mongoSample.go" size="1905" author="luke.bonanomi@mongodb.com" created="Mon, 27 Sep 2021 16:55:05 +0000"/>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                                                                                                                                                                                        <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_15850" key="com.atlassian.jira.plugins.jira-development-integration-plugin:devsummary">
                        <customfieldname>Development</customfieldname>
                        <customfieldvalues>
                            
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10257" key="com.atlassian.jira.plugin.system.customfieldtypes:radiobuttons">
                        <customfieldname>Documentation Changes</customfieldname>
                        <customfieldvalues>
                                <customfieldvalue key="11861"><![CDATA[Not Needed]]></customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|hzn1lb:</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>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            </customfields>
    </item>
</channel>
</rss>