From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from confino.investici.org (confino.investici.org [IPv6:2a11:7980:1::2:0]) by sourceware.org (Postfix) with ESMTPS id 8E6A9385040B for ; Fri, 17 Feb 2023 15:18:26 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8E6A9385040B Authentication-Results: sourceware.org; dmarc=pass (p=reject dis=none) header.from=autistici.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=autistici.org Received: from 1.mail-backend.investici.org (unknown [10.0.0.11]) by confino.investici.org (Postfix) with ESMTP id 4PJFnX3Z7Xz11KS; Fri, 17 Feb 2023 15:18:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1676647104; bh=fCWEq8cuBeZgJid78tOdCXtF3wTY4Ew+nUKshwQ0N+o=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=i2GfnxwJwI/OA9rBh7lcXIVHWE7M8uZKsb7FBPYAN5CdoJ62IMqUUiZniSPvdb2cn VfDuV9XlY61ePM60iIKvETi6MZTfzClZBDtL3ClgVCUfH3xp2vQcs38/g338u/Pm/U OYEzNJcZ0+uivF68/wY8svKrYDpq1ykF7dWbaXVo= Received: from 1.webmail.investici.org (localhost [127.0.0.1]) (Authenticated sender: i.nixman@autistici.org) by 1.mail-backend.investici.org (Postfix) with ESMTPA id 4PJFnX1qJyz5w3C; Fri, 17 Feb 2023 15:18:24 +0000 (UTC) MIME-Version: 1.0 Date: Fri, 17 Feb 2023 15:18:24 +0000 From: i.nixman@autistici.org To: Jonathan Wakely Cc: Gcc Help Subject: Re: Extra import symbol in debug build In-Reply-To: References: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> <82d48ece08fbe9d59cca0cebd8d04f58@autistici.org> <1fa9b2598357629dfaac5debd53708b3@autistici.org> <1abbf26093a9b47c837b2d304b9fa15d@autistici.org> User-Agent: Roundcube Webmail Message-ID: X-Sender: i.nixman@autistici.org Content-Type: text/plain; charset=US-ASCII; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.9 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 2023-02-17 14:59, i.nixman--- via Gcc-help wrote: > On 2023-02-17 12:06, Jonathan Wakely wrote: > >> >> That suggests either you built it wrong, or that library is from an >> older >> GCC, not the one you're compiling with. > > thank you Jonathan! > > will check this now. > > > I have one more question. > > just now I rebuild the executable using `-static-libstdc++`, and I can > confirm I can see that option in the linker cmdline, but the > executable still depends on libstdc++.so. > how can this be? and yes, now it looks like WEAK symbol: 3515: 0000000000d80940 8 FUNC WEAK DEFAULT 13 _ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv 200740: 0000000000d80940 8 FUNC WEAK DEFAULT 13 _ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv