<div dir="ltr"><div dir="ltr"><br></div><br><div class="gmail_quote"><div dir="ltr" class="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="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="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://docs.rtems.org/branches/master/user/start/app.html" id="m_-1404272882279872858LPlnk538924" target="_blank">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="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="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="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="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" target="_blank">users@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/users" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/users</a></div></blockquote></div></div>