Ok, in order to eliminate the concerns that I had specified directories or parameter incorrectly, I restarted the 'Quick Start' (https://docs.rtems.org/branches/master/user/start/index.html) from scratch. The application build still fails (with the errors I saw before).
Below are all of the steps I did (I followed exactly along with the 'Quick Start' guide - you are welcome to verify everything I did). The errors (which are the same errors that my co-worker got) that occur with the application configure (https://docs.rtems.org/branches/master/user/start/app.html) are shown after all of the commands. One thing I noticed was that there's a difference in the 'waf' options between the BSP configure and the application configure. However, when I changed '--rtems=' to '--prefix=' in the failing case, the command still failed. Given that I followed the 'Quick Start' explicitly, I still think there's something wrong with the 'application' part of the 'quick start' (as verified by another co-worker). As such, I'll try anything that can be suggested. I'm also willing to help debug the 'non-git clone' mechanisms if that's where people want to start. In the meantime, things are going a little bit slow with trying to use RTEMS :-) . Thanks in advance. (NOTE - I had to use the git clone mechanism because the other mechanisms were not working) mkdir -p $HOME/quick-start/src cd $HOME/quick-start/src git clone git://git.rtems.org/rtems-source-builder.git rsb git clone git://git.rtems.org/rtems.git cd $HOME/quick-start/src/rsb/rtems ../source-builder/sb-set-builder --prefix=$HOME/quick-start/rtems/6 6/rtems-sparc (NOTE - I had to manually build because the 'RSB BSP Build' did not work) mkdir -p $HOME/quick-start/build/b-erc32 export PATH=$HOME/quick-start/rtems/6/bin:"$PATH" command -v sparc-rtems6-gcc && echo "found" || echo "not found" cd $HOME/quick-start/src/rtems echo "[sparc/erc32]" > config.ini echo "BUILD_TESTS = True" >> config.ini ./waf configure --prefix=$HOME/quick-start/rtems/6 cd $HOME/quick-start/src/rtems ./waf cd $HOME/quick-start/src/rtems ./waf install cd $HOME/quick-start/src/rtems rtems-test --rtems-bsp=erc32-sis build/sparc/erc32 mkdir -p $HOME/quick-start/app/hello cd $HOME/quick-start/app/hello curl https://waf.io/waf-2.0.19 > waf chmod +x waf git init git submodule add git://git.rtems.org/rtems_waf.git rtems_waf (Create the 3 specified application files) ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=sparc/erc32 The errors I get are: ~/quick-start/app/hello$ ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=sparc/erc32Setting top to : /home/bsterling/quick-start/app/hello Setting out to : /home/bsterling/quick-start/app/hello/build Traceback (most recent call last): File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 119, in waf_entry_point run_commands() File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 182, in run_commands ctx=run_command(cmd_name) File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", line 173, in run_command ctx.execute() File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", line 85, in execute super(ConfigurationContext,self).execute() File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 92, in execute self.recurse([os.path.dirname(g_module.root_path)]) File "/home/bsterling/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", line 133, in recurse user_function(self) File "/home/bsterling/quick-start/app/hello/wscript", line 26, in configure rtems.configure(conf, bsp_configure = bsp_configure) File "/home/bsterling/quick-start/app/hello/rtems_waf/rtems.py", line 190, in configure check_options(conf, File "/home/bsterling/quick-start/app/hello/rtems_waf/rtems.py", line 496, in check_options arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path, File "/home/bsterling/quick-start/app/hello/rtems_waf/rtems.py", line 851, in _check_arch_bsps installed = _find_installed_arch_bsps(config, path, archs, version) File "/home/bsterling/quick-start/app/hello/rtems_waf/rtems.py", line 823, in _find_installed_arch_bsps if _arch_from_arch_bsp(f[:-3]) in archs: File "/home/bsterling/quick-start/app/hello/rtems_waf/rtems.py", line 862, in _arch_from_arch_bsp rtems_field_index = next(i for i, field in enumerate(fields) if field.startswith('rtems')) StopIteration ________________________________ From: Brett Sterling <brett.sterl...@odysseysr.com> Sent: Wednesday, July 12, 2023 8:10 AM To: Gedare Bloom <ged...@rtems.org> Cc: j...@rtems.org <j...@rtems.org>; users@rtems.org <users@rtems.org> Subject: Re: Hello world fails 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. In the example, the "RTEMS tools suite prefix" is '$HOME/quick-start/rtems/6'. 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 :-) ). The reason I started this thread is because I'm not the only one having problems with https://docs.rtems.org/branches/master/user/start/app.html - a co-worker was also unable to follow these instructions (because it appears that the 'waf' execution is looking for the wrong directory). 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 🙂 Thanks to everyone for the help, and my apologies for the 'noob' errors. Brett ________________________________ From: Gedare Bloom <ged...@rtems.org> Sent: Tuesday, July 11, 2023 12:29 PM To: Brett Sterling <brett.sterl...@odysseysr.com> Cc: j...@rtems.org <j...@rtems.org>; users@rtems.org <users@rtems.org> Subject: Re: Hello world fails On Tue, Jul 11, 2023 at 9:54 AM Brett Sterling <brett.sterl...@odysseysr.com> wrote: > > Thanks for the response. However, I think I need a little clarification. > > In > 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, > it says: > > ./waf configure --rtems=$HOME/quick-start/rtems/6 --rtems-bsp=sparc/erc32 > > My prefix is: '$HOME/src/rtems', so I used ' ./waf configure > --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32'. > If your prefix is '${HOME}/src/rtems' then your rtems should be '${HOME}/src/rtems' There is no extra magic that appends "quick-start/rtems/6" to your prefix during the installation. Since you chose $HOME/src/rtems as your prefix, then everywhere that the original prefix of $HOME/quick-start/rtems/6 gets used you should replace with $HOME/src/rtems. > 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). > > As for "pointing to the share directory', I didn't do that - that was the > error message printed when I tried to configure. > > 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 :-) > > Thanks again, > Brett > > ________________________________ > From: Joel Sherrill <j...@rtems.org> > Sent: Tuesday, July 11, 2023 9:24 AM > To: Brett Sterling <brett.sterl...@odysseysr.com> > Cc: users@rtems.org <users@rtems.org> > Subject: Re: Hello world fails > > 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. > > > > On Tue, Jul 11, 2023 at 8:35 AM Brett Sterling <brett.sterl...@odysseysr.com> > wrote: > > I've been working my way through the 'Quick Start' and everything was going > pretty well until > 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. > > I get to the point where I'm supposed to 'configure', and I get the following: > > ~/src/rtems/quick-start/app/hello$ ./waf configure > --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32 > Setting top to : > /home/bsterling/src/rtems/quick-start/app/hello > Setting out to : > /home/bsterling/src/rtems/quick-start/app/hello/build > RTEMS path is not valid, > "/home/bsterling/src/rtems/quick-start/rtems/6/share/rtems6" not found. > (complete log in > /home/bsterling/src/rtems/quick-start/app/hello/build/config.log) > > > I have this in my handy scripts for building rtems-examples: > > CPU=powerpc > BSP=psim > ./waf configure --rtems=${HOME}/rtems-work/tools/6/bsp-install \ > --rtems-tools=${HOME}/rtems-work/tools/6 \ > --rtems-bsps=${CPU}/${BSP} > > That --rtems points to the --prefix directory you used when you built and > installed RTEMS. > This is from my install: > > $ pwd > /home/joel/rtems-work/tools/6/bsp-install/sparc-rtems6/leon3 > $ ls > lib make Makefile.inc > > --rtems-tools directory should have a bin/TARGET-gcc under it. > > --rtems-bsps looks OK > > I think you have just pointed to the wrong directories. It should be similar > to > how I build rtems-examples. > > --joel > > > > > I have verified that all of the source files contain only what is described > on that page. > > When I look in the rtems/6/share directory, I have the following: > > ~/src/rtems/quick-start/rtems/6/share$ ls -l > total 32 > drwxr-xr-x 3 bsterling osr 4096 Jul 10 14:39 doc > drwxr-xr-x 3 bsterling osr 4096 Jul 10 15:00 gcc-12.3.1 > drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:02 gdb > drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:01 iconv_data > drwxr-xr-x 2 bsterling osr 4096 Jul 10 15:02 info > drwxr-xr-x 2 bsterling osr 4096 Jul 10 14:43 locale > drwxr-xr-x 5 bsterling osr 4096 Jul 10 15:00 man > drwxr-xr-x 9 bsterling osr 4096 Jul 10 15:02 rtems > > > Normally you don't point all the way down to share directory > > > I tried renaming 'rtems' to 'rtems6', but that resulted in the following > errors: > > ~/src/rtems/quick-start/app/hello$ ./waf configure > --rtems=$HOME/src/rtems/quick-start/rtems/6 --rtems-bsp=sparc/erc32 > Setting top to : > /home/bsterling/src/rtems/quick-start/app/hello > Setting out to : > /home/bsterling/src/rtems/quick-start/app/hello/build > Traceback (most recent call last): > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", > line 119, in waf_entry_point > run_commands() > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", > line 182, in run_commands > ctx=run_command(cmd_name) > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Scripting.py", > line 173, in run_command > ctx.execute() > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Configure.py", > line 85, in execute > super(ConfigurationContext,self).execute() > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", > line 92, in execute > self.recurse([os.path.dirname(g_module.root_path)]) > File > "/home/bsterling/src/rtems/quick-start/app/hello/.waf3-2.0.19-1f3c580272b15a03d2566843c5fe872a/waflib/Context.py", > line 133, in recurse > user_function(self) > File "/home/bsterling/src/rtems/quick-start/app/hello/wscript", line 26, in > configure > rtems.configure(conf, bsp_configure = bsp_configure) > File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", > line 190, in configure > check_options(conf, > File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", > line 496, in check_options > arch_bsps = _check_arch_bsps(rtems_bsps, rtems_config, rtems_path, > File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", > line 851, in _check_arch_bsps > installed = _find_installed_arch_bsps(config, path, archs, version) > File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", > line 823, in _find_installed_arch_bsps > if _arch_from_arch_bsp(f[:-3]) in archs: > File "/home/bsterling/src/rtems/quick-start/app/hello/rtems_waf/rtems.py", > line 862, in _arch_from_arch_bsp > rtems_field_index = next(i for i, field in enumerate(fields) if > field.startswith('rtems')) > StopIteration > > > 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. > > Thanks in advance for any help! > > 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. > _______________________________________________ > users mailing list > users@rtems.org > 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 > > _______________________________________________ > users mailing list > users@rtems.org > 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
_______________________________________________ users mailing list users@rtems.org http://lists.rtems.org/mailman/listinfo/users