This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: cross-compiler build failure, egcs-19990502



> 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?





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]