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]

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


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 \
*** Makefile	Mon Jun  7 11:51:23 1999
--- Makefile.changed	Mon Jun  7 10:21:28 1999
***************
*** 200,206 ****
  TARGET_SUBDIR = hppa2.0-hp-hpux10.20
  
  # This is set by the configure script to the arguments passed to configure.
! CONFIG_ARGUMENTS = --host=hppa2.0-hp-hpux10.20 --build=hppa2.0-hp-hpux10.20 --enable-multilib  --with-gcc-version-trigger=/var/tmp/egcs-19990517/gcc/version.c  --prefix=/opt/egcs --exec-prefix=/opt/langtools --enable-shared --enable-languages=c c++ java objc --srcdir=../egcs-19990517
  
  # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
  # was used.
--- 200,206 ----
  TARGET_SUBDIR = hppa2.0-hp-hpux10.20
  
  # This is set by the configure script to the arguments passed to configure.
! CONFIG_ARGUMENTS = --host=hppa2.0-hp-hpux10.20 --build=hppa2.0-hp-hpux10.20 --enable-multilib  --with-gcc-version-trigger=/var/tmp/egcs-19990517/gcc/version.c  --prefix=/opt/egcs --exec-prefix=/opt/langtools --enable-shared --enable-languages="c c++ java objc" --srcdir=../egcs-19990517
  
  # This is set by configure to REALLY_SET_LIB_PATH if --enable-shared
  # was used.
#!/bin/sh
# This file was generated automatically by configure.  Do not edit.
# This directory was configured as follows:
CC=/opt/ansic/bin/cc ../egcs-19990517/configure --with-gcc-version-trigger=/var/tmp/egcs-19990517/gcc/version.c --host=hppa2.0-hp-hpux10.20 --prefix=/opt/egcs --exec-prefix=/opt/langtools --enable-shared --enable-languages="c c++ java objc" --srcdir=../egcs-19990517
cp ../egcs-19990517/gcc/fixinc.sh gcc

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