From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28451 invoked by alias); 30 Aug 2013 14:54:52 -0000 Mailing-List: contact gcc-bugs-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-bugs-owner@gcc.gnu.org Received: (qmail 28416 invoked by uid 48); 30 Aug 2013 14:54:49 -0000 From: "iains at gcc dot gnu.org" To: gcc-bugs@gcc.gnu.org Subject: [Bug ada/58239] [4.9 regression] pretty-print.c:789: undefined reference to `operator delete(void*)' Date: Fri, 30 Aug 2013 14:54:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gcc X-Bugzilla-Component: ada X-Bugzilla-Version: 4.9.0 X-Bugzilla-Keywords: build X-Bugzilla-Severity: normal X-Bugzilla-Who: iains at gcc dot gnu.org X-Bugzilla-Status: NEW X-Bugzilla-Priority: P3 X-Bugzilla-Assigned-To: unassigned at gcc dot gnu.org X-Bugzilla-Target-Milestone: 4.9.0 X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://gcc.gnu.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2013-08/txt/msg01639.txt.bz2 http://gcc.gnu.org/bugzilla/show_bug.cgi?id=58239 --- Comment #10 from Iain Sandoe --- (In reply to Gabriel Dos Reis from comment #9) > (In reply to Iain Sandoe from comment #8) > > note that the patch at: > > > > http://gcc.gnu.org/ml/gcc-patches/2013-08/msg01460.html > > > > is not quite enough to fix this on Darwin - since we use : > > > > %{static|static-libgcc|static-libstdc++:%:replace-outfile(-lstdc++ > > libstdc++.a%s)} > > > > to implement -static-libstadc++. > > > > The relevant dir needs to be added as "-B" for this to work - unfortunately, > > I'm not able to look at this right now.. > > -static-libstdc++ was already being used before this patch. So, the "-B" > directories where already there. "grep -R -static-libstdc++ gcc/ada" suggests that -static-libstdc++ only appears in a Changelog entry. also the gcc driver silently ignores -static-libstdc++. certainly, the -B options are passed when other gcc components are built (or it would fail to bootstrap on Darwin). However, your current patch fails with: ld: file not found: libstdc++.a