Does not build in a clean chroot for me anymore. Also, are there plans to upgrade to v 8.0.0?
Search Criteria
Package Details: mongodb 7.0.15-1
Package Actions
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: | 36 |
Popularity: | 0.24 |
First Submitted: | 2019-01-18 22:08 (UTC) |
Last Updated: | 2024-12-12 23:00 (UTC) |
Dependencies (27)
- boost-libs
- curl (curl-gitAUR, curl-c-aresAUR)
- gcc-libs (gcc-libs-gitAUR, gccrs-libs-gitAUR, gcc11-libsAUR, gcc-libs-snapshotAUR)
- glibc (glibc-gitAUR, glibc-linux4AUR, glibc-eacAUR, glibc-eac-binAUR)
- gperftools (gperftools-gitAUR)
- krb5 (krb5-gitAUR)
- libldap (libldap-gnutlsAUR)
- libsasl
- libstemmer (libstemmer-gitAUR)
- libunwind (libunwind-carbonAUR, libunwind-gitAUR)
- openssl (openssl-staticAUR, openssl-gitAUR)
- pcre2 (pcre2-gitAUR)
- snappy (snappy-gitAUR)
- yaml-cpp
- zlib (zlib-ng-compat-gitAUR, zlib-gitAUR, zlib-ng-compat)
- zstd (zstd-gitAUR, zstd-staticAUR)
- boost (boost-gitAUR) (make)
- mongo-c-driver (make)
- python-cheetah3 (make)
- python-psutil (make)
- Show 7 more dependencies...
Required by (30)
- adminer (optional)
- alerta (optional)
- camlistore (optional)
- cronsun-bin
- grasscutter-git (optional)
- graylog (optional)
- icalingua++-electron-git (optional)
- icalingua++-git (optional)
- kamailio (optional)
- nemesyst-git (optional)
- nodejs-generator-scalatra (optional)
- omada-controller
- omada-controller-rxy
- pritunl-git (optional)
- pump.io (optional)
- pumpio-git (optional)
- python-ezdb-git (optional)
- python-ivre (optional)
- Show 12 more...
Sources (9)
AlexBocken commented on 2025-03-03 05:59 (UTC)
olwilliams commented on 2025-03-02 22:38 (UTC) (edited on 2025-03-02 22:39 (UTC) by olwilliams)
I got a compilation failure with mongodb 7.0.15, system PCRE2 10.45-1:
src/mongo/util/pcre.cpp:68:40: error: 'PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED' was not declared in this scope; did you mean 'PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED'?
68 | #define X_(name) std::pair{Errc::name, PCRE2_##name},
| ^~~~~~
src/mongo/util/pcre.h:158:5: note: in expansion of macro 'X_'
158 | X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
| ^
src/mongo/util/pcre.cpp:69:31: note: in expansion of macro 'MONGO_PCRE_ERROR_EXPAND_TABLE_'
69 | constexpr std::array errTable{MONGO_PCRE_ERROR_EXPAND_TABLE_(X_)};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons:src/mongo/util/pcre.cpp:68:40: error: 'PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED' was not declared in this scope; did you mean 'PCRE2_ERROR_CONDITION_ASSERTION_EXPECTED'?
68 | #define X_(name) std::pair{Errc::name, PCRE2_##name},
| ^~~~~~
src/mongo/util/pcre.h:158:5: note: in expansion of macro 'X_'
158 | X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
| ^
src/mongo/util/pcre.cpp:69:31: note: in expansion of macro 'MONGO_PCRE_ERROR_EXPAND_TABLE_'
69 | constexpr std::array errTable{MONGO_PCRE_ERROR_EXPAND_TABLE_(X_)};
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
scons: *** [build/opt/mongo/util/pcre.o] Error 1
It looks like at some point PCRE2 removed the PCRE2_ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED
error code. I got it to build by just removing that line:
diff -u -r a/src/mongo/util/pcre.h b/src/mongo/util/pcre.h
--- a/src/mongo/util/pcre.h 2025-03-02 16:46:18.443355487 -0500
+++ b/src/mongo/util/pcre.h 2025-03-02 16:46:59.651708274 -0500
@@ -155,7 +155,7 @@
X(ERROR_ALPHA_ASSERTION_UNKNOWN) \
X(ERROR_SCRIPT_RUN_NOT_AVAILABLE) \
X(ERROR_TOO_MANY_CAPTURES) \
- X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED) \
+ /*X(ERROR_CONDITION_ATOMIC_ASSERTION_EXPECTED)*/ \
X(ERROR_BACKSLASH_K_IN_LOOKAROUND) \
X(ERROR_NOMATCH) \
X(ERROR_PARTIAL) \
I don't know enough Mongo or PCRE2 to say if that's actually a reasonable fix or not; I was installing this as a prerequisite for the unifi
package, and it seemed to start up fine.
pohl7589 commented on 2024-10-12 08:58 (UTC) (edited on 2024-10-12 09:12 (UTC) by pohl7589)
mongodb 7.0.14 fails to build in a clean aarch64 chroot.
Checking that the C++ compiler can link a C++ program... no
C++ compiler g++ can't link C++ programs
The config.log shows the linker cannot link a hello world program:
scons: Configure: Checking that the C++ compiler can link a C++ program...
build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp <-
|
|#include <iostream>
|#include <cstdlib>
|
|int main() {
| std::cout << "Hello, World" << std::endl;
| return EXIT_SUCCESS;
|}
|
g++ -o build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -c -Woverloaded-virtual -march=armv8-a -O2 -pipe -fstack-protector-strong -fno-plt -fexceptions -Wp,-D_FORTIFY_SOURCE=3 -Wformat -Werror=format-security -fstack-clash-protection -fno-omit-frame-pointer -mno-omit-leaf-frame-pointer -Wp,-D_GLIBCXX_ASSERTIONS -Werror -ffp-contract=off -fasynchronous-unwind-tables -Wall -Wsign-compare -Wno-unknown-pragmas -Winvalid-pch -fno-omit-frame-pointer -fno-strict-aliasing -O2 -mtune=generic -DNDEBUG -D_XOPEN_SOURCE=700 -D_GNU_SOURCE build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.cpp
g++ -o build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0_5d3fee522b232c2fb8a6072c881f85cf -Wl,--fatal-warnings -Wl,-O1 -Wl,--sort-common -Wl,--as-needed -Wl,-z,relro -Wl,-z,now -Wl,-z,pack-relative-relocs -pthread -Wl,-z,now -rdynamic build/scons/opt/sconf_temp/conftest_ac30bfea77045c1c67c4f51773b51414_0.o -lm -lresolv
/usr/bin/ld: warning: -z pack-relative-relocs ignored
collect2: error: ld returned 1 exit status
scons: Configure: no
It seems due to -Wl,--fatal-warnings
being enabled the warning about -z pack-relative-relocs
is treated as an error. In /etc/makepkg.conf
I removed the LDFLAG -z pack-relative-relocs
and now it compiles.
JstKddng commented on 2024-09-24 02:55 (UTC)
I'll upgrade to 7.0.14 in the meantime, 8.0.0 will need more patches it seems
JstKddng commented on 2024-09-24 01:02 (UTC)
indeed, I'm on the process of pushing mongodb 8.0
samvv commented on 2024-09-21 18:20 (UTC) (edited on 2024-09-21 18:22 (UTC) by samvv)
mongodb-7.0.12-1 failed to build as a dependency of the unifi AUR package. I suspect the boost version is too new.
Compiling build/opt/mongo/shell/shell_utils_launcher.o
In file included from src/mongo/shell/shell_utils_launcher.cpp:30:
src/mongo/shell/shell_utils_launcher.h:32:10: fatal error: boost/filesystem/convenience.hpp: No such file or directory
32 | #include <boost/filesystem/convenience.hpp>
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In previous invocations I also got something about a missing boost::filesystem::is_regular_file
.
ZhangHua commented on 2024-09-08 11:07 (UTC) (edited on 2024-09-08 11:35 (UTC) by ZhangHua)
It seems that we need this patch to let mongodb build with boost 1.86.0, I use this patch to build mongodb 7.0.14 and it seems working.
PS: I think you may consider adding libboost_filesystem.so
into depends so boost-libs will be locked to the version used to compile mongodb. This may help with that mongodb failed to start because boost-libs upgraded. But this will also stop mongodb being upgraded if user build aur packages after their system is upgraded.
txtsd commented on 2024-08-27 10:34 (UTC)
I had to install openslide to make this run.
rakotomandimby commented on 2024-05-26 08:38 (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...
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.