Small buglet related to autogeneration of limits

Claus Fischer claus.fischer@intel.com
Sat Apr 1 00:00:00 GMT 2000


(1)

When trying to build libstdc++-2.90.7 on a Linux system where the default
compiler installed is g++ version 2.7.xx, and a GCC 2.9.2 is under
/mypath/gcc, like this:

    mkdir objdir
    cd objdir
    CXX=/mypath/c++ CC=/mypath/gcc ../libstdc++-2.90.7/configure ...

the subsequent make cannot correctly build the limits file since it tries
to compile src/gen-num-limits.cc with the system's default g++.

I've done the following patch to fix it but this might not be a
universal way of circumventing that problem. Patch included here
and also attached in MIME.

The problem might be due to the .NOEXPORT: in the end of the Makefile.in.


(2)

The mkcheck script has a hardcoded path to a location where not many
people will find bash. The second patch changes that to /bin/bash,
but I realize that there should be a configure check to create that
line.

  (However even with that patch most tests fail in my make test;
   perhaps that's still using the old GCC or so).


Best Regards,

Claus Fischer

*********************************
diff -Naur libstdc++-2.90.7.old/src/Makefile.in libstdc++-2.90.7/src/Makefile.in
--- libstdc++-2.90.7.old/src/Makefile.in	Tue Dec 21 21:07:57 1999
+++ libstdc++-2.90.7/src/Makefile.in	Thu Mar  9 13:44:43 2000
@@ -517,7 +517,7 @@
 $(generated_sources): $(generated_headers)
 
 $(generated_headers): $(top_srcdir)/mknumeric_limits
-	$(SHELL) $(top_srcdir)/mknumeric_limits `pwd`/.. $(top_srcdir)
+	CXX=$(CXX) $(SHELL) $(top_srcdir)/mknumeric_limits `pwd`/.. $(top_srcdir)
 	@echo timestamp > $(top_builddir)/stamp-limits
 
 # Tell versions [3.59,3.63) of GNU make to not export all variables.
*********************************
--- libstdc++-2.90.7.old/mkcheck	Thu Mar  9 14:08:13 2000
+++ libstdc++-2.90.7/mkcheck	Thu Mar  9 14:08:37 2000
@@ -1,4 +1,4 @@
-#!/usr/clocal/bin/bash
+#!/bin/bash
 
 # 1999-07-19 bkoz 
 # Script to do automated testing and data collection for
*********************************


-- 
claus.fischer@intel.com   Intel Corporation SC12-205 ... not speaking
phone   +1-408-765-6808   2200 Mission College Blvd.           for Intel
fax     +1-408-765-9322   Santa Clara, CA 95052-8119


More information about the Libstdc++ mailing list