Package Details: mongodb 7.0.8-1

Git Clone URL: https://aur.archlinux.org/mongodb.git (read-only, click to copy)
Package Base: mongodb
Description: A high-performance, open source, schema-free document-oriented database
Upstream URL: https://www.mongodb.com/
Keywords: database document-oriented
Licenses: SSPL-1.0
Provides: mongodb
Submitter: felixonmars
Maintainer: JstKddng
Last Packager: JstKddng
Votes: 34
Popularity: 0.34
First Submitted: 2019-01-18 22:08 (UTC)
Last Updated: 2024-04-12 01:52 (UTC)

Pinned Comments

JstKddng commented on 2022-08-03 23:28 (UTC)

Binary builds are available:

https://software.opensuse.org//download.html?project=home%3Ajustkidding%3Aarch&package=mongodb

JstKddng commented on 2022-08-03 23:28 (UTC)

If you have a pre-sandybridge CPU or an ARMv8 sbc, you can use mongodb44

If you'd like to stay in the V5.0 branch, you can use mongodb50

JstKddng commented on 2022-08-03 23:25 (UTC)

The mongo utility will be removed in future releases. Switching to mongosh is recommended.

Latest Comments

1 2 3 4 5 6 .. 14 Next › Last »

zork commented on 2024-04-30 08:48 (UTC)

Build fails, imp module disappeared from python:

ModuleNotFoundError: No module named 'imp':
  File "/home/zork/.cache/yay/mongodb/src/mongodb-src-r7.0.8/SConstruct", line 55:
    from buildscripts import moduleconfig
  File "/home/zork/.cache/yay/mongodb/src/mongodb-src-r7.0.8/buildscripts/moduleconfig.py", line 30:
    import imp

Current python version:

[zork@archdevel ~]$ python --version
Python 3.12.3

JstKddng commented on 2024-04-13 22:32 (UTC)

@D3vil0p3r

I have a fairly beefy computer (16c/32t with 64GB RAM) so I build with all threads on /tmp and it roughly takes 30 min to compile.

You could try compiling with 4 threads (and check that you aren't compiling on /tmp) or you could download a prebuilt package from here: https://software.opensuse.org//download.html?project=home%3Ajustkidding%3Aarch&package=mongodb

D3vil0p3r commented on 2024-04-13 14:47 (UTC)

@JstKidding which resource amount do you suggest for package building and to increase the build time? Or better, which resources you use for it and how much time it lasts for you? Are you assigning 1 core for building?

I am running the building on a 16 GB RAM, 4 cores but I assign 1 core for building to prevent some errors during it, but after 5 hours it is still building.

JstKddng commented on 2024-03-11 18:20 (UTC)

@keilmillerjr

check that you aren't building mongodb on tmpfs (i.e. /tmp) because 16 gb isn't enough for building on /tmp.

@krassecommits

try to reduce the number of threads used when compiling

keilmillerjr commented on 2024-03-11 17:13 (UTC)

@JstKddng adding -j2 to _scons_args within the PKGBUILD resolved the 100% CPU and lockup issue. However, btop froze at 100% memory. 14GB free memory isn't enough to build this package?!

krassecommits commented on 2024-03-08 23:18 (UTC)

Intel i7 9750H, 16GB RAM Took forever to compile and ended with this error:

src/mongo/util/aligned.h:205:85: warning: use of 'std::hardware_destructive_interference_size' [-Winterference-size]
scons: building terminated because of errors.

scons: *** Found dependency cycle(s):
  Internal Error: no cycle found for node build/opt/third_party/icu4c-57.1/source/common/uvectr64.o (<SCons.Node.FS.File object at 0x63b0f6bc0410>) in state pending
  Internal Error: no cycle found for node build/opt/mongo/db/commands/http_client_gen.o (<SCons.Node.FS.File object at 0x63b0f6e4c610>) in state pending
  Internal Error: no cycle found for node build/opt/mongo/db/s/global_index/global_index_cloner_gen.o (<SCons.Node.FS.File object at 0x63b0f74c8210>) in state pending
  Internal Error: no cycle found for node build/opt/mongo/db/repl/wait_for_majority_service.o (<SCons.Node.FS.File object at 0x63b0f6f56440>) in state pending
  Internal Error: no cycle found for node build/opt/mongo/db/s/global_index/global_index_server_parameters_gen.o (<SCons.Node.FS.File object at 0x63b0f73120a0>) in state pending

File "/home/user/.cache/yay/mongodb/src/mongodb-src-r7.0.6/src/third_party/scons-3.1.2/scons-local-3.1.2/SCons/Taskmaster.py", line 1076, in cleanup
build/opt/mongo/db/s/compact_structured_encryption_data_coordinator.o failed: Error 1

JstKddng commented on 2024-03-07 22:51 (UTC)

@keilmillerjr

That line is only a warning, the actual error might be somewhere else on the logs (most probably you ran out of memory).

Try editing /etc/makepkg.conf and reduce (or set) the -j flag on MAKEFLAGS to a number lower than your number of cpu threads.

keilmillerjr commented on 2024-03-07 16:02 (UTC)

AMD Ryzen 5 3600 16GB ram

Compiling this package, CPU 100% and it eventually locked up my computer multiple times. Compiled in a TTY (no WM) and it finally finished with a failure.

/usr/include/c++/13.2.1/atomic:297:22: warning: '__atomic_load_4' writing 4 bytes into a region of size 0 overflows the destination [-Wstringop-overflow=]
In member function '__dt_base ':
lto1: note: destination object is likely at address zero
scons: building terminated because of errors.
build/opt/mongo/db/mongod failed: Error 1

JstKddng commented on 2024-02-29 01:33 (UTC)

damn, your compiler fucking crashed, never seen one of those in a while. Not much I can do sadly, maybe report the issue to the GCC folks

KostaWelke commented on 2024-02-28 10:27 (UTC) (edited on 2024-02-28 10:28 (UTC) by KostaWelke)

My compiler segfauls trying to compile this. Any ideas? O_o

Compiling build/opt/mongo/db/commands/kill_sessions_command.o
In file included from src/mongo/db/commands.h:52,
                 from build/opt/mongo/crypto/encryption_fields_gen.cpp:16:
src/mongo/db/request_execution_context.h:65:64: internal compiler error: Segmentation fault
   65 |           _dbmsg(std::make_unique<DbMessage>(_message.get())) {}
      |                                                                ^
0x1ad33c8 internal_error(char const*, ...)
    ???:0
...
scons: building terminated because of errors.
build/opt/mongo/crypto/encryption_fields_gen.o failed: Error 1
==> ERROR: A failure occurred in build().
    Aborting...
error: failed to build 'mongodb-7.0.5-1': 

Is this using gcc? My version is

gcc --version
gcc (GCC) 13.2.1 20230801