public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: David Haller <gentoo@dhaller.de>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] cmake-3.18.5 build fails
Date: Fri, 12 Feb 2021 21:53:11 +0100	[thread overview]
Message-ID: <20210212205311.67xjvknd3u6zsysk@grusum.endjinn.de> (raw)
In-Reply-To: <Q4LBWCUH.X3UZDYI2.X3RP6VCP@RHKYURYV.J4E34TLA.34LQELQL>

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<char, std::char_traits<char>,
>std::allocator<char> >::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


  reply	other threads:[~2021-02-12 20:53 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-02-12 19:49 [gentoo-user] cmake-3.18.5 build fails Walter Dnes
2021-02-12 20:23 ` Jack
2021-02-12 20:53   ` David Haller [this message]
2021-02-12 22:12 ` [gentoo-user] [SOLVED] " Walter Dnes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210212205311.67xjvknd3u6zsysk@grusum.endjinn.de \
    --to=gentoo@dhaller.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox