From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from confino.investici.org (confino.investici.org [93.190.126.19]) by sourceware.org (Postfix) with ESMTPS id A03343858281 for ; Thu, 16 Feb 2023 15:23:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A03343858281 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 4PHdxb6vP5z113w for ; Thu, 16 Feb 2023 15:23:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1676560996; bh=a+npy15/l8lWg2YcCyhMYBzibQqR19JgsgiiQrXSs9A=; h=Date:From:To:Subject:From; b=ew/jCdVpXoGDa4aabhm6bsfMnQuo1oYM0DxHomp/NWaYeUBtXAO790/Zlvtrrxxq0 EY6aTdWfMnDCZpE3ccfAg+dy2+La47SiSlcqVH1G5I648KfdIFm/ogc+2E6Do20vO4 ZIcqYT6Fo1DEYQGuSvpVkBHfYSoj7gTrE4tMqCQo= 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 4PHdxb5GVPz5sck for ; Thu, 16 Feb 2023 15:23:15 +0000 (UTC) MIME-Version: 1.0 Date: Thu, 16 Feb 2023 15:23:15 +0000 From: i.nixman@autistici.org To: Gcc Help Subject: Extra import symbol in debug build User-Agent: Roundcube Webmail Message-ID: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> 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.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,KAM_STOCKGEN,SPF_HELO_PASS,SPF_PASS,TXREP autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: hello, I can successfully build the same C++ code using GCC-8.3.1 for Debug (-g -O0) and Release (-g -O2) build. I can successfully debug the Release-executable on a remote host, but I can't debug the Debug-executable on a remote host, because the Debug-executable imports an extra symbol _ZNKSt9basic_iosIcSt11char_traitsIcEEcvbEv from libstdc++ which doesn't exist. but I don't want to debug libstdc++, so I think I shouldn't install additional debug version of libstdc++. it looks like a bug, or am I wrong? another my question is, what should I do to get rid of that extra symbol in Debug build? best! ps I can't update GCC nor libstdc++.