From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 04C54385AE4F for ; Mon, 4 Jul 2022 12:14:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 04C54385AE4F Received: by mail-ej1-x636.google.com with SMTP id h23so16348432ejj.12 for ; Mon, 04 Jul 2022 05:14:10 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=Ty/0XFMqDV5m450W0en0QlfpVEE1/u5hw7mxwJwIuRs=; b=corWeNaBgHiDpyCGNOrPHgO4LiwCAsKTyFFbCeWDbk1UyGQKz5hEEDlhtQ44O7ZJww L/xCK/57EpnFCmKK3w96W4dCSCJZVLfr8Tc/DZ/iGPN3ljQxXzYrsvn3c7XdK8WUqK4p KlkcEKvZEjx+a9dyoWgL8VegV/aN7wQUmQxyeJf1GHqOLtjollKa7BVAXmJIuTSVCxN4 M2wHZyJONWgFG3y+nZVIfIMm8EMi38S9g1JI6UjxEuhtsczMO1q9N3xCRLFWLpzghJol PDA0uA/UUY5rbQ7y1XtDKdqZekm3JmfpJlNPcROCye2qPF5GrSoJiq/djXhEUUm3ZZjR 67Aw== X-Gm-Message-State: AJIora/JWAfiL3bwAYK79F+OYV5bzJ9b1vkfmyLg5CagqWGlkfgQ9fKg VRHO/Y6V6oZq7E+8i/Fil7yybnxJHCdR0DsE1Al9u3j8 X-Google-Smtp-Source: AGRyM1uE2uOnrL4sx/dyfqp2y998pzQlr38N7zaKJ+CyO8VO0ZSMN1IYnRb1poA4FolepyZQC++YYehKQbwS7umbHSc= X-Received: by 2002:a17:907:2da3:b0:726:b031:a448 with SMTP id gt35-20020a1709072da300b00726b031a448mr27758490ejc.506.1656936849686; Mon, 04 Jul 2022 05:14:09 -0700 (PDT) MIME-Version: 1.0 References: <20220704115755.GA1130636@zira.vinc17.org> In-Reply-To: <20220704115755.GA1130636@zira.vinc17.org> From: Jonathan Wakely Date: Mon, 4 Jul 2022 13:13:58 +0100 Message-ID: Subject: Re: build failure of old GCC: .../libstdc++.so.6: version `GLIBCXX_3.4.30' not found To: gcc-help Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-0.4 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-help@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-help mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jul 2022 12:14:12 -0000 On Mon, 4 Jul 2022 at 12:58, Vincent Lefevre wrote: > > On a Debian/unstable machine, I'm trying to build old GCC, such as > one based on 0cc79337ad265aabccab63882a810f9dc509a9d0 (2021-04-20). > I'm using > > ../gcc-trunk/configure --prefix=$HOME/opt/gcc-trunk \ > --enable-multiarch \ > --enable-languages=c \ > --program-suffix=-test > > but "make" gives the following error: > > /usr/bin/msgfmt: /home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/libstdc++-v3/src/.libs/libstdc++.so.6: version `GLIBCXX_3.4.30' not found (required by /usr/lib/x86_64-linux-gnu/libicuuc.so.71) Something is setting LD_LIBRARY_PATH so that the newly-built libstdc++.so is being used. Where in the build does it fail? I don't think LD_LIBRARY_PATH should be set until running the testsuites. > while > > cventin:~> /usr/bin/msgfmt --version > msgfmt (GNU gettext-tools) 0.21 > [...] > > gives no errors (and there is no issue when building GCC based on > d2a898666609452ef79a14feae1cadc3538e4b45 (current master) anyway). > > What should I do? As a temporary workaround, you could try: mkdir /tmp/bin cat > /tmp/bin/msgfmt <