This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: cross-compiler build failure, egcs-19990502
- To: law at cygnus dot com
- Subject: Re: cross-compiler build failure, egcs-19990502
- From: Stephen L Moshier <moshier at mediaone dot net>
- Date: Tue, 18 May 1999 12:48:45 -0400 (EDT)
- cc: egcs-patches at egcs dot cygnus dot com, Alexandre Oliva <oliva at dcc dot unicamp dot br>
- Reply-To: moshier at mediaone dot net
> The way to tell the compiler where your target libraries are is with the
> --with-headers=<dir> option. Similarly you use --with-libs=<dir to specify
> the location of target libraries.
That stimulates the following, different bug. The build is not run by
superuser so it is not allowed to write in /usr/local/lib/gcc-lib/ .
The new compiler has not been built yet so of course ~/egcs-2.93.21
does not exist.
ccdir/configure --srcdir=ccdir --host=sparc-sun-solaris2.6 \
--target=powerpc-linux \
--with-headers=/usr/local/powerpc-linux/include \
--with-libs=/usr/local/powerpc-linux/lib
...
gmake
...
chmod a+r include/syslimits.h
if [ "/usr/local/powerpc-linux/sys-include" = "/usr/local/powerpc-linux/sys-include" ] \
&& [ -d /usr/local/powerpc-linux/sys-include ]; then \
if [ -d /usr/local/lib ] ; then true ; else mkdir /usr/local/lib ; fi; \
if [ -d /usr/local/lib/gcc-lib ] ; then true ; else mkdir /usr/local/lib/gcc-lib; fi; \
if [ -d /usr/local/lib/gcc-lib/powerpc-linux ] ; then true ; else mkdir /usr/local/lib/gcc-lib/powerpc-linux ; fi; \
if [ -d /usr/local/lib/gcc-lib/powerpc-linux/egcs-2.93.21 ] ; then true ; else mkdir /usr/local/lib/gcc-lib/powerpc-linux/egcs-2.93.21 ; fi; \
else true; fi
mkdir: Failed to make directory "/usr/local/lib/gcc-lib/powerpc-linux/egcs-2.93.21"; Permission denied
gmake[1]: *** [stmp-fixinc] Error 2
gmake[1]: Leaving directory `/www/arc/egcs-build/gcc'
Giving the user greater flexibility sounds like a good idea, but there
is no documentation of --with-headers in NEWS or *.texi . Not to say
that I would have looked for it anyway. Why is the default (omitting
with-headers) behavior now to fail instead of to do whatever it used to
do? Am I the only one who will write stupid email letters to complain
about it?