[PATCH] gcc-2.95 make install prefix=... broken with multilibs (was: Re: Makefiles advice needed...)

Franz Sirl Franz.Sirl-kernel@lauterbach.com
Fri Jul 16 03:31:00 GMT 1999


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.



More information about the Gcc-patches mailing list