<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">
Thanks for the response. However, I think I need a little clarification.</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">
In <a href="https://docs.rtems.org/branches/master/user/start/app.html" id="LPlnk693027">https://docs.rtems.org/branches/master/user/start/app.html</a>, it says:</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 ContentPasted1">
./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=sparc/erc32<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
My prefix is: '$HOME/src/rtems', so I used ' ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32'.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
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).</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
As for "pointing to the share directory', I didn't do that - that was the error message printed when I tried to configure.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
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 :-)</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
Thanks again,</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);" class="elementToProof ContentPasted0 ContentPasted1 ContentPasted2">
Brett</div>
<div id="appendonsend"></div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<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> Joel Sherrill <joel@rtems.org><br>
<b>Sent:</b> Tuesday, July 11, 2023 9:24 AM<br>
<b>To:</b> Brett Sterling <brett.sterling@odysseysr.com><br>
<b>Cc:</b> users@rtems.org <users@rtems.org><br>
<b>Subject:</b> Re: Hello world fails</font>
<div> </div>
</div>
<div>
<div id="x_footer" style="width: 98%; border: 1px solid rgb(156, 101, 0); padding: 2pt; background-color: rgb(255, 235, 156);">
<font face="Calibri,sans-serif" size="2"><font style="color: rgb(156, 101, 0);">CAUTION:</font><font style="color: black;"> 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.</font></font></div>
<font face="Calibri,sans-serif" size="2"><br>
</font>
<div>
<div dir="ltr">
<div dir="ltr"><br>
</div>
<br>
<div class="x_gmail_quote">
<div dir="ltr" class="x_gmail_attr">On Tue, Jul 11, 2023 at 8:35 AM Brett Sterling <<a href="mailto:brett.sterling@odysseysr.com">brett.sterling@odysseysr.com</a>> wrote:<br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-1404272882279872858">
<div dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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%7C9a9d0447d98344cc537b08db8222f881%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246858946228580%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=Dtgvw78TAZm5ncZnXGqqzGYs6jVioD%2Bn441t34HP%2F%2Bw%3D&reserved=0" data-auth="NotApplicable" id="x_m_-1404272882279872858LPlnk538924">https://docs.rtems.org/branches/master/user/start/app.html</a>.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I get to the point where I'm supposed to 'configure', and I get the following:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top:0px; margin-bottom:0px">
<div>~/src/rtems/quick-start/app/hello$ ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32</div>
<div>Setting top to : /home/bsterling/src/rtems/quick-start/app/hello
</div>
<div>Setting out to : /home/bsterling/src/rtems/quick-start/app/hello/build
</div>
<div>RTEMS path is not valid, "/home/bsterling/src/rtems/quick-start/rtems/6/share/rtems6" not found.</div>
<div>(complete log in /home/bsterling/src/rtems/quick-start/app/hello/build/config.log)</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div> I have this in my handy scripts for building rtems-examples:</div>
<div><br>
</div>
<div>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>
</div>
<div><br>
</div>
<div>That --rtems points to the --prefix directory you used when you built and installed RTEMS. </div>
<div>This is from my install:</div>
<div><br>
</div>
<div>$ pwd<br>
/home/joel/rtems-work/tools/6/bsp-install/sparc-rtems6/leon3<br>
$ ls<br>
lib make Makefile.inc<br>
</div>
<div><br>
</div>
<div>--rtems-tools directory should have a bin/TARGET-gcc under it.</div>
<div><br>
</div>
<div>--rtems-bsps looks OK</div>
<div><br>
</div>
<div>I think you have just pointed to the wrong directories. It should be similar to </div>
<div>how I build rtems-examples.</div>
<div><br>
</div>
<div>--joel</div>
<div><br>
</div>
<div><br>
</div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-1404272882279872858">
<div dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top:0px; margin-bottom:0px"></blockquote>
<div><br>
</div>
<div><br>
</div>
I have verified that all of the source files contain only what is described on that page.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
When I look in the rtems/6/share directory, I have the following:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top:0px; margin-bottom:0px">~/src/rtems/quick-start/rtems/6/share$ ls -l
<div>total 32</div>
<div>drwxr-xr-x 3 bsterling osr 4096 Jul 10 14:39 doc</div>
<div>drwxr-xr-x 3 bsterling osr 4096 Jul 10 15:00 gcc-12.3.1</div>
<div>drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:02 gdb</div>
<div>drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:01 iconv_data</div>
<div>drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:02 info</div>
<div>drwxr-xr-x 2 bsterling osr 4096 Jul 10 14:43 locale</div>
<div>drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:00 man</div>
<div>drwxr-xr-x 9 bsterling osr 4096 Jul 10 15:02 rtems</div>
</blockquote>
</div>
</div>
</div>
</blockquote>
<div><br>
</div>
<div>Normally you don't point all the way down to share directory </div>
<blockquote class="x_gmail_quote" style="margin:0px 0px 0px 0.8ex; border-left:1px solid rgb(204,204,204); padding-left:1ex">
<div class="x_msg-1404272882279872858">
<div dir="ltr">
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top:0px; margin-bottom:0px"></blockquote>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
I tried renaming 'rtems' to 'rtems6', but that resulted in the following errors:</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<blockquote style="margin-top:0px; margin-bottom:0px">~/src/rtems/quick-start/app/hello$ ./waf configure --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32
<div>Setting top to : /home/bsterling/src/rtems/quick-start/app/hello
</div>
<div>Setting out to : /home/bsterling/src/rtems/quick-start/app/hello/build
</div>
<div>Traceback (most recent call last):</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 119, in waf_entry_point</div>
<div> run_commands()</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 182, in run_commands</div>
<div> ctx=run_command(cmd_name)</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 173, in run_command</div>
<div> ctx.execute()</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 85, in execute</div>
<div> super(ConfigurationContext,self).execute()</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 92, in execute</div>
<div> self.recurse([os.path.dirname(g_module.root_path)])</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 133, in recurse</div>
<div> user_function(self)</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/wscript", line 26, in configure</div>
<div> rtems.configure(conf, bsp_configure = bsp_configure)</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 190, in configure</div>
<div> check_options(conf,</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 496, in check_options</div>
<div> arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path,</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 851, in _check_arch_bsps</div>
<div> installed = _find_installed_arch_bsps(config, path, archs, version)</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 823, in _find_installed_arch_bsps</div>
<div> if _arch_from_arch_bsp(f[:-3]) in archs:</div>
<div> File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", line 862, in _arch_from_arch_bsp</div>
<div> rtems_field_index = next(i for i, field in enumerate(fields) if field.startswith('rtems'))</div>
<div>StopIteration</div>
</blockquote>
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
Thanks in advance for any help!</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
<br>
</div>
<div style="font-family: Calibri, Arial, Helvetica, sans-serif; font-size: 12pt; color: rgb(0, 0, 0);">
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.</div>
</div>
_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">users@rtems.org</a><br>
<a href="https://usg02.safelinks.protection.office365.us/?url=http%3A%2F%2Flists.rtems.org%2Fmailman%2Flistinfo%2Fusers&data=05%7C01%7C%7C9a9d0447d98344cc537b08db8222f881%7Cd761ffacf6be45b88f6f288a59577095%7C0%7C0%7C638246858946228580%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=2RYIKaz6I6sGlEaCbrzvemW%2Bmqo65q8%2BVzKPlS5b1kQ%3D&reserved=0" data-auth="NotApplicable">http://lists.rtems.org/mailman/listinfo/users</a></div>
</blockquote>
</div>
</div>
</div>
</div>
</body>
</html>