Trouble Finding GCC
"Waqar, Faaiq G" <[email protected]> Mon, 16 Sep 2024 17:51:10 +0000
| Newsgroups | gmane.comp.programming.tools.scons.user |
|---|---|
| Message-ID | <SA1PR07MB10051C64FA265036AC39C04CA98602@SA1PR07MB10051.namprd07.prod.outlook.com> |
--===============8886755665785077195==
Content-Language: en-US
Content-Type: multipart/alternative;
boundary="_000_SA1PR07MB10051C64FA265036AC39C04CA98602SA1PR07MB10051na_"
--_000_SA1PR07MB10051C64FA265036AC39C04CA98602SA1PR07MB10051na_
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
Hello Scons Community,
I am working on the tool Gem5, working within a container (using Apptainer)=
to set up all necessary dependencies. Within my SConscript file, I have th=
e following lines
main.Tool(SCons.Tool.FindTool(['gcc', 'clang'], main))
main.Tool(SCons.Tool.FindTool(['g++', 'clang++'], main))
Which unfortunately throw the following error:
main.Tool(SCons.Tool.FindTool(['gcc', 'clang'], main))
File "/usr/lib/python3/dist-packages/SCons/Environment.py", line 2033:
tool(self)
I am able to run GCC outside this with no problems, and which gcc returns t=
he path to the version of gcc I am intending on using. I have had no luck f=
inding this issue online, so I was wondering if anyone knows why this might=
be happening. I appreciate any insights you can provide. Thank you!
--_000_SA1PR07MB10051C64FA265036AC39C04CA98602SA1PR07MB10051na_
Content-Type: text/html; charset="us-ascii"
Content-Transfer-Encoding: quoted-printable
<html xmlns:v=3D"urn:schemas-microsoft-com:vml" xmlns:o=3D"urn:schemas-micr=
osoft-com:office:office" xmlns:w=3D"urn:schemas-microsoft-com:office:word" =
xmlns:m=3D"http://schemas.microsoft.com/office/2004/12/omml" xmlns=3D"http:=
//www.w3.org/TR/REC-html40">
<head>
<meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3Dus-ascii"=
>
<meta name=3D"Generator" content=3D"Microsoft Word 15 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Aptos;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ligatures:standardcontextual;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Aptos",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-size:11.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext=3D"edit" spidmax=3D"1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext=3D"edit">
<o:idmap v:ext=3D"edit" data=3D"1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang=3D"EN-US" link=3D"#467886" vlink=3D"#96607D" style=3D"word-wrap:=
break-word">
<div class=3D"WordSection1">
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41">Hello Scons Community,<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41">I am working on the tool Gem5, working within a con=
tainer (using Apptainer) to set up all necessary dependencies. Within my SC=
onscript file, I have the following lines<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ti=
mes New Roman",serif;color:#0E2841">main.Tool(SCons.Tool.FindTool(['gc=
c', 'clang'], main))<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ti=
mes New Roman",serif;color:#0E2841">main.Tool(SCons.Tool.FindTool(['g+=
+', 'clang++'], main))<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ti=
mes New Roman",serif;color:#0E2841"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-size:10.0pt;font-family:"Ti=
mes New Roman",serif;color:#0E2841"><o:p> </o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41">Which unfortunately throw the following error:
<o:p></o:p></span></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41"><o:p> </o:p></span></p>
<p class=3D"MsoNormal">main.Tool(SCons.Tool.FindTool(['gcc', 'clang'], main=
))<o:p></o:p></p>
<p class=3D"MsoNormal"> File "/usr/lib/python3/dist-packages/SCo=
ns/Environment.py", line 2033:<o:p></o:p></p>
<p class=3D"MsoNormal"> tool(self)<o:p></o:p></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
<p class=3D"MsoNormal"><span style=3D"font-family:"Times New Roman&quo=
t;,serif;color:#0A2F41">I am able to run GCC outside this with no problems,=
and which gcc returns the path to the version of gcc I am intending on usi=
ng. I have had no luck finding this issue online,
so I was wondering if anyone knows why this might be happening. I apprecia=
te any insights you can provide. Thank you!<o:p></o:p></span></p>
<p class=3D"MsoNormal"><o:p> </o:p></p>
</div>
</body>
</html>
--_000_SA1PR07MB10051C64FA265036AC39C04CA98602SA1PR07MB10051na_--
--===============8886755665785077195==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
--===============8886755665785077195==--