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]

PATCH: 19990117 snapshot bootstrap dies in libstdc++ HPUX10.20


I'm trying to bootstrap the latest snapshot on hppa2.0-hp-hpux10.20.  I
get the following problem with cmath in libstdc++.  Adding
MATH_H_INLINES=1 to G_CONFIG_ARGS in libio/config/hpux.mt fixes it for
me.  Does this sound reasonable?  I've included the error and a patch.

  /opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20/gcc/xgcc
-B/opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20/gcc/
-B/opt/corp/contrib/egcs/egcs-snapshot/hppa2.0-hpux10.20/hppa2.0-hp-hpux10.20/bin/
-c -fno-implicit-templates -I../../../../src/libstdc++
-I../../../../src/libstdc++/stl -I../libio
-I../../../../src/libstdc++/../libio -nostdinc++  
../../../../src/libstdc++/cmathi.cc -o pic/cmathi.o
/opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20/gcc/xgcc
-B/opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20/gcc/
-B/opt/corp/contrib/egcs/egcs-snapshot/hppa2.0-hpux10.20/hppa2.0-hp-hpux10.20/bin/
-c -fno-implicit-templates -I../../../../src/libstdc++
-I../../../../src/libstdc++/stl -I../libio
-I../../../../src/libstdc++/../libio -nostdinc++ 
../../../../src/libstdc++/cmathi.cc
../../../../src/libstdc++/cmath: In function `double abs(double)':
In file included from ../../../../src/libstdc++/cmathi.cc:7:
../../../../src/libstdc++/cmath:42: redefinition of `double abs(double)'
/usr/include/math.h:482: `double abs(double)' previously defined here
make[2]: *** [cmathi.o] Error 1
make[2]: Leaving directory
`/tmp_mnt/opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20/hppa2.0-hp-hpux10.20/libstdc++'
make[1]: *** [all-target-libstdc++] Error 2
make[1]: Leaving directory
`/tmp_mnt/opt/corp/contrib/egcs/egcs-snapshot/build/hppa2.0-hpux10.20'
make: *** [bootstrap] Error 2



Fri Jan 22 11:17:29 1999  Jerry Quinn
	* config/hpux.mt (G_CONFIG_ARGS): Add  MATH_H_INLINES

*** src/libio/config/hpux.mt~   Tue Jan 19 14:34:59 1999
--- src/libio/config/hpux.mt    Fri Jan 22 11:16:03 1999
***************
*** 1,3 ****
  # Flags to pass to gen-params when building _G_config.h.
  # For example: G_CONFIG_ARGS = size_t="unsigned long"
! G_CONFIG_ARGS = DOLLAR_IN_LABEL=1
--- 1,3 ----
  # Flags to pass to gen-params when building _G_config.h.
  # For example: G_CONFIG_ARGS = size_t="unsigned long"
! G_CONFIG_ARGS = DOLLAR_IN_LABEL=1 MATH_H_INLINES=1


-- 
Jerry Quinn                             Tel: (514) 761-8737
jquinn@nortelnetworks.com               Fax: (514) 761-8505
Speech Recognition Research


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