This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
Build error for gcc on Solaris
- To: gcc-bugs at gcc dot gnu dot org
- Subject: Build error for gcc on Solaris
- From: Chris Croughton <chris at keris dot demon dot co dot uk>
- Date: Mon, 13 Mar 2000 18:40:16 +0000 (GMT)
gcc: 2.95.2
O/S: SunOS eve 5.6 Generic_105181-03 sun4u sparc SUNW,Ultra-1
make: version in /usr/ccb/bin (distributed with Solaris, I think)
Commands:
cd gccobj
../gcc-2.95.2/configure
make
Result:
When trying to make in directory texinfo/makeinfo, make exits with:
make: Fatal error: Don't know how to make target `../lib/system.h'
This is because the dependency lines do not contain $(srcdir) where the
include files are actually found. GNU make (at least on my GNU/Linux system)
somehow finds them, the Solaris version doesn't.
Solution (patch from top directory of distribution):
*** texinfo/makeinfo/old/Makefile.in Fri Mar 10 08:39:31 2000
--- texinfo/makeinfo/Makefile.in Fri Mar 10 08:57:33 2000
***************
*** 207,215 ****
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \
done
! makeinfo.o: makeinfo.c ../lib/system.h ../config.h ../lib/getopt.h \
! makeinfo.h
! multi.o: multi.c ../lib/system.h ../config.h makeinfo.h
info:
dvi:
--- 207,215 ----
|| ln $$d/$$file $(distdir)/$$file 2> /dev/null \
|| cp -p $$d/$$file $(distdir)/$$file; \
done
! makeinfo.o: makeinfo.c $(srcdir)/../lib/system.h ../config.h \
! $(srcdir)/../lib/getopt.h makeinfo.h
! multi.o: multi.c $(srcdir)/../lib/system.h ../config.h makeinfo.h
info:
dvi: