From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x52c.google.com (mail-ed1-x52c.google.com [IPv6:2a00:1450:4864:20::52c]) by sourceware.org (Postfix) with ESMTPS id 94F423858D33 for ; Thu, 16 Feb 2023 15:30:07 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 94F423858D33 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-x52c.google.com with SMTP id u21so4268598edv.3 for ; Thu, 16 Feb 2023 07:30:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=rHjsUfhR1nhnQmem60MpmhH7f78AP5TRzJ6ZWcD7F9k=; b=jlX42yZTmdD8tllisMvz192FlEXwp1OxSl6YGe/tRozKDVtcukGSKZMWQu0O0J2PAu tL9gyWHWEseRRNRXcTvRFfXmPc3bCXY8Ey7dIrYswnMHYJKQCkLqO70IIlnjm8iZI+q5 rYuf7U4/bxOzXYfKZoD/auRF4thCjyMfzue1RiTLH6QjPILeS0wMFyFDPrQIrVDz6l6O hw8trUy8/eTBnGeF01qJ4LooriBj+x0PU8rlufY5SdEOsF3VY/mPigw8WYfWhXto0H/V +s4E2BQ2Bulng+3cp3jT2GD3OdOj6ooLyYKV5mRxjqYrJvhZLKSg0ziVxuySm9k7uU/G /reA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=rHjsUfhR1nhnQmem60MpmhH7f78AP5TRzJ6ZWcD7F9k=; b=L3UYMI6ymFlF8dkHAKgnIPA5GZCjds0N092g2HRNRFHvKZ8J/fs25TWS6iKiJbtrDH 6j9Lohw3PRp5ml8UqTJixTVp8HAuFD76PBeKLcwFT4gOd1dLBIio71qkjzMA25IKP4sY kDR9A7pWIeflA6RaZFKgetPueJ087H5Cknt1xikmD0YArDlCjqoOIfYfQUVEjvgjWX6N 2nLPr2OirKhxg7lAg4QS1Dv+yt7tXxn0MCyr1cKgUb7PAsJMbjk9573KLJSgWYkkacxI 027BcpCqfeSBY1Vw2V/1AnzsvE4C8cS8lXWrizRhINGEX00nLT0eTF1brKLGunxxb6l6 uHPg== X-Gm-Message-State: AO0yUKXTiruV8S5YS55ugz+t/CfXfFLfVTn9igU79eJPTTPlLBQ2CjOs e/1WQr7bZP+khvcDk16i07TaLdlD0CIedxeAbj8= X-Google-Smtp-Source: AK7set/4M6n2tkVC1CSOtSGr9MUHgtpacXtAbdvGzTEn2y0M+nMVDfTD2+KKtc5o66Byqe1I/c1XGJmsC5HXIBOB+mU= X-Received: by 2002:a17:906:5a86:b0:8b1:3a1c:3311 with SMTP id l6-20020a1709065a8600b008b13a1c3311mr3001931ejq.13.1676561406130; Thu, 16 Feb 2023 07:30:06 -0800 (PST) MIME-Version: 1.0 References: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> In-Reply-To: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> From: Jonathan Wakely Date: Thu, 16 Feb 2023 15:29:55 +0000 Message-ID: Subject: Re: Extra import symbol in debug build To: i.nixman@autistici.org Cc: Gcc Help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.8 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 Thu, 16 Feb 2023 at 15:25, i.nixman--- via Gcc-help wrote: > > 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. It should exist, it has been there since GCC 5. > > 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++.