From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 608DB1382C5 for ; Fri, 12 Feb 2021 20:53:26 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 85DEFE085E; Fri, 12 Feb 2021 20:53:20 +0000 (UTC) Received: from km35626.keymachine.de (text-idiomas.com [87.118.86.27]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 27195E084E for ; Fri, 12 Feb 2021 20:53:19 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by km35626.keymachine.de (Postfix) with ESMTP id 86B0A1136251 for ; Fri, 12 Feb 2021 21:53:17 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at km35626.keymachine.de. Received: from km35626.keymachine.de ([127.0.0.1]) by localhost (km35626.keymachine.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id TM7UtrztoHrL for ; Fri, 12 Feb 2021 21:53:15 +0100 (CET) Received: from grusum.endjinn.de (i59F4B498.versanet.de [89.244.180.152]) by km35626.keymachine.de (Postfix) with ESMTPSA id 17DD111360EC for ; Fri, 12 Feb 2021 21:53:15 +0100 (CET) Received: by grusum.endjinn.de (Postfix, from userid 500) id CA5DD1703AB; Fri, 12 Feb 2021 21:52:45 +0100 (CET) Date: Fri, 12 Feb 2021 21:53:11 +0100 From: David Haller To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] cmake-3.18.5 build fails Message-ID: <20210212205311.67xjvknd3u6zsysk@grusum.endjinn.de> Mail-Followup-To: gentoo-user@lists.gentoo.org References: Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline In-Reply-To: Organization: Nah, not today! X-Clacks-Overhead: GNU Terry Pratchett User-Agent: NeoMutt/20170609 (1.8.3) X-Archives-Salt: 4864333e-1956-4502-b50f-4d0bdc57690f X-Archives-Hash: 98c0214aa649a80af370b7be1225350c Hello, On Fri, 12 Feb 2021, Jack wrote: >On 2021.02.12 14:49, Walter Dnes wrote: >> 64-bit Gentoo on a new 12-core machine. The build fails in the compile >> phase. Switching makeopts from -j4 to -j1 didn't help. Build log is >> attached. >The error seems to be at linking: > >/usr/lib/gcc/x86_64-pc-linux-gnu/7.5.0/../../../../x86_64-pc-linux-gnu/bin/ld: >/usr/lib64/libjsoncpp.so: undefined reference to >`std::__cxx11::basic_ostringstream, >std::allocator >::basic_ostringstream()@GLIBCXX_3.4.26' > >/usr/lib64/libjsoncpp.so belongs to dev-libs/jsoncpp. cmake depends on >>=dev-libs/jsoncpp-1.9.2-r2:0= > >I have 1.9.4 installed. (1.9.3 is the only other one I see in Portage.) Is >it possible you have an older version, and the dep needs to be updated? I needs just to be recompiled, I think. With '-std=c++11' or later. Search for 'undefined reference to std::__cxx11::basic_' (no quotes) on your least untrusted search engine, or better, if your search-engine supports the 'site:' parameter, for 'undefined reference to std::__cxx11::basic_ site:gentoo.org' AFAIR, there were both at least one news item and tons of mails/forum-posts about this issue with 'std::__cxx11::basic.*string' stuff. It's that C++ ABI change for all that string related stuff. It all basically boils down to just recompile all your C++ libs using some form of (basic_)string (and all stuff depending on those) using the new cxx11 ABI. ISTR that was rather well communicated in the news items and on this ML. And there's stuff on the wiki, e.g.: https://wiki.gentoo.org/wiki/Upgrading_GCC ISTR there's more specific stuff, but that's the gist of it. Rebuild what depends on libstdc++. IIRC: $ revdep-rebuild -v -p --library /usr/lib/libstdc++.so.5 (change /usr/lib/ to whatever matches your platform and don't forget /usr/lib32 if you do multilib ;) >Also, might it be related to gcc version? I'm currently using 10.2.0-r5 >~amd64. Nah. It's libstdc++ ;) HTH, -dnh -- The only languages that can comfortably be written with the repertoire of US-ASCII happen to be Latin, Swahili, Hawaiian and American English without most typographic frills. It is rumoured that there are more languages in the world. -- Roman Czyborra