From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by sourceware.org (Postfix) with ESMTPS id A14FB3857437 for ; Fri, 17 Feb 2023 15:31:06 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org A14FB3857437 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-x530.google.com with SMTP id ez12so5673570edb.1 for ; Fri, 17 Feb 2023 07:31:06 -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=rQpAN/kJReiizUWRtJfzMuD9WqX0DZHHate59zws7so=; b=W1461CUzN9xu5J8MYuyYsYddVXWsUEWRkjOk/4sBPS1aNtDGRgVzG0lSpH/xmEmZ1K 92rzJOvuH5mGHnOuLhOo1bQHfHKHxcosJEhEwx5jyt/RcxKNlwGUSbzak2WTQYd4VPX8 2J4dO9o6f1Io4z7BGRt2INt57GGgFKCZ/jTjye+kgNccTbpJ2hOjjm7owjxiqfSPTPsM O1wWoQInD8m9j/pBvI+MtGtTYiIOAHfp/AExiEHm2Rco5YVU8egXSAc7IbOHymshEtbN SoueOfUFf9WOatftyP0TvLHYODD9uVEchbw7TxrsyxwaJ/uNpsL7ttvvJE0eU9NP/k0C 1mxw== 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=rQpAN/kJReiizUWRtJfzMuD9WqX0DZHHate59zws7so=; b=OpipFty8t/AK5psdoh3zl/cwUtLCX2BBcUhD2nLRR/icDx9UlOQ6dbIu8H0VApyT4D fzDRCkd9QvAAxJM3xuWSZtLWVNnaAlT4JTcb7ivVKa0QabjYGVy6bJN3GL2Vxi3hsFUF h2Tvw+cpzpjqsGkyPYpoui4VcSkysLzOB+z3uj+jtSVpMV9AvO5qBzfsrWqt/TK1z5sV P0h4OnyXA3EBkHWX6igqxvOsO8CrIhcYWMQA1RTxicmv64v0fCKRD46KCIvG0gER28dm oWNq3xZkZd0ovgqBcu6IdXiv7CO2i1GxxYeJXDmQCRnWZr7XEHgJI9mMw49N2fPcfvzr 3Z6w== X-Gm-Message-State: AO0yUKUQ6lCDhbxekasUAAIop2i8DZX3OxJbEVIqCLjQPz+I9LKU+H7Y XEO/3Zi4c8Z/msjhTR6AvLZkPcsl5LQLDiiUmxw= X-Google-Smtp-Source: AK7set96/lhqzEtmih4UR4UVl9Lh+z7BBuEwDbP2YcwCDu4dW52vsKK6VYDNpeyxgZuzfLx7oEYfWRD8GeUHjMPi8NU= X-Received: by 2002:a17:907:7e86:b0:88d:ba79:4315 with SMTP id qb6-20020a1709077e8600b0088dba794315mr4603042ejc.5.1676647865160; Fri, 17 Feb 2023 07:31:05 -0800 (PST) MIME-Version: 1.0 References: <4f36cb6cb8e444073e1a9e253e861920@autistici.org> <82d48ece08fbe9d59cca0cebd8d04f58@autistici.org> <1fa9b2598357629dfaac5debd53708b3@autistici.org> <1abbf26093a9b47c837b2d304b9fa15d@autistici.org> In-Reply-To: From: Jonathan Wakely Date: Fri, 17 Feb 2023 15:30:52 +0000 Message-ID: Subject: Re: Extra import symbol in debug build To: niXman Cc: Gcc Help Content-Type: multipart/alternative; boundary="0000000000006a989305f4e700e3" X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE,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: --0000000000006a989305f4e700e3 Content-Type: text/plain; charset="UTF-8" On Fri, 17 Feb 2023, 14:59 , 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? > If you're linking to some shared library that depends on libstdc++.so then your executable will depend on it. I think this thread has gone in too long without any details of what commands you're actually using to compile and link. There's only so much people can tell you by guessing. --0000000000006a989305f4e700e3--