<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 16, 2016 at 11:16 AM, Travis Wheatley <span dir="ltr"><<a href="mailto:travis.wheatley@emergentspace.com" target="_blank">travis.wheatley@emergentspace.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div style="word-wrap:break-word">
I have changed some compilation parameters in a bsp .cfg file in the make/custom directory. Now I am attempting to run configure to propagate those changes through the files used to build test examples. However, when I run configure I am getting an error indication
 that there is a source directory already configured. The error message suggests that I should run "make distclean" from the offending location. However, I have not been successful in figuring out where that location might be.
<div><br></div></div></blockquote><div><br></div><div>RTEMS is not configured in the source tree. It sounds like you did that. What will work is:</div><div><br></div><div>mkdir b-BSP</div><div>cd b-BSP</div><div>../rtems/configure --XXXX ....</div><div>make</div><div><br></div><div>Then the build tree can just be removed as needed.  Also you can run bootstrap from</div><div>inside your BSP directory.</div><div><br></div><div>One time you will need to run it in libbsp/CPU so your BSP is in the list of BSPs</div><div>in acinclude.m4.</div><div><br></div><div>What architecture and board? </div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word"><div>
</div>
<div>I have, of course, manually traversed my build tree and run "make distclean" in pretty much every directory along the way without success. Hoping y'all might be able to clue me in as to the offending directory. Following is the last stanza of the failed
 configure operation.</div>
<div><br>
<div><br>
</div>
<div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
--- Begin Included Text ---</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
<br>
</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
configure: configuring in powerpc-rtems4.12/c</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
configure: running /bin/sh '../../../rtems-git/c/configure' '--prefix=/home/firefly/development/rtems/bsps/4.12' '--host=powerpc-rtems4.12' '--build=x86_64-pc-linux-gnu' '--target=powerpc-rtems4.12'  '--enable-tests=samples' '--enable-networking' '--enable-posix'
 '--with-target-subdir=powerpc-rtems4.12' '--exec-prefix=/home/firefly/development/rtems/bsps/4.12/powerpc-rtems4.12' '--includedir=/home/firefly/development/rtems/bsps/4.12/powerpc-rtems4.12/include'  '--cache-file=/dev/null' '--srcdir=../../../rtems-git/c'</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for gmake... no</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for make... make</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for RTEMS Version... 4.11.99.0</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking build system type... x86_64-pc-linux-gnu</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking host system type... powerpc-unknown-rtems4.12</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking target system type... powerpc-unknown-rtems4.12</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking rtems target cpu... powerpc</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for a BSD-compatible install... /usr/bin/install -c</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking whether build environment is sane... yes</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for powerpc-rtems4.12-strip... powerpc-rtems4.12-strip</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for a thread-safe mkdir -p... /bin/mkdir -p</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking for gawk... gawk</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
checking whether make sets $(MAKE)... yes</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
configure: error: source directory already configured; run "make distclean" there first</div>
<div style="margin-top:0px;margin-right:0px;margin-bottom:0px;margin-left:0px;font:normal normal normal 14px/normal Helvetica">
configure: error: /bin/sh '../../../rtems-git/c/configure' failed for c</div>
</div>
</div>
</div>

<br>_______________________________________________<br>
users mailing list<br>
<a href="mailto:users@rtems.org">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></blockquote></div><br></div></div>