public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
* Building gcc-8.3.0 into a separate directory from the sources but failed
@ 2020-11-12  0:46 Jun Leng
  2020-11-12  3:26 ` Jim Wilson
  2020-11-12  7:44 ` Kai Ruottu
  0 siblings, 2 replies; 3+ messages in thread
From: Jun Leng @ 2020-11-12  0:46 UTC (permalink / raw)
  To: gcc-help

Dear all, I built gcc-8.3.0 into a separate directory from the sources but still failed.

My commands are as follows:
1 cd ..
2 mkdir gcc1
3 cd gcc1
4 ../gcc-8.3.0/configure --prefix=/public/home/lengjun/softwares/gcc1 --with-gmp=/public/home/lengjun/softwares_install_leng/gmp-6.1.0 --with-mpfr=/public/home/lengjun/softwares_install_leng/mpfr-3.1.4 --with-mpc=/public/home/lengjun/softwares_install_leng/mpc-1.0.3  --with-isl=/public/home/lengjun/softwares_install_leng/isl-0.18 --enable-bootstrap --enable-shared --enable-threads=posix --enable-checking=release --with-system-zlib --enable-__cxa_atexit  --disable-libunwind-exceptions --enable-gnu-unique-object --enable-linker-build-id --with-linker-hash-style=gnu --enable-languages=c,c++,objc,obj-c++,fortran,ada,go,lto --enable-plugin --enable-initfini-array --disable-libgcj --enable-gnu-indirect-function --with-tune=generic --with-arch_32=x86-64 --build=x86_64-redhat-linux --disable-multilib

5 make
The error is:
configure: error: source directory already configured; run "make distclean" there first

Then I ran make distclean in the path gcc1 and it showed that:
...
make: [local-distclean] Error 1 (ignored)
rmdir texinfo/makeinfo texinfo/po texinfo/util 2>/dev/null
make: [local-distclean] Error 1 (ignored)
rmdir fastjar gcc gnattools gotools libcc1 libiberty 2>/dev/null
make: [local-distclean] Error 1 (ignored)
rmdir texinfo zlib 2>/dev/null
make: [local-distclean] Error 1 (ignored)
find . -name config.cache -exec rm -f {} \; \; 2>/dev/null
make: [local-distclean] Error 1 (ignored)

Then I create another new directory and it still showed the error above.

Can anybody help me?

Best regards,

Jun

Attached is relevant information.




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building gcc-8.3.0 into a separate directory from the sources but failed
  2020-11-12  0:46 Building gcc-8.3.0 into a separate directory from the sources but failed Jun Leng
@ 2020-11-12  3:26 ` Jim Wilson
  2020-11-12  7:44 ` Kai Ruottu
  1 sibling, 0 replies; 3+ messages in thread
From: Jim Wilson @ 2020-11-12  3:26 UTC (permalink / raw)
  To: Jun Leng; +Cc: gcc-help

On Wed, Nov 11, 2020 at 4:46 PM Jun Leng via Gcc-help <gcc-help@gcc.gnu.org>
wrote:

> 5 make
> The error is:
> configure: error: source directory already configured; run "make
> distclean" there first
>

If you used git to create the source tree, then using git to clean it is
probably easiest.  Maybe something like
  git clean -f -x -d
assuming that you don't have anything in there that you want to keep.  You
need to get the source tree to the state where git status --ignored shows
no changes.

Or even simpler is to just rm -rf your existing tree and git clone a new
one, and then be careful not to run configure in the source tree again.

I doubt that using make distclean is going to work.

Jim

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Building gcc-8.3.0 into a separate directory from the sources but failed
  2020-11-12  0:46 Building gcc-8.3.0 into a separate directory from the sources but failed Jun Leng
  2020-11-12  3:26 ` Jim Wilson
@ 2020-11-12  7:44 ` Kai Ruottu
  1 sibling, 0 replies; 3+ messages in thread
From: Kai Ruottu @ 2020-11-12  7:44 UTC (permalink / raw)
  To: Jun Leng, gcc-help

Jun Leng via Gcc-help kirjoitti 12.11.2020 klo 2.46:
> Dear all, I built gcc-8.3.0 into a separate directory from the sources but still failed.
>
> My commands are as follows:
> 1 cd ..
> 2 mkdir gcc1
> 3 cd gcc1
> 4 ../gcc-8.3.0/configure --prefix=/public/home/lengjun/softwares/gcc1
> <snip>
> 5 make
> The error is:
> configure: error: source directory already configured; run "make distclean" there first
Maybe you did something as weird as using the build directory as the 
becoming install
directory?  So '/public/home/lengjun/softwares/gcc1' was your build 
directory?

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-11-12  7:44 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-11-12  0:46 Building gcc-8.3.0 into a separate directory from the sources but failed Jun Leng
2020-11-12  3:26 ` Jim Wilson
2020-11-12  7:44 ` Kai Ruottu

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).