This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [PATCH] gcc-2.95 make install prefix=... broken with multilibs (was: Re: Makefiles advice needed...)
- To: law at cygnus dot com
- Subject: Re: [PATCH] gcc-2.95 make install prefix=... broken with multilibs (was: Re: Makefiles advice needed...)
- From: Franz Sirl <Franz dot Sirl-kernel at lauterbach dot com>
- Date: Fri, 16 Jul 1999 12:31:06 +0200
- Cc: Daniel Jacobowitz <drow at false dot org>,egcs-patches at egcs dot cygnus dot com
- References: <Your message of Thu, 15 Jul 1999 14:10:27 EDT. <19990715141027.A5344@drow.res.cmu.edu>
At 02:04 16.07.99 , Jeffrey A Law wrote:
> >
> > The build directory was 100% clean when I began. I built like this:
> >
> > mkdir builddir
> > cd builddir
> > CC=cc ../configure -v --prefix=/usr --infodir=/usr/share/info \
> > --mandir=/usr/share/man --enable-shared --with-fast-fixincludes \
> > --enable-java-gc=boehm --enable-haifa --enable-threads \
> > powerpc-debian-linux-gnu
>Do not build in a subdirectory of the source directory. Build in a completely
>separate directory like the install documentation recommends.
This problem happens when building outside of the sourcetree too. It didn't
happen to me, cause due to some unknown reason I owned the /usr/lib/nof
directory on the building machine I use and so I had the right to install
in there :-(.
You can easily reproduce this problem with the following sequence on any
machine where libiberty and friends are multilibbed:
su
chown -R root:root /my_prefix/lib
exit
../gcc-2.95/configure --prefix=/my_prefix
make bootstrap
mkdir -p /var/tmp/gcc-root/my_prefix
make prefix=/var/tmp/gcc-root/my_prefix install
This should show you the problem.
Franz.