Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 698152

Summary: dev-db/mongodb-3.6.14 - src/mongo/util/heap_profiler.cpp:484:33: error: 'abi' has not been declared
Product: Gentoo Linux Reporter: Aaron U'Ren <aauren>
Component: Current packagesAssignee: Ultrabug <ultrabug>
Status: RESOLVED FIXED    
Severity: normal CC: hydrapolic
Priority: Normal Keywords: PullRequest
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/gentoo/gentoo/pull/13529
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge info
Add include for missing cxxabi header

Description Aaron U'Ren 2019-10-20 20:14:50 UTC
Created attachment 593464 [details]
emerge info

When trying to compile dev-db/mongodb-3.6.14 (I get this error with mongodb-3.6.13 as well) I get the following error:

src/mongo/db/matcher/expression_tree.h:208:25: note: remove 'std::move' call
Compiling build/opt/mongo/s/catalog/type_shard.o
src/mongo/util/heap_profiler.cpp: In member function 'void mongo::{anonymous}::HeapProfiler::generateStackIfNeeded(mongo::{anonymous}::HeapProfiler::Stack&, mongo::{anonymous}::HeapProfiler::StackInfo&)':
src/mongo/util/heap_profiler.cpp:484:33: error: 'abi' has not been declared
  484 |                     demangled = abi::__cxa_demangle(dli.dli_sname, 0, 0, &status);
      |                                 ^~~

While the error and fix below seems to indicate that this would be a general bug, I'm not entirely convinced that it doesn't have something to do with my system, as I used to be able to compile mongodb-3.6.13 just fine without any modifications. Of note is that I recently updated my gcc version from 8.3.0 to 9.2.0. When I did this I followed the gcc upgrade guide on the wiki, and after encountering this issue even did an empty tree emerge world as a precaution to see if that would help anything.

I manually patched src/mongo/util/heap_profiler.cpp to include #include <cxxabi.h> at the top of the file and it finished merging just fine.
Comment 1 Jeroen Roovers (RETIRED) gentoo-dev 2019-10-20 21:13:52 UTC
Please attach the entire build log to this bug report.
Comment 2 Robert Dyer 2019-10-21 23:21:56 UTC
It's the same bug as 694530, just with the patches applied to the 3.6.1[34] sources. The patch in the original bug was based on 3.6.13.
Comment 3 Robert Dyer 2019-10-21 23:24:57 UTC
Created attachment 593594 [details, diff]
Add include for missing cxxabi header
Comment 4 Joakim Tjernlund 2019-11-02 14:27:27 UTC
same bug here, thanks for the patch.
Comment 5 Larry the Git Cow gentoo-dev 2019-11-04 06:23:38 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd4d42a62e084fd57566197ea94009e06b55983e

commit dd4d42a62e084fd57566197ea94009e06b55983e
Author:     Tomas Mozes <hydrapolic@gmail.com>
AuthorDate: 2019-11-02 20:04:55 +0000
Commit:     Joonas Niilola <juippis@gentoo.org>
CommitDate: 2019-11-04 06:22:16 +0000

    dev-db/mongodb: use dedicated acct-{group,user} packages
    
    Closes: https://bugs.gentoo.org/698152
    Signed-off-by: Tomáš Mózes <hydrapolic@gmail.com>
    Closes: https://github.com/gentoo/gentoo/pull/13529
    Signed-off-by: Joonas Niilola <juippis@gentoo.org>

 dev-db/mongodb/mongodb-3.6.14.ebuild | 14 +++++---------
 dev-db/mongodb/mongodb-4.0.13.ebuild | 13 ++++---------
 dev-db/mongodb/mongodb-4.2.1.ebuild  | 13 ++++---------
 3 files changed, 13 insertions(+), 27 deletions(-)