<!-- 
RSS generated by JIRA (9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66) at Thu Feb 08 04:27:04 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-31439] scons cannot find custom compiler and linker</title>
                <link>https://jira.mongodb.org/browse/SERVER-31439</link>
                <project id="10000" key="SERVER">Core Server</project>
                    <description>&lt;p&gt;I work on centos 6.8. gcc 5.3 and binutilus is not installed in the standard path. When I use scons, it show:&lt;br/&gt;
??scons: Reading SConscript files ...&lt;br/&gt;
scons version: 3.0.0&lt;br/&gt;
python version: 2 7 11 &apos;final&apos; 0&lt;br/&gt;
Checking whether the C compiler works... yes&lt;br/&gt;
Checking whether the C++ compiler works... yes&lt;br/&gt;
Checking that the C++ compiler can link a C++ program... yes&lt;br/&gt;
Checking if C++ compiler &quot;g++&quot; is GCC... yes&lt;br/&gt;
Checking if C compiler &quot;gcc&quot; is GCC... yes&lt;br/&gt;
Detected a x86_64 processor&lt;br/&gt;
Checking if target OS linux is supported by the toolchain... yes&lt;br/&gt;
Checking if C compiler is GCC 5.3.0 or newer...no&lt;br/&gt;
Checking if C++ compiler is GCC 5.3.0 or newer...no&lt;br/&gt;
ERROR: Refusing to build with compiler that does not meet requirements&lt;br/&gt;
See /root/coding/mongo-master/build/scons/config.log for details??&lt;/p&gt;

&lt;p&gt;And If I add CC and CXX option to scons, it will find the gcc/g++, but still cannot find corrresonding custom as and ld (system as and ld cannot work).&lt;/p&gt;

&lt;p&gt;Please help, how can add custom linker to scons ?&lt;/p&gt;</description>
                <environment></environment>
        <key id="441667">SERVER-31439</key>
            <summary>scons cannot find custom compiler and linker</summary>
                <type id="6" iconUrl="https://jira.mongodb.org/secure/viewavatar?size=xsmall&amp;avatarId=14720&amp;avatarType=issuetype">Question</type>
                                            <priority id="3" iconUrl="https://jira.mongodb.org/images/icons/priorities/major.svg">Major - P3</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="13202">Works as Designed</resolution>
                                        <assignee username="andrew.morrow@mongodb.com">Andrew Morrow</assignee>
                                    <reporter username="baiwfg2@gmail.com">Chan Lewis</reporter>
                        <labels>
                    </labels>
                <created>Fri, 6 Oct 2017 15:56:57 +0000</created>
                <updated>Fri, 27 Oct 2023 13:54:12 +0000</updated>
                            <resolved>Mon, 9 Oct 2017 20:27:04 +0000</resolved>
                                                                    <component>Build</component>
                                        <votes>0</votes>
                                    <watches>8</watches>
                                                                                                                <comments>
                            <comment id="1693683" author="acm" created="Mon, 9 Oct 2017 20:27:04 +0000"  >&lt;p&gt;I&apos;m going to close out this ticket because I don&apos;t believe there is additional work indicated for us to do. If you continue to have problems, please feel free to reach out on the mongodb-user or mongodb-dev groups, which I monitor. Or, if you prefer to stay in JIRA, just comment on this ticket and I will see your reply.&lt;/p&gt;</comment>
                            <comment id="1692367" author="JIRAUSER1269408" created="Sun, 8 Oct 2017 05:19:42 +0000"  >&lt;p&gt;Thanks. I&apos;ll dig into that.&lt;/p&gt;</comment>
                            <comment id="1692326" author="acm" created="Sat, 7 Oct 2017 22:23:36 +0000"  >&lt;p&gt;A correctly configured toolchain should know where to look for the linker it was told to build against at configure time. You shouldn&apos;t need to set the path. However, you might find the following incantation useful:&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;   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 --variables-files=etc/scons/propagate_shell_environment.vars&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;This will propagate your shell environment including &lt;tt&gt;PATH&lt;/tt&gt; into all processes spawned by SCons. However, I do suggest that you look into why your toolchain seems to be misbehaving.&lt;/p&gt;</comment>
                            <comment id="1692092" author="JIRAUSER1269408" created="Sat, 7 Oct 2017 03:55:44 +0000"  >&lt;p&gt;I suspect it has something to do with this &lt;a href=&quot;https://bitbucket.org/scons/scons/wiki/FrequentlyAskedQuestions#markdown-header-why-doesnt-scons-find-my-compilerlinkeretc-i-can-execute-it-just-fine-from-the-command-line&quot; class=&quot;external-link&quot; target=&quot;_blank&quot; rel=&quot;nofollow noopener&quot;&gt;why-doesnt-scons-find-my-compilerlinkeretc-i-can-execute-it-just-fine-from-the-command-line&lt;/a&gt;. But SConstrut in the root directory is a little complicated to me, I still don&apos;t know where to add statement to support external PATH.&lt;/p&gt;</comment>
                            <comment id="1692089" author="JIRAUSER1269408" created="Sat, 7 Oct 2017 03:42:25 +0000"  >&lt;p&gt;Here&apos;s the result:&lt;/p&gt;

&lt;p&gt;/data/software/gcc-5.3.0/bin/g++ -o build/scons/opt/sconf_temp/conftest_2 build/scons/opt/sconf_temp/conftest_2.o&lt;br/&gt;
/usr/bin/ld: unrecognized option &apos;-plugin&apos;&lt;br/&gt;
/usr/bin/ld: use the --help option for usage information&lt;br/&gt;
collect2: error: ld returned 1 exit status&lt;br/&gt;
root@mongo-master (master *)$ export PATH=/data/software/binutils-2.26/bin:$PATH&lt;br/&gt;
root@mongo-master (master *)$ /data/software/gcc-5.3.0/bin/g++ -o build/scons/opt/sconf_temp/conftest_2 build/scons/opt/sconf_temp/conftest_2.o&lt;/p&gt;

&lt;p&gt;Obviously after I add the binutilus/bin to PATH, it&apos;ll build ok. So the problem seems that scons doesn&apos;t use my ld even though binutilus/bin is in the PATH. &lt;/p&gt;</comment>
                            <comment id="1691695" author="acm" created="Fri, 6 Oct 2017 17:15:41 +0000"  >&lt;p&gt;Are you sure your toolchain in /data/software was configured correctly? What does&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;   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;/data/software/gcc-5.3.0/bin/g++ -o build/scons/opt/sconf_temp/conftest_2 build/scons/opt/sconf_temp/conftest_2.o -###&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;Print?&lt;/p&gt;</comment>
                            <comment id="1691601" author="JIRAUSER1269408" created="Fri, 6 Oct 2017 16:06:27 +0000"  >&lt;p&gt;part of config.log is :&lt;/p&gt;

&lt;p&gt;/data/software/gcc-5.3.0/bin/g++ -o build/scons/opt/sconf_temp/conftest_2 build/scons/opt/sconf_temp/conftest_2.o&lt;br/&gt;
/usr/bin/ld: unrecognized option &apos;-plugin&apos;&lt;br/&gt;
/usr/bin/ld: use the --help option for usage information&lt;br/&gt;
collect2: error: ld returned 1 exit status&lt;br/&gt;
scons: Configure: no&lt;/p&gt;

&lt;p&gt;Obvisouly it still use the system ld &lt;/p&gt;</comment>
                            <comment id="1691593" author="JIRAUSER1269408" created="Fri, 6 Oct 2017 16:03:01 +0000"  >&lt;p&gt;I try to add this to SConstruct, but it seems not be working.&lt;/p&gt;

&lt;p&gt;env = Environment(ENV = &lt;/p&gt;
{&apos;PATH&apos; : os.environ[&apos;PATH&apos;]}
&lt;p&gt;)&lt;/p&gt;</comment>
                    </comments>
                    <attachments>
                    </attachments>
                <subtasks>
                    </subtasks>
                <customfields>
                                                <customfield id="customfield_10050" key="com.atlassian.jira.toolkit:comments">
                        <customfieldname># Replies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>8.0</customfieldvalue>
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                <customfield id="customfield_10055" key="com.atlassian.jira.ext.charting:firstresponsedate">
                        <customfieldname>Date of 1st Reply</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>Fri, 6 Oct 2017 17:15:41 +0000</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_10052" key="com.atlassian.jira.toolkit:dayslastcommented">
                        <customfieldname>Days since reply</customfieldname>
                        <customfieldvalues>
                                        6 years, 18 weeks, 2 days ago
    
                        </customfieldvalues>
                    </customfield>
                                                                <customfield id="customfield_18254" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Dependencies</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue><![CDATA[]]></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_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>
                            6 years, 18 weeks, 2 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>baiwfg2@gmail.com</customfieldvalue>
    
                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                                                                        <customfield id="customfield_14254" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Product Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>1|hth81b:</customfieldvalue>

                        </customfieldvalues>
                    </customfield>
                                                                                                                                                                                <customfield id="customfield_12550" key="com.pyxis.greenhopper.jira:gh-lexo-rank">
                        <customfieldname>Rank</customfieldname>
                        <customfieldvalues>
                            <customfieldvalue>2|ht94h3:</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_23361" key="com.onresolve.jira.groovy.groovyrunner:scripted-field">
                        <customfieldname>Requested By</customfieldname>
                        <customfieldvalues>
                                

                        </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|htgu53:</customfieldvalue>

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