"Source directory already configured" error when running configure.
Joel Sherrill
joel at rtems.org
Wed Mar 16 21:46:08 UTC 2016
On Wed, Mar 16, 2016 at 11:16 AM, Travis Wheatley <
travis.wheatley at emergentspace.com> wrote:
> 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.
>
>
RTEMS is not configured in the source tree. It sounds like you did that.
What will work is:
mkdir b-BSP
cd b-BSP
../rtems/configure --XXXX ....
make
Then the build tree can just be removed as needed. Also you can run
bootstrap from
inside your BSP directory.
One time you will need to run it in libbsp/CPU so your BSP is in the list
of BSPs
in acinclude.m4.
What architecture and board?
> 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.
>
>
> --- Begin Included Text ---
>
> configure: configuring in powerpc-rtems4.12/c
> 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'
> checking for gmake... no
> checking for make... make
> checking for RTEMS Version... 4.11.99.0
> checking build system type... x86_64-pc-linux-gnu
> checking host system type... powerpc-unknown-rtems4.12
> checking target system type... powerpc-unknown-rtems4.12
> checking rtems target cpu... powerpc
> checking for a BSD-compatible install... /usr/bin/install -c
> checking whether build environment is sane... yes
> checking for powerpc-rtems4.12-strip... powerpc-rtems4.12-strip
> checking for a thread-safe mkdir -p... /bin/mkdir -p
> checking for gawk... gawk
> checking whether make sets $(MAKE)... yes
> configure: error: source directory already configured; run "make
> distclean" there first
> configure: error: /bin/sh '../../../rtems-git/c/configure' failed for c
>
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20160316/286dcd6b/attachment-0002.html>
More information about the users
mailing list