From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ed1-x529.google.com (mail-ed1-x529.google.com [IPv6:2a00:1450:4864:20::529]) by sourceware.org (Postfix) with ESMTPS id 79A0D385840F for ; Mon, 18 Jul 2022 16:34:18 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 79A0D385840F Received: by mail-ed1-x529.google.com with SMTP id y8so16086451eda.3 for ; Mon, 18 Jul 2022 09:34:18 -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:content-transfer-encoding; bh=JmIUqWjMrKzH55aFn2QRpuRviu9evHyMQPyPn/UXsFE=; b=apSymYlec6lg75+89o63hQB00RjrNl8PQrB8rEYrx/Cu0ID2xMk9qLD0Bk8ykgVZR3 dW8VutU/xzv2ZTqjF0FD/Awb21giceRdUsh5+SjX7teXhrneZWHzmq43CA5ezhVVC5s/ NkVebCCs+/ZcwDwaAKcQt0kd8n25t5s2g1FkMgcFi9u6qUafq4XNVgZLPTh8nCwyyKsE 1RFzl33AZWFAsbfNhlIVnn3EBa/UZmNfC81bxiw7wAvzIB0OW4JlS1znF6x9cLFAG7ll BC5TmHxfGbvKBVDpZgGIYe4KwnS69fVz5K4ymLUsLsCRmAA/UYnCCOYg+37wBRf6asmH c+mA== X-Gm-Message-State: AJIora97hPTm3LQviU2nEtBBVz0ci+2RxD9/dAouKIrVcaG7S2KWA8ko n1szmzRtJOHJl0aRBfIUF/eF6ik35tlvKbKFaWcxJMaazNA= X-Google-Smtp-Source: AGRyM1tHPJNocst3zQsUDvwZJUfzmPqMn+OeVXCOks6YUL/SZcz30sdW5sibHpsL0EF2I9uflzsNwzwhthDs6qjQSzQ= X-Received: by 2002:a50:fc83:0:b0:43a:742e:5e42 with SMTP id f3-20020a50fc83000000b0043a742e5e42mr37490088edq.118.1658162056205; Mon, 18 Jul 2022 09:34:16 -0700 (PDT) MIME-Version: 1.0 References: <20220704115755.GA1130636@zira.vinc17.org> <20220704125406.GC1130636@zira.vinc17.org> In-Reply-To: <20220704125406.GC1130636@zira.vinc17.org> From: Jonathan Wakely Date: Mon, 18 Jul 2022 17:34:05 +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" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-0.6 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 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, 18 Jul 2022 16:34:20 -0000 On Mon, 4 Jul 2022 at 13:54, Vincent Lefevre wrote: > > On 2022-07-04 13:13:58 +0100, Jonathan Wakely via Gcc-help wrote: > > On Mon, 4 Jul 2022 at 12:58, Vincent Lefevre w= rote: > > > > > > 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=3D$HOME/opt/gcc-trunk \ > > > --enable-multiarch \ > > > --enable-languages=3Dc \ > > > --program-suffix=3D-test > > > > > > but "make" gives the following error: > > > > > > /usr/bin/msgfmt: /home/vlefevre/software/gcc-build/x86_64-pc-linux-gn= u/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) > > With a54ce8865a885bca5ab9c4aa6ec725cd13c09901, this is: > > /usr/bin/msgfmt: symbol lookup error: /usr/lib/x86_64-linux-gnu/libicuuc.= so.71: undefined symbol: _ZNSt18condition_variable4waitERSt11unique_lockISt= 5mutexE, version GLIBCXX_3.4.30 > > > Something is setting LD_LIBRARY_PATH so that the newly-built > > libstdc++.so is being used. > > Indeed, using a wrapper with "printenv LD_LIBRARY_PATH" for msgfmt, > I get: > > LD_LIBRARY_PATH: /home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/li= bstdc++-v3/src/.libs:/home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/= libsanitizer/.libs:/home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/li= bvtv/.libs:/home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/libssp/.li= bs:/home/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/libgomp/.libs:/hom= e/vlefevre/software/gcc-build/x86_64-pc-linux-gnu/libitm/.libs:/home/vlefev= re/software/gcc-build/x86_64-pc-linux-gnu/libatomic/.libs:/home/vlefevre/so= ftware/gcc-build/./gcc:/home/vlefevre/software/gcc-build/./prev-gcc I think this patch from Alpine should fix it: https://gitlab.alpinelinux.org/alpine/aports/-/blob/master/main/gcc/0009-En= sure-that-msgfmt-doesn-t-encounter-problems-during.patch