delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2002/11/13/20:13:02

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-MimeOLE: Produced By Microsoft Exchange V6.0.6249.0
content-class: urn:content-classes:message
MIME-Version: 1.0
Subject: RE: ld crash
Date: Thu, 14 Nov 2002 12:05:34 +1100
Message-ID: <FAC87D7C874EAB46A847604DA4FD5A6457D7ED@crtsmail.corp.riotinto.org>
X-MS-Has-Attach:
X-MS-TNEF-Correlator:
From: "Billinghurst, David (CRTS)" <David DOT Billinghurst AT riotinto DOT com>
To: "Braden McDaniel" <braden DOT n DOT mcdaniel AT saic DOT com>, <cygwin AT cygwin DOT com>
X-OriginalArrivalTime: 14 Nov 2002 01:07:22.0859 (UTC) FILETIME=[301293B0:01C28B7A]
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id gAE1D1Y21705

This is a libtool problem.  If you do not find a more sophisticated 
fix you might try renaming or deleting 
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libstdc++.la.

-----Original Message-----
From: Braden McDaniel [mailto:braden DOT n DOT mcdaniel AT saic DOT com]
Sent: Thursday, 14 November 2002 10:59 AM
To: cygwin AT cygwin DOT com
Subject: ld crash


Since upgrading to gcc 3.2 (currently 3.2-2 with binutils 20021107-2), ld
crashes when I try to build OpenVRML:

---
/bin/bash ../../../libtool --mode=link g++   -g -O0   -o
libopenvrml.la -rpath /
usr/local/lib -version-info 2:2:0       MathUtils.lo Doc.lo doc2.lo
dummysound.lo Image.lo Audio.lo System.lo field.lo fieldvalueptr.lo
VrmlMatrix.lo scope.lo scopeptr.lo node.lo nodeptr.lo nodetypeptr.lo
nodeclassptr.lo bvolume.lo script.lo ScriptJDK.lo browser.lo Viewer.lo
font.lo VrmlRenderContext.lo VrmlFrustum.lo
vrml97node.lo ../../../lib/antlr/libantlr.la

*** Warning: This system can not link to static lib archive
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libstdc++.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.

*** Warning: This system can not link to static lib archive
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../libstdc++.la.
*** I have the capability to make that library automatically link in when
*** you link to this library.  But I can only do this if you have a
*** shared version of the library, which you do not appear to have.
g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtbegin.o
.libs/MathUtils.o .libs/Doc.o .libs/doc2.o .libs/dummysound.o .libs/Image.o
.libs/Audio.o .libs/System.o .libs/field.o .libs/fieldvalueptr.o
.libs/VrmlMatrix.o .libs/scope.o .libs/scopeptr.o .libs/node.o
.libs/nodeptr.o .libs/nodetypeptr.o .libs/nodeclassptr.o .libs/bvolume.o
.libs/script.o .libs/ScriptJDK.o .libs/browser.o .libs/Viewer.o .libs/font.o
.libs/VrmlRenderContext.o .libs/VrmlFrustum.o
.libs/vrml97node.o -Wl,--whole-archive
../../../lib/antlr/.libs/libantlr.a -Wl,--no-whole-archive  -L/usr/lib/gcc-l
ib/i686-pc-cygwin/3.2 -L/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../.. -lgcc -
lgcc -lgcc -lgcc -lcygwin -luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
/usr/lib/gcc-lib/i686-pc-cygwin/3.2/crtend.o  -o
.libs/cygopenvrml-2.dll -Wl,--image-base=0x10000000 -Wl,--out-implib,.libs/l
ibopenvrml.dll.a

/usr/lib/gcc-lib/i686-pc-cygwin/3.2/../../../../i686-pc-cygwin/bin/ld: out
of memory allocating 85024 bytes after a total of 333393920 bytes
collect2: ld returned 1 exit status
---

I've tried this on a couple of Cygwin installations, one on a machine with
512 MB RAM, with the same result. It compiles and links successfully on
Linux (Red Hat 8.0)with the same amount of system memory.

If someone would like to try to reproduce this, you'll probably need to get
the CVS version of OpenVRML:

CVSROOT is
":pserver:anonymous AT cvs DOT OpenVRML DOT sourceforge DOT net:/cvsroot/openvrml".
Module name is "openvrml".

Once checked out, run "bootstrap.sh", then configure with these arguments:

$
./configure --without-x --without-spidermonkey --without-jdk --without-ftfli
b --without-doxygen CXXFLAGS="-g -O0"

Let me know if there's anything I can do to assist debugging this.

Braden





--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Bug reporting:         http://cygwin.com/bugs.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019