Downloading the 7.0.8 version is forbidden:
curl: (22) The requested URL returned error: 403
==> ERROR: Failure while downloading https://fastdl.mongodb.org/src/mongodb-src-r7.0.8.tar.gz
Aborting...
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.132563 |
First Submitted: | 2019-01-18 22:08 (UTC) |
Last Updated: | 2024-05-27 18:33 (UTC) |
Downloading the 7.0.8 version is forbidden:
curl: (22) The requested URL returned error: 403
==> ERROR: Failure while downloading https://fastdl.mongodb.org/src/mongodb-src-r7.0.8.tar.gz
Aborting...
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
@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
@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.
@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
@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?!
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
@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.
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
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
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 tomongosh
is recommended.