<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css" style="display:none;"> P {margin-top:0;margin-bottom:0;} </style>
</head>
<body dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
Thank you for pointing out my error. My apologies - as I said, this is my first time working with RTEMS so I'm sorry I mis-stated.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
In the example, the "RTEMS tools suite prefix" is '$HOME/quick-start/rtems/6'.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
When I was running through the example, my "RTEMS tools suite prefix" is '$HOME/src/rtems/quick-start/rtems/6' (as shown in what I typed :-) ).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
The reason I started this thread is because I'm not the only one having problems with <a href="https://docs.rtems.org/branches/master/user/start/app.html" id="LPlnk937817">https://docs.rtems.org/branches/master/user/start/app.html</a> - a co-worker was also
unable to follow these instructions (because it appears that the 'waf' execution is looking for the wrong directory).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
I'm open to suggestions of things to try, but in order to clear up any confusion, I'm going to redo the "Quick Start" following it verbatim so that there is less confusion as to what problem I'm having
<span id="🙂">🙂</span></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Thanks to everyone for the help, and my apologies for the 'noob' errors.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0">
Brett</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof">
<br>
</div>
<hr tabindex="-1" style="display:inline-block; width:98%">
<div id="divRplyFwdMsg" dir="ltr"><font face="Calibri, sans-serif" style="font-size: 11pt; color: rgb(0, 0, 0);"><b>From:</b> Gedare Bloom <gedare@rtems.org><br>
<b>Sent:</b> Tuesday, July 11, 2023 12:29 PM<br>
<b>To:</b> Brett Sterling <brett.sterling@odysseysr.com><br>
<b>Cc:</b> joel@rtems.org <joel@rtems.org>; users@rtems.org <users@rtems.org><br>
<b>Subject:</b> Re: Hello world fails</font>
<div> </div>
</div>
<div class="BodyFragment"><font size="2"><span style="font-size:11pt">
<div class="PlainText"><br>
On Tue, Jul 11, 2023 at 9:54 AM Brett Sterling<br>
<brett.sterling@odysseysr.com> wrote:<br>
><br>
> Thanks for the response. However, I think I need a little clarification.<br>
><br>
> In <a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fapp.html&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rmj7IwfhREwodmwv8WSXXcFUa3KCvXgTW5GBKZ%2Fh2ic%3D&reserved=0" data-auth="NotApplicable">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fapp.html&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rmj7IwfhREwodmwv8WSXXcFUa3KCvXgTW5GBKZ%2Fh2ic%3D&reserved=0</a>,
it says:<br>
><br>
> ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=sparc/erc32<br>
><br>
> My prefix is: '$HOME/src/rtems', so I used ' ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32'.<br>
><br>
If your prefix is '${HOME}/src/rtems' then your rtems should be<br>
'${HOME}/src/rtems'<br>
<br>
There is no extra magic that appends "quick-start/rtems/6" to your<br>
prefix during the installation. Since you chose $HOME/src/rtems as<br>
your prefix, then everywhere that the original prefix of<br>
$HOME/quick-start/rtems/6 gets used you should replace with<br>
$HOME/src/rtems.<br>
<br>
> I believe this is equivalent to what you suggested, except that you have '--rtems-bsps' instead of '--rtems-bsp' (I think mine is the correct syntax).<br>
><br>
> As for "pointing to the share directory', I didn't do that - that was the error message printed when I tried to configure.<br>
><br>
> I'm not sure what you mean by pointing to the wrong directories - I followed the web page directions specifically. However, I also admit I may have done something incorrectly, so if you could point to the thing I should change, I'm glad to do so :-)<br>
><br>
> Thanks again,<br>
> Brett<br>
><br>
> ________________________________<br>
> From: Joel Sherrill <joel@rtems.org><br>
> Sent: Tuesday, July 11, 2023 9:24 AM<br>
> To: Brett Sterling <brett.sterling@odysseysr.com><br>
> Cc: users@rtems.org <users@rtems.org><br>
> Subject: Re: Hello world fails<br>
><br>
> CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you recognize the sender and know the content is safe.<br>
><br>
><br>
><br>
> On Tue, Jul 11, 2023 at 8:35 AM Brett Sterling <brett.sterling@odysseysr.com> wrote:<br>
><br>
> I've been working my way through the 'Quick Start' and everything was going pretty well until
<a href="https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fapp.html&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rmj7IwfhREwodmwv8WSXXcFUa3KCvXgTW5GBKZ%2Fh2ic%3D&reserved=0" data-auth="NotApplicable">
https://usg02.safelinks.protection.office365.us/?url=https%3A%2F%2Fdocs.rtems.org%2Fbranches%2Fmaster%2Fuser%2Fstart%2Fapp.html&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=rmj7IwfhREwodmwv8WSXXcFUa3KCvXgTW5GBKZ%2Fh2ic%3D&reserved=0</a>.<br>
><br>
> I get to the point where I'm supposed to 'configure', and I get the following:<br>
><br>
> ~/src/rtems/quick-start/app/hello$ ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32<br>
> Setting top to : /home/bsterling/src/rtems/quick-start/app/hello<br>
> Setting out to : /home/bsterling/src/rtems/quick-start/app/hello/build<br>
> RTEMS path is not valid, "/home/bsterling/src/rtems/quick-start/rtems/6/share/rtems6" not found.<br>
> (complete log in /home/bsterling/src/rtems/quick-start/app/hello/build/config.log)<br>
><br>
><br>
> I have this in my handy scripts for building rtems-examples:<br>
><br>
> CPU=powerpc<br>
> BSP=psim<br>
> ./waf configure --rtems=${HOME}/rtems-work/tools/6/bsp-install \<br>
> --rtems-tools=${HOME}/rtems-work/tools/6 \<br>
> --rtems-bsps=${CPU}/${BSP}<br>
><br>
> That --rtems points to the --prefix directory you used when you built and installed RTEMS.<br>
> This is from my install:<br>
><br>
> $ pwd<br>
> /home/joel/rtems-work/tools/6/bsp-install/sparc-rtems6/leon3<br>
> $ ls<br>
> lib make Makefile.inc<br>
><br>
> --rtems-tools directory should have a bin/TARGET-gcc under it.<br>
><br>
> --rtems-bsps looks OK<br>
><br>
> I think you have just pointed to the wrong directories. It should be similar to<br>
> how I build rtems-examples.<br>
><br>
> --joel<br>
><br>
><br>
><br>
><br>
> I have verified that all of the source files contain only what is described on that page.<br>
><br>
> When I look in the rtems/6/share directory, I have the following:<br>
><br>
> ~/src/rtems/quick-start/rtems/6/share$ ls -l<br>
> total 32<br>
> drwxr-xr-x 3 bsterling osr 4096 Jul 10 14:39 doc<br>
> drwxr-xr-x 3 bsterling osr 4096 Jul 10 15:00 gcc-12.3.1<br>
> drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:02 gdb<br>
> drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:01 iconv_data<br>
> drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:02 info<br>
> drwxr-xr-x 2 bsterling osr 4096 Jul 10 14:43 locale<br>
> drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:00 man<br>
> drwxr-xr-x 9 bsterling osr 4096 Jul 10 15:02 rtems<br>
><br>
><br>
> Normally you don't point all the way down to share directory<br>
><br>
><br>
> I tried renaming 'rtems' to 'rtems6', but that resulted in the following errors:<br>
><br>
> ~/src/rtems/quick-start/app/hello$ ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32<br>
> Setting top to : /home/bsterling/src/rtems/quick-start/app/hello<br>
> Setting out to : /home/bsterling/src/rtems/quick-start/app/hello/build<br>
> Traceback (most recent call last):<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 119, in waf_entry_point<br>
> run_commands()<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 182, in run_commands<br>
> ctx=run_command(cmd_name)<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 173, in run_command<br>
> ctx.execute()<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 85, in execute<br>
> super(ConfigurationContext,self).execute()<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 92, in execute<br>
> self.recurse([os.path.dirname(g_module.root_path)])<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 133, in recurse<br>
> user_function(self)<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/wscript", line 26, in configure<br>
> rtems.configure(conf, bsp_configure = bsp_configure)<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 190, in configure<br>
> check_options(conf,<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 496, in check_options<br>
> arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path,<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 851, in _check_arch_bsps<br>
> installed = _find_installed_arch_bsps(config, path, archs, version)<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 823, in _find_installed_arch_bsps<br>
> if _arch_from_arch_bsp(f[:-3]) in archs:<br>
> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 862, in _arch_from_arch_bsp<br>
> rtems_field_index = next(i for i, field in enumerate(fields) if field.startswith('rtems'))<br>
> StopIteration<br>
><br>
><br>
> Please note that I started with rtems 6 because when I tried to use the released rtems 5 'Getting Started', I couldn't get past the first few steps. That being said, I'm glad to go back to any other version if necessary, as I'm just trying to get to the
point where I can work with RTEMS.<br>
><br>
> Thanks in advance for any help!<br>
><br>
> I'm using Ubuntu 22.04.2 LTS, and have followed the instructions in the 'Host Machine' setup section (as I mentioned, everything was working great up until this step). The only way I was able to get things working was to clone the git repositories. I'm
on the 'master' branch.<br>
> _______________________________________________<br>
> users mailing list<br>
> users@rtems.org<br>
> <a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Va5M9b%2BjcpRnlfqEVSfDMH%2FhbVAstaeRD2t74nFeVYM%3D&reserved=0" data-auth="NotApplicable">
https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Va5M9b%2BjcpRnlfqEVSfDMH%2FhbVAstaeRD2t74nFeVYM%3D&reserved=0</a><br>
><br>
> _______________________________________________<br>
> users mailing list<br>
> users@rtems.org<br>
> <a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Va5M9b%2BjcpRnlfqEVSfDMH%2FhbVAstaeRD2t74nFeVYM%3D&reserved=0" data-auth="NotApplicable">
https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C925117adb0434c535d4108db823cc082%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246969685266444%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Va5M9b%2BjcpRnlfqEVSfDMH%2FhbVAstaeRD2t74nFeVYM%3D&reserved=0</a><br>
</div>
</span></font></div>
</body>
</html>