This is the mail archive of the gcc-bugs@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]

Build error for gcc on Solaris


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:
  

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