<div dir="ltr">I have it compiled now. I went back to the original instructions and did a rebuild of rtems with the install. I then set RTEMS_MAKEFILE_PATH <div><div><b>export RTEMS_MAKEFILE_PATH=/opt/rtems-4.11/arm-rtems4.11/beagleboneblack/</b></div></div><div><br></div><div>and then the make of the app worked.</div><div><br></div><div>I now have something I can work </div></div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 11:27 AM, Angelo Fraietta <span dir="ltr"><<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Thanks - Needed to be first.<div><br></div><div>However, I modified command to do</div><div>CONSOLE_POLLED=1 ../rtems-src/configure --target=arm-rtems4.11 --enable-rtemsbsp=beagleboneblack --enable-tests --prefix=/opt/rtems-4.11<br></div><div><br></div><div>I had to do </div><div>make </div><div>and then </div><div>make install</div><div><br></div><div>during the install I got</div><div><div> /bin/mkdir -p '/opt/rtems-4.11/arm-rtems4.11/beagleboneblack/lib'</div><div> /usr/bin/install -c -m 644  libnfs.a '/opt/rtems-4.11/arm-rtems4.11/beagleboneblack/lib'</div><div> ( cd '/opt/rtems-4.11/arm-rtems4.11/beagleboneblack/lib' && arm-rtems4.11-ranlib libnfs.a )</div><div>/bin/bash: line 5: arm-rtems4.11-ranlib: command not found</div><div>make[6]: *** [install-project_libLIBRARIES] Error 127</div><div>make[6]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/cpukit/libfs/src/nfsclie                                  nt'</div><div>make[5]: *** [install-am] Error 2</div><div>make[5]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/cpukit/libfs/src/nfsclie                                  nt'</div><div>make[4]: *** [install-recursive] Error 1</div><div>make[4]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/cpukit/libfs'</div><div>make[3]: *** [install-recursive] Error 1</div><div>make[3]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/cpukit'</div><div>make[2]: *** [install-recursive] Error 1</div><div>make[2]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack'</div><div>make[1]: *** [install-recursive] Error 1</div><div>make[1]: Leaving directory `/home/angelo/development/rtems/b-beagle/arm-rtems4.11/c'</div><div>make: *** [install-recursive] Error 1</div></div><div><br></div><div>however, I ran arm-rtems4.11-ranlib from commandline and it was in the path</div><div><br></div><div><div>angelo@debian:~/development/rtems/b-beagle$ arm-rtems4.11-ranlib</div><div>Usage: arm-rtems4.11-ranlib [options] archive</div><div> Generate an index to speed access to archives</div><div> The options are:</div><div>  @<file>                      Read options from <file></div><div>  -D                           Use zero for symbol map timestamp (default)</div><div>  -U                           Use an actual symbol map timestamp</div><div>  -t                           Update the archive's symbol map timestamp</div><div>  -h --help                    Print this help message</div><div>  -v --version                 Print version information</div><div>arm-rtems4.11-ranlib: supported targets: elf32-littlearm elf32-bigarm elf32-little elf32-big srec symbolsrec verilog tekhex binary ihex</div><div>angelo@debian:~/development/rtems/b-beagle$</div></div><div><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jul 2, 2015 at 10:09 AM, Ben Gras <span dir="ltr"><<a href="mailto:beng@shrike-systems.com" target="_blank">beng@shrike-systems.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That is likely a $PATH problem. Make sure your RTEMS prefix/bin is<br>
first in your $PATH when you do this.<br>
<br>
Good luck :)<br>
<br>
<br>
On Thu, Jul 2, 2015 at 1:51 AM, Angelo Fraietta<br>
<div><div><<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>> wrote:<br>
> I thought I would try and rebuild sources again, however, I got an error<br>
> that autoconf version 2.69 or greater was required when I tried to<br>
> bootstrap.  I don't know why it all passed last time. I am updating my<br>
> system and after that will try again<br>
><br>
> On Thu, Jul 2, 2015 at 9:25 AM, Angelo Fraietta<br>
> <<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>> wrote:<br>
>><br>
>> I followed Ben's tutorial.<br>
>><br>
>>  % ../source-builder/sb-set-builder --log=beagle.txt<br>
>> --prefix=$HOME/development/rtems/4.11 devel/beagle.bset<br>
>><br>
>> and<br>
>><br>
>>  % mkdir b-beagle ; cd b-beagle<br>
>>     % CONSOLE_POLLED=1 ../rtems-src/configure --target=arm-rtems4.11<br>
>> --enable-rtemsbsp="beagleboneblack beagleboardxm" --enable-tests<br>
>>     % make<br>
>><br>
>><br>
>> I have done a grep for that file and it comes up like this<br>
>><br>
>> angelo@debian:~/development$ find -name leaf.cfg<br>
>> ./rtems/b-beagle/arm-rtems4.11/c/beagleboardxm/make/leaf.cfg<br>
>> ./rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/leaf.cfg<br>
>> ./rtems/rtems-src/make/leaf.cfg<br>
>> ./rtems/rtems-src/c/src/make/leaf.cfg<br>
>><br>
>> So I decided to do a symlink<br>
>> root@debian:/opt# ln -s<br>
>> /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/<br>
>> beagleboneblack/ /opt/rtems-4.11<br>
>><br>
>> Now when I go make, I get the error<br>
>> make: *** No rule to make target `/init.o', needed by `/gpio.exe'.  Stop.<br>
>><br>
>> So it seems that ARCH is not being defined somewhere that it needs to be.<br>
>> So making the symlink is not the solution.<br>
>> Also, looking at RTEMS doc,<br>
>> <a href="https://docs.rtems.org/doc-current/share/rtems/pdf/started.pdf" rel="noreferrer" target="_blank">https://docs.rtems.org/doc-current/share/rtems/pdf/started.pdf</a>, it said it<br>
>> was supposed to install to /opt/rtems-4.11 by default, which it did not.<br>
>><br>
>><br>
>> On Thu, Jul 2, 2015 at 6:58 AM, Diego Sanz <<a href="mailto:dshernan80@gmail.com" target="_blank">dshernan80@gmail.com</a>> wrote:<br>
>>><br>
>>> One question, this Makefile has been made by you?, or you has used<br>
>>> another one from an example of building applications?<br>
>>><br>
>>> What is strange from my point of view is that:<br>
>>><br>
>>> your "RTEMS_MAKEFILE_PATH:<br>
>>> /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/"<br>
>>> includes the last make folder try with:<br>
>>> RTEMS_MAKEFILE_PATH:<br>
>>> /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack, I<br>
>>> suppose that that this is where you have installed your RTEMS built for<br>
>>> architecture arm-rtems4.11, and board beagleboneblack...<br>
>>><br>
>>> another problem is that you have as a target not found<br>
>>> /opt/rtems-4.11/make/leaf.cfg, and then is because you have RTEMS installed<br>
>>> in other place, it looks you have installed here:<br>
>>> /home/angelo/development/rtems/b-beagle/arm-rtems4.11.<br>
>>><br>
>>> Then<br>
>>><br>
>>> RTEMS_MAKEFILE_PATH should be the place where RTEMS (after be compiled)<br>
>>> is installed for your architecture arm and beagleboneblack<br>
>>><br>
>>> Hope this give you some ide, but if you continue with the problem, take<br>
>>> as example the example-v2 from the RTEMs repo, to make you a better idea<br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>><br>
>>> 2015-06-30 6:45 GMT+02:00 Angelo Fraietta<br>
>>> <<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>>:<br>
>>>><br>
>>>> To add a bit more light on what is happening, I added some echo in make<br>
>>>> to find out what the variables are being evaluated as. This is what I get<br>
>>>><br>
>>>><br>
>>>> RTEMS_ROOT: /opt/rtems-4.11<br>
>>>> RTEMS_CUSTOM: /opt/rtems-4.11/make/custom/beagleboneblack.cfg<br>
>>>> RTEMS_MAKEFILE_PATH:<br>
>>>> /home/angelo/development/rtems/b-beagle/arm-rtems4.11/c/beagleboneblack/make/<br>
>>>><br>
>>>><br>
>>>> On Mon, Jun 29, 2015 at 2:18 PM, Angelo Fraietta<br>
>>>> <<a href="mailto:newsgroups@smartcontroller.com.au" target="_blank">newsgroups@smartcontroller.com.au</a>> wrote:<br>
>>>>><br>
>>>>> Greetings<br>
>>>>><br>
>>>>> I have been able to successfully able to build and run RTEMS samples<br>
>>>>> using Ben's tutorial at<br>
>>>>><br>
>>>>> <a href="http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html" rel="noreferrer" target="_blank">http://www.shrike-systems.com/beagleboard-xm-beaglebone-black-and-everything-else-rtems-on-the-beagles.html</a><br>
>>>>><br>
>>>>> with a few mods and am able to run using tftp<br>
>>>>><br>
>>>>> However, I am having difficulty using my own make file to build an app.<br>
>>>>><br>
>>>>> I have added RTEMS_MAKEFILE_PATH to my environment and added<br>
>>>>><br>
>>>>> PATH=$PATH:/home/angelo/development/rtems/4.11/bin<br>
>>>>><br>
>>>>><br>
>>>>> When I run my makefile, I get an error<br>
>>>>><br>
>>>>> Makefile:41: /opt/rtems-4.11/make/leaf.cfg: No such file or directory<br>
>>>>><br>
>>>>> make: *** No rule to make target `/opt/rtems-4.11/make/leaf.cfg'.<br>
>>>>> Stop.<br>
>>>>><br>
>>>>> It looks to me like RTEMS_ROOT is not being set properly (I could be<br>
>>>>> wrong)<br>
>>>>><br>
>>>>> Find below makefile contents<br>
>>>>><br>
>>>>> EXEC=gpio.exe<br>
>>>>> # C source names, if any, go here -- minus the .c<br>
>>>>> C_PIECES= init<br>
>>>>> C_FILES=$(C_PIECES:%=%.c)<br>
>>>>> C_O_FILES=$(C_PIECES:%=${ARCH}/%.o)<br>
>>>>><br>
>>>>> # C++ source names, if any, go here -- minus the .cc<br>
>>>>> CC_PIECES=<br>
>>>>><br>
>>>>> CC_FILES=$(CC_PIECES:%=%.cpp)<br>
>>>>> CC_O_FILES=$(CC_PIECES:%=${ARCH}/%.o)<br>
>>>>><br>
>>>>> H_FILES=<br>
>>>>><br>
>>>>> # Assembly source names, if any, go here -- minus the .S<br>
>>>>> S_PIECES=<br>
>>>>> S_FILES=$(S_PIECES:%=%.S)<br>
>>>>> S_O_FILES=$(S_FILES:%.S=${ARCH}/%.o)<br>
>>>>><br>
>>>>> SRCS=$(C_FILES) $(CC_FILES) $(H_FILES) $(S_FILES)<br>
>>>>> OBJS=$(C_O_FILES) $(CC_O_FILES) $(S_O_FILES)<br>
>>>>><br>
>>>>> PGMS=${ARCH}/$(EXEC) #${ARCH}/xxx-another-one<br>
>>>>><br>
>>>>> # List of RTEMS managers to be included in the application goes here.<br>
>>>>> # Use:<br>
>>>>> #     MANAGERS=all<br>
>>>>> # to include all RTEMS managers in the application.<br>
>>>>> MANAGERS=io event message rate_monotonic semaphore timer<br>
>>>>><br>
>>>>> include $(RTEMS_MAKEFILE_PATH)/Makefile.inc<br>
>>>>><br>
>>>>> include $(RTEMS_CUSTOM)<br>
>>>>> include $(RTEMS_ROOT)/make/leaf.cfg<br>
>>>>><br>
>>>>> #<br>
>>>>> # (OPTIONAL) Add local stuff here using +=<br>
>>>>> #<br>
>>>>><br>
>>>>> DEFINES  +=<br>
>>>>> CPPFLAGS +=<br>
>>>>><br>
>>>>> XCPPFLAGS +=<br>
>>>>> CFLAGS   +=<br>
>>>>><br>
>>>>> #<br>
>>>>> # CFLAGS_DEBUG_V are used when the `make debug' target is built.<br>
>>>>> # To link your application with the non-optimized RTEMS routines,<br>
>>>>> # uncomment the following line:<br>
>>>>> # CFLAGS_DEBUG_V += -qrtems_debug<br>
>>>>> #<br>
>>>>><br>
>>>>> LD_PATHS  +=  #xxx-your-EXTRA-library-paths-go-here, if any<br>
>>>>><br>
>>>>> LD_LIBS   +=<br>
>>>>> # Add the following code when attempting to strip down in size<br>
>>>>> #LDFLAGS   += -Wl,'-gc-sections'<br>
>>>>><br>
>>>>> #<br>
>>>>> # Add your list of files to delete here.  The config files<br>
>>>>> #  already know how to delete some stuff, so you may want<br>
>>>>> #  to just run 'make clean' first to see what gets missed.<br>
>>>>> #  'make clobber' already includes 'make clean'<br>
>>>>> #<br>
>>>>><br>
>>>>> CLEAN_ADDITIONS +=<br>
>>>>> CLOBBER_ADDITIONS +=<br>
>>>>><br>
>>>>> all: ${ARCH} $(SRCS) $(PGMS)<br>
>>>>><br>
>>>>> ${ARCH}/$(EXEC): ${OBJS} ${LINK_FILES}<br>
>>>>> $(make-cxx-exe)<br>
>>>>><br>
>>>>> # Install the program(s), appending _g or _p as appropriate.<br>
>>>>> # for include files, just use $(INSTALL_CHANGE)<br>
>>>>> install:  all<br>
>>>>> $(INSTALL_VARIANT) -m 555 ${PGMS} ${PROJECT_RELEASE}/bin<br>
>>>>><br>
>>>>><br>
>>>>> Any ideas?<br>
>>>>><br>
>>>>> Thanks<br>
>>>><br>
>>>><br>
>>>><br>
>>>> _______________________________________________<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><br>
>>><br>
>>><br>
>><br>
><br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>