building with scons fails on my linux machine

281 views
Skip to first unread message

hugo boser

unread,
Sep 2, 2019, 11:24:19 AM9/2/19
to mongodb-dev
hello

I am on a 64-bit kali linux (rolling). i need to compile mongod from source as it supports libcurl4.i followed all the instructions from building.md in /docs on the github page of the master branch.

everything compiles for 2+ hours and then starts the linking process,mongo shell client is build but eventually the build process ends with
the following error.
Linking build/opt/mongo/mongo
Install file: "build/opt/mongo/mongo" as "mongo"
/bin/ld.gold: error: build/opt/mongo/db/s/libtransaction_coordinator.a(build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o): multiple definition of 'mongo::ShimBasis_68::MongoShimImplGuts::ImplTUHookTypeBase::ImplTUHookTypeBase()'
/bin/ld.gold: build/opt/mongo/db/libread_concern_d_impl.a(build/opt/mongo/db/read_concern_mongod.o): previous definition here
/bin/ld.gold: error: build/opt/mongo/db/s/libtransaction_coordinator.a(build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository_mongod.o): multiple definition of 'mongo::ShimBasis_68::MongoShimImplGuts::ImplTUHookTypeBase::ImplTUHookTypeBase()'
/bin/ld.gold: build/opt/mongo/db/libread_concern_d_impl.a(build/opt/mongo/db/read_concern_mongod.o): previous definition here
/bin/ld.gold: error: build/opt/mongo/db/s/libsharding_api_d.a(build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository.o): multiple definition of 'mongo::ShimBasis_68::MongoShimImplGuts::LibTUHookTypeBase::LibTUHookTypeBase()'
/bin/ld.gold: build/opt/mongo/db/librw_concern_d.a(build/opt/mongo/db/read_concern.o): previous definition here
/bin/ld.gold: error: build/opt/mongo/db/s/libsharding_api_d.a(build/opt/mongo/db/s/transaction_coordinator_worker_curop_repository.o): multiple definition of 'mongo::ShimBasis_68::MongoShimImplGuts::LibTUHookTypeBase::LibTUHookTypeBase()'
/bin/ld.gold: build/opt/mongo/db/librw_concern_d.a(build/opt/mongo/db/read_concern.o): previous definition here
collect2
: error: ld returned 1 exit status
scons
: *** [build/opt/mongo/mongod] Error 1
scons
: building terminated because of errors.
build
/opt/mongo/mongod failed: Error 1

i was using mongodb in my project before but now its broken and i can't use since i upgraded my kali linux to using libcurl4 which conflicts with the libcurl3 that older versions of mongodb use. Any help would be greatly appreciated. Should i also file a ticket with JIRA?
error_log_building_mongod.txt

Andrew Morrow

unread,
Sep 9, 2019, 1:18:21 PM9/9/19
to mongodb-dev

Hi -

- What branch/tag/commit are you building?
- What toolchain (clang/gcc) and version did you use?
- What was your complete SCons invocation?

Thanks,
Andrew


--
You received this message because you are subscribed to the Google Groups "mongodb-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/62a641ba-f5aa-4b07-be7f-afca5a132611%40googlegroups.com.

hugo boser

unread,
Sep 14, 2019, 4:49:13 AM9/14/19
to mongodb-dev
i was building the master branch. i just followed instructions from https://github.com/mongodb/mongo/blob/master/docs/building.md
i have both gcc (Debian 8.3.0-19) 8.3.0 and clang version 7.0.1-4 (tags/RELEASE_701/final)
Target: x86_64-pc-linux-gnu
wich i used i guess that depends on the scons script that i started? but i think it was gcc.
my scons invocation was
python3 buildscripts/scons.py mongo mongod

i used timeshift to go back to my last system checkpoint wich still used mongodb that uses libcurl3 so for me it is a short term solution but i can't work with R unless in docker.


Op maandag 9 september 2019 19:18:21 UTC+2 schreef acm:
To unsubscribe from this group and stop receiving emails from it, send an email to mongo...@googlegroups.com.

Andrew Morrow

unread,
Sep 16, 2019, 12:41:00 PM9/16/19
to mongodb-dev

Hi -

The master branch is the active development branch, and it is possible that it could be temporarily broken on a given commit. Can you please try to build one of the stable branches or, better, release tags instead? If you were building master, you probably wanted to build the r4.2.0 tagĀ instead.

Thanks,
Andrew

To unsubscribe from this group and stop receiving emails from it, send an email to mongodb-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mongodb-dev/ee3dc972-6482-4ce0-822d-acedcd5b9587%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages