Error building the egcs-19990517 snapshot on HP-UX 10.20

Dieter Wörz dwoerz@debis.com
Mon Jun 7 04:18:00 GMT 1999


Hello,

I had 3 problems building the egcs-19990517 snapshot on a HP-UX 10.20 PA-RISC
machine.

The first problem was, that the script fixinc.sh was not copied into the object
tree while building up the tree. I added this to the end of my saved config
script. Another solution would have been to set the proper path for the script
in the Makefile.

The second problem was, that the libgcc2 library was missing when building the
gen* tools. When I added this to the HOST_LIBS variable in the Makefile of the
gcc directory, the compilation got through, except for the known problem with
the time stamps in the object files.

The last problem was during the build of the libraries like libio etc. As you
see, I tried to configure for multiple languages, but when the configuration of
libio got called, the error message
	Can only configure for one host and one target at a time.
appeared. The problem was due to the language list not enclosed in quotes. When
I had corrected this, I could finish the compilation.

I attached the diffs of my changes to the top level Makefile and the Makefile in
the gcc directory, as well as the file containing the saved configuration.

Regards

Dieter Wörz
*** gcc/Makefile	Mon Jun  7 11:52:01 1999
--- gcc/Makefile.changed	Mon Jun  7 11:09:11 1999
***************
*** 598,610 ****
  
  # How to link with both our special library facilities
  # and the system's installed libraries.
! LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS)  $(VFPRINTF) $(DOPRINT) $(CLIB) ../libiberty/libiberty.a
  
  # Likewise, for use in the tools that must run on this machine
  # even if we are cross-building GCC.
  HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC)  \
  	    $(HOST_INTLLIBS) $(USE_HOST_VFPRINTF) $(USE_HOST_DOPRINT) \
! 	    $(HOST_CLIB)
  
  HOST_RTL = $(HOST_PREFIX)rtl.o $(HOST_PREFIX)bitmap.o
  HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
--- 598,611 ----
  
  # How to link with both our special library facilities
  # and the system's installed libraries.
! LIBS = $(OBSTACK) $(USE_ALLOCA) $(MALLOC) $(INTLLIBS)  $(VFPRINTF) $(DOPRINT) $(CLIB) ../libiberty/libiberty.a libgcc2.a
  
  # Likewise, for use in the tools that must run on this machine
  # even if we are cross-building GCC.
  HOST_LIBS = $(USE_HOST_OBSTACK) $(USE_HOST_ALLOCA) $(USE_HOST_MALLOC)  \
  	    $(HOST_INTLLIBS) $(USE_HOST_VFPRINTF) $(USE_HOST_DOPRINT) \
! 	    $(HOST_CLIB) \
! 	    $(LIBGCC2)
  
  HOST_RTL = $(HOST_PREFIX)rtl.o $(HOST_PREFIX)bitmap.o
  HOST_RTLANAL = $(HOST_PREFIX)rtlanal.o
***************
*** 2613,2619 ****
  install-info: doc installdirs lang.install-info
  	-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
  	for f in cpp.info* gcc.info*; do \
! 	    $(INSTALL_DATA) $$f $(infodir)/$$f; \
  	done
  	-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  	  if [ -f $(infodir)/dir ] ; then \
--- 2614,2620 ----
  install-info: doc installdirs lang.install-info
  	-rm -f $(infodir)/cpp.info* $(infodir)/gcc.info*
  	for f in cpp.info* gcc.info*; do \
! 	    $(INSTALL_DATA) $(srcdir)/$$f $(infodir)/$$f; \
  	done
  	-if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
  	  if [ -f $(infodir)/dir ] ; then \


More information about the Gcc-bugs mailing list