🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.g++.lib.bug
Article #329

libg++-2.3 build problems under AIX-3.2

#329
From: David Edelsohn
Date: Mon, 21 Dec 1992 18:45
65 lines
3212 bytes
	First, the configuration files do not seem to have been updated
since libg++-2.2: the NOSTDINC and the HAVE_CPLUS_EXTERN Makefile flags are
not defined in the libg++/config/rs6000.mh file at all.
	AIX-3.2 fixes many of the problems requiring work-arounds in
previous versions: copysign() used by modf() is fixed in libc and
/usr/include/unistd.h has the correct prototype for write().
	libiberty/config/mh-aix should have the EXTRA_OFILES line for
copysign.o removed or commented out.  libg++/config/rs6000.mh should look
more like:

-----rs6000.mh-----
# configuration for IBM rs6000 running aix
INSTALL=cp
INSTALL_DATA = cp
G_CONFIG_ARGS =
# Use -nostdinc++ flag if your version of gcc understands it.
NOSTDINC = -nostdinc++

# Flags to pass to gen-params when building _G_config.h.
# For example: G_CONFIG_ARGS = size_t="unsigned long"
G_CONFIG_ARGS =

# If the C include files are C++-ready (with extern "C"),
# define: HAVE_CPLUS_EXTERN = 1 and: WRAP_C_INCLUDES =
# If not, define HAVE_CPLUS_EXTERN = 0, and do not define WRAP_C_INCLUDES here.
HAVE_CPLUS_EXTERN = 0

-----
	After building libg++-2.3 using gcc-2.3.2, it fails to pass its
self-tests because of problems with formatted I/O.
libg++/iostream/test/tFile fails with an abort in t11() at the assert.  The
last lines of tFile.out look like:

-----tFile.out-----

Assertion failed: count1 == 33, file  tFile.C, line 434
5.500000+6.250000 = 1.175000e+01
Previous line has12345 32 characters
Previous line has12345+36 characters

-----

	libg++-2.3 is built using "./configure rs6000-ibm-aix3.2" with the
above changes to the various config files (without the changes other errors
occur).  gcc-2.3.2 is not fully installed so the environment variables
GCC_EXEC_PREFIX, C_INCLUDE_PATH, and CPLUS_INCLUDE_PATH are set
appropriately (though that last should be ignored because of -nostdinc++).

	libg++-2.3 builds easily under SunOS-4.1.2 and passes its
self-tests without incident, but it does not seem to build correctly under
AIX-3.2 although the compilation succeeds without problem.  Are idea what's
going on?

				Thanks, David
				c$dje@watson.ibm.com
				edelsohn@sccs.syr.edu


Disclaimer: I do not speak for IBM and it does not speak for me.
===============================================================================
David Edelsohn                                      T.J. Watson Research Center
c$dje@watson.ibm.com                                P.O. Box 218
+1 914 945 3011 (Tieline 862)                       Yorktown Heights, NY 10598
"The Church doesn't have problems with sex; the world does" -- Vatican official
"A good theory should fit on a T-shirt" -- Astronomer at Jan 1992 AAS meeting
Technical Details
Message-ID: <9212211845.AA08280@tweetie.watson.ibm.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!c$dje

Show Full Headers
Complete Article Headers
Newsgroups: gnu.g++.lib.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!agate!usenet.ins.cwru.edu!magnus.acs.ohio-state.edu!cis.ohio-state.edu!watson.ibm.com!c$dje
From: c$dje@watson.ibm.com (David Edelsohn)
Subject: libg++-2.3 build problems under AIX-3.2
Message-ID: <9212211845.AA08280@tweetie.watson.ibm.com>
Sender: gnulists@ai.mit.edu
Organization: GNUs Not Usenet
Distribution: gnu
Date: Mon, 21 Dec 1992 18:45:50 GMT
Approved: bug-lib-g++@prep.ai.mit.edu
Lines: 67