From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19960 invoked by alias); 7 Aug 2009 09:35:54 -0000 Received: (qmail 19949 invoked by uid 22791); 7 Aug 2009 09:35:52 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mtaout02-winn.ispmail.ntl.com (HELO mtaout02-winn.ispmail.ntl.com) (81.103.221.48) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Fri, 07 Aug 2009 09:35:45 +0000 Received: from aamtaout01-winn.ispmail.ntl.com ([81.103.221.35]) by mtaout02-winn.ispmail.ntl.com (InterMail vM.7.08.04.00 201-2186-134-20080326) with ESMTP id <20090807093542.KPIY6611.mtaout02-winn.ispmail.ntl.com@aamtaout01-winn.ispmail.ntl.com>; Fri, 7 Aug 2009 10:35:42 +0100 Received: from cog.dallaway.org.uk ([86.9.207.237]) by aamtaout01-winn.ispmail.ntl.com (InterMail vG.2.02.00.01 201-2161-120-102-20060912) with ESMTP id <20090807093542.FFTS13254.aamtaout01-winn.ispmail.ntl.com@cog.dallaway.org.uk>; Fri, 7 Aug 2009 10:35:42 +0100 Received: from cog.dallaway.org.uk (cog.dallaway.org.uk [127.0.0.1]) by cog.dallaway.org.uk (8.13.8/8.13.8) with ESMTP id n779ZdQM015835; Fri, 7 Aug 2009 10:35:39 +0100 Message-ID: <4A7BF56B.4090005@dallaway.org.uk> Date: Fri, 07 Aug 2009 09:35:00 -0000 From: John Dallaway User-Agent: Thunderbird 2.0.0.22 (X11/20090625) MIME-Version: 1.0 To: Uwe Kindler CC: ecos-devel@sourceware.org Subject: Re: Strange __cxa_pure_virtual problem References: <4A79D58B.8070300@web.de> In-Reply-To: <4A79D58B.8070300@web.de> Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Mailing-List: contact ecos-devel-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: ecos-devel-owner@ecos.sourceware.org X-SW-Source: 2009-08/txt/msg00001.txt.bz2 Hi Uwe Uwe Kindler wrote: > I'm currently in the process of testing uSTL library port. I tried to > build the library without filestream support and without package file I/O. > > The library build process succeeds. Bu if I start building the test > cases then the compiler fails on building diag_sprintf1 test with the > error message: > > make[1]: Leaving directory > `/home/Nutzer/ustl_test_08_nofio_build/infra/current' > /opt/ecos/gnutools/arm-eabi/bin/../lib/gcc/arm-eabi/4.3.2/../../../../arm-eabi/lib/nointerwork/libsupc++.a(pure.o): > In function `__cxa_pure_virtual': > make: Leaving directory `/home/Nutzer/ustl_test_08_nofio_build' > (.text.__cxa_pure_virtual+0x14): undefined reference to `write' > collect2: ld returned 1 exit status > > So the compiler/linker does not link the __cxa_pure_virtual function in > infra/current/src/pure.cxx and instead takes the implementation from > libsupc++. Perhaps this problem is related to the libsupc++ implementation of __cxa_pure_virtual() moving into the __cxxabiv1 namespace: http://gcc.gnu.org/viewcvs/trunk/libstdc%2B%2B-v3/libsupc%2B%2B/pure.cc?r1=85452&r2=85463&diff_format=h Try providing your own implementation of: __cxxabiv1::__cxa_pure_virtual() John Dallaway